Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for hwloc 2.14.0.
4 #
5 # Report bugs to <https://github.com/open-mpi/hwloc/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # contradicts POSIX and common usage. Disable this.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 case $# in # ((
135 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
136 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
137 esac
138 # Admittedly, this is quite paranoid, since all the known shells bail
139 # out after a failed 'exec'.
140 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
141 exit 255
142 fi
143 # We don't want this to propagate to other subprocesses.
144 { _as_can_reexec=; unset _as_can_reexec;}
145 if test "x$CONFIG_SHELL" = x; then
146 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
147 then :
148 emulate sh
149 NULLCMD=:
150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
151 # contradicts POSIX and common usage. Disable this.
152 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 setopt NO_GLOB_SUBST
154 else case e in #(
155 e) case \`(set -o) 2>/dev/null\` in #(
156 *posix*) :
157 set -o posix ;; #(
158 *) :
159 ;;
160 esac ;;
161 esac
162 fi
163 "
164 as_required="as_fn_return () { (exit \$1); }
165 as_fn_success () { as_fn_return 0; }
166 as_fn_failure () { as_fn_return 1; }
167 as_fn_ret_success () { return 0; }
168 as_fn_ret_failure () { return 1; }
169
170 exitcode=0
171 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
175 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 then :
177
178 else case e in #(
179 e) exitcode=1; echo positional parameters were not saved. ;;
180 esac
181 fi
182 test x\$exitcode = x0 || exit 1
183 blah=\$(echo \$(echo blah))
184 test x\"\$blah\" = xblah || exit 1
185 test -x / || exit 1"
186 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
187 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
188 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
189 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
190
191 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
192 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
193 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
194 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
195 PATH=/empty FPATH=/empty; export PATH FPATH
196 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
197 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
198 test \$(( 1 + 1 )) = 2 || exit 1"
199 if (eval "$as_required") 2>/dev/null
200 then :
201 as_have_required=yes
202 else case e in #(
203 e) as_have_required=no ;;
204 esac
205 fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
207 then :
208
209 else case e in #(
210 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 case $as_dir in #(((
216 '') as_dir=./ ;;
217 */) ;;
218 *) as_dir=$as_dir/ ;;
219 esac
220 as_found=:
221 case $as_dir in #(
222 /*)
223 for as_base in sh bash ksh sh5; do
224 # Try only shells that exist, to save several forks.
225 as_shell=$as_dir$as_base
226 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
227 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
228 then :
229 CONFIG_SHELL=$as_shell as_have_required=yes
230 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
231 then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 IFS=$as_save_IFS
240 if $as_found
241 then :
242
243 else case e in #(
244 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
245 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
246 then :
247 CONFIG_SHELL=$SHELL as_have_required=yes
248 fi ;;
249 esac
250 fi
251
252
253 if test "x$CONFIG_SHELL" != x
254 then :
255 export CONFIG_SHELL
256 # We cannot yet assume a decent shell, so we have to provide a
257 # neutralization value for shells without unset; and this also
258 # works around shells that cannot unset nonexistent variables.
259 # Preserve -v and -x to the replacement shell.
260 BASH_ENV=/dev/null
261 ENV=/dev/null
262 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
263 case $- in # ((((
264 *v*x* | *x*v* ) as_opts=-vx ;;
265 *v* ) as_opts=-v ;;
266 *x* ) as_opts=-x ;;
267 * ) as_opts= ;;
268 esac
269 case $# in # ((
270 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
271 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
272 esac
273 # Admittedly, this is quite paranoid, since all the known shells bail
274 # out after a failed 'exec'.
275 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
276 exit 255
277 fi
278
279 if test x$as_have_required = xno
280 then :
281 printf '%s\n' "$0: This script requires a shell more modern than all"
282 printf '%s\n' "$0: the shells that I found on your system."
283 if test ${ZSH_VERSION+y} ; then
284 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should"
285 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later."
286 else
287 printf '%s\n' "$0: Please tell [email protected] and
288 $0: https://github.com/open-mpi/hwloc/issues about your
289 $0: system, including any error possibly output before this
290 $0: message. Then install a modern shell, or manually run
291 $0: the script under such a shell if you do have one."
292 fi
293 exit 1
294 fi ;;
295 esac
296 fi
297 fi
298 SHELL=${CONFIG_SHELL-/bin/sh}
299 export SHELL
300 # Unset more variables known to interfere with behavior of common tools.
301 CLICOLOR_FORCE= GREP_OPTIONS=
302 unset CLICOLOR_FORCE GREP_OPTIONS
303
304 ## --------------------- ##
305 ## M4sh Shell Functions. ##
306 ## --------------------- ##
307 # as_fn_unset VAR
308 # ---------------
309 # Portably unset VAR.
310 as_fn_unset ()
311 {
312 { eval $1=; unset $1;}
313 }
314 as_unset=as_fn_unset
315
316
317 # as_fn_set_status STATUS
318 # -----------------------
319 # Set $? to STATUS, without forking.
320 as_fn_set_status ()
321 {
322 return $1
323 } # as_fn_set_status
324
325 # as_fn_exit STATUS
326 # -----------------
327 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
328 as_fn_exit ()
329 {
330 set +e
331 as_fn_set_status $1
332 exit $1
333 } # as_fn_exit
334
335 # as_fn_mkdir_p
336 # -------------
337 # Create "$as_dir" as a directory, including parents if necessary.
338 as_fn_mkdir_p ()
339 {
340
341 case $as_dir in #(
342 -*) as_dir=./$as_dir;;
343 esac
344 test -d "$as_dir" || eval $as_mkdir_p || {
345 as_dirs=
346 while :; do
347 case $as_dir in #(
348 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 *) as_qdir=$as_dir;;
350 esac
351 as_dirs="'$as_qdir' $as_dirs"
352 as_dir=`$as_dirname -- "$as_dir" ||
353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
354 X"$as_dir" : 'X\(//\)[^/]' \| \
355 X"$as_dir" : 'X\(//\)$' \| \
356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
357 printf '%s\n' X"$as_dir" |
358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
359 s//\1/
360 q
361 }
362 /^X\(\/\/\)[^/].*/{
363 s//\1/
364 q
365 }
366 /^X\(\/\/\)$/{
367 s//\1/
368 q
369 }
370 /^X\(\/\).*/{
371 s//\1/
372 q
373 }
374 s/.*/./; q'`
375 test -d "$as_dir" && break
376 done
377 test -z "$as_dirs" || eval "mkdir $as_dirs"
378 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
379
380
381 } # as_fn_mkdir_p
382
383 # as_fn_executable_p FILE
384 # -----------------------
385 # Test if FILE is an executable regular file.
386 as_fn_executable_p ()
387 {
388 test -f "$1" && test -x "$1"
389 } # as_fn_executable_p
390 # as_fn_append VAR VALUE
391 # ----------------------
392 # Append the text in VALUE to the end of the definition contained in VAR. Take
393 # advantage of any shell optimizations that allow amortized linear growth over
394 # repeated appends, instead of the typical quadratic growth present in naive
395 # implementations.
396 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
397 then :
398 eval 'as_fn_append ()
399 {
400 eval $1+=\$2
401 }'
402 else case e in #(
403 e) as_fn_append ()
404 {
405 eval $1=\$$1\$2
406 } ;;
407 esac
408 fi # as_fn_append
409
410 # as_fn_arith ARG...
411 # ------------------
412 # Perform arithmetic evaluation on the ARGs, and store the result in the
413 # global $as_val. Take advantage of shells that can avoid forks. The arguments
414 # must be portable across $(()) and expr.
415 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
416 then :
417 eval 'as_fn_arith ()
418 {
419 as_val=$(( $* ))
420 }'
421 else case e in #(
422 e) as_fn_arith ()
423 {
424 as_val=`expr "$@" || test $? -eq 1`
425 } ;;
426 esac
427 fi # as_fn_arith
428
429
430 # as_fn_error STATUS ERROR [LINENO LOG_FD]
431 # ----------------------------------------
432 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
433 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
434 # script with STATUS, using 1 if that was 0.
435 as_fn_error ()
436 {
437 as_status=$1; test $as_status -eq 0 && as_status=1
438 if test "$4"; then
439 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
440 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
441 fi
442 printf '%s\n' "$as_me: error: $2" >&2
443 as_fn_exit $as_status
444 } # as_fn_error
445
446 if expr a : '\(a\)' >/dev/null 2>&1 &&
447 test "X`expr 00001 : '.*\(...\)'`" = X001; then
448 as_expr=expr
449 else
450 as_expr=false
451 fi
452
453 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
454 as_basename=basename
455 else
456 as_basename=false
457 fi
458
459 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
460 as_dirname=dirname
461 else
462 as_dirname=false
463 fi
464
465 as_me=`$as_basename -- "$0" ||
466 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
467 X"$0" : 'X\(//\)$' \| \
468 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
469 printf '%s\n' X/"$0" |
470 sed '/^.*\/\([^/][^/]*\)\/*$/{
471 s//\1/
472 q
473 }
474 /^X\/\(\/\/\)$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\).*/{
479 s//\1/
480 q
481 }
482 s/.*/./; q'`
483
484 # Avoid depending upon Character Ranges.
485 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
486 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
487 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
488 as_cr_digits='0123456789'
489 as_cr_alnum=$as_cr_Letters$as_cr_digits
490
491
492 as_lineno_1=$LINENO as_lineno_1a=$LINENO
493 as_lineno_2=$LINENO as_lineno_2a=$LINENO
494 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
495 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
496 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
497 sed -n '
498 p
499 /[$]LINENO/=
500 ' <$as_myself |
501 sed '
502 t clear
503 :clear
504 s/[$]LINENO.*/&-/
505 t lineno
506 b
507 :lineno
508 N
509 :loop
510 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
511 t loop
512 s/-\n.*//
513 ' >$as_me.lineno &&
514 chmod +x "$as_me.lineno" ||
515 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
516
517 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
518 # already done that, so ensure we don't try to do so again and fall
519 # in an infinite loop. This has already happened in practice.
520 _as_can_reexec=no; export _as_can_reexec
521 # Don't try to exec as it changes $[0], causing all sort of problems
522 # (the dirname of $[0] is not the place where we might find the
523 # original and so on. Autoconf is especially sensitive to this).
524 . "./$as_me.lineno"
525 # Exit status is that of the last command.
526 exit
527 }
528
529 rm -f conf$$ conf$$.exe conf$$.file
530 if test -d conf$$.dir; then
531 rm -f conf$$.dir/conf$$.file
532 else
533 rm -f conf$$.dir
534 mkdir conf$$.dir 2>/dev/null
535 fi
536 if (echo >conf$$.file) 2>/dev/null; then
537 if ln -s conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s='ln -s'
539 # ... but there are two gotchas:
540 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
541 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
542 # In both cases, we have to default to 'cp -pR'.
543 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
544 as_ln_s='cp -pR'
545 elif ln conf$$.file conf$$ 2>/dev/null; then
546 as_ln_s=ln
547 else
548 as_ln_s='cp -pR'
549 fi
550 else
551 as_ln_s='cp -pR'
552 fi
553 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
554 rmdir conf$$.dir 2>/dev/null
555
556 if mkdir -p . 2>/dev/null; then
557 as_mkdir_p='mkdir -p "$as_dir"'
558 else
559 test -d ./-p && rmdir ./-p
560 as_mkdir_p=false
561 fi
562
563 as_test_x='test -x'
564 as_executable_p=as_fn_executable_p
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
568 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
569
570 # Sed expression to map a string onto a valid variable name.
571 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
572 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
573
574 SHELL=${CONFIG_SHELL-/bin/sh}
575
576
577 test -n "$DJDIR" || exec 7<&0 </dev/null
578 exec 6>&1
579
580 # Name of the host.
581 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
585 #
586 # Initializations.
587 #
588 ac_default_prefix=/usr/local
589 ac_clean_CONFIG_STATUS=
590 ac_clean_files=
591 ac_config_libobj_dir=.
592 LIBOBJS=
593 cross_compiling=no
594 subdirs=
595 MFLAGS=
596 MAKEFLAGS=
597
598 # Identity of this package.
599 PACKAGE_NAME='hwloc'
600 PACKAGE_TARNAME='hwloc'
601 PACKAGE_VERSION='2.14.0'
602 PACKAGE_STRING='hwloc 2.14.0'
603 PACKAGE_BUGREPORT='https://github.com/open-mpi/hwloc/issues'
604 PACKAGE_URL=''
605
606 # Factoring default headers for most tests.
607 ac_includes_default="\
608 #include <stddef.h>
609 #ifdef HAVE_STDIO_H
610 # include <stdio.h>
611 #endif
612 #ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 #endif
615 #ifdef HAVE_STRING_H
616 # include <string.h>
617 #endif
618 #ifdef HAVE_INTTYPES_H
619 # include <inttypes.h>
620 #endif
621 #ifdef HAVE_STDINT_H
622 # include <stdint.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_SYS_TYPES_H
628 # include <sys/types.h>
629 #endif
630 #ifdef HAVE_SYS_STAT_H
631 # include <sys/stat.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_header_c_list=
638 ac_subst_vars='am__EXEEXT_FALSE
639 am__EXEEXT_TRUE
640 LTLIBOBJS
641 LIBOBJS
642 HWLOC_CROSS_COMPILING_FALSE
643 HWLOC_CROSS_COMPILING_TRUE
644 HWLOC_HAVE_CXX_FALSE
645 HWLOC_HAVE_CXX_TRUE
646 HWLOC_HAVE_BASH_FALSE
647 HWLOC_HAVE_BASH_TRUE
648 HWLOC_XML_LIBXML_BUILD_STATIC_FALSE
649 HWLOC_XML_LIBXML_BUILD_STATIC_TRUE
650 HWLOC_GL_BUILD_STATIC_FALSE
651 HWLOC_GL_BUILD_STATIC_TRUE
652 HWLOC_LEVELZERO_BUILD_STATIC_FALSE
653 HWLOC_LEVELZERO_BUILD_STATIC_TRUE
654 HWLOC_RSMI_BUILD_STATIC_FALSE
655 HWLOC_RSMI_BUILD_STATIC_TRUE
656 HWLOC_NVML_BUILD_STATIC_FALSE
657 HWLOC_NVML_BUILD_STATIC_TRUE
658 HWLOC_CUDA_BUILD_STATIC_FALSE
659 HWLOC_CUDA_BUILD_STATIC_TRUE
660 HWLOC_OPENCL_BUILD_STATIC_FALSE
661 HWLOC_OPENCL_BUILD_STATIC_TRUE
662 HWLOC_PCI_BUILD_STATIC_FALSE
663 HWLOC_PCI_BUILD_STATIC_TRUE
664 HWLOC_HAVE_PLUGINS_FALSE
665 HWLOC_HAVE_PLUGINS_TRUE
666 HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE
667 HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE
668 HWLOC_HAVE_X86_CPUID_FALSE
669 HWLOC_HAVE_X86_CPUID_TRUE
670 HWLOC_HAVE_X86_64_FALSE
671 HWLOC_HAVE_X86_64_TRUE
672 HWLOC_HAVE_X86_32_FALSE
673 HWLOC_HAVE_X86_32_TRUE
674 HWLOC_HAVE_X86_FALSE
675 HWLOC_HAVE_X86_TRUE
676 HWLOC_HAVE_MINGW32_FALSE
677 HWLOC_HAVE_MINGW32_TRUE
678 HWLOC_HAVE_WINDOWS_FALSE
679 HWLOC_HAVE_WINDOWS_TRUE
680 HWLOC_HAVE_HPUX_FALSE
681 HWLOC_HAVE_HPUX_TRUE
682 HWLOC_HAVE_AIX_FALSE
683 HWLOC_HAVE_AIX_TRUE
684 HWLOC_HAVE_SOLARIS_FALSE
685 HWLOC_HAVE_SOLARIS_TRUE
686 HWLOC_HAVE_NETBSD_FALSE
687 HWLOC_HAVE_NETBSD_TRUE
688 HWLOC_HAVE_FREEBSD_FALSE
689 HWLOC_HAVE_FREEBSD_TRUE
690 HWLOC_HAVE_DARWIN_FALSE
691 HWLOC_HAVE_DARWIN_TRUE
692 HWLOC_HAVE_IRIX_FALSE
693 HWLOC_HAVE_IRIX_TRUE
694 HWLOC_HAVE_BGQ_FALSE
695 HWLOC_HAVE_BGQ_TRUE
696 HWLOC_HAVE_LINUX_FALSE
697 HWLOC_HAVE_LINUX_TRUE
698 HWLOC_INSTALL_DOXYGEN_FALSE
699 HWLOC_INSTALL_DOXYGEN_TRUE
700 HWLOC_BUILD_README_FALSE
701 HWLOC_BUILD_README_TRUE
702 HWLOC_BUILD_DOXYGEN_FALSE
703 HWLOC_BUILD_DOXYGEN_TRUE
704 HWLOC_HAVE_USER32_FALSE
705 HWLOC_HAVE_USER32_TRUE
706 HWLOC_HAVE_BUNZIPP_FALSE
707 HWLOC_HAVE_BUNZIPP_TRUE
708 HWLOC_HAVE_LEVELZERO_FALSE
709 HWLOC_HAVE_LEVELZERO_TRUE
710 HWLOC_HAVE_RSMI_FALSE
711 HWLOC_HAVE_RSMI_TRUE
712 HWLOC_HAVE_NVML_FALSE
713 HWLOC_HAVE_NVML_TRUE
714 HWLOC_HAVE_OPENCL_FALSE
715 HWLOC_HAVE_OPENCL_TRUE
716 HWLOC_HAVE_PCIACCESS_FALSE
717 HWLOC_HAVE_PCIACCESS_TRUE
718 HWLOC_HAVE_CAIRO_FALSE
719 HWLOC_HAVE_CAIRO_TRUE
720 HWLOC_HAVE_LIBXML2_FALSE
721 HWLOC_HAVE_LIBXML2_TRUE
722 HWLOC_HAVE_CUDART_FALSE
723 HWLOC_HAVE_CUDART_TRUE
724 HWLOC_HAVE_GL_FALSE
725 HWLOC_HAVE_GL_TRUE
726 HWLOC_HAVE_CUDA_FALSE
727 HWLOC_HAVE_CUDA_TRUE
728 HWLOC_HAVE_LIBIBVERBS_FALSE
729 HWLOC_HAVE_LIBIBVERBS_TRUE
730 HWLOC_HAVE_LINUX_LIBNUMA_FALSE
731 HWLOC_HAVE_LINUX_LIBNUMA_TRUE
732 HWLOC_HAVE_PTHREAD_FALSE
733 HWLOC_HAVE_PTHREAD_TRUE
734 HWLOC_HAVE_SCHED_SETAFFINITY_FALSE
735 HWLOC_HAVE_SCHED_SETAFFINITY_TRUE
736 HWLOC_HAVE_OPENAT_FALSE
737 HWLOC_HAVE_OPENAT_TRUE
738 HWLOC_HAVE_MS_LIB_FALSE
739 HWLOC_HAVE_MS_LIB_TRUE
740 HWLOC_HAVE_MSVC_FALSE
741 HWLOC_HAVE_MSVC_TRUE
742 HWLOC_HAVE_GCC_FALSE
743 HWLOC_HAVE_GCC_TRUE
744 HWLOC_BUILD_STANDALONE_FALSE
745 HWLOC_BUILD_STANDALONE_TRUE
746 BUNZIPP
747 XMLLINT
748 BASH
749 HWLOC_IBVERBS_LIBS
750 HWLOC_NUMA_LIBS
751 HWLOC_NUMA_CFLAGS
752 HWLOC_PS_LIBS
753 HWLOC_DIFF_W
754 HWLOC_DIFF_U
755 DIFF
756 HWLOC_TERMCAP_LIBS
757 HWLOC_XML_LOCALIZED
758 HWLOC_CAIRO_LIBS
759 HWLOC_CAIRO_CFLAGS
760 HWLOC_X11_LIBS
761 HWLOC_X11_CPPFLAGS
762 HWLOC_runstatedir
763 HWLOC_W3_GENERATOR
764 LYNX
765 W3M
766 EPSTOPDF
767 GS
768 FIG2DEV
769 MAKEINDEX
770 PDFLATEX
771 DOXYGEN
772 CONFIGURE_DEPENDENCIES
773 HWLOC_EMBEDDED_LIBS
774 HWLOC_EMBEDDED_LDADD
775 HWLOC_EMBEDDED_LDFLAGS
776 HWLOC_EMBEDDED_CPPFLAGS
777 HWLOC_EMBEDDED_CFLAGS
778 HWLOC_LIBS_PRIVATE
779 HWLOC_LIBS
780 HWLOC_LDFLAGS
781 HWLOC_CPPFLAGS
782 HWLOC_CFLAGS
783 HWLOC_REQUIRES
784 HWLOC_PLUGINS_DIR
785 HWLOC_PLUGINS_PATH
786 HWLOC_LTDL_LIBS
787 HWLOC_DL_LIBS
788 HWLOC_HAVE_X86_CPUID
789 HWLOC_HAVE_LIBXML2
790 HWLOC_LIBXML2_LIBS
791 HWLOC_LIBXML2_CFLAGS
792 HWLOC_GL_LIBS
793 X_EXTRA_LIBS
794 X_LIBS
795 X_PRE_LIBS
796 X_CFLAGS
797 CPP
798 XMKMF
799 HWLOC_HAVE_LEVELZERO
800 HWLOC_LEVELZERO_LIBS
801 HWLOC_LEVELZERO_CFLAGS
802 HWLOC_HAVE_OPENCL
803 HWLOC_OPENCL_LDFLAGS
804 HWLOC_OPENCL_LIBS
805 HWLOC_OPENCL_CPPFLAGS
806 HWLOC_HAVE_RSMI
807 HWLOC_RSMI_LIBS
808 HWLOC_RSMI_LDFLAGS
809 HWLOC_RSMI_CPPFLAGS
810 HWLOC_HAVE_NVML
811 HWLOC_NVML_CPPFLAGS
812 HWLOC_NVML_LDFLAGS
813 HWLOC_NVML_LIBS
814 HWLOC_CUDART_LDFLAGS
815 HWLOC_CUDART_CPPFLAGS
816 HWLOC_CUDART_LIBS
817 HWLOC_CUDART_CFLAGS
818 HWLOC_CUDA_LDFLAGS
819 HWLOC_CUDA_CPPFLAGS
820 HWLOC_CUDA_LIBS
821 HWLOC_CUDA_CFLAGS
822 HWLOC_PCIACCESS_LIBS
823 HWLOC_PCIACCESS_CFLAGS
824 PKG_CONFIG
825 HWLOC_DARWIN_LDFLAGS
826 HWLOC_MS_LIB_ARCH
827 HWLOC_HAVE_LINUX
828 HWLOC_RELEASE_DATE
829 HWLOC_VERSION
830 HWLOC_top_srcdir
831 HWLOC_top_builddir
832 libhwloc_so_name
833 libhwloc_so_version
834 ROCM_VERSION
835 CUDA_VERSION
836 HWLOC_MS_LIB
837 CXXCPP
838 am__fastdepCXX_FALSE
839 am__fastdepCXX_TRUE
840 CXXDEPMODE
841 ac_ct_CXX
842 CXXFLAGS
843 CXX
844 LT_SYS_LIBRARY_PATH
845 OTOOL64
846 OTOOL
847 LIPO
848 NMEDIT
849 DSYMUTIL
850 MANIFEST_TOOL
851 RANLIB
852 FILECMD
853 LN_S
854 NM
855 ac_ct_DUMPBIN
856 DUMPBIN
857 LD
858 FGREP
859 EGREP
860 GREP
861 SED
862 LIBTOOL
863 OBJDUMP
864 DLLTOOL
865 AS
866 ac_ct_AR
867 AR
868 am__fastdepCC_FALSE
869 am__fastdepCC_TRUE
870 CCDEPMODE
871 am__nodep
872 AMDEPBACKSLASH
873 AMDEP_FALSE
874 AMDEP_TRUE
875 am__include
876 DEPDIR
877 OBJEXT
878 EXEEXT
879 ac_ct_CC
880 CPPFLAGS
881 LDFLAGS
882 CFLAGS
883 CC
884 am__xargs_n
885 am__rm_f_notfound
886 AM_BACKSLASH
887 AM_DEFAULT_VERBOSITY
888 AM_DEFAULT_V
889 AM_V
890 CSCOPE
891 ETAGS
892 CTAGS
893 am__untar
894 am__tar
895 AMTAR
896 am__leading_dot
897 SET_MAKE
898 AWK
899 mkdir_p
900 MKDIR_P
901 INSTALL_STRIP_PROGRAM
902 STRIP
903 install_sh
904 MAKEINFO
905 AUTOHEADER
906 AUTOMAKE
907 AUTOCONF
908 ACLOCAL
909 VERSION
910 PACKAGE
911 CYGPATH_W
912 am__isrc
913 INSTALL_DATA
914 INSTALL_SCRIPT
915 INSTALL_PROGRAM
916 target_os
917 target_vendor
918 target_cpu
919 target
920 host_os
921 host_vendor
922 host_cpu
923 host
924 build_os
925 build_vendor
926 build_cpu
927 build
928 ECHO_T
929 ECHO_N
930 ECHO_C
931 target_alias
932 host_alias
933 build_alias
934 LIBS
935 DEFS
936 mandir
937 localedir
938 libdir
939 psdir
940 pdfdir
941 dvidir
942 htmldir
943 infodir
944 docdir
945 oldincludedir
946 includedir
947 runstatedir
948 localstatedir
949 sharedstatedir
950 sysconfdir
951 datadir
952 datarootdir
953 libexecdir
954 sbindir
955 bindir
956 program_transform_name
957 prefix
958 exec_prefix
959 PACKAGE_URL
960 PACKAGE_BUGREPORT
961 PACKAGE_STRING
962 PACKAGE_VERSION
963 PACKAGE_TARNAME
964 PACKAGE_NAME
965 PATH_SEPARATOR
966 SHELL
967 am__quote'
968 ac_subst_files=''
969 ac_user_opts='
970 enable_option_checking
971 enable_silent_rules
972 enable_dependency_tracking
973 enable_shared
974 enable_static
975 enable_pic
976 with_pic
977 enable_fast_install
978 enable_aix_soname
979 with_aix_soname
980 with_gnu_ld
981 with_sysroot
982 enable_libtool_lock
983 enable_embedded_mode
984 with_hwloc_symbol_prefix
985 enable_debug
986 enable_doxygen
987 enable_readme
988 enable_picky
989 enable_cairo
990 enable_cpuid
991 enable_libxml2
992 enable_io
993 enable_pci
994 enable_32bits_pci_domain
995 enable_opencl
996 enable_cuda
997 enable_nvml
998 with_cuda_version
999 with_cuda
1000 enable_rsmi
1001 enable_rsmi_rocm
1002 enable_rsmi_amd
1003 with_rocm_version
1004 with_rocm
1005 with_amdgpu
1006 with_opencl
1007 enable_levelzero
1008 enable_gl
1009 enable_libudev
1010 enable_plugins
1011 with_hwloc_plugins_path
1012 enable_plugin_dlopen
1013 enable_plugin_ltdl
1014 enable_visibility
1015 with_x
1016 '
1017 ac_precious_vars='build_alias
1018 host_alias
1019 target_alias
1020 CC
1021 CFLAGS
1022 LDFLAGS
1023 LIBS
1024 CPPFLAGS
1025 LT_SYS_LIBRARY_PATH
1026 CXX
1027 CXXFLAGS
1028 CCC
1029 CXXCPP
1030 HWLOC_MS_LIB
1031 CUDA_VERSION
1032 ROCM_VERSION
1033 PKG_CONFIG
1034 HWLOC_PCIACCESS_CFLAGS
1035 HWLOC_PCIACCESS_LIBS
1036 HWLOC_CUDA_CFLAGS
1037 HWLOC_CUDA_LIBS
1038 HWLOC_CUDART_CFLAGS
1039 HWLOC_CUDART_LIBS
1040 HWLOC_LEVELZERO_CFLAGS
1041 HWLOC_LEVELZERO_LIBS
1042 XMKMF
1043 CPP
1044 HWLOC_LIBXML2_CFLAGS
1045 HWLOC_LIBXML2_LIBS
1046 DOXYGEN
1047 PDFLATEX
1048 MAKEINDEX
1049 FIG2DEV
1050 GS
1051 EPSTOPDF
1052 W3M
1053 LYNX
1054 HWLOC_CAIRO_CFLAGS
1055 HWLOC_CAIRO_LIBS
1056 DIFF
1057 HWLOC_NUMA_CFLAGS
1058 HWLOC_NUMA_LIBS'
1059
1060
1061 # Initialize some variables set by options.
1062 ac_init_help=
1063 ac_init_version=false
1064 ac_unrecognized_opts=
1065 ac_unrecognized_sep=
1066 # The variables have the same names as the options, with
1067 # dashes changed to underlines.
1068 cache_file=/dev/null
1069 exec_prefix=NONE
1070 no_create=
1071 no_recursion=
1072 prefix=NONE
1073 program_prefix=NONE
1074 program_suffix=NONE
1075 program_transform_name=s,x,x,
1076 silent=
1077 site=
1078 srcdir=
1079 verbose=
1080 x_includes=NONE
1081 x_libraries=NONE
1082
1083 # Installation directory options.
1084 # These are left unexpanded so users can "make install exec_prefix=/foo"
1085 # and all the variables that are supposed to be based on exec_prefix
1086 # by default will actually change.
1087 # Use braces instead of parens because sh, perl, etc. also accept them.
1088 # (The list follows the same order as the GNU Coding Standards.)
1089 bindir='${exec_prefix}/bin'
1090 sbindir='${exec_prefix}/sbin'
1091 libexecdir='${exec_prefix}/libexec'
1092 datarootdir='${prefix}/share'
1093 datadir='${datarootdir}'
1094 sysconfdir='${prefix}/etc'
1095 sharedstatedir='${prefix}/com'
1096 localstatedir='${prefix}/var'
1097 runstatedir='${localstatedir}/run'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1101 infodir='${datarootdir}/info'
1102 htmldir='${docdir}'
1103 dvidir='${docdir}'
1104 pdfdir='${docdir}'
1105 psdir='${docdir}'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1109
1110 ac_prev=
1111 ac_dashdash=
1112 for ac_option
1113 do
1114 # If the previous option needs an argument, assign it.
1115 if test -n "$ac_prev"; then
1116 eval $ac_prev=\$ac_option
1117 ac_prev=
1118 continue
1119 fi
1120
1121 case $ac_option in
1122 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1123 *=) ac_optarg= ;;
1124 *) ac_optarg=yes ;;
1125 esac
1126
1127 case $ac_dashdash$ac_option in
1128 --)
1129 ac_dashdash=yes ;;
1130
1131 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1132 ac_prev=bindir ;;
1133 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1134 bindir=$ac_optarg ;;
1135
1136 -build | --build | --buil | --bui | --bu)
1137 ac_prev=build_alias ;;
1138 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1139 build_alias=$ac_optarg ;;
1140
1141 -cache-file | --cache-file | --cache-fil | --cache-fi \
1142 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1143 ac_prev=cache_file ;;
1144 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1145 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1146 cache_file=$ac_optarg ;;
1147
1148 --config-cache | -C)
1149 cache_file=config.cache ;;
1150
1151 -datadir | --datadir | --datadi | --datad)
1152 ac_prev=datadir ;;
1153 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1154 datadir=$ac_optarg ;;
1155
1156 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1157 | --dataroo | --dataro | --datar)
1158 ac_prev=datarootdir ;;
1159 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1160 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1161 datarootdir=$ac_optarg ;;
1162
1163 -disable-* | --disable-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid feature name: '$ac_useropt'"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "enable_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval enable_$ac_useropt=no ;;
1178
1179 -docdir | --docdir | --docdi | --doc | --do)
1180 ac_prev=docdir ;;
1181 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1182 docdir=$ac_optarg ;;
1183
1184 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1185 ac_prev=dvidir ;;
1186 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1187 dvidir=$ac_optarg ;;
1188
1189 -enable-* | --enable-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid feature name: '$ac_useropt'"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "enable_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval enable_$ac_useropt=\$ac_optarg ;;
1204
1205 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1206 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1207 | --exec | --exe | --ex)
1208 ac_prev=exec_prefix ;;
1209 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1210 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1211 | --exec=* | --exe=* | --ex=*)
1212 exec_prefix=$ac_optarg ;;
1213
1214 -gas | --gas | --ga | --g)
1215 # Obsolete; use --with-gas.
1216 with_gas=yes ;;
1217
1218 -help | --help | --hel | --he | -h)
1219 ac_init_help=long ;;
1220 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1221 ac_init_help=recursive ;;
1222 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1223 ac_init_help=short ;;
1224
1225 -host | --host | --hos | --ho)
1226 ac_prev=host_alias ;;
1227 -host=* | --host=* | --hos=* | --ho=*)
1228 host_alias=$ac_optarg ;;
1229
1230 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1231 ac_prev=htmldir ;;
1232 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1233 | --ht=*)
1234 htmldir=$ac_optarg ;;
1235
1236 -includedir | --includedir | --includedi | --included | --include \
1237 | --includ | --inclu | --incl | --inc)
1238 ac_prev=includedir ;;
1239 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1240 | --includ=* | --inclu=* | --incl=* | --inc=*)
1241 includedir=$ac_optarg ;;
1242
1243 -infodir | --infodir | --infodi | --infod | --info | --inf)
1244 ac_prev=infodir ;;
1245 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1246 infodir=$ac_optarg ;;
1247
1248 -libdir | --libdir | --libdi | --libd)
1249 ac_prev=libdir ;;
1250 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1251 libdir=$ac_optarg ;;
1252
1253 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1254 | --libexe | --libex | --libe)
1255 ac_prev=libexecdir ;;
1256 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1257 | --libexe=* | --libex=* | --libe=*)
1258 libexecdir=$ac_optarg ;;
1259
1260 -localedir | --localedir | --localedi | --localed | --locale)
1261 ac_prev=localedir ;;
1262 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1263 localedir=$ac_optarg ;;
1264
1265 -localstatedir | --localstatedir | --localstatedi | --localstated \
1266 | --localstate | --localstat | --localsta | --localst | --locals)
1267 ac_prev=localstatedir ;;
1268 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1269 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1270 localstatedir=$ac_optarg ;;
1271
1272 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1273 ac_prev=mandir ;;
1274 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1275 mandir=$ac_optarg ;;
1276
1277 -nfp | --nfp | --nf)
1278 # Obsolete; use --without-fp.
1279 with_fp=no ;;
1280
1281 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1282 | --no-cr | --no-c | -n)
1283 no_create=yes ;;
1284
1285 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1286 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1287 no_recursion=yes ;;
1288
1289 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1290 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1291 | --oldin | --oldi | --old | --ol | --o)
1292 ac_prev=oldincludedir ;;
1293 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1294 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1295 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1296 oldincludedir=$ac_optarg ;;
1297
1298 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1299 ac_prev=prefix ;;
1300 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1301 prefix=$ac_optarg ;;
1302
1303 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1304 | --program-pre | --program-pr | --program-p)
1305 ac_prev=program_prefix ;;
1306 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1307 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1308 program_prefix=$ac_optarg ;;
1309
1310 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1311 | --program-suf | --program-su | --program-s)
1312 ac_prev=program_suffix ;;
1313 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1314 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1315 program_suffix=$ac_optarg ;;
1316
1317 -program-transform-name | --program-transform-name \
1318 | --program-transform-nam | --program-transform-na \
1319 | --program-transform-n | --program-transform- \
1320 | --program-transform | --program-transfor \
1321 | --program-transfo | --program-transf \
1322 | --program-trans | --program-tran \
1323 | --progr-tra | --program-tr | --program-t)
1324 ac_prev=program_transform_name ;;
1325 -program-transform-name=* | --program-transform-name=* \
1326 | --program-transform-nam=* | --program-transform-na=* \
1327 | --program-transform-n=* | --program-transform-=* \
1328 | --program-transform=* | --program-transfor=* \
1329 | --program-transfo=* | --program-transf=* \
1330 | --program-trans=* | --program-tran=* \
1331 | --progr-tra=* | --program-tr=* | --program-t=*)
1332 program_transform_name=$ac_optarg ;;
1333
1334 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1335 ac_prev=pdfdir ;;
1336 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1337 pdfdir=$ac_optarg ;;
1338
1339 -psdir | --psdir | --psdi | --psd | --ps)
1340 ac_prev=psdir ;;
1341 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1342 psdir=$ac_optarg ;;
1343
1344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1345 | -silent | --silent | --silen | --sile | --sil)
1346 silent=yes ;;
1347
1348 -runstatedir | --runstatedir | --runstatedi | --runstated \
1349 | --runstate | --runstat | --runsta | --runst | --runs \
1350 | --run | --ru | --r)
1351 ac_prev=runstatedir ;;
1352 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1353 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1354 | --run=* | --ru=* | --r=*)
1355 runstatedir=$ac_optarg ;;
1356
1357 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1358 ac_prev=sbindir ;;
1359 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1360 | --sbi=* | --sb=*)
1361 sbindir=$ac_optarg ;;
1362
1363 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1364 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1365 | --sharedst | --shareds | --shared | --share | --shar \
1366 | --sha | --sh)
1367 ac_prev=sharedstatedir ;;
1368 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1369 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1370 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1371 | --sha=* | --sh=*)
1372 sharedstatedir=$ac_optarg ;;
1373
1374 -site | --site | --sit)
1375 ac_prev=site ;;
1376 -site=* | --site=* | --sit=*)
1377 site=$ac_optarg ;;
1378
1379 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1380 ac_prev=srcdir ;;
1381 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1382 srcdir=$ac_optarg ;;
1383
1384 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1385 | --syscon | --sysco | --sysc | --sys | --sy)
1386 ac_prev=sysconfdir ;;
1387 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1388 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1389 sysconfdir=$ac_optarg ;;
1390
1391 -target | --target | --targe | --targ | --tar | --ta | --t)
1392 ac_prev=target_alias ;;
1393 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1394 target_alias=$ac_optarg ;;
1395
1396 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1397 verbose=yes ;;
1398
1399 -version | --version | --versio | --versi | --vers | -V)
1400 ac_init_version=: ;;
1401
1402 -with-* | --with-*)
1403 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1404 # Reject names that are not valid shell variable names.
1405 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1406 as_fn_error $? "invalid package name: '$ac_useropt'"
1407 ac_useropt_orig=$ac_useropt
1408 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1409 case $ac_user_opts in
1410 *"
1411 "with_$ac_useropt"
1412 "*) ;;
1413 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1414 ac_unrecognized_sep=', ';;
1415 esac
1416 eval with_$ac_useropt=\$ac_optarg ;;
1417
1418 -without-* | --without-*)
1419 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1420 # Reject names that are not valid shell variable names.
1421 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1422 as_fn_error $? "invalid package name: '$ac_useropt'"
1423 ac_useropt_orig=$ac_useropt
1424 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1425 case $ac_user_opts in
1426 *"
1427 "with_$ac_useropt"
1428 "*) ;;
1429 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1430 ac_unrecognized_sep=', ';;
1431 esac
1432 eval with_$ac_useropt=no ;;
1433
1434 --x)
1435 # Obsolete; use --with-x.
1436 with_x=yes ;;
1437
1438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1439 | --x-incl | --x-inc | --x-in | --x-i)
1440 ac_prev=x_includes ;;
1441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1443 x_includes=$ac_optarg ;;
1444
1445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1447 ac_prev=x_libraries ;;
1448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1450 x_libraries=$ac_optarg ;;
1451
1452 -*) as_fn_error $? "unrecognized option: '$ac_option'
1453 Try '$0 --help' for more information"
1454 ;;
1455
1456 *=*)
1457 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1458 # Reject names that are not valid shell variable names.
1459 case $ac_envvar in #(
1460 '' | [0-9]* | *[!_$as_cr_alnum]* )
1461 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1462 esac
1463 eval $ac_envvar=\$ac_optarg
1464 export $ac_envvar ;;
1465
1466 *)
1467 # FIXME: should be removed in autoconf 3.0.
1468 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1469 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1470 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1471 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1472 ;;
1473
1474 esac
1475 done
1476
1477 if test -n "$ac_prev"; then
1478 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1479 as_fn_error $? "missing argument to $ac_option"
1480 fi
1481
1482 if test -n "$ac_unrecognized_opts"; then
1483 case $enable_option_checking in
1484 no) ;;
1485 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1486 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1487 esac
1488 fi
1489
1490 # Check all directory arguments for consistency.
1491 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1492 datadir sysconfdir sharedstatedir localstatedir includedir \
1493 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1494 libdir localedir mandir runstatedir
1495 do
1496 eval ac_val=\$$ac_var
1497 # Remove trailing slashes.
1498 case $ac_val in
1499 */ )
1500 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1501 eval $ac_var=\$ac_val;;
1502 esac
1503 # Be sure to have absolute directory names.
1504 case $ac_val in
1505 [\\/$]* | ?:[\\/]* ) continue;;
1506 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1507 esac
1508 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1509 done
1510
1511 # There might be people who depend on the old broken behavior: '$host'
1512 # used to hold the argument of --host etc.
1513 # FIXME: To remove some day.
1514 build=$build_alias
1515 host=$host_alias
1516 target=$target_alias
1517
1518 # FIXME: To remove some day.
1519 if test "x$host_alias" != x; then
1520 if test "x$build_alias" = x; then
1521 cross_compiling=maybe
1522 elif test "x$build_alias" != "x$host_alias"; then
1523 cross_compiling=yes
1524 fi
1525 fi
1526
1527 ac_tool_prefix=
1528 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1529
1530 test "$silent" = yes && exec 6>/dev/null
1531
1532
1533 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1534 ac_ls_di=`ls -di .` &&
1535 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1536 as_fn_error $? "working directory cannot be determined"
1537 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1538 as_fn_error $? "pwd does not report name of working directory"
1539
1540
1541 # Find the source files, if location was not specified.
1542 if test -z "$srcdir"; then
1543 ac_srcdir_defaulted=yes
1544 # Try the directory containing this script, then the parent directory.
1545 ac_confdir=`$as_dirname -- "$as_myself" ||
1546 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1547 X"$as_myself" : 'X\(//\)[^/]' \| \
1548 X"$as_myself" : 'X\(//\)$' \| \
1549 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1550 printf '%s\n' X"$as_myself" |
1551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1552 s//\1/
1553 q
1554 }
1555 /^X\(\/\/\)[^/].*/{
1556 s//\1/
1557 q
1558 }
1559 /^X\(\/\/\)$/{
1560 s//\1/
1561 q
1562 }
1563 /^X\(\/\).*/{
1564 s//\1/
1565 q
1566 }
1567 s/.*/./; q'`
1568 srcdir=$ac_confdir
1569 if test ! -r "$srcdir/$ac_unique_file"; then
1570 srcdir=..
1571 fi
1572 else
1573 ac_srcdir_defaulted=no
1574 fi
1575 if test ! -r "$srcdir/$ac_unique_file"; then
1576 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1577 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1578 fi
1579 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1580 ac_abs_confdir=`(
1581 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1582 pwd)`
1583 # When building in place, set srcdir=.
1584 if test "$ac_abs_confdir" = "$ac_pwd"; then
1585 srcdir=.
1586 fi
1587 # Remove unnecessary trailing slashes from srcdir.
1588 # Double slashes in file names in object file debugging info
1589 # mess up M-x gdb in Emacs.
1590 case $srcdir in
1591 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1592 esac
1593 for ac_var in $ac_precious_vars; do
1594 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1595 eval ac_env_${ac_var}_value=\$${ac_var}
1596 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1597 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1598 done
1599
1600 #
1601 # Report the --help message.
1602 #
1603 if test "$ac_init_help" = "long"; then
1604 # Omit some internal or obsolete options to make the list less imposing.
1605 # This message is too long to be a string in the A/UX 3.1 sh.
1606 cat <<_ACEOF
1607 'configure' configures hwloc 2.14.0 to adapt to many kinds of systems.
1608
1609 Usage: $0 [OPTION]... [VAR=VALUE]...
1610
1611 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1612 VAR=VALUE. See below for descriptions of some of the useful variables.
1613
1614 Defaults for the options are specified in brackets.
1615
1616 Configuration:
1617 -h, --help display this help and exit
1618 --help=short display options specific to this package
1619 --help=recursive display the short help of all the included packages
1620 -V, --version display version information and exit
1621 -q, --quiet, --silent do not print 'checking ...' messages
1622 --cache-file=FILE cache test results in FILE [disabled]
1623 -C, --config-cache alias for '--cache-file=config.cache'
1624 -n, --no-create do not create output files
1625 --srcdir=DIR find the sources in DIR [configure dir or '..']
1626
1627 Installation directories:
1628 --prefix=PREFIX install architecture-independent files in PREFIX
1629 [$ac_default_prefix]
1630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1631 [PREFIX]
1632
1633 By default, 'make install' will install all the files in
1634 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1635 an installation prefix other than '$ac_default_prefix' using '--prefix',
1636 for instance '--prefix=\$HOME'.
1637
1638 For better control, use the options below.
1639
1640 Fine tuning of the installation directories:
1641 --bindir=DIR user executables [EPREFIX/bin]
1642 --sbindir=DIR system admin executables [EPREFIX/sbin]
1643 --libexecdir=DIR program executables [EPREFIX/libexec]
1644 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1645 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1646 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1647 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1648 --libdir=DIR object code libraries [EPREFIX/lib]
1649 --includedir=DIR C header files [PREFIX/include]
1650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1651 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1652 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1653 --infodir=DIR info documentation [DATAROOTDIR/info]
1654 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1655 --mandir=DIR man documentation [DATAROOTDIR/man]
1656 --docdir=DIR documentation root [DATAROOTDIR/doc/hwloc]
1657 --htmldir=DIR html documentation [DOCDIR]
1658 --dvidir=DIR dvi documentation [DOCDIR]
1659 --pdfdir=DIR pdf documentation [DOCDIR]
1660 --psdir=DIR ps documentation [DOCDIR]
1661 _ACEOF
1662
1663 cat <<\_ACEOF
1664
1665 Program names:
1666 --program-prefix=PREFIX prepend PREFIX to installed program names
1667 --program-suffix=SUFFIX append SUFFIX to installed program names
1668 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1669
1670 X features:
1671 --x-includes=DIR X include files are in DIR
1672 --x-libraries=DIR X library files are in DIR
1673
1674 System types:
1675 --build=BUILD configure for building on BUILD [guessed]
1676 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1677 --target=TARGET configure for building compilers for TARGET [HOST]
1678 _ACEOF
1679 fi
1680
1681 if test -n "$ac_init_help"; then
1682 case $ac_init_help in
1683 short | recursive ) echo "Configuration of hwloc 2.14.0:";;
1684 esac
1685 cat <<\_ACEOF
1686
1687 Optional Features:
1688 --disable-option-checking ignore unrecognized --enable/--with options
1689 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1690 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1691 --enable-silent-rules less verbose build output (undo: "make V=1")
1692 --disable-silent-rules verbose build output (undo: "make V=0")
1693 --enable-dependency-tracking
1694 do not reject slow dependency extractors
1695 --disable-dependency-tracking
1696 speeds up one-time build
1697 --enable-shared[=PKGS] build shared libraries [default=yes]
1698 --enable-static[=PKGS] build static libraries [default=no]
1699 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1700 both]
1701 --enable-fast-install[=PKGS]
1702 optimize for fast installation [default=yes]
1703 --enable-aix-soname=aix|svr4|both
1704 shared library versioning (aka "SONAME") variant to
1705 provide on AIX, [default=aix].
1706 --disable-libtool-lock avoid locking (might break parallel builds)
1707 --enable-embedded-mode Using --enable-embedded-mode puts the HWLOC into
1708 "embedded" mode. The default is
1709 --disable-embedded-mode, meaning that the HWLOC is
1710 in "standalone" mode.
1711 --enable-debug Using --enable-debug enables various hwloc
1712 maintainer-level debugging controls. This option is
1713 not recomended for end users.
1714 --enable-doxygen enable support for building Doxygen documentation
1715 (note that this option is ONLY relevant in developer
1716 builds; Doxygen documentation is pre-built for
1717 tarball builds and this option is therefore ignored)
1718 --disable-readme disable the updating of the top-level README file
1719 from the HTML documentation index
1720 --disable-picky When in developer checkouts of hwloc and compiling
1721 with gcc, the default is to enable maximum compiler
1722 pickyness. Using --disable-picky or --enable-picky
1723 overrides any default setting
1724 --disable-cairo Disable the Cairo back-end of hwloc's lstopo command
1725 --disable-cpuid Disable the cpuid-based architecture specific
1726 support (x86 component)
1727 --disable-libxml2 Do not use libxml2 for XML support, use a custom
1728 minimalistic support
1729 --disable-io Disable I/O discovery build entirely (PCI, LinuxIO,
1730 CUDA, OpenCL, NVML, RSMI, LevelZero, GL) instead of
1731 only disabling it at runtime by default
1732 --disable-pci Disable the PCI device discovery build (instead of
1733 only disabling PCI at runtime by default)
1734 --enable-32bits-pci-domain
1735 Enable 32 bits PCI domains (domains > 16bits are
1736 ignored by default). WARNING: This breaks the
1737 library ABI, don't enable unless really needed.
1738 --disable-opencl Disable the OpenCL device discovery build (instead
1739 of only disabling OpenCL at runtime by default)
1740 --disable-cuda Disable the CUDA device discovery build using
1741 libcudart (instead of only disabling CUDA at runtime
1742 by default)
1743 --disable-nvml Disable the NVML device discovery build (instead of
1744 only disabling NVML at runtime by default)
1745 --disable-rsmi Disable the AMD/ROCm SMI device discovery
1746 --disable-rsmi-rocm Disable the ROCm SMI implementation of the RSMI
1747 backend
1748 --disable-rsmi-amd Disable the AMD SMI implementation of the RSMI
1749 backend
1750 --disable-opencl Disable the OpenCL device discovery
1751 --disable-levelzero Disable the oneAPI Level Zero device discovery
1752 --disable-gl Disable the GL display device discovery (instead of
1753 only disabling GL at runtime by default)
1754 --disable-libudev Disable the Linux libudev
1755 --enable-plugins=name,...
1756 Build the given components as dynamically-loaded
1757 plugins
1758 --disable-plugin-dlopen Do not use dlopen for loading plugins.
1759 --disable-plugin-ltdl Do not use ltdl for loading plugins.
1760 --enable-visibility enable visibility feature of certain
1761 compilers/linkers (default: enabled on platforms
1762 that support it)
1763
1764 Optional Packages:
1765 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1766 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1767 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1768 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1769 compiler's sysroot if not specified).
1770 --with-hwloc-symbol-prefix=STRING
1771 STRING can be any valid C symbol name. It will be
1772 prefixed to all public HWLOC symbols. Default: ""
1773 (no prefix)
1774 --with-cuda-version=<version>
1775 Specify the CUDA version (e.g. 11.2) for selecting
1776 the appropriate pkg-config file
1777 --with-cuda=<dir> Specify the CUDA installation directory, used for
1778 NVIDIA NVML and OpenCL too. If a non-existent
1779 directory is given, all dependencies installed by
1780 CUDA are disabled (CUDA, NVML and NVIDIA OpenCL).
1781 --with-rocm-version=<version>
1782 Specify the ROCm version (e.g. 4.2.0) for selecting
1783 the default ROCm installation path (e.g.
1784 /opt/rocm-4.2.0)
1785 --with-rocm=<dir> Specify the ROCm installation directory
1786 --with-amdgpu=<dir> Specify the AMDGPU installation directory
1787 (/opt/amdgpu by default)
1788 --with-opencl=<dir> Specify the OpenCL installation directory
1789 --with-hwloc-plugins-path=dir:...
1790 Colon-separated list of plugin directories. Default:
1791 "$prefix/lib/hwloc". Plugins will be installed in
1792 the first directory. They will be loaded from all of
1793 them, in order.
1794 --with-x use the X Window System
1795
1796 Some influential environment variables:
1797 CC C compiler command
1798 CFLAGS C compiler flags
1799 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1800 nonstandard directory <lib dir>
1801 LIBS libraries to pass to the linker, e.g. -l<library>
1802 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1803 you have headers in a nonstandard directory <include dir>
1804 LT_SYS_LIBRARY_PATH
1805 User-defined run-time library search path.
1806 CXX C++ compiler command
1807 CXXFLAGS C++ compiler flags
1808 CXXCPP C++ preprocessor
1809 HWLOC_MS_LIB
1810 Path to Microsoft's Visual Studio `lib' tool
1811 CUDA_VERSION
1812 The CUDA version (e.g. 11.2) for selecting the appropriate
1813 pkg-config file
1814 ROCM_VERSION
1815 The ROCm version (e.g. 4.2.0) for selecting the default ROCm
1816 installation path (e.g. /opt/rocm-4.2.0)
1817 PKG_CONFIG path to pkg-config utility
1818 HWLOC_PCIACCESS_CFLAGS
1819 C compiler flags for PCIACCESS, overriding pkg-config
1820 HWLOC_PCIACCESS_LIBS
1821 linker flags for PCIACCESS, overriding pkg-config
1822 HWLOC_CUDA_CFLAGS
1823 C compiler flags for CUDA, overriding pkg-config
1824 HWLOC_CUDA_LIBS
1825 linker flags for CUDA, overriding pkg-config
1826 HWLOC_CUDART_CFLAGS
1827 C compiler flags for CUDART, overriding pkg-config
1828 HWLOC_CUDART_LIBS
1829 linker flags for CUDART, overriding pkg-config
1830 HWLOC_LEVELZERO_CFLAGS
1831 C compiler flags for LEVELZERO, overriding pkg-config
1832 HWLOC_LEVELZERO_LIBS
1833 linker flags for LEVELZERO, overriding pkg-config
1834 XMKMF Path to xmkmf, Makefile generator for X Window System
1835 CPP C preprocessor
1836 HWLOC_LIBXML2_CFLAGS
1837 C compiler flags for LIBXML2, overriding pkg-config
1838 HWLOC_LIBXML2_LIBS
1839 linker flags for LIBXML2, overriding pkg-config
1840 DOXYGEN Location of the doxygen program (required for building the hwloc
1841 doxygen documentation)
1842 PDFLATEX Location of the pdflatex program (required for building the
1843 hwloc doxygen documentation)
1844 MAKEINDEX Location of the makeindex program (required for building the
1845 hwloc doxygen documentation)
1846 FIG2DEV Location of the fig2dev program (required for building the hwloc
1847 doxygen documentation)
1848 GS Location of the gs program (required for building the hwloc
1849 doxygen documentation)
1850 EPSTOPDF Location of the epstopdf program (required for building the
1851 hwloc doxygen documentation)
1852 W3M Location of the w3m program (required to building the top-level
1853 hwloc README file)
1854 LYNX Location of the lynx program (required to building the top-level
1855 hwloc README file)
1856 HWLOC_CAIRO_CFLAGS
1857 C compiler flags for CAIRO, overriding pkg-config
1858 HWLOC_CAIRO_LIBS
1859 linker flags for CAIRO, overriding pkg-config
1860 DIFF diff tool
1861 HWLOC_NUMA_CFLAGS
1862 C compiler flags for NUMA, overriding pkg-config
1863 HWLOC_NUMA_LIBS
1864 linker flags for NUMA, overriding pkg-config
1865
1866 Use these variables to override the choices made by 'configure' or to help
1867 it to find libraries and programs with nonstandard names/locations.
1868
1869 Report bugs to <https://github.com/open-mpi/hwloc/issues>.
1870 _ACEOF
1871 ac_status=$?
1872 fi
1873
1874 if test "$ac_init_help" = "recursive"; then
1875 # If there are subdirs, report their specific --help.
1876 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1877 test -d "$ac_dir" ||
1878 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1879 continue
1880 ac_builddir=.
1881
1882 case "$ac_dir" in
1883 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1884 *)
1885 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1886 # A ".." for each directory in $ac_dir_suffix.
1887 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1888 case $ac_top_builddir_sub in
1889 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1890 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1891 esac ;;
1892 esac
1893 ac_abs_top_builddir=$ac_pwd
1894 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1895 # for backward compatibility:
1896 ac_top_builddir=$ac_top_build_prefix
1897
1898 case $srcdir in
1899 .) # We are building in place.
1900 ac_srcdir=.
1901 ac_top_srcdir=$ac_top_builddir_sub
1902 ac_abs_top_srcdir=$ac_pwd ;;
1903 [\\/]* | ?:[\\/]* ) # Absolute name.
1904 ac_srcdir=$srcdir$ac_dir_suffix;
1905 ac_top_srcdir=$srcdir
1906 ac_abs_top_srcdir=$srcdir ;;
1907 *) # Relative name.
1908 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1909 ac_top_srcdir=$ac_top_build_prefix$srcdir
1910 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1911 esac
1912 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1913
1914 cd "$ac_dir" || { ac_status=$?; continue; }
1915 # Check for configure.gnu first; this name is used for a wrapper for
1916 # Metaconfig's "Configure" on case-insensitive file systems.
1917 if test -f "$ac_srcdir/configure.gnu"; then
1918 echo &&
1919 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1920 elif test -f "$ac_srcdir/configure"; then
1921 echo &&
1922 $SHELL "$ac_srcdir/configure" --help=recursive
1923 else
1924 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1925 fi || ac_status=$?
1926 cd "$ac_pwd" || { ac_status=$?; break; }
1927 done
1928 fi
1929
1930 test -n "$ac_init_help" && exit $ac_status
1931 if $ac_init_version; then
1932 cat <<\_ACEOF
1933 hwloc configure 2.14.0
1934 generated by GNU Autoconf 2.73
1935
1936 Copyright (C) 2026 Free Software Foundation, Inc.
1937 This configure script is free software; the Free Software Foundation
1938 gives unlimited permission to copy, distribute and modify it.
1939 _ACEOF
1940 exit
1941 fi
1942
1943 ## ------------------------ ##
1944 ## Autoconf initialization. ##
1945 ## ------------------------ ##
1946
1947 # ac_fn_c_try_compile LINENO
1948 # --------------------------
1949 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1950 ac_fn_c_try_compile ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 rm -f conftest.$ac_objext conftest.beam
1954 if { { ac_try="$ac_compile"
1955 case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 printf '%s\n' "$ac_try_echo"; } >&5
1961 (eval "$ac_compile") 2>conftest.err
1962 ac_status=$?
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1967 fi
1968 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && {
1970 test -z "$ac_c_werror_flag" ||
1971 test ! -s conftest.err
1972 } && test -s conftest.$ac_objext
1973 then :
1974 ac_retval=0
1975 else case e in #(
1976 e) printf '%s\n' "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1 ;;
1980 esac
1981 fi
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1984
1985 } # ac_fn_c_try_compile
1986
1987 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1988 # -------------------------------------------------------
1989 # Tests whether HEADER exists and can be compiled using the include files in
1990 # INCLUDES, setting the cache variable VAR accordingly.
1991 ac_fn_c_check_header_compile ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 printf %s "checking for $2... " >&6; }
1996 if eval test \${$3+y}
1997 then :
1998 printf %s "(cached) " >&6
1999 else case e in #(
2000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 $4
2003 #include <$2>
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"
2006 then :
2007 eval "$3=yes"
2008 else case e in #(
2009 e) eval "$3=no" ;;
2010 esac
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2013 esac
2014 fi
2015 eval ac_res=\$$3
2016 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 printf '%s\n' "$ac_res" >&6; }
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019
2020 } # ac_fn_c_check_header_compile
2021
2022 # ac_fn_c_try_link LINENO
2023 # -----------------------
2024 # Try to link conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_c_try_link ()
2026 {
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2029 if { { ac_try="$ac_link"
2030 case "(($ac_try" in
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2033 esac
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 printf '%s\n' "$ac_try_echo"; } >&5
2036 (eval "$ac_link") 2>conftest.err
2037 ac_status=$?
2038 if test -s conftest.err; then
2039 grep -v '^ *+' conftest.err >conftest.er1
2040 cat conftest.er1 >&5
2041 mv -f conftest.er1 conftest.err
2042 fi
2043 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; } && {
2045 test -z "$ac_c_werror_flag" ||
2046 test ! -s conftest.err
2047 } && test -s conftest$ac_exeext && {
2048 test "$cross_compiling" = yes ||
2049 test -x conftest$ac_exeext
2050 }
2051 then :
2052 ac_retval=0
2053 else case e in #(
2054 e) printf '%s\n' "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2056
2057 ac_retval=1 ;;
2058 esac
2059 fi
2060 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2061 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2062 # interfere with the next link command; also delete a directory that is
2063 # left behind by Apple's compiler. We do this before executing the actions.
2064 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 as_fn_set_status $ac_retval
2067
2068 } # ac_fn_c_try_link
2069
2070 # ac_fn_c_check_func LINENO FUNC VAR
2071 # ----------------------------------
2072 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2073 ac_fn_c_check_func ()
2074 {
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 printf %s "checking for $2... " >&6; }
2078 if eval test \${$3+y}
2079 then :
2080 printf %s "(cached) " >&6
2081 else case e in #(
2082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2086 #define $2 innocuous_$2
2087
2088 /* System header to define __stub macros and hopefully few prototypes,
2089 which can conflict with char $2 (void); below. */
2090
2091 #include <limits.h>
2092 #undef $2
2093
2094 /* Override any GCC internal prototype to avoid an error.
2095 Use char because int might match the return type of a GCC
2096 builtin and then its argument prototype would still apply. */
2097 #ifdef __cplusplus
2098 extern "C"
2099 #endif
2100 char $2 (void);
2101 /* The GNU C library defines this for functions which it implements
2102 to always fail with ENOSYS. Some functions are actually named
2103 something starting with __ and the normal name is an alias. */
2104 #if defined __stub_$2 || defined __stub___$2
2105 choke me
2106 #endif
2107
2108 int
2109 main (void)
2110 {
2111 return $2 ();
2112 ;
2113 return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_link "$LINENO"
2117 then :
2118 eval "$3=yes"
2119 else case e in #(
2120 e) eval "$3=no" ;;
2121 esac
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2124 conftest$ac_exeext conftest.$ac_ext ;;
2125 esac
2126 fi
2127 eval ac_res=\$$3
2128 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 printf '%s\n' "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131
2132 } # ac_fn_c_check_func
2133
2134 # ac_fn_cxx_try_compile LINENO
2135 # ----------------------------
2136 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2137 ac_fn_cxx_try_compile ()
2138 {
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 rm -f conftest.$ac_objext conftest.beam
2141 if { { ac_try="$ac_compile"
2142 case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145 esac
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 printf '%s\n' "$ac_try_echo"; } >&5
2148 (eval "$ac_compile") 2>conftest.err
2149 ac_status=$?
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2154 fi
2155 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } && {
2157 test -z "$ac_cxx_werror_flag" ||
2158 test ! -s conftest.err
2159 } && test -s conftest.$ac_objext
2160 then :
2161 ac_retval=0
2162 else case e in #(
2163 e) printf '%s\n' "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2165
2166 ac_retval=1 ;;
2167 esac
2168 fi
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 as_fn_set_status $ac_retval
2171
2172 } # ac_fn_cxx_try_compile
2173
2174 # ac_fn_cxx_try_cpp LINENO
2175 # ------------------------
2176 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2177 ac_fn_cxx_try_cpp ()
2178 {
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 if { { ac_try="$ac_cpp conftest.$ac_ext"
2181 case "(($ac_try" in
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2184 esac
2185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186 printf '%s\n' "$ac_try_echo"; } >&5
2187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2188 ac_status=$?
2189 if test -s conftest.err; then
2190 grep -v '^ *+' conftest.err >conftest.er1
2191 cat conftest.er1 >&5
2192 mv -f conftest.er1 conftest.err
2193 fi
2194 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } > conftest.i && {
2196 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2197 test ! -s conftest.err
2198 }
2199 then :
2200 ac_retval=0
2201 else case e in #(
2202 e) printf '%s\n' "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2204
2205 ac_retval=1 ;;
2206 esac
2207 fi
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209 as_fn_set_status $ac_retval
2210
2211 } # ac_fn_cxx_try_cpp
2212
2213 # ac_fn_cxx_try_link LINENO
2214 # -------------------------
2215 # Try to link conftest.$ac_ext, and return whether this succeeded.
2216 ac_fn_cxx_try_link ()
2217 {
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2220 if { { ac_try="$ac_link"
2221 case "(($ac_try" in
2222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223 *) ac_try_echo=$ac_try;;
2224 esac
2225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2226 printf '%s\n' "$ac_try_echo"; } >&5
2227 (eval "$ac_link") 2>conftest.err
2228 ac_status=$?
2229 if test -s conftest.err; then
2230 grep -v '^ *+' conftest.err >conftest.er1
2231 cat conftest.er1 >&5
2232 mv -f conftest.er1 conftest.err
2233 fi
2234 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2235 test $ac_status = 0; } && {
2236 test -z "$ac_cxx_werror_flag" ||
2237 test ! -s conftest.err
2238 } && test -s conftest$ac_exeext && {
2239 test "$cross_compiling" = yes ||
2240 test -x conftest$ac_exeext
2241 }
2242 then :
2243 ac_retval=0
2244 else case e in #(
2245 e) printf '%s\n' "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2247
2248 ac_retval=1 ;;
2249 esac
2250 fi
2251 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2252 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2253 # interfere with the next link command; also delete a directory that is
2254 # left behind by Apple's compiler. We do this before executing the actions.
2255 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 as_fn_set_status $ac_retval
2258
2259 } # ac_fn_cxx_try_link
2260
2261 # ac_fn_c_try_run LINENO
2262 # ----------------------
2263 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2264 # executables *can* be run.
2265 ac_fn_c_try_run ()
2266 {
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 if { { ac_try="$ac_link"
2269 case "(($ac_try" in
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2272 esac
2273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274 printf '%s\n' "$ac_try_echo"; } >&5
2275 (eval "$ac_link") 2>&5
2276 ac_status=$?
2277 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2278 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2279 { { case "(($ac_try" in
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2282 esac
2283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2284 printf '%s\n' "$ac_try_echo"; } >&5
2285 (eval "$ac_try") 2>&5
2286 ac_status=$?
2287 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2288 test $ac_status = 0; }; }
2289 then :
2290 ac_retval=0
2291 else case e in #(
2292 e) printf '%s\n' "$as_me: program exited with status $ac_status" >&5
2293 printf '%s\n' "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2295
2296 ac_retval=$ac_status ;;
2297 esac
2298 fi
2299 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301 as_fn_set_status $ac_retval
2302
2303 } # ac_fn_c_try_run
2304
2305 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2306 # --------------------------------------------
2307 # Tries to find the compile-time value of EXPR in a program that includes
2308 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2309 # computed
2310 ac_fn_c_compute_int ()
2311 {
2312 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2313 if test "$cross_compiling" = yes; then
2314 # Depending upon the size, compute the lo and hi bounds.
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2317 $4
2318 int
2319 main (void)
2320 {
2321 static int test_array [1 - 2 * !(($2) >= 0)];
2322 test_array [0] = 0;
2323 return test_array [0];
2324
2325 ;
2326 return 0;
2327 }
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"
2330 then :
2331 ac_lo=0 ac_mid=0
2332 while :; do
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 $4
2336 int
2337 main (void)
2338 {
2339 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2340 test_array [0] = 0;
2341 return test_array [0];
2342
2343 ;
2344 return 0;
2345 }
2346 _ACEOF
2347 if ac_fn_c_try_compile "$LINENO"
2348 then :
2349 ac_hi=$ac_mid; break
2350 else case e in #(
2351 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2352 if test $ac_lo -le $ac_mid; then
2353 ac_lo= ac_hi=
2354 break
2355 fi
2356 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2357 esac
2358 fi
2359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2360 done
2361 else case e in #(
2362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2364 $4
2365 int
2366 main (void)
2367 {
2368 static int test_array [1 - 2 * !(($2) < 0)];
2369 test_array [0] = 0;
2370 return test_array [0];
2371
2372 ;
2373 return 0;
2374 }
2375 _ACEOF
2376 if ac_fn_c_try_compile "$LINENO"
2377 then :
2378 ac_hi=-1 ac_mid=-1
2379 while :; do
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2382 $4
2383 int
2384 main (void)
2385 {
2386 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2387 test_array [0] = 0;
2388 return test_array [0];
2389
2390 ;
2391 return 0;
2392 }
2393 _ACEOF
2394 if ac_fn_c_try_compile "$LINENO"
2395 then :
2396 ac_lo=$ac_mid; break
2397 else case e in #(
2398 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2399 if test $ac_mid -le $ac_hi; then
2400 ac_lo= ac_hi=
2401 break
2402 fi
2403 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2404 esac
2405 fi
2406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2407 done
2408 else case e in #(
2409 e) ac_lo= ac_hi= ;;
2410 esac
2411 fi
2412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2413 esac
2414 fi
2415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2416 # Binary search between lo and hi bounds.
2417 while test "x$ac_lo" != "x$ac_hi"; do
2418 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 $4
2422 int
2423 main (void)
2424 {
2425 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2426 test_array [0] = 0;
2427 return test_array [0];
2428
2429 ;
2430 return 0;
2431 }
2432 _ACEOF
2433 if ac_fn_c_try_compile "$LINENO"
2434 then :
2435 ac_hi=$ac_mid
2436 else case e in #(
2437 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2438 esac
2439 fi
2440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2441 done
2442 case $ac_lo in #((
2443 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2444 '') ac_retval=1 ;;
2445 esac
2446 else
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2449 $4
2450 static long int longval (void) { return $2; }
2451 static unsigned long int ulongval (void) { return $2; }
2452 #include <stdio.h>
2453 #include <stdlib.h>
2454 int
2455 main (void)
2456 {
2457
2458 FILE *f = fopen ("conftest.val", "w");
2459 if (! f)
2460 return 1;
2461 if (($2) < 0)
2462 {
2463 long int i = longval ();
2464 if (i != ($2))
2465 return 1;
2466 fprintf (f, "%ld", i);
2467 }
2468 else
2469 {
2470 unsigned long int i = ulongval ();
2471 if (i != ($2))
2472 return 1;
2473 fprintf (f, "%lu", i);
2474 }
2475 /* Do not output a trailing newline, as this causes \r\n confusion
2476 on some platforms. */
2477 return ferror (f) || fclose (f) != 0;
2478
2479 ;
2480 return 0;
2481 }
2482 _ACEOF
2483 if ac_fn_c_try_run "$LINENO"
2484 then :
2485 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2486 else case e in #(
2487 e) ac_retval=1 ;;
2488 esac
2489 fi
2490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2491 conftest.$ac_objext conftest.beam conftest.$ac_ext
2492 rm -f conftest.val
2493
2494 fi
2495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2496 as_fn_set_status $ac_retval
2497
2498 } # ac_fn_c_compute_int
2499
2500 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2501 # ------------------------------------------------------------------
2502 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2503 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2504 ac_fn_check_decl ()
2505 {
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 as_decl_name=`echo $2|sed 's/ *(.*//'`
2508 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2509 printf %s "checking whether $as_decl_name is declared... " >&6; }
2510 if eval test \${$3+y}
2511 then :
2512 printf %s "(cached) " >&6
2513 else case e in #(
2514 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2515 eval ac_save_FLAGS=\$$6
2516 as_fn_append $6 " $5"
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h. */
2519 $4
2520 int
2521 main (void)
2522 {
2523 #ifndef $as_decl_name
2524 #ifdef __cplusplus
2525 (void) $as_decl_use;
2526 #else
2527 (void) $as_decl_name;
2528 #endif
2529 #endif
2530
2531 ;
2532 return 0;
2533 }
2534 _ACEOF
2535 if ac_fn_c_try_compile "$LINENO"
2536 then :
2537 eval "$3=yes"
2538 else case e in #(
2539 e) eval "$3=no" ;;
2540 esac
2541 fi
2542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2543 eval $6=\$ac_save_FLAGS
2544 ;;
2545 esac
2546 fi
2547 eval ac_res=\$$3
2548 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549 printf '%s\n' "$ac_res" >&6; }
2550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551
2552 } # ac_fn_check_decl
2553
2554 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2555 # -------------------------------------------
2556 # Tests whether TYPE exists after having included INCLUDES, setting cache
2557 # variable VAR accordingly.
2558 ac_fn_c_check_type ()
2559 {
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562 printf %s "checking for $2... " >&6; }
2563 if eval test \${$3+y}
2564 then :
2565 printf %s "(cached) " >&6
2566 else case e in #(
2567 e) eval "$3=no"
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2570 $4
2571 int
2572 main (void)
2573 {
2574 if (sizeof ($2))
2575 return 0;
2576 ;
2577 return 0;
2578 }
2579 _ACEOF
2580 if ac_fn_c_try_compile "$LINENO"
2581 then :
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 $4
2585 int
2586 main (void)
2587 {
2588 if (sizeof (($2)))
2589 return 0;
2590 ;
2591 return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_compile "$LINENO"
2595 then :
2596
2597 else case e in #(
2598 e) eval "$3=yes" ;;
2599 esac
2600 fi
2601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2602 fi
2603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2604 esac
2605 fi
2606 eval ac_res=\$$3
2607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 printf '%s\n' "$ac_res" >&6; }
2609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2610
2611 } # ac_fn_c_check_type
2612
2613 # ac_fn_c_try_cpp LINENO
2614 # ----------------------
2615 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2616 ac_fn_c_try_cpp ()
2617 {
2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619 if { { ac_try="$ac_cpp conftest.$ac_ext"
2620 case "(($ac_try" in
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2623 esac
2624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2625 printf '%s\n' "$ac_try_echo"; } >&5
2626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2627 ac_status=$?
2628 if test -s conftest.err; then
2629 grep -v '^ *+' conftest.err >conftest.er1
2630 cat conftest.er1 >&5
2631 mv -f conftest.er1 conftest.err
2632 fi
2633 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634 test $ac_status = 0; } > conftest.i && {
2635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2636 test ! -s conftest.err
2637 }
2638 then :
2639 ac_retval=0
2640 else case e in #(
2641 e) printf '%s\n' "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 ac_retval=1 ;;
2645 esac
2646 fi
2647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2648 as_fn_set_status $ac_retval
2649
2650 } # ac_fn_c_try_cpp
2651 ac_configure_args_raw=
2652 for ac_arg
2653 do
2654 case $ac_arg in
2655 *\'*)
2656 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2657 esac
2658 as_fn_append ac_configure_args_raw " '$ac_arg'"
2659 done
2660
2661 case $ac_configure_args_raw in
2662 *$as_nl*)
2663 ac_safe_unquote= ;;
2664 *)
2665 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2666 ac_unsafe_a="$ac_unsafe_z#~"
2667 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2668 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2669 esac
2670
2671 cat >config.log <<_ACEOF
2672 This file contains any messages produced by compilers while
2673 running configure, to aid debugging if configure makes a mistake.
2674
2675 It was created by hwloc $as_me 2.14.0, which was
2676 generated by GNU Autoconf 2.73. Invocation command line was
2677
2678 $ $0$ac_configure_args_raw
2679
2680 _ACEOF
2681 exec 5>>config.log
2682 {
2683 cat <<_ASUNAME
2684 ## --------- ##
2685 ## Platform. ##
2686 ## --------- ##
2687
2688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2693
2694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2695 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2696
2697 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2698 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2700 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2701 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2702 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2703 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2704
2705 _ASUNAME
2706
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710 IFS=$as_save_IFS
2711 case $as_dir in #(((
2712 '') as_dir=./ ;;
2713 */) ;;
2714 *) as_dir=$as_dir/ ;;
2715 esac
2716 printf '%s\n' "PATH: $as_dir"
2717 done
2718 IFS=$as_save_IFS
2719
2720 } >&5
2721
2722 cat >&5 <<_ACEOF
2723
2724
2725 ## ----------- ##
2726 ## Core tests. ##
2727 ## ----------- ##
2728
2729 _ACEOF
2730
2731
2732 # Keep a trace of the command line.
2733 # Strip out --no-create and --no-recursion so they do not pile up.
2734 # Strip out --silent because we don't want to record it for future runs.
2735 # Also quote any args containing shell meta-characters.
2736 # Make two passes to allow for proper duplicate-argument suppression.
2737 ac_configure_args=
2738 ac_configure_args0=
2739 ac_configure_args1=
2740 ac_must_keep_next=false
2741 for ac_pass in 1 2
2742 do
2743 for ac_arg
2744 do
2745 case $ac_arg in
2746 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2748 | -silent | --silent | --silen | --sile | --sil)
2749 continue ;;
2750 *\'*)
2751 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2752 esac
2753 case $ac_pass in
2754 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2755 2)
2756 as_fn_append ac_configure_args1 " '$ac_arg'"
2757 if test $ac_must_keep_next = true; then
2758 ac_must_keep_next=false # Got value, back to normal.
2759 else
2760 case $ac_arg in
2761 *=* | --config-cache | -C | -disable-* | --disable-* \
2762 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2763 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2764 | -with-* | --with-* | -without-* | --without-* | --x)
2765 case "$ac_configure_args0 " in
2766 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2767 esac
2768 ;;
2769 -* ) ac_must_keep_next=true ;;
2770 esac
2771 fi
2772 as_fn_append ac_configure_args " '$ac_arg'"
2773 ;;
2774 esac
2775 done
2776 done
2777 { ac_configure_args0=; unset ac_configure_args0;}
2778 { ac_configure_args1=; unset ac_configure_args1;}
2779
2780 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
2781 ac_cache_dump ()
2782 {
2783 # The following way of writing the cache mishandles newlines in values,
2784 # but we know of no workaround that is simple, portable, and efficient.
2785 # So, we kill variables containing newlines.
2786 # Ultrix sh set writes to stderr and can't be redirected directly,
2787 # and sets the high bit in the cache file unless we assign to the vars.
2788 (
2789 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2790 eval ac_val=\$$ac_var
2791 case $ac_val in #(
2792 *${as_nl}*)
2793 case $ac_var in #(
2794 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2795 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2796 esac
2797 case $ac_var in #(
2798 _ | IFS | as_nl) ;; #(
2799 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2800 *) { eval $ac_var=; unset $ac_var;} ;;
2801 esac ;;
2802 esac
2803 done
2804
2805 (set) 2>&1 |
2806 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2807 *${as_nl}ac_space=\ *)
2808 # 'set' does not quote correctly, so add quotes: double-quote
2809 # substitution turns \\\\ into \\, and sed turns \\ into \.
2810 sed -n \
2811 "s/'/'\\\\''/g;
2812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2813 ;; #(
2814 *)
2815 # 'set' quotes correctly as required by POSIX, so do not add quotes.
2816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2817 ;;
2818 esac |
2819 sort
2820 )
2821 }
2822
2823 # Print debugging info to stdout.
2824 ac_dump_debugging_info ()
2825 {
2826 echo
2827
2828 printf '%s\n' "## ---------------- ##
2829 ## Cache variables. ##
2830 ## ---------------- ##"
2831 echo
2832 ac_cache_dump
2833 echo
2834
2835 printf '%s\n' "## ----------------- ##
2836 ## Output variables. ##
2837 ## ----------------- ##"
2838 echo
2839 for ac_var in $ac_subst_vars
2840 do
2841 eval ac_val=\$$ac_var
2842 case $ac_val in
2843 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2844 esac
2845 printf '%s\n' "$ac_var='$ac_val'"
2846 done | sort
2847 echo
2848
2849 if test -n "$ac_subst_files"; then
2850 printf '%s\n' "## ------------------- ##
2851 ## File substitutions. ##
2852 ## ------------------- ##"
2853 echo
2854 for ac_var in $ac_subst_files
2855 do
2856 eval ac_val=\$$ac_var
2857 case $ac_val in
2858 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2859 esac
2860 printf '%s\n' "$ac_var='$ac_val'"
2861 done | sort
2862 echo
2863 fi
2864
2865 if test -s confdefs.h; then
2866 printf '%s\n' "## ----------- ##
2867 ## confdefs.h. ##
2868 ## ----------- ##"
2869 echo
2870 cat confdefs.h
2871 echo
2872 fi
2873 test "$ac_signal" != 0 &&
2874 printf '%s\n' "$as_me: caught signal $ac_signal"
2875 printf '%s\n' "$as_me: exit $exit_status"
2876 }
2877
2878 # When interrupted or exit'd, cleanup temporary files, and complete
2879 # config.log.
2880 ac_exit_trap ()
2881 {
2882 exit_status=
2883 # Sanitize IFS.
2884 IFS=" "" $as_nl"
2885 # Save into config.log some information that might help in debugging.
2886 ac_dump_debugging_info >&5
2887 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
2888 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2889 exit $exit_status
2890 }
2891
2892 trap 'ac_exit_trap $?' 0
2893 for ac_signal in 1 2 13 15; do
2894 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2895 done
2896 ac_signal=0
2897
2898 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2899 rm -f -r conftest* confdefs.h
2900
2901 printf '%s\n' "/* confdefs.h */" > confdefs.h
2902
2903 # Predefined preprocessor variables.
2904
2905 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2906
2907 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2908
2909 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2910
2911 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2912
2913 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2914
2915 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2916
2917
2918 # Let the site file select an alternate cache file if it wants to.
2919 # Prefer an explicitly selected file to automatically selected ones.
2920 if test -n "$CONFIG_SITE"; then
2921 ac_site_files="$CONFIG_SITE"
2922 elif test "x$prefix" != xNONE; then
2923 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2924 else
2925 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2926 fi
2927
2928 for ac_site_file in $ac_site_files
2929 do
2930 case $ac_site_file in #(
2931 */*) :
2932 ;; #(
2933 *) :
2934 ac_site_file=./$ac_site_file ;;
2935 esac
2936 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2937 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2938 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
2939 sed 's/^/| /' "$ac_site_file" >&5
2940 . "$ac_site_file" \
2941 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2942 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2943 as_fn_error $? "failed to load site script $ac_site_file
2944 See 'config.log' for more details" "$LINENO" 5; }
2945 fi
2946 done
2947
2948 if test -r "$cache_file"; then
2949 # Some versions of bash will fail to source /dev/null (special files
2950 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2951 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2952 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2953 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
2954 case $cache_file in
2955 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2956 *) . "./$cache_file";;
2957 esac
2958 fi
2959 else
2960 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2961 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2962 >$cache_file
2963 fi
2964
2965 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2966 # Test code for whether the C compiler supports C23 (global declarations)
2967 ac_c_conftest_c23_globals='
2968 /* Does the compiler advertise conformance to C17 or earlier?
2969 Although GCC 14 does not do that, even with -std=gnu23,
2970 it is close enough, and defines __STDC_VERSION == 202000L. */
2971 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2972 # error "Compiler advertises conformance to C17 or earlier"
2973 #endif
2974
2975 // Check alignas.
2976 char alignas (double) c23_aligned_as_double;
2977 char alignas (0) c23_no_special_alignment;
2978 extern char c23_aligned_as_int;
2979 char alignas (0) alignas (int) c23_aligned_as_int;
2980
2981 // Check alignof.
2982 enum
2983 {
2984 c23_int_alignment = alignof (int),
2985 c23_int_array_alignment = alignof (int[100]),
2986 c23_char_alignment = alignof (char)
2987 };
2988 static_assert (0 < -alignof (int), "alignof is signed");
2989
2990 int function_with_unnamed_parameter (int) { return 0; }
2991
2992 void c23_noreturn ();
2993
2994 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2995 The parens pacify GCC 15. */
2996 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2997
2998 bool check_that_bool_works = true | false | !nullptr;
2999 #if !true
3000 # error "true does not work in #if"
3001 #endif
3002 #if false
3003 #elifdef __STDC_VERSION__
3004 #else
3005 # error "#elifdef does not work"
3006 #endif
3007
3008 #ifndef __has_c_attribute
3009 # error "__has_c_attribute not defined"
3010 #endif
3011
3012 #ifndef __has_include
3013 # error "__has_include not defined"
3014 #endif
3015
3016 #define LPAREN() (
3017 #define FORTY_TWO(x) 42
3018 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
3019 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
3020
3021 static_assert (0b101010 == 42);
3022 static_assert (0B101010 == 42);
3023 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
3024 static_assert (0.500'\''000'\''000 == 0.5);
3025
3026 enum unsignedish : unsigned int { uione = 1 };
3027 static_assert (0 < -uione);
3028
3029 #include <stddef.h>
3030 constexpr nullptr_t null_pointer = nullptr;
3031
3032 static typeof (1 + 1L) two () { return 2; }
3033 static long int three () { return 3; }
3034 '
3035
3036 # Test code for whether the C compiler supports C23 (body of main).
3037 ac_c_conftest_c23_main='
3038 {
3039 label_before_declaration:
3040 int arr[10] = {};
3041 if (arr[0])
3042 goto label_before_declaration;
3043 if (!arr[0])
3044 goto label_at_end_of_block;
3045 label_at_end_of_block:
3046 }
3047 ok |= !null_pointer;
3048 ok |= two != three;
3049 '
3050
3051 # Test code for whether the C compiler supports C23 (complete).
3052 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
3053
3054 int
3055 main (int, char **)
3056 {
3057 int ok = 0;
3058 ${ac_c_conftest_c23_main}
3059 return ok;
3060 }
3061 "
3062
3063 # Test code for whether the C compiler supports C89 (global declarations)
3064 ac_c_conftest_c89_globals='
3065 /* Do not test the value of __STDC__, because some compilers define it to 0
3066 or do not define it, while otherwise adequately conforming. */
3067
3068 #include <stddef.h>
3069 #include <stdarg.h>
3070 struct stat;
3071 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3072 struct buf { int x; };
3073 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3074 static char *e (char **p, int i)
3075 {
3076 return p[i];
3077 }
3078 static char *f (char * (*g) (char **, int), char **p, ...)
3079 {
3080 char *s;
3081 va_list v;
3082 va_start (v,p);
3083 s = g (p, va_arg (v,int));
3084 va_end (v);
3085 return s;
3086 }
3087
3088 /* C89 style stringification. */
3089 #define noexpand_stringify(a) #a
3090 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
3091
3092 /* C89 style token pasting. Exercises some of the corner cases that
3093 e.g. old MSVC gets wrong, but not very hard. */
3094 #define noexpand_concat(a,b) a##b
3095 #define expand_concat(a,b) noexpand_concat(a,b)
3096 extern int vA;
3097 extern int vbee;
3098 #define aye A
3099 #define bee B
3100 int *pvA = &expand_concat(v,aye);
3101 int *pvbee = &noexpand_concat(v,bee);
3102
3103 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3104 function prototypes and stuff, but not \xHH hex character constants.
3105 These do not provoke an error unfortunately, instead are silently treated
3106 as an "x". The following induces an error, until -std is added to get
3107 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3108 array size at least. It is necessary to write \x00 == 0 to get something
3109 that is true only with -std. */
3110 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3111
3112 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3113 inside strings and character constants. */
3114 #define FOO(x) '\''x'\''
3115 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3116
3117 int test (int i, double x);
3118 struct s1 {int (*f) (int a);};
3119 struct s2 {int (*f) (double a);};
3120 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3121 int, int);'
3122
3123 # Test code for whether the C compiler supports C89 (body of main).
3124 ac_c_conftest_c89_main='
3125 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3126 '
3127
3128 # Test code for whether the C compiler supports C99 (global declarations)
3129 ac_c_conftest_c99_globals='
3130 /* Does the compiler advertise C99 conformance? */
3131 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3132 # error "Compiler does not advertise C99 conformance"
3133 #endif
3134
3135 // See if C++-style comments work.
3136
3137 #include <stdbool.h>
3138 extern int puts (const char *);
3139 extern int printf (const char *, ...);
3140 extern int dprintf (int, const char *, ...);
3141 extern void *malloc (size_t);
3142 extern void free (void *);
3143
3144 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3145 // dprintf is used instead of fprintf to avoid needing to declare
3146 // FILE and stderr, and "aND" is used instead of "and" to work around
3147 // GCC bug 40564 which is irrelevant here.
3148 #define debug(...) dprintf (2, __VA_ARGS__)
3149 #define showlist(...) puts (#__VA_ARGS__)
3150 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3151 static void
3152 test_varargs_macros (void)
3153 {
3154 int x = 1234;
3155 int y = 5678;
3156 debug ("Flag");
3157 debug ("X = %d\n", x);
3158 showlist (The first, second, aND third items.);
3159 report (x>y, "x is %d but y is %d", x, y);
3160 }
3161
3162 // Check long long types.
3163 #define BIG64 18446744073709551615ull
3164 #define BIG32 4294967295ul
3165 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3166 #if !BIG_OK
3167 #error "your preprocessor is broken"
3168 #endif
3169 #if BIG_OK
3170 #else
3171 #error "your preprocessor is broken"
3172 #endif
3173 static long long int bignum = -9223372036854775807LL;
3174 static unsigned long long int ubignum = BIG64;
3175
3176 struct incomplete_array
3177 {
3178 int datasize;
3179 double data[];
3180 };
3181
3182 struct named_init {
3183 int number;
3184 const wchar_t *name;
3185 double average;
3186 };
3187
3188 typedef const char *ccp;
3189
3190 static inline int
3191 test_restrict (ccp restrict text)
3192 {
3193 // Iterate through items via the restricted pointer.
3194 // Also check for declarations in for loops.
3195 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3196 continue;
3197 return 0;
3198 }
3199
3200 // Check varargs and va_copy.
3201 static bool
3202 test_varargs (const char *format, ...)
3203 {
3204 va_list args;
3205 va_start (args, format);
3206 va_list args_copy;
3207 va_copy (args_copy, args);
3208
3209 const char *str = "";
3210 int number = 0;
3211 float fnumber = 0;
3212
3213 while (*format)
3214 {
3215 switch (*format++)
3216 {
3217 case '\''s'\'': // string
3218 str = va_arg (args_copy, const char *);
3219 break;
3220 case '\''d'\'': // int
3221 number = va_arg (args_copy, int);
3222 break;
3223 case '\''f'\'': // float
3224 fnumber = va_arg (args_copy, double);
3225 break;
3226 default:
3227 break;
3228 }
3229 }
3230 va_end (args_copy);
3231 va_end (args);
3232
3233 return *str && number && fnumber;
3234 }
3235 '
3236
3237 # Test code for whether the C compiler supports C99 (body of main).
3238 ac_c_conftest_c99_main='
3239 // Check bool.
3240 _Bool success = false;
3241 success |= (argc != 0);
3242
3243 // Check restrict.
3244 if (test_restrict ("String literal") == 0)
3245 success = true;
3246 const char *restrict newvar = "Another string";
3247
3248 // Check varargs.
3249 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3250 test_varargs_macros ();
3251
3252 // Check flexible array members.
3253 static struct incomplete_array *volatile incomplete_array_pointer;
3254 struct incomplete_array *ia = incomplete_array_pointer;
3255 ia->datasize = 10;
3256 for (int i = 0; i < ia->datasize; ++i)
3257 ia->data[i] = i * 1.234;
3258 // Work around memory leak warnings.
3259 free (ia);
3260
3261 // Check named initializers.
3262 struct named_init ni = {
3263 .number = 34,
3264 .name = L"Test wide string",
3265 .average = 543.34343,
3266 };
3267
3268 ni.number = 58;
3269
3270 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
3271 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
3272
3273 // work around unused variable warnings
3274 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3275 || ni.number != 58);
3276 '
3277
3278 # Test code for whether the C compiler supports C11 (global declarations)
3279 ac_c_conftest_c11_globals='
3280 /* Does the compiler advertise C11 conformance? */
3281 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3282 # error "Compiler does not advertise C11 conformance"
3283 #endif
3284
3285 // Check _Alignas.
3286 char _Alignas (double) aligned_as_double;
3287 char _Alignas (0) no_special_alignment;
3288 extern char aligned_as_int;
3289 char _Alignas (0) _Alignas (int) aligned_as_int;
3290
3291 // Check _Alignof.
3292 enum
3293 {
3294 int_alignment = _Alignof (int),
3295 int_array_alignment = _Alignof (int[100]),
3296 char_alignment = _Alignof (char)
3297 };
3298 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3299
3300 // Check _Noreturn.
3301 int _Noreturn does_not_return (void) { for (;;) continue; }
3302
3303 // Check _Static_assert.
3304 struct test_static_assert
3305 {
3306 int x;
3307 _Static_assert (sizeof (int) <= sizeof (long int),
3308 "_Static_assert does not work in struct");
3309 long int y;
3310 };
3311
3312 // Check UTF-8 literals.
3313 #define u8 syntax error!
3314 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3315
3316 // Check duplicate typedefs.
3317 typedef long *long_ptr;
3318 typedef long int *long_ptr;
3319 typedef long_ptr long_ptr;
3320
3321 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3322 struct anonymous
3323 {
3324 union {
3325 struct { int i; int j; };
3326 struct { int k; long int l; } w;
3327 };
3328 int m;
3329 } v1;
3330 '
3331
3332 # Test code for whether the C compiler supports C11 (body of main).
3333 ac_c_conftest_c11_main='
3334 _Static_assert ((offsetof (struct anonymous, i)
3335 == offsetof (struct anonymous, w.k)),
3336 "Anonymous union alignment botch");
3337 v1.i = 2;
3338 v1.w.k = 5;
3339 ok |= v1.i != 5;
3340 '
3341
3342 # Test code for whether the C compiler supports C11 (complete).
3343 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3344 ${ac_c_conftest_c99_globals}
3345 ${ac_c_conftest_c11_globals}
3346
3347 int
3348 main (int argc, char **argv)
3349 {
3350 int ok = 0;
3351 ${ac_c_conftest_c89_main}
3352 ${ac_c_conftest_c99_main}
3353 ${ac_c_conftest_c11_main}
3354 return ok;
3355 }
3356 "
3357
3358 # Test code for whether the C compiler supports C99 (complete).
3359 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3360 ${ac_c_conftest_c99_globals}
3361
3362 int
3363 main (int argc, char **argv)
3364 {
3365 int ok = 0;
3366 ${ac_c_conftest_c89_main}
3367 ${ac_c_conftest_c99_main}
3368 return ok;
3369 }
3370 "
3371
3372 # Test code for whether the C compiler supports C89 (complete).
3373 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3374
3375 int
3376 main (int argc, char **argv)
3377 {
3378 int ok = 0;
3379 ${ac_c_conftest_c89_main}
3380 return ok;
3381 }
3382 "
3383
3384 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3385 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3386 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3387 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3388 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3389 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3390 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3391 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3392 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3393 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3394
3395 # Auxiliary files required by this configure script.
3396 ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub"
3397
3398 # Locations in which to look for auxiliary files.
3399 ac_aux_dir_candidates="${srcdir}/./config"
3400
3401 # Search for a directory containing all of the required auxiliary files,
3402 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3403 # If we don't find one directory that contains all the files we need,
3404 # we report the set of missing files from the *first* directory in
3405 # $ac_aux_dir_candidates and give up.
3406 ac_missing_aux_files=""
3407 ac_first_candidate=:
3408 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 as_found=false
3411 for as_dir in $ac_aux_dir_candidates
3412 do
3413 IFS=$as_save_IFS
3414 case $as_dir in #(((
3415 '') as_dir=./ ;;
3416 */) ;;
3417 *) as_dir=$as_dir/ ;;
3418 esac
3419 as_found=:
3420
3421 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3422 ac_aux_dir_found=yes
3423 ac_install_sh=
3424 for ac_aux in $ac_aux_files
3425 do
3426 # As a special case, if "install-sh" is required, that requirement
3427 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3428 # and $ac_install_sh is set appropriately for whichever one is found.
3429 if test x"$ac_aux" = x"install-sh"
3430 then
3431 if test -f "${as_dir}install-sh"; then
3432 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3433 ac_install_sh="${as_dir}install-sh -c"
3434 elif test -f "${as_dir}install.sh"; then
3435 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3436 ac_install_sh="${as_dir}install.sh -c"
3437 elif test -f "${as_dir}shtool"; then
3438 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3439 ac_install_sh="${as_dir}shtool install -c"
3440 else
3441 ac_aux_dir_found=no
3442 if $ac_first_candidate; then
3443 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3444 else
3445 break
3446 fi
3447 fi
3448 else
3449 if test -f "${as_dir}${ac_aux}"; then
3450 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3451 else
3452 ac_aux_dir_found=no
3453 if $ac_first_candidate; then
3454 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3455 else
3456 break
3457 fi
3458 fi
3459 fi
3460 done
3461 if test "$ac_aux_dir_found" = yes; then
3462 ac_aux_dir="$as_dir"
3463 break
3464 fi
3465 ac_first_candidate=false
3466
3467 as_found=false
3468 done
3469 IFS=$as_save_IFS
3470 if $as_found
3471 then :
3472
3473 else case e in #(
3474 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3475 esac
3476 fi
3477
3478
3479 # These three variables are undocumented and unsupported,
3480 # and are intended to be withdrawn in a future Autoconf release.
3481 # They can cause serious problems if a builder's source tree is in a directory
3482 # whose full name contains unusual characters.
3483 if test -f "${ac_aux_dir}config.guess"; then
3484 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3485 fi
3486 if test -f "${ac_aux_dir}config.sub"; then
3487 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3488 fi
3489 if test -f "$ac_aux_dir/configure"; then
3490 ac_configure="$SHELL ${ac_aux_dir}configure"
3491 fi
3492
3493 # Check that the precious variables saved in the cache have kept the same
3494 # value.
3495 ac_cache_corrupted=false
3496 for ac_var in $ac_precious_vars; do
3497 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3498 eval ac_new_set=\$ac_env_${ac_var}_set
3499 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3500 eval ac_new_val=\$ac_env_${ac_var}_value
3501 case $ac_old_set,$ac_new_set in
3502 set,)
3503 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3504 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3505 ac_cache_corrupted=: ;;
3506 ,set)
3507 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3508 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3509 ac_cache_corrupted=: ;;
3510 ,);;
3511 *)
3512 if test "x$ac_old_val" != "x$ac_new_val"; then
3513 # differences in whitespace do not lead to failure.
3514 ac_old_val_w=
3515 for ac_val in x $ac_old_val; do
3516 ac_old_val_w="$ac_old_val_w $ac_val"
3517 done
3518 ac_new_val_w=
3519 for ac_val in x $ac_new_val; do
3520 ac_new_val_w="$ac_new_val_w $ac_val"
3521 done
3522 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3523 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3524 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3525 ac_cache_corrupted=:
3526 else
3527 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3528 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3529 eval $ac_var=\$ac_old_val
3530 fi
3531 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3532 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
3533 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3534 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
3535 fi;;
3536 esac
3537 # Pass precious variables to config.status.
3538 if test "$ac_new_set" = set; then
3539 case $ac_new_val in
3540 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3541 *) ac_arg=$ac_var=$ac_new_val ;;
3542 esac
3543 case " $ac_configure_args " in
3544 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3545 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3546 esac
3547 fi
3548 done
3549 if $ac_cache_corrupted; then
3550 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3551 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3552 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3553 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
3554 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3555 and start over" "$LINENO" 5
3556 fi
3557 ## -------------------- ##
3558 ## Main body of script. ##
3559 ## -------------------- ##
3560
3561
3562 # Determine whether it's possible to make 'echo' print without a newline.
3563 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
3564 # for compatibility with existing Makefiles.
3565 ECHO_C= ECHO_N= ECHO_T=
3566 case `echo -n x` in #(((((
3567 -n*)
3568 case `echo 'xy\c'` in
3569 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3570 xy) ECHO_C='\c';;
3571 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3572 ECHO_T=' ';;
3573 esac;;
3574 *)
3575 ECHO_N='-n';;
3576 esac
3577
3578 ac_ext=c
3579 ac_cpp='$CPP $CPPFLAGS'
3580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583
3584
3585
3586
3587 # Note that this directory must *exactly* match what was specified via
3588 # -I in ACLOCAL_AMFLAGS in the top-level Makefile.am.
3589
3590
3591 cat <<EOF
3592
3593 ###
3594 ### Configuring hwloc distribution tarball
3595 ### Startup tests
3596 ###
3597 EOF
3598
3599 # This must be before AM_INIT_AUTOMAKE
3600
3601
3602
3603 # Make sure we can run config.sub.
3604 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3605 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3606
3607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3608 printf %s "checking build system type... " >&6; }
3609 if test ${ac_cv_build+y}
3610 then :
3611 printf %s "(cached) " >&6
3612 else case e in #(
3613 e) ac_build_alias=$build_alias
3614 test "x$ac_build_alias" = x &&
3615 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3616 test "x$ac_build_alias" = x &&
3617 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3618 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3619 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3620 ;;
3621 esac
3622 fi
3623 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3624 printf '%s\n' "$ac_cv_build" >&6; }
3625 case $ac_cv_build in
3626 *-*-*) ;;
3627 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3628 esac
3629 build=$ac_cv_build
3630 ac_save_IFS=$IFS; IFS='-'
3631 set x $ac_cv_build
3632 shift
3633 build_cpu=$1
3634 build_vendor=$2
3635 shift; shift
3636 # Remember, the first character of IFS is used to create $*,
3637 # except with old shells:
3638 build_os=$*
3639 IFS=$ac_save_IFS
3640 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
3641
3642
3643 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3644 printf %s "checking host system type... " >&6; }
3645 if test ${ac_cv_host+y}
3646 then :
3647 printf %s "(cached) " >&6
3648 else case e in #(
3649 e) if test "x$host_alias" = x; then
3650 ac_cv_host=$ac_cv_build
3651 else
3652 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3653 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3654 fi
3655 ;;
3656 esac
3657 fi
3658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3659 printf '%s\n' "$ac_cv_host" >&6; }
3660 case $ac_cv_host in
3661 *-*-*) ;;
3662 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3663 esac
3664 host=$ac_cv_host
3665 ac_save_IFS=$IFS; IFS='-'
3666 set x $ac_cv_host
3667 shift
3668 host_cpu=$1
3669 host_vendor=$2
3670 shift; shift
3671 # Remember, the first character of IFS is used to create $*,
3672 # except with old shells:
3673 host_os=$*
3674 IFS=$ac_save_IFS
3675 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
3676
3677
3678 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3679 printf %s "checking target system type... " >&6; }
3680 if test ${ac_cv_target+y}
3681 then :
3682 printf %s "(cached) " >&6
3683 else case e in #(
3684 e) if test "x$target_alias" = x; then
3685 ac_cv_target=$ac_cv_host
3686 else
3687 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3688 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3689 fi
3690 ;;
3691 esac
3692 fi
3693 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3694 printf '%s\n' "$ac_cv_target" >&6; }
3695 case $ac_cv_target in
3696 *-*-*) ;;
3697 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3698 esac
3699 target=$ac_cv_target
3700 ac_save_IFS=$IFS; IFS='-'
3701 set x $ac_cv_target
3702 shift
3703 target_cpu=$1
3704 target_vendor=$2
3705 shift; shift
3706 # Remember, the first character of IFS is used to create $*,
3707 # except with old shells:
3708 target_os=$*
3709 IFS=$ac_save_IFS
3710 case $target_os in *\ *) target_os=`printf '%s\n' "$target_os" | sed 's/ /-/g'`;; esac
3711
3712
3713 # The aliases save the names the user supplied, while $host etc.
3714 # will get canonicalized.
3715 test -n "$target_alias" &&
3716 test "$program_prefix$program_suffix$program_transform_name" = \
3717 NONENONEs,x,x, &&
3718 program_prefix=${target_alias}-
3719
3720 # Init automake
3721 am__api_version='1.18'
3722
3723
3724 # Find a good install program. We prefer a C program (faster),
3725 # so one script is as good as another. But avoid the broken or
3726 # incompatible versions:
3727 # SysV /etc/install, /usr/sbin/install
3728 # SunOS /usr/etc/install
3729 # IRIX /sbin/install
3730 # AIX /bin/install
3731 # AmigaOS /C/install, which installs bootblocks on floppy discs
3732 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3733 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3734 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3735 # OS/2's system install, which has a completely different semantic
3736 # ./install, which can be erroneously created by make from ./install.sh.
3737 # Reject install programs that cannot install multiple files.
3738 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3739 printf %s "checking for a BSD-compatible install... " >&6; }
3740 if test -z "$INSTALL"; then
3741 if test ${ac_cv_path_install+y}
3742 then :
3743 printf %s "(cached) " >&6
3744 else case e in #(
3745 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748 IFS=$as_save_IFS
3749 case $as_dir in #(((
3750 '') as_dir=./ ;;
3751 */) ;;
3752 *) as_dir=$as_dir/ ;;
3753 esac
3754 # Account for fact that we put trailing slashes in our PATH walk.
3755 case $as_dir in #((
3756 ./ | /[cC]/* | \
3757 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3758 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3759 /usr/ucb/* ) ;;
3760 *)
3761 # OSF/1 and SCO ODT 3.0 have their own names for install.
3762 # Don't use installbsd from OSF/1 since it installs stuff as root
3763 # by default.
3764 for ac_prog in ginstall scoinst install; do
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3767 if test $ac_prog = install &&
3768 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3769 # AIX install. It has an incompatible calling convention.
3770 :
3771 elif test $ac_prog = install &&
3772 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3773 # program-specific install script used by HP pwplus--don't use.
3774 :
3775 else
3776 rm -rf conftest.one conftest.two conftest.dir
3777 echo one > conftest.one
3778 echo two > conftest.two
3779 mkdir conftest.dir
3780 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3781 test -s conftest.one && test -s conftest.two &&
3782 test -s conftest.dir/conftest.one &&
3783 test -s conftest.dir/conftest.two
3784 then
3785 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3786 break 3
3787 fi
3788 fi
3789 fi
3790 done
3791 done
3792 ;;
3793 esac
3794
3795 done
3796 IFS=$as_save_IFS
3797
3798 rm -rf conftest.one conftest.two conftest.dir
3799 ;;
3800 esac
3801 fi
3802 if test ${ac_cv_path_install+y}; then
3803 INSTALL=$ac_cv_path_install
3804 else
3805 # As a last resort, use the slow shell script. Don't cache a
3806 # value for INSTALL within a source directory, because that will
3807 # break other packages using the cache if that directory is
3808 # removed, or if the value is a relative name.
3809 INSTALL=$ac_install_sh
3810 fi
3811 fi
3812 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3813 printf '%s\n' "$INSTALL" >&6; }
3814
3815 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3816 # It thinks the first close brace ends the variable substitution.
3817 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3818
3819 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3820
3821 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3822
3823 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3824 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3825 if test ${am_cv_sleep_fractional_seconds+y}
3826 then :
3827 printf %s "(cached) " >&6
3828 else case e in #(
3829 e) if sleep 0.001 2>/dev/null
3830 then :
3831 am_cv_sleep_fractional_seconds=yes
3832 else case e in #(
3833 e) am_cv_sleep_fractional_seconds=no ;;
3834 esac
3835 fi
3836 ;;
3837 esac
3838 fi
3839 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3840 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
3841
3842 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3843 printf %s "checking filesystem timestamp resolution... " >&6; }
3844 if test ${am_cv_filesystem_timestamp_resolution+y}
3845 then :
3846 printf %s "(cached) " >&6
3847 else case e in #(
3848 e) # Default to the worst case.
3849 am_cv_filesystem_timestamp_resolution=2
3850
3851 # Only try to go finer than 1 sec if sleep can do it.
3852 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3853 # - 1 sec is not much of a win compared to 2 sec, and
3854 # - it takes 2 seconds to perform the test whether 1 sec works.
3855 #
3856 # Instead, just use the default 2s on platforms that have 1s resolution,
3857 # accept the extra 1s delay when using $sleep in the Automake tests, in
3858 # exchange for not incurring the 2s delay for running the test for all
3859 # packages.
3860 #
3861 am_try_resolutions=
3862 if test "$am_cv_sleep_fractional_seconds" = yes; then
3863 # Even a millisecond often causes a bunch of false positives,
3864 # so just try a hundredth of a second. The time saved between .001 and
3865 # .01 is not terribly consequential.
3866 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3867 fi
3868
3869 # In order to catch current-generation FAT out, we must *modify* files
3870 # that already exist; the *creation* timestamp is finer. Use names
3871 # that make ls -t sort them differently when they have equal
3872 # timestamps than when they have distinct timestamps, keeping
3873 # in mind that ls -t prints the *newest* file first.
3874 rm -f conftest.ts?
3875 : > conftest.ts1
3876 : > conftest.ts2
3877 : > conftest.ts3
3878
3879 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3880 # clobber the current shell's arguments. (Outer-level square brackets
3881 # are removed by m4; they're present so that m4 does not expand
3882 # <dollar><star>; be careful, easy to get confused.)
3883 if (
3884 set X `ls -t conftest.ts[12]` &&
3885 {
3886 test "$*" != "X conftest.ts1 conftest.ts2" ||
3887 test "$*" != "X conftest.ts2 conftest.ts1";
3888 }
3889 ); then :; else
3890 # If neither matched, then we have a broken ls. This can happen
3891 # if, for instance, CONFIG_SHELL is bash and it inherits a
3892 # broken ls alias from the environment. This has actually
3893 # happened. Such a system could not be considered "sane".
3894 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3895 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3896 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3897 as_fn_error $? "ls -t produces unexpected output.
3898 Make sure there is not a broken ls alias in your environment.
3899 See 'config.log' for more details" "$LINENO" 5; }
3900 fi
3901
3902 for am_try_res in $am_try_resolutions; do
3903 # Any one fine-grained sleep might happen to cross the boundary
3904 # between two values of a coarser actual resolution, but if we do
3905 # two fine-grained sleeps in a row, at least one of them will fall
3906 # entirely within a coarse interval.
3907 echo alpha > conftest.ts1
3908 sleep $am_try_res
3909 echo beta > conftest.ts2
3910 sleep $am_try_res
3911 echo gamma > conftest.ts3
3912
3913 # We assume that 'ls -t' will make use of high-resolution
3914 # timestamps if the operating system supports them at all.
3915 if (set X `ls -t conftest.ts?` &&
3916 test "$2" = conftest.ts3 &&
3917 test "$3" = conftest.ts2 &&
3918 test "$4" = conftest.ts1); then
3919 #
3920 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3921 # because we don't need to test make.
3922 make_ok=true
3923 if test $am_try_res != 1; then
3924 # But if we've succeeded so far with a subsecond resolution, we
3925 # have one more thing to check: make. It can happen that
3926 # everything else supports the subsecond mtimes, but make doesn't;
3927 # notably on macOS, which ships make 3.81 from 2006 (the last one
3928 # released under GPLv2). https://bugs.gnu.org/68808
3929 #
3930 # We test $MAKE if it is defined in the environment, else "make".
3931 # It might get overridden later, but our hope is that in practice
3932 # it does not matter: it is the system "make" which is (by far)
3933 # the most likely to be broken, whereas if the user overrides it,
3934 # probably they did so with a better, or at least not worse, make.
3935 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3936 #
3937 # Create a Makefile (real tab character here):
3938 rm -f conftest.mk
3939 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3940 echo ' touch conftest.ts2' >>conftest.mk
3941 #
3942 # Now, running
3943 # touch conftest.ts1; touch conftest.ts2; make
3944 # should touch ts1 because ts2 is newer. This could happen by luck,
3945 # but most often, it will fail if make's support is insufficient. So
3946 # test for several consecutive successes.
3947 #
3948 # (We reuse conftest.ts[12] because we still want to modify existing
3949 # files, not create new ones, per above.)
3950 n=0
3951 make=${MAKE-make}
3952 until test $n -eq 3; do
3953 echo one > conftest.ts1
3954 sleep $am_try_res
3955 echo two > conftest.ts2 # ts2 should now be newer than ts1
3956 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3957 make_ok=false
3958 break # out of $n loop
3959 fi
3960 n=`expr $n + 1`
3961 done
3962 fi
3963 #
3964 if $make_ok; then
3965 # Everything we know to check worked out, so call this resolution good.
3966 am_cv_filesystem_timestamp_resolution=$am_try_res
3967 break # out of $am_try_res loop
3968 fi
3969 # Otherwise, we'll go on to check the next resolution.
3970 fi
3971 done
3972 rm -f conftest.ts?
3973 # (end _am_filesystem_timestamp_resolution)
3974 ;;
3975 esac
3976 fi
3977 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3978 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
3979
3980 # This check should not be cached, as it may vary across builds of
3981 # different projects.
3982 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3983 printf %s "checking whether build environment is sane... " >&6; }
3984 # Reject unsafe characters in $srcdir or the absolute working directory
3985 # name. Accept space and tab only in the latter.
3986 am_lf='
3987 '
3988 case `pwd` in
3989 *[\\\"\#\$\&\'\`$am_lf]*)
3990 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 printf '%s\n' "no" >&6; }
3992 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3993 esac
3994 case $srcdir in
3995 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3996 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 printf '%s\n' "no" >&6; }
3998 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3999 esac
4000
4001 # Do 'set' in a subshell so we don't clobber the current shell's
4002 # arguments. Must try -L first in case configure is actually a
4003 # symlink; some systems play weird games with the mod time of symlinks
4004 # (eg FreeBSD returns the mod time of the symlink's containing
4005 # directory).
4006 am_build_env_is_sane=no
4007 am_has_slept=no
4008 rm -f conftest.file
4009 for am_try in 1 2; do
4010 echo "timestamp, slept: $am_has_slept" > conftest.file
4011 if (
4012 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4013 if test "$*" = "X"; then
4014 # -L didn't work.
4015 set X `ls -t "$srcdir/configure" conftest.file`
4016 fi
4017 test "$2" = conftest.file
4018 ); then
4019 am_build_env_is_sane=yes
4020 break
4021 fi
4022 # Just in case.
4023 sleep "$am_cv_filesystem_timestamp_resolution"
4024 am_has_slept=yes
4025 done
4026
4027 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4028 printf '%s\n' "$am_build_env_is_sane" >&6; }
4029 if test "$am_build_env_is_sane" = no; then
4030 as_fn_error $? "newly created file is older than distributed files!
4031 Check your system clock" "$LINENO" 5
4032 fi
4033
4034 # If we didn't sleep, we still need to ensure time stamps of config.status and
4035 # generated files are strictly newer.
4036 am_sleep_pid=
4037 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4038 then :
4039
4040 else case e in #(
4041 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4042 am_sleep_pid=$!
4043 ;;
4044 esac
4045 fi
4046
4047 rm -f conftest.file
4048
4049 test "$program_prefix" != NONE &&
4050 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4051 # Use a double $ so make ignores it.
4052 test "$program_suffix" != NONE &&
4053 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4054 # Double any \ or $.
4055 # By default was 's,x,x', remove it if useless.
4056 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4057 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
4058
4059
4060 # Expand $ac_aux_dir to an absolute path.
4061 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4062
4063
4064 if test x"${MISSING+set}" != xset; then
4065 MISSING="\${SHELL} '$am_aux_dir/missing'"
4066 fi
4067 # Use eval to expand $SHELL
4068 if eval "$MISSING --is-lightweight"; then
4069 am_missing_run="$MISSING "
4070 else
4071 am_missing_run=
4072 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4073 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4074 fi
4075
4076 if test x"${install_sh+set}" != xset; then
4077 case $am_aux_dir in
4078 *\ * | *\ *)
4079 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4080 *)
4081 install_sh="\${SHELL} $am_aux_dir/install-sh"
4082 esac
4083 fi
4084
4085 # Installed binaries are usually stripped using 'strip' when the user
4086 # run "make install-strip". However 'strip' might not be the right
4087 # tool to use in cross-compilation environments, therefore Automake
4088 # will honor the 'STRIP' environment variable to overrule this program.
4089 if test "$cross_compiling" != no; then
4090 if test -n "$ac_tool_prefix"; then
4091 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4092 set dummy ${ac_tool_prefix}strip; ac_word=$2
4093 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094 printf %s "checking for $ac_word... " >&6; }
4095 if test ${ac_cv_prog_STRIP+y}
4096 then :
4097 printf %s "(cached) " >&6
4098 else case e in #(
4099 e) if test -n "$STRIP"; then
4100 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4104 do
4105 IFS=$as_save_IFS
4106 case $as_dir in #(((
4107 '') as_dir=./ ;;
4108 */) ;;
4109 *) as_dir=$as_dir/ ;;
4110 esac
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4113 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4114 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4115 break 2
4116 fi
4117 done
4118 done
4119 IFS=$as_save_IFS
4120
4121 fi ;;
4122 esac
4123 fi
4124 STRIP=$ac_cv_prog_STRIP
4125 if test -n "$STRIP"; then
4126 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4127 printf '%s\n' "$STRIP" >&6; }
4128 else
4129 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 printf '%s\n' "no" >&6; }
4131 fi
4132
4133
4134 fi
4135 if test -z "$ac_cv_prog_STRIP"; then
4136 ac_ct_STRIP=$STRIP
4137 # Extract the first word of "strip", so it can be a program name with args.
4138 set dummy strip; ac_word=$2
4139 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 printf %s "checking for $ac_word... " >&6; }
4141 if test ${ac_cv_prog_ac_ct_STRIP+y}
4142 then :
4143 printf %s "(cached) " >&6
4144 else case e in #(
4145 e) if test -n "$ac_ct_STRIP"; then
4146 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4147 else
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4150 do
4151 IFS=$as_save_IFS
4152 case $as_dir in #(((
4153 '') as_dir=./ ;;
4154 */) ;;
4155 *) as_dir=$as_dir/ ;;
4156 esac
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4159 ac_cv_prog_ac_ct_STRIP="strip"
4160 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4161 break 2
4162 fi
4163 done
4164 done
4165 IFS=$as_save_IFS
4166
4167 fi ;;
4168 esac
4169 fi
4170 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4171 if test -n "$ac_ct_STRIP"; then
4172 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4173 printf '%s\n' "$ac_ct_STRIP" >&6; }
4174 else
4175 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 printf '%s\n' "no" >&6; }
4177 fi
4178
4179 if test "x$ac_ct_STRIP" = x; then
4180 STRIP=":"
4181 else
4182 case $cross_compiling:$ac_tool_warned in
4183 yes:)
4184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186 ac_tool_warned=yes ;;
4187 esac
4188 STRIP=$ac_ct_STRIP
4189 fi
4190 else
4191 STRIP="$ac_cv_prog_STRIP"
4192 fi
4193
4194 fi
4195 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4196
4197
4198 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4199 printf %s "checking for a race-free mkdir -p... " >&6; }
4200 if test -z "$MKDIR_P"; then
4201 if test ${ac_cv_path_mkdir+y}
4202 then :
4203 printf %s "(cached) " >&6
4204 else case e in #(
4205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4207 do
4208 IFS=$as_save_IFS
4209 case $as_dir in #(((
4210 '') as_dir=./ ;;
4211 */) ;;
4212 *) as_dir=$as_dir/ ;;
4213 esac
4214 for ac_prog in mkdir gmkdir; do
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4217 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4218 'mkdir ('*'coreutils) '* | \
4219 *'BusyBox '* | \
4220 'mkdir (fileutils) '4.1*)
4221 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4222 break 3;;
4223 esac
4224 done
4225 done
4226 done
4227 IFS=$as_save_IFS
4228 ;;
4229 esac
4230 fi
4231
4232 test -d ./--version && rmdir ./--version
4233 if test ${ac_cv_path_mkdir+y}; then
4234 MKDIR_P="$ac_cv_path_mkdir -p"
4235 else
4236 # As a last resort, use plain mkdir -p,
4237 # in the hope it doesn't have the bugs of ancient mkdir.
4238 MKDIR_P='mkdir -p'
4239 fi
4240 fi
4241 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4242 printf '%s\n' "$MKDIR_P" >&6; }
4243
4244 for ac_prog in gawk mawk nawk awk 'busybox awk'
4245 do
4246 # Extract the first word of "$ac_prog", so it can be a program name with args.
4247 set dummy $ac_prog; ac_word=$2
4248 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4249 printf %s "checking for $ac_word... " >&6; }
4250 if test ${ac_cv_prog_AWK+y}
4251 then :
4252 printf %s "(cached) " >&6
4253 else case e in #(
4254 e) if test -n "$AWK"; then
4255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260 IFS=$as_save_IFS
4261 case $as_dir in #(((
4262 '') as_dir=./ ;;
4263 */) ;;
4264 *) as_dir=$as_dir/ ;;
4265 esac
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4268 ac_cv_prog_AWK="$ac_prog"
4269 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4270 break 2
4271 fi
4272 done
4273 done
4274 IFS=$as_save_IFS
4275
4276 fi ;;
4277 esac
4278 fi
4279 AWK=$ac_cv_prog_AWK
4280 if test -n "$AWK"; then
4281 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4282 printf '%s\n' "$AWK" >&6; }
4283 else
4284 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 printf '%s\n' "no" >&6; }
4286 fi
4287
4288
4289 test -n "$AWK" && break
4290 done
4291
4292 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4293 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4294 set x ${MAKE-make}
4295 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4296 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4297 then :
4298 printf %s "(cached) " >&6
4299 else case e in #(
4300 e) cat >conftest.make <<\_ACEOF
4301 SHELL = /bin/sh
4302 all:
4303 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
4304 _ACEOF
4305 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4306 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4307 *@@@%%%=?*=@@@%%%*)
4308 eval ac_cv_prog_make_${ac_make}_set=yes;;
4309 *)
4310 eval ac_cv_prog_make_${ac_make}_set=no;;
4311 esac
4312 rm -f conftest.make ;;
4313 esac
4314 fi
4315 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4316 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4317 printf '%s\n' "yes" >&6; }
4318 SET_MAKE=
4319 else
4320 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 printf '%s\n' "no" >&6; }
4322 SET_MAKE="MAKE=${MAKE-make}"
4323 fi
4324
4325 rm -rf .tst 2>/dev/null
4326 mkdir .tst 2>/dev/null
4327 if test -d .tst; then
4328 am__leading_dot=.
4329 else
4330 am__leading_dot=_
4331 fi
4332 rmdir .tst 2>/dev/null
4333
4334 AM_DEFAULT_VERBOSITY=1
4335 # Check whether --enable-silent-rules was given.
4336 if test ${enable_silent_rules+y}
4337 then :
4338 enableval=$enable_silent_rules;
4339 fi
4340
4341 am_make=${MAKE-make}
4342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4343 printf %s "checking whether $am_make supports nested variables... " >&6; }
4344 if test ${am_cv_make_support_nested_variables+y}
4345 then :
4346 printf %s "(cached) " >&6
4347 else case e in #(
4348 e) if printf '%s\n' 'TRUE=$(BAR$(V))
4349 BAR0=false
4350 BAR1=true
4351 V=1
4352 am__doit:
4353 @$(TRUE)
4354 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4355 am_cv_make_support_nested_variables=yes
4356 else
4357 am_cv_make_support_nested_variables=no
4358 fi ;;
4359 esac
4360 fi
4361 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4362 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
4363 AM_BACKSLASH='\'
4364
4365 am__rm_f_notfound=
4366 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4367 then :
4368
4369 else case e in #(
4370 e) am__rm_f_notfound='""' ;;
4371 esac
4372 fi
4373
4374
4375 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4376 printf %s "checking xargs -n works... " >&6; }
4377 if test ${am_cv_xargs_n_works+y}
4378 then :
4379 printf %s "(cached) " >&6
4380 else case e in #(
4381 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4382 3"
4383 then :
4384 am_cv_xargs_n_works=yes
4385 else case e in #(
4386 e) am_cv_xargs_n_works=no ;;
4387 esac
4388 fi ;;
4389 esac
4390 fi
4391 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4392 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
4393 if test "$am_cv_xargs_n_works" = yes
4394 then :
4395 am__xargs_n='xargs -n'
4396 else case e in #(
4397 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4398 ;;
4399 esac
4400 fi
4401
4402 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4403 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4404 # is not polluted with repeated "-I."
4405 am__isrc=' -I$(srcdir)'
4406 # test to see if srcdir already configured
4407 if test -f $srcdir/config.status; then
4408 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4409 fi
4410 fi
4411
4412 # test whether we have cygpath
4413 if test -z "$CYGPATH_W"; then
4414 if (cygpath --version) >/dev/null 2>/dev/null; then
4415 CYGPATH_W='cygpath -w'
4416 else
4417 CYGPATH_W=echo
4418 fi
4419 fi
4420
4421
4422 # Define the identity of the package.
4423 PACKAGE='hwloc'
4424 VERSION='2.14.0'
4425
4426
4427 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4428
4429
4430 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
4431
4432 # Some tools Automake needs.
4433
4434 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4435
4436
4437 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4438
4439
4440 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4441
4442
4443 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4444
4445
4446 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4447
4448 # For better backward compatibility. To be removed once Automake 1.9.x
4449 # dies out for good. For more background, see:
4450 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4451 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4452 mkdir_p='$(MKDIR_P)'
4453
4454 # We need awk for the "check" target (and possibly the TAP driver). The
4455 # system "awk" is bad on some platforms.
4456 # Always define AMTAR for backward compatibility. Yes, it's still used
4457 # in the wild :-( We should find a proper way to deprecate it ...
4458 AMTAR='$${TAR-tar}'
4459
4460
4461 # We'll loop over all known methods to create a tar archive until one works.
4462 _am_tools='gnutar plaintar pax cpio none'
4463
4464 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4465 # There is notably a 21 bits limit for the UID and the GID. In fact,
4466 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4467 # and bug#13588).
4468 am_max_uid=2097151 # 2^21 - 1
4469 am_max_gid=$am_max_uid
4470 # The $UID and $GID variables are not portable, so we need to resort
4471 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4472 # below are definitely unexpected, so allow the users to see them
4473 # (that is, avoid stderr redirection).
4474 am_uid=`id -u || echo unknown`
4475 am_gid=`id -g || echo unknown`
4476 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4477 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4478 if test x$am_uid = xunknown; then
4479 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4480 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4481 elif test $am_uid -le $am_max_uid; then
4482 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4483 printf '%s\n' "yes" >&6; }
4484 else
4485 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 printf '%s\n' "no" >&6; }
4487 _am_tools=none
4488 fi
4489 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4490 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4491 if test x$gm_gid = xunknown; then
4492 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4493 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4494 elif test $am_gid -le $am_max_gid; then
4495 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4496 printf '%s\n' "yes" >&6; }
4497 else
4498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 printf '%s\n' "no" >&6; }
4500 _am_tools=none
4501 fi
4502
4503 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4504 printf %s "checking how to create a ustar tar archive... " >&6; }
4505
4506 # Go ahead even if we have the value already cached. We do so because we
4507 # need to set the values for the 'am__tar' and 'am__untar' variables.
4508 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4509
4510 for _am_tool in $_am_tools; do
4511 case $_am_tool in
4512 gnutar)
4513 for _am_tar in tar gnutar gtar; do
4514 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4515 ($_am_tar --version) >&5 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } && break
4519 done
4520 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4521 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4522 am__untar="$_am_tar -xf -"
4523 ;;
4524 plaintar)
4525 # Must skip GNU tar: if it does not support --format= it doesn't create
4526 # ustar tarball either.
4527 (tar --version) >/dev/null 2>&1 && continue
4528 am__tar='tar chf - "$$tardir"'
4529 am__tar_='tar chf - "$tardir"'
4530 am__untar='tar xf -'
4531 ;;
4532 pax)
4533 am__tar='pax -L -x ustar -w "$$tardir"'
4534 am__tar_='pax -L -x ustar -w "$tardir"'
4535 am__untar='pax -r'
4536 ;;
4537 cpio)
4538 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4539 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4540 am__untar='cpio -i -H ustar -d'
4541 ;;
4542 none)
4543 am__tar=false
4544 am__tar_=false
4545 am__untar=false
4546 ;;
4547 esac
4548
4549 # If the value was cached, stop now. We just wanted to have am__tar
4550 # and am__untar set.
4551 test -n "${am_cv_prog_tar_ustar}" && break
4552
4553 # tar/untar a dummy directory, and stop if the command works.
4554 rm -rf conftest.dir
4555 mkdir conftest.dir
4556 echo GrepMe > conftest.dir/file
4557 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4558 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4559 ac_status=$?
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }
4562 rm -rf conftest.dir
4563 if test -s conftest.tar; then
4564 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4565 ($am__untar <conftest.tar) >&5 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }
4569 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4570 (cat conftest.dir/file) >&5 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }
4574 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4575 fi
4576 done
4577 rm -rf conftest.dir
4578
4579 if test ${am_cv_prog_tar_ustar+y}
4580 then :
4581 printf %s "(cached) " >&6
4582 else case e in #(
4583 e) am_cv_prog_tar_ustar=$_am_tool ;;
4584 esac
4585 fi
4586
4587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4588 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; }
4589
4590
4591
4592
4593
4594 # Variables for tags utilities; see am/tags.am
4595 if test -z "$CTAGS"; then
4596 CTAGS=ctags
4597 fi
4598
4599 if test -z "$ETAGS"; then
4600 ETAGS=etags
4601 fi
4602
4603 if test -z "$CSCOPE"; then
4604 CSCOPE=cscope
4605 fi
4606
4607
4608
4609
4610
4611
4612
4613
4614 AM_DEFAULT_VERBOSITY=0
4615
4616
4617
4618 ac_ext=c
4619 ac_cpp='$CPP $CPPFLAGS'
4620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636 DEPDIR="${am__leading_dot}deps"
4637
4638 ac_config_commands="$ac_config_commands depfiles"
4639
4640 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4641 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4642 cat > confinc.mk << 'END'
4643 am__doit:
4644 @echo this is the am__doit target >confinc.out
4645 .PHONY: am__doit
4646 END
4647 am__include="#"
4648 am__quote=
4649 # BSD make does it like this.
4650 echo '.include "confinc.mk" # ignored' > confmf.BSD
4651 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4652 echo 'include confinc.mk # ignored' > confmf.GNU
4653 _am_result=no
4654 for s in GNU BSD; do
4655 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4656 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }
4660 case $?:`cat confinc.out 2>/dev/null` in #(
4661 '0:this is the am__doit target') :
4662 case $s in #(
4663 BSD) :
4664 am__include='.include' am__quote='"' ;; #(
4665 *) :
4666 am__include='include' am__quote='' ;;
4667 esac ;; #(
4668 *) :
4669 ;;
4670 esac
4671 if test "$am__include" != "#"; then
4672 _am_result="yes ($s style)"
4673 break
4674 fi
4675 done
4676 rm -f confinc.* confmf.*
4677 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4678 printf '%s\n' "${_am_result}" >&6; }
4679
4680 # Check whether --enable-dependency-tracking was given.
4681 if test ${enable_dependency_tracking+y}
4682 then :
4683 enableval=$enable_dependency_tracking;
4684 fi
4685
4686 if test "x$enable_dependency_tracking" != xno; then
4687 am_depcomp="$ac_aux_dir/depcomp"
4688 AMDEPBACKSLASH='\'
4689 am__nodep='_no'
4690 fi
4691 if test "x$enable_dependency_tracking" != xno; then
4692 AMDEP_TRUE=
4693 AMDEP_FALSE='#'
4694 else
4695 AMDEP_TRUE='#'
4696 AMDEP_FALSE=
4697 fi
4698
4699
4700 ac_ext=c
4701 ac_cpp='$CPP $CPPFLAGS'
4702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4705 if test -n "$ac_tool_prefix"; then
4706 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4707 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4708 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 printf %s "checking for $ac_word... " >&6; }
4710 if test ${ac_cv_prog_CC+y}
4711 then :
4712 printf %s "(cached) " >&6
4713 else case e in #(
4714 e) if test -n "$CC"; then
4715 ac_cv_prog_CC="$CC" # Let the user override the test.
4716 else
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720 IFS=$as_save_IFS
4721 case $as_dir in #(((
4722 '') as_dir=./ ;;
4723 */) ;;
4724 *) as_dir=$as_dir/ ;;
4725 esac
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4728 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4729 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4730 break 2
4731 fi
4732 done
4733 done
4734 IFS=$as_save_IFS
4735
4736 fi ;;
4737 esac
4738 fi
4739 CC=$ac_cv_prog_CC
4740 if test -n "$CC"; then
4741 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4742 printf '%s\n' "$CC" >&6; }
4743 else
4744 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 printf '%s\n' "no" >&6; }
4746 fi
4747
4748
4749 fi
4750 if test -z "$ac_cv_prog_CC"; then
4751 ac_ct_CC=$CC
4752 # Extract the first word of "gcc", so it can be a program name with args.
4753 set dummy gcc; ac_word=$2
4754 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 printf %s "checking for $ac_word... " >&6; }
4756 if test ${ac_cv_prog_ac_ct_CC+y}
4757 then :
4758 printf %s "(cached) " >&6
4759 else case e in #(
4760 e) if test -n "$ac_ct_CC"; then
4761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766 IFS=$as_save_IFS
4767 case $as_dir in #(((
4768 '') as_dir=./ ;;
4769 */) ;;
4770 *) as_dir=$as_dir/ ;;
4771 esac
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4774 ac_cv_prog_ac_ct_CC="gcc"
4775 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4776 break 2
4777 fi
4778 done
4779 done
4780 IFS=$as_save_IFS
4781
4782 fi ;;
4783 esac
4784 fi
4785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4786 if test -n "$ac_ct_CC"; then
4787 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4788 printf '%s\n' "$ac_ct_CC" >&6; }
4789 else
4790 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 printf '%s\n' "no" >&6; }
4792 fi
4793
4794 if test "x$ac_ct_CC" = x; then
4795 CC=""
4796 else
4797 case $cross_compiling:$ac_tool_warned in
4798 yes:)
4799 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4800 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4801 ac_tool_warned=yes ;;
4802 esac
4803 CC=$ac_ct_CC
4804 fi
4805 else
4806 CC="$ac_cv_prog_CC"
4807 fi
4808
4809 if test -z "$CC"; then
4810 if test -n "$ac_tool_prefix"; then
4811 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4812 set dummy ${ac_tool_prefix}cc; ac_word=$2
4813 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 printf %s "checking for $ac_word... " >&6; }
4815 if test ${ac_cv_prog_CC+y}
4816 then :
4817 printf %s "(cached) " >&6
4818 else case e in #(
4819 e) if test -n "$CC"; then
4820 ac_cv_prog_CC="$CC" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825 IFS=$as_save_IFS
4826 case $as_dir in #(((
4827 '') as_dir=./ ;;
4828 */) ;;
4829 *) as_dir=$as_dir/ ;;
4830 esac
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4833 ac_cv_prog_CC="${ac_tool_prefix}cc"
4834 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 fi ;;
4842 esac
4843 fi
4844 CC=$ac_cv_prog_CC
4845 if test -n "$CC"; then
4846 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4847 printf '%s\n' "$CC" >&6; }
4848 else
4849 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 printf '%s\n' "no" >&6; }
4851 fi
4852
4853
4854 fi
4855 fi
4856 if test -z "$CC"; then
4857 # Extract the first word of "cc", so it can be a program name with args.
4858 set dummy cc; ac_word=$2
4859 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 printf %s "checking for $ac_word... " >&6; }
4861 if test ${ac_cv_prog_CC+y}
4862 then :
4863 printf %s "(cached) " >&6
4864 else case e in #(
4865 e) if test -n "$CC"; then
4866 ac_cv_prog_CC="$CC" # Let the user override the test.
4867 else
4868 ac_prog_rejected=no
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872 IFS=$as_save_IFS
4873 case $as_dir in #(((
4874 '') as_dir=./ ;;
4875 */) ;;
4876 *) as_dir=$as_dir/ ;;
4877 esac
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4880 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4881 ac_prog_rejected=yes
4882 continue
4883 fi
4884 ac_cv_prog_CC="cc"
4885 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4886 break 2
4887 fi
4888 done
4889 done
4890 IFS=$as_save_IFS
4891
4892 if test $ac_prog_rejected = yes; then
4893 # We found a bogon in the path, so make sure we never use it.
4894 set dummy $ac_cv_prog_CC
4895 shift
4896 if test $# != 0; then
4897 # We chose a different compiler from the bogus one.
4898 # However, it has the same basename, so the bogon will be chosen
4899 # first if we set CC to just the basename; use the full file name.
4900 shift
4901 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4902 fi
4903 fi
4904 fi ;;
4905 esac
4906 fi
4907 CC=$ac_cv_prog_CC
4908 if test -n "$CC"; then
4909 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4910 printf '%s\n' "$CC" >&6; }
4911 else
4912 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 printf '%s\n' "no" >&6; }
4914 fi
4915
4916
4917 fi
4918 if test -z "$CC"; then
4919 if test -n "$ac_tool_prefix"; then
4920 for ac_prog in cl.exe
4921 do
4922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 printf %s "checking for $ac_word... " >&6; }
4926 if test ${ac_cv_prog_CC+y}
4927 then :
4928 printf %s "(cached) " >&6
4929 else case e in #(
4930 e) if test -n "$CC"; then
4931 ac_cv_prog_CC="$CC" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4935 do
4936 IFS=$as_save_IFS
4937 case $as_dir in #(((
4938 '') as_dir=./ ;;
4939 */) ;;
4940 *) as_dir=$as_dir/ ;;
4941 esac
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4944 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4945 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4946 break 2
4947 fi
4948 done
4949 done
4950 IFS=$as_save_IFS
4951
4952 fi ;;
4953 esac
4954 fi
4955 CC=$ac_cv_prog_CC
4956 if test -n "$CC"; then
4957 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4958 printf '%s\n' "$CC" >&6; }
4959 else
4960 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 printf '%s\n' "no" >&6; }
4962 fi
4963
4964
4965 test -n "$CC" && break
4966 done
4967 fi
4968 if test -z "$CC"; then
4969 ac_ct_CC=$CC
4970 for ac_prog in cl.exe
4971 do
4972 # Extract the first word of "$ac_prog", so it can be a program name with args.
4973 set dummy $ac_prog; ac_word=$2
4974 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 printf %s "checking for $ac_word... " >&6; }
4976 if test ${ac_cv_prog_ac_ct_CC+y}
4977 then :
4978 printf %s "(cached) " >&6
4979 else case e in #(
4980 e) if test -n "$ac_ct_CC"; then
4981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986 IFS=$as_save_IFS
4987 case $as_dir in #(((
4988 '') as_dir=./ ;;
4989 */) ;;
4990 *) as_dir=$as_dir/ ;;
4991 esac
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4994 ac_cv_prog_ac_ct_CC="$ac_prog"
4995 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4996 break 2
4997 fi
4998 done
4999 done
5000 IFS=$as_save_IFS
5001
5002 fi ;;
5003 esac
5004 fi
5005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5006 if test -n "$ac_ct_CC"; then
5007 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5008 printf '%s\n' "$ac_ct_CC" >&6; }
5009 else
5010 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 printf '%s\n' "no" >&6; }
5012 fi
5013
5014
5015 test -n "$ac_ct_CC" && break
5016 done
5017
5018 if test "x$ac_ct_CC" = x; then
5019 CC=""
5020 else
5021 case $cross_compiling:$ac_tool_warned in
5022 yes:)
5023 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5024 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5025 ac_tool_warned=yes ;;
5026 esac
5027 CC=$ac_ct_CC
5028 fi
5029 fi
5030
5031 fi
5032 if test -z "$CC"; then
5033 if test -n "$ac_tool_prefix"; then
5034 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5035 set dummy ${ac_tool_prefix}clang; ac_word=$2
5036 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 printf %s "checking for $ac_word... " >&6; }
5038 if test ${ac_cv_prog_CC+y}
5039 then :
5040 printf %s "(cached) " >&6
5041 else case e in #(
5042 e) if test -n "$CC"; then
5043 ac_cv_prog_CC="$CC" # Let the user override the test.
5044 else
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5047 do
5048 IFS=$as_save_IFS
5049 case $as_dir in #(((
5050 '') as_dir=./ ;;
5051 */) ;;
5052 *) as_dir=$as_dir/ ;;
5053 esac
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5056 ac_cv_prog_CC="${ac_tool_prefix}clang"
5057 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5058 break 2
5059 fi
5060 done
5061 done
5062 IFS=$as_save_IFS
5063
5064 fi ;;
5065 esac
5066 fi
5067 CC=$ac_cv_prog_CC
5068 if test -n "$CC"; then
5069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5070 printf '%s\n' "$CC" >&6; }
5071 else
5072 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 printf '%s\n' "no" >&6; }
5074 fi
5075
5076
5077 fi
5078 if test -z "$ac_cv_prog_CC"; then
5079 ac_ct_CC=$CC
5080 # Extract the first word of "clang", so it can be a program name with args.
5081 set dummy clang; ac_word=$2
5082 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 printf %s "checking for $ac_word... " >&6; }
5084 if test ${ac_cv_prog_ac_ct_CC+y}
5085 then :
5086 printf %s "(cached) " >&6
5087 else case e in #(
5088 e) if test -n "$ac_ct_CC"; then
5089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094 IFS=$as_save_IFS
5095 case $as_dir in #(((
5096 '') as_dir=./ ;;
5097 */) ;;
5098 *) as_dir=$as_dir/ ;;
5099 esac
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_ac_ct_CC="clang"
5103 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5104 break 2
5105 fi
5106 done
5107 done
5108 IFS=$as_save_IFS
5109
5110 fi ;;
5111 esac
5112 fi
5113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5114 if test -n "$ac_ct_CC"; then
5115 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5116 printf '%s\n' "$ac_ct_CC" >&6; }
5117 else
5118 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 printf '%s\n' "no" >&6; }
5120 fi
5121
5122 if test "x$ac_ct_CC" = x; then
5123 CC=""
5124 else
5125 case $cross_compiling:$ac_tool_warned in
5126 yes:)
5127 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned=yes ;;
5130 esac
5131 CC=$ac_ct_CC
5132 fi
5133 else
5134 CC="$ac_cv_prog_CC"
5135 fi
5136
5137 fi
5138
5139
5140 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5141 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
5142 as_fn_error $? "no acceptable C compiler found in \$PATH
5143 See 'config.log' for more details" "$LINENO" 5; }
5144
5145 # Provide some information about the compiler.
5146 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5147 set X $ac_compile
5148 ac_compiler=$2
5149 for ac_option in --version -v -V -qversion -version; do
5150 { { ac_try="$ac_compiler $ac_option >&5"
5151 case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154 esac
5155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5156 printf '%s\n' "$ac_try_echo"; } >&5
5157 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5158 ac_status=$?
5159 if test -s conftest.err; then
5160 sed '10a\
5161 ... rest of stderr output deleted ...
5162 10q' conftest.err >conftest.er1
5163 cat conftest.er1 >&5
5164 fi
5165 rm -f conftest.er1 conftest.err
5166 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167 test $ac_status = 0; }
5168 done
5169
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172
5173 int
5174 main (void)
5175 {
5176
5177 ;
5178 return 0;
5179 }
5180 _ACEOF
5181 ac_clean_files_save=$ac_clean_files
5182 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5183 # Try to create an executable without -o first, disregard a.out.
5184 # It will help us diagnose broken compilers, and finding out an intuition
5185 # of exeext.
5186 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5187 printf %s "checking whether the C compiler works... " >&6; }
5188 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5189
5190 # The possible output files:
5191 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5192
5193 ac_rmfiles=
5194 for ac_file in $ac_files
5195 do
5196 case $ac_file in
5197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5198 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5199 esac
5200 done
5201 rm -f $ac_rmfiles
5202
5203 if { { ac_try="$ac_link_default"
5204 case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207 esac
5208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5209 printf '%s\n' "$ac_try_echo"; } >&5
5210 (eval "$ac_link_default") 2>&5
5211 ac_status=$?
5212 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5213 test $ac_status = 0; }
5214 then :
5215 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
5216 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
5217 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5218 # so that the user can short-circuit this test for compilers unknown to
5219 # Autoconf.
5220 for ac_file in $ac_files ''
5221 do
5222 test -f "$ac_file" || continue
5223 case $ac_file in
5224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5225 ;;
5226 [ab].out )
5227 # We found the default executable, but exeext='' is most
5228 # certainly right.
5229 break;;
5230 *.* )
5231 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5232 then :; else
5233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5234 fi
5235 # We set ac_cv_exeext here because the later test for it is not
5236 # safe: cross compilers may not add the suffix if given an '-o'
5237 # argument, so we may need to know it at that point already.
5238 # Even if this section looks crufty: it has the advantage of
5239 # actually working.
5240 break;;
5241 * )
5242 break;;
5243 esac
5244 done
5245 test "$ac_cv_exeext" = no && ac_cv_exeext=
5246
5247 else case e in #(
5248 e) ac_file='' ;;
5249 esac
5250 fi
5251 if test -z "$ac_file"
5252 then :
5253 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 printf '%s\n' "no" >&6; }
5255 printf '%s\n' "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5257
5258 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5259 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
5260 as_fn_error 77 "C compiler cannot create executables
5261 See 'config.log' for more details" "$LINENO" 5; }
5262 else case e in #(
5263 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5264 printf '%s\n' "yes" >&6; } ;;
5265 esac
5266 fi
5267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5268 printf %s "checking for C compiler default output file name... " >&6; }
5269 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5270 printf '%s\n' "$ac_file" >&6; }
5271 ac_exeext=$ac_cv_exeext
5272
5273 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5274 ac_clean_files=$ac_clean_files_save
5275 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5276 printf %s "checking for suffix of executables... " >&6; }
5277 if { { ac_try="$ac_link"
5278 case "(($ac_try" in
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5281 esac
5282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5283 printf '%s\n' "$ac_try_echo"; } >&5
5284 (eval "$ac_link") 2>&5
5285 ac_status=$?
5286 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5287 test $ac_status = 0; }
5288 then :
5289 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
5290 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
5291 # work properly (i.e., refer to 'conftest.exe'), while it won't with
5292 # 'rm'.
5293 for ac_file in conftest.exe conftest conftest.*; do
5294 test -f "$ac_file" || continue
5295 case $ac_file in
5296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5297 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5298 break;;
5299 * ) break;;
5300 esac
5301 done
5302 else case e in #(
5303 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5304 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
5305 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5306 See 'config.log' for more details" "$LINENO" 5; } ;;
5307 esac
5308 fi
5309 rm -f conftest conftest$ac_cv_exeext
5310 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5311 printf '%s\n' "$ac_cv_exeext" >&6; }
5312
5313 rm -f conftest.$ac_ext
5314 EXEEXT=$ac_cv_exeext
5315 ac_exeext=$EXEEXT
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318 #include <stdio.h>
5319 int
5320 main (void)
5321 {
5322 FILE *f = fopen ("conftest.out", "w");
5323 if (!f)
5324 return 1;
5325 return ferror (f) || fclose (f) != 0;
5326
5327 ;
5328 return 0;
5329 }
5330 _ACEOF
5331 ac_clean_files="$ac_clean_files conftest.out"
5332 # Check that the compiler produces executables we can run. If not, either
5333 # the compiler is broken, or we cross compile.
5334 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5335 printf %s "checking whether we are cross compiling... " >&6; }
5336 if test "$cross_compiling" != yes; then
5337 { { ac_try="$ac_link"
5338 case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341 esac
5342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5343 printf '%s\n' "$ac_try_echo"; } >&5
5344 (eval "$ac_link") 2>&5
5345 ac_status=$?
5346 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5347 test $ac_status = 0; }
5348 if { ac_try='./conftest$ac_cv_exeext'
5349 { { case "(($ac_try" in
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5352 esac
5353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5354 printf '%s\n' "$ac_try_echo"; } >&5
5355 (eval "$ac_try") 2>&5
5356 ac_status=$?
5357 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5358 test $ac_status = 0; }; }; then
5359 cross_compiling=no
5360 else
5361 if test "$cross_compiling" = maybe; then
5362 cross_compiling=yes
5363 else
5364 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5365 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
5366 as_fn_error 77 "cannot run C compiled programs.
5367 If you meant to cross compile, use '--host'.
5368 See 'config.log' for more details" "$LINENO" 5; }
5369 fi
5370 fi
5371 fi
5372 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5373 printf '%s\n' "$cross_compiling" >&6; }
5374
5375 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
5376 conftest.o conftest.obj conftest.out
5377 ac_clean_files=$ac_clean_files_save
5378 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5379 printf %s "checking for suffix of object files... " >&6; }
5380 if test ${ac_cv_objext+y}
5381 then :
5382 printf %s "(cached) " >&6
5383 else case e in #(
5384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386
5387 int
5388 main (void)
5389 {
5390
5391 ;
5392 return 0;
5393 }
5394 _ACEOF
5395 rm -f conftest.o conftest.obj
5396 if { { ac_try="$ac_compile"
5397 case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400 esac
5401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5402 printf '%s\n' "$ac_try_echo"; } >&5
5403 (eval "$ac_compile") 2>&5
5404 ac_status=$?
5405 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5406 test $ac_status = 0; }
5407 then :
5408 for ac_file in conftest.o conftest.obj conftest.*; do
5409 test -f "$ac_file" || continue;
5410 case $ac_file in
5411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5412 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5413 break;;
5414 esac
5415 done
5416 else case e in #(
5417 e) printf '%s\n' "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5419
5420 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5421 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
5422 as_fn_error $? "cannot compute suffix of object files: cannot compile
5423 See 'config.log' for more details" "$LINENO" 5; } ;;
5424 esac
5425 fi
5426 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
5427 esac
5428 fi
5429 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5430 printf '%s\n' "$ac_cv_objext" >&6; }
5431 OBJEXT=$ac_cv_objext
5432 ac_objext=$OBJEXT
5433 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5434 printf %s "checking whether the compiler supports GNU C... " >&6; }
5435 if test ${ac_cv_c_compiler_gnu+y}
5436 then :
5437 printf %s "(cached) " >&6
5438 else case e in #(
5439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5441
5442 int
5443 main (void)
5444 {
5445 #ifndef __GNUC__
5446 choke me
5447 #endif
5448
5449 ;
5450 return 0;
5451 }
5452 _ACEOF
5453 if ac_fn_c_try_compile "$LINENO"
5454 then :
5455 ac_compiler_gnu=yes
5456 else case e in #(
5457 e) ac_compiler_gnu=no ;;
5458 esac
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5461 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5462 ;;
5463 esac
5464 fi
5465 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5466 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
5467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5468
5469 if test $ac_compiler_gnu = yes; then
5470 GCC=yes
5471 else
5472 GCC=
5473 fi
5474 ac_test_CFLAGS=${CFLAGS+y}
5475 ac_save_CFLAGS=$CFLAGS
5476 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5477 printf %s "checking whether $CC accepts -g... " >&6; }
5478 if test ${ac_cv_prog_cc_g+y}
5479 then :
5480 printf %s "(cached) " >&6
5481 else case e in #(
5482 e) ac_save_c_werror_flag=$ac_c_werror_flag
5483 ac_c_werror_flag=yes
5484 ac_cv_prog_cc_g=no
5485 CFLAGS="-g"
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488
5489 int
5490 main (void)
5491 {
5492
5493 ;
5494 return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"
5498 then :
5499 ac_cv_prog_cc_g=yes
5500 else case e in #(
5501 e) CFLAGS=""
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5504
5505 int
5506 main (void)
5507 {
5508
5509 ;
5510 return 0;
5511 }
5512 _ACEOF
5513 if ac_fn_c_try_compile "$LINENO"
5514 then :
5515
5516 else case e in #(
5517 e) ac_c_werror_flag=$ac_save_c_werror_flag
5518 CFLAGS="-g"
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521
5522 int
5523 main (void)
5524 {
5525
5526 ;
5527 return 0;
5528 }
5529 _ACEOF
5530 if ac_fn_c_try_compile "$LINENO"
5531 then :
5532 ac_cv_prog_cc_g=yes
5533 fi
5534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5535 esac
5536 fi
5537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5538 esac
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5541 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5542 esac
5543 fi
5544 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5545 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
5546 if test $ac_test_CFLAGS; then
5547 CFLAGS=$ac_save_CFLAGS
5548 elif test $ac_cv_prog_cc_g = yes; then
5549 if test "$GCC" = yes; then
5550 CFLAGS="-g -O2"
5551 else
5552 CFLAGS="-g"
5553 fi
5554 else
5555 if test "$GCC" = yes; then
5556 CFLAGS="-O2"
5557 else
5558 CFLAGS=
5559 fi
5560 fi
5561 ac_prog_cc_stdc=no
5562 if test x$ac_prog_cc_stdc = xno
5563 then :
5564 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
5565 printf %s "checking for $CC option to enable C23 features... " >&6; }
5566 if test ${ac_cv_prog_cc_c23+y}
5567 then :
5568 printf %s "(cached) " >&6
5569 else case e in #(
5570 e) ac_cv_prog_cc_c23=no
5571 ac_save_CC=$CC
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 $ac_c_conftest_c23_program
5575 _ACEOF
5576 for ac_arg in '' -std=gnu23
5577 do
5578 CC="$ac_save_CC $ac_arg"
5579 if ac_fn_c_try_compile "$LINENO"
5580 then :
5581 ac_cv_prog_cc_c23=$ac_arg
5582 fi
5583 rm -f core conftest.err conftest.$ac_objext conftest.beam
5584 test "x$ac_cv_prog_cc_c23" != "xno" && break
5585 done
5586 rm -f conftest.$ac_ext
5587 CC=$ac_save_CC ;;
5588 esac
5589 fi
5590
5591 if test "x$ac_cv_prog_cc_c23" = xno
5592 then :
5593 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5594 printf '%s\n' "unsupported" >&6; }
5595 else case e in #(
5596 e) if test "x$ac_cv_prog_cc_c23" = x
5597 then :
5598 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5599 printf '%s\n' "none needed" >&6; }
5600 else case e in #(
5601 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
5602 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
5603 CC="$CC $ac_cv_prog_cc_c23" ;;
5604 esac
5605 fi
5606 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
5607 ac_prog_cc_stdc=c23 ;;
5608 esac
5609 fi
5610 fi
5611 if test x$ac_prog_cc_stdc = xno
5612 then :
5613 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5614 printf %s "checking for $CC option to enable C11 features... " >&6; }
5615 if test ${ac_cv_prog_cc_c11+y}
5616 then :
5617 printf %s "(cached) " >&6
5618 else case e in #(
5619 e) ac_cv_prog_cc_c11=no
5620 ac_save_CC=$CC
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 $ac_c_conftest_c11_program
5624 _ACEOF
5625 for ac_arg in '' -std=gnu11 -std:c11
5626 do
5627 CC="$ac_save_CC $ac_arg"
5628 if ac_fn_c_try_compile "$LINENO"
5629 then :
5630 ac_cv_prog_cc_c11=$ac_arg
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext conftest.beam
5633 test "x$ac_cv_prog_cc_c11" != "xno" && break
5634 done
5635 rm -f conftest.$ac_ext
5636 CC=$ac_save_CC ;;
5637 esac
5638 fi
5639
5640 if test "x$ac_cv_prog_cc_c11" = xno
5641 then :
5642 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5643 printf '%s\n' "unsupported" >&6; }
5644 else case e in #(
5645 e) if test "x$ac_cv_prog_cc_c11" = x
5646 then :
5647 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5648 printf '%s\n' "none needed" >&6; }
5649 else case e in #(
5650 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5651 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
5652 CC="$CC $ac_cv_prog_cc_c11" ;;
5653 esac
5654 fi
5655 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5656 ac_prog_cc_stdc=c11 ;;
5657 esac
5658 fi
5659 fi
5660 if test x$ac_prog_cc_stdc = xno
5661 then :
5662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5663 printf %s "checking for $CC option to enable C99 features... " >&6; }
5664 if test ${ac_cv_prog_cc_c99+y}
5665 then :
5666 printf %s "(cached) " >&6
5667 else case e in #(
5668 e) ac_cv_prog_cc_c99=no
5669 ac_save_CC=$CC
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672 $ac_c_conftest_c99_program
5673 _ACEOF
5674 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5675 do
5676 CC="$ac_save_CC $ac_arg"
5677 if ac_fn_c_try_compile "$LINENO"
5678 then :
5679 ac_cv_prog_cc_c99=$ac_arg
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.beam
5682 test "x$ac_cv_prog_cc_c99" != "xno" && break
5683 done
5684 rm -f conftest.$ac_ext
5685 CC=$ac_save_CC ;;
5686 esac
5687 fi
5688
5689 if test "x$ac_cv_prog_cc_c99" = xno
5690 then :
5691 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5692 printf '%s\n' "unsupported" >&6; }
5693 else case e in #(
5694 e) if test "x$ac_cv_prog_cc_c99" = x
5695 then :
5696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5697 printf '%s\n' "none needed" >&6; }
5698 else case e in #(
5699 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5700 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
5701 CC="$CC $ac_cv_prog_cc_c99" ;;
5702 esac
5703 fi
5704 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5705 ac_prog_cc_stdc=c99 ;;
5706 esac
5707 fi
5708 fi
5709 if test x$ac_prog_cc_stdc = xno
5710 then :
5711 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5712 printf %s "checking for $CC option to enable C89 features... " >&6; }
5713 if test ${ac_cv_prog_cc_c89+y}
5714 then :
5715 printf %s "(cached) " >&6
5716 else case e in #(
5717 e) ac_cv_prog_cc_c89=no
5718 ac_save_CC=$CC
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5721 $ac_c_conftest_c89_program
5722 _ACEOF
5723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5724 do
5725 CC="$ac_save_CC $ac_arg"
5726 if ac_fn_c_try_compile "$LINENO"
5727 then :
5728 ac_cv_prog_cc_c89=$ac_arg
5729 fi
5730 rm -f core conftest.err conftest.$ac_objext conftest.beam
5731 test "x$ac_cv_prog_cc_c89" != "xno" && break
5732 done
5733 rm -f conftest.$ac_ext
5734 CC=$ac_save_CC ;;
5735 esac
5736 fi
5737
5738 if test "x$ac_cv_prog_cc_c89" = xno
5739 then :
5740 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5741 printf '%s\n' "unsupported" >&6; }
5742 else case e in #(
5743 e) if test "x$ac_cv_prog_cc_c89" = x
5744 then :
5745 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5746 printf '%s\n' "none needed" >&6; }
5747 else case e in #(
5748 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5749 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
5750 CC="$CC $ac_cv_prog_cc_c89" ;;
5751 esac
5752 fi
5753 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5754 ac_prog_cc_stdc=c89 ;;
5755 esac
5756 fi
5757 fi
5758
5759 ac_ext=c
5760 ac_cpp='$CPP $CPPFLAGS'
5761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5764
5765
5766 ac_ext=c
5767 ac_cpp='$CPP $CPPFLAGS'
5768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5771 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5772 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5773 if test ${am_cv_prog_cc_c_o+y}
5774 then :
5775 printf %s "(cached) " >&6
5776 else case e in #(
5777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779
5780 int
5781 main (void)
5782 {
5783
5784 ;
5785 return 0;
5786 }
5787 _ACEOF
5788 # Make sure it works both with $CC and with simple cc.
5789 # Following AC_PROG_CC_C_O, we do the test twice because some
5790 # compilers refuse to overwrite an existing .o file with -o,
5791 # though they will create one.
5792 am_cv_prog_cc_c_o=yes
5793 for am_i in 1 2; do
5794 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5795 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } \
5799 && test -f conftest2.$ac_objext; then
5800 : OK
5801 else
5802 am_cv_prog_cc_c_o=no
5803 break
5804 fi
5805 done
5806 # aligned with autoconf, so not including core; see bug#72225.
5807 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5808 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5809 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5810 unset am_i ;;
5811 esac
5812 fi
5813 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5814 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
5815 if test "$am_cv_prog_cc_c_o" != yes; then
5816 # Losing compiler, so override with the script.
5817 # FIXME: It is wrong to rewrite CC.
5818 # But if we don't then we get into trouble of one sort or another.
5819 # A longer-term fix would be to have automake use am__CC in this case,
5820 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5821 CC="$am_aux_dir/compile $CC"
5822 fi
5823 ac_ext=c
5824 ac_cpp='$CPP $CPPFLAGS'
5825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5828
5829
5830 depcc="$CC" am_compiler_list=
5831
5832 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5833 printf %s "checking dependency style of $depcc... " >&6; }
5834 if test ${am_cv_CC_dependencies_compiler_type+y}
5835 then :
5836 printf %s "(cached) " >&6
5837 else case e in #(
5838 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5839 # We make a subdir and do the tests there. Otherwise we can end up
5840 # making bogus files that we don't know about and never remove. For
5841 # instance it was reported that on HP-UX the gcc test will end up
5842 # making a dummy file named 'D' -- because '-MD' means "put the output
5843 # in D".
5844 rm -rf conftest.dir
5845 mkdir conftest.dir
5846 # Copy depcomp to subdir because otherwise we won't find it if we're
5847 # using a relative directory.
5848 cp "$am_depcomp" conftest.dir
5849 cd conftest.dir
5850 # We will build objects and dependencies in a subdirectory because
5851 # it helps to detect inapplicable dependency modes. For instance
5852 # both Tru64's cc and ICC support -MD to output dependencies as a
5853 # side effect of compilation, but ICC will put the dependencies in
5854 # the current directory while Tru64 will put them in the object
5855 # directory.
5856 mkdir sub
5857
5858 am_cv_CC_dependencies_compiler_type=none
5859 if test "$am_compiler_list" = ""; then
5860 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5861 fi
5862 am__universal=false
5863 case " $depcc " in #(
5864 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5865 esac
5866
5867 for depmode in $am_compiler_list; do
5868 # Setup a source with many dependencies, because some compilers
5869 # like to wrap large dependency lists on column 80 (with \), and
5870 # we should not choose a depcomp mode which is confused by this.
5871 #
5872 # We need to recreate these files for each test, as the compiler may
5873 # overwrite some of them when testing with obscure command lines.
5874 # This happens at least with the AIX C compiler.
5875 : > sub/conftest.c
5876 for i in 1 2 3 4 5 6; do
5877 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5878 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5879 # Solaris 10 /bin/sh.
5880 echo '/* dummy */' > sub/conftst$i.h
5881 done
5882 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5883
5884 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5885 # mode. It turns out that the SunPro C++ compiler does not properly
5886 # handle '-M -o', and we need to detect this. Also, some Intel
5887 # versions had trouble with output in subdirs.
5888 am__obj=sub/conftest.${OBJEXT-o}
5889 am__minus_obj="-o $am__obj"
5890 case $depmode in
5891 gcc)
5892 # This depmode causes a compiler race in universal mode.
5893 test "$am__universal" = false || continue
5894 ;;
5895 nosideeffect)
5896 # After this tag, mechanisms are not by side-effect, so they'll
5897 # only be used when explicitly requested.
5898 if test "x$enable_dependency_tracking" = xyes; then
5899 continue
5900 else
5901 break
5902 fi
5903 ;;
5904 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5905 # This compiler won't grok '-c -o', but also, the minuso test has
5906 # not run yet. These depmodes are late enough in the game, and
5907 # so weak that their functioning should not be impacted.
5908 am__obj=conftest.${OBJEXT-o}
5909 am__minus_obj=
5910 ;;
5911 none) break ;;
5912 esac
5913 if depmode=$depmode \
5914 source=sub/conftest.c object=$am__obj \
5915 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5916 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5917 >/dev/null 2>conftest.err &&
5918 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5919 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5920 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5921 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5922 # icc doesn't choke on unknown options, it will just issue warnings
5923 # or remarks (even with -Werror). So we grep stderr for any message
5924 # that says an option was ignored or not supported.
5925 # When given -MP, icc 7.0 and 7.1 complain thus:
5926 # icc: Command line warning: ignoring option '-M'; no argument required
5927 # The diagnosis changed in icc 8.0:
5928 # icc: Command line remark: option '-MP' not supported
5929 if (grep 'ignoring option' conftest.err ||
5930 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5931 am_cv_CC_dependencies_compiler_type=$depmode
5932 break
5933 fi
5934 fi
5935 done
5936
5937 cd ..
5938 rm -rf conftest.dir
5939 else
5940 am_cv_CC_dependencies_compiler_type=none
5941 fi
5942 ;;
5943 esac
5944 fi
5945 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5946 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
5947 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5948
5949 if
5950 test "x$enable_dependency_tracking" != xno \
5951 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5952 am__fastdepCC_TRUE=
5953 am__fastdepCC_FALSE='#'
5954 else
5955 am__fastdepCC_TRUE='#'
5956 am__fastdepCC_FALSE=
5957 fi
5958
5959
5960
5961 ac_header= ac_cache=
5962 for ac_item in $ac_header_c_list
5963 do
5964 if test $ac_cache; then
5965 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5966 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5967 printf '%s\n' "#define $ac_item 1" >> confdefs.h
5968 fi
5969 ac_header= ac_cache=
5970 elif test $ac_header; then
5971 ac_cache=$ac_item
5972 else
5973 ac_header=$ac_item
5974 fi
5975 done
5976
5977
5978
5979
5980
5981
5982
5983
5984 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5985 then :
5986
5987 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
5988
5989 fi
5990
5991
5992
5993
5994
5995
5996 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5997 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5998 if test ${ac_cv_safe_to_define___extensions__+y}
5999 then :
6000 printf %s "(cached) " >&6
6001 else case e in #(
6002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004
6005 # define __EXTENSIONS__ 1
6006 $ac_includes_default
6007 int
6008 main (void)
6009 {
6010
6011 ;
6012 return 0;
6013 }
6014 _ACEOF
6015 if ac_fn_c_try_compile "$LINENO"
6016 then :
6017 ac_cv_safe_to_define___extensions__=yes
6018 else case e in #(
6019 e) ac_cv_safe_to_define___extensions__=no ;;
6020 esac
6021 fi
6022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6023 esac
6024 fi
6025 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6026 printf '%s\n' "$ac_cv_safe_to_define___extensions__" >&6; }
6027
6028 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6029 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6030 if test ${ac_cv_should_define__xopen_source+y}
6031 then :
6032 printf %s "(cached) " >&6
6033 else case e in #(
6034 e) ac_cv_should_define__xopen_source=no
6035 if test $ac_cv_header_wchar_h = yes
6036 then :
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6039
6040 #include <wchar.h>
6041 mbstate_t x;
6042 int
6043 main (void)
6044 {
6045
6046 ;
6047 return 0;
6048 }
6049 _ACEOF
6050 if ac_fn_c_try_compile "$LINENO"
6051 then :
6052
6053 else case e in #(
6054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056
6057 #define _XOPEN_SOURCE 500
6058 #include <wchar.h>
6059 mbstate_t x;
6060 int
6061 main (void)
6062 {
6063
6064 ;
6065 return 0;
6066 }
6067 _ACEOF
6068 if ac_fn_c_try_compile "$LINENO"
6069 then :
6070 ac_cv_should_define__xopen_source=yes
6071 fi
6072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6073 esac
6074 fi
6075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6076 fi ;;
6077 esac
6078 fi
6079 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6080 printf '%s\n' "$ac_cv_should_define__xopen_source" >&6; }
6081
6082 printf '%s\n' "#define _ALL_SOURCE 1" >>confdefs.h
6083
6084 printf '%s\n' "#define _COSMO_SOURCE 1" >>confdefs.h
6085
6086 printf '%s\n' "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6087
6088 printf '%s\n' "#define _GNU_SOURCE 1" >>confdefs.h
6089
6090 printf '%s\n' "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6091
6092 printf '%s\n' "#define _NETBSD_SOURCE 1" >>confdefs.h
6093
6094 printf '%s\n' "#define _OPENBSD_SOURCE 1" >>confdefs.h
6095
6096 printf '%s\n' "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6097
6098 printf '%s\n' "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6099
6100 printf '%s\n' "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6101
6102 printf '%s\n' "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6103
6104 printf '%s\n' "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
6105
6106 printf '%s\n' "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6107
6108 printf '%s\n' "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6109
6110 printf '%s\n' "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6111
6112 printf '%s\n' "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6113
6114 printf '%s\n' "#define _TANDEM_SOURCE 1" >>confdefs.h
6115
6116 if test $ac_cv_header_minix_config_h = yes
6117 then :
6118 MINIX=yes
6119 printf '%s\n' "#define _MINIX 1" >>confdefs.h
6120
6121 printf '%s\n' "#define _POSIX_SOURCE 1" >>confdefs.h
6122
6123 printf '%s\n' "#define _POSIX_1_SOURCE 2" >>confdefs.h
6124
6125 else case e in #(
6126 e) MINIX= ;;
6127 esac
6128 fi
6129 if test $ac_cv_safe_to_define___extensions__ = yes
6130 then :
6131 printf '%s\n' "#define __EXTENSIONS__ 1" >>confdefs.h
6132
6133 fi
6134 if test $ac_cv_should_define__xopen_source = yes
6135 then :
6136 printf '%s\n' "#define _XOPEN_SOURCE 500" >>confdefs.h
6137
6138 fi
6139
6140
6141 ####################################################################
6142 # Setup the configure-results header file
6143 ####################################################################
6144
6145
6146
6147
6148 ####################################################################
6149 # Setup Libtool
6150 ####################################################################
6151
6152 # We want new Libtool. None of that old stuff. Pfft.
6153
6154
6155
6156 # Setup libtool, but disable F77, Java and Windows Resource
6157 # Compiler support -- we don't need that stuff.
6158 # Check whether --enable-shared was given.
6159 if test ${enable_shared+y}
6160 then :
6161 enableval=$enable_shared; p=${PACKAGE-default}
6162 case $enableval in
6163 yes) enable_shared=yes ;;
6164 no) enable_shared=no ;;
6165 *)
6166 enable_shared=no
6167 # Look at the argument we got. We use all the common list separators.
6168 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6169 for pkg in $enableval; do
6170 IFS=$lt_save_ifs
6171 if test "X$pkg" = "X$p"; then
6172 enable_shared=yes
6173 fi
6174 done
6175 IFS=$lt_save_ifs
6176 ;;
6177 esac
6178 else case e in #(
6179 e) enable_shared=yes ;;
6180 esac
6181 fi
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191 # Check whether --enable-static was given.
6192 if test ${enable_static+y}
6193 then :
6194 enableval=$enable_static; p=${PACKAGE-default}
6195 case $enableval in
6196 yes) enable_static=yes ;;
6197 no) enable_static=no ;;
6198 *)
6199 enable_static=no
6200 # Look at the argument we got. We use all the common list separators.
6201 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6202 for pkg in $enableval; do
6203 IFS=$lt_save_ifs
6204 if test "X$pkg" = "X$p"; then
6205 enable_static=yes
6206 fi
6207 done
6208 IFS=$lt_save_ifs
6209 ;;
6210 esac
6211 else case e in #(
6212 e) enable_static=no ;;
6213 esac
6214 fi
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225 # This did not exist pre AM 1.11.x (where x is somewhere >0 and <3),
6226 # but it is necessary in AM 1.12.x.
6227
6228 if test -n "$ac_tool_prefix"; then
6229 for ac_prog in ar lib "link -lib"
6230 do
6231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6233 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 printf %s "checking for $ac_word... " >&6; }
6235 if test ${ac_cv_prog_AR+y}
6236 then :
6237 printf %s "(cached) " >&6
6238 else case e in #(
6239 e) if test -n "$AR"; then
6240 ac_cv_prog_AR="$AR" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245 IFS=$as_save_IFS
6246 case $as_dir in #(((
6247 '') as_dir=./ ;;
6248 */) ;;
6249 *) as_dir=$as_dir/ ;;
6250 esac
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6253 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6254 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6255 break 2
6256 fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261 fi ;;
6262 esac
6263 fi
6264 AR=$ac_cv_prog_AR
6265 if test -n "$AR"; then
6266 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6267 printf '%s\n' "$AR" >&6; }
6268 else
6269 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 printf '%s\n' "no" >&6; }
6271 fi
6272
6273
6274 test -n "$AR" && break
6275 done
6276 fi
6277 if test -z "$AR"; then
6278 ac_ct_AR=$AR
6279 for ac_prog in ar lib "link -lib"
6280 do
6281 # Extract the first word of "$ac_prog", so it can be a program name with args.
6282 set dummy $ac_prog; ac_word=$2
6283 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 printf %s "checking for $ac_word... " >&6; }
6285 if test ${ac_cv_prog_ac_ct_AR+y}
6286 then :
6287 printf %s "(cached) " >&6
6288 else case e in #(
6289 e) if test -n "$ac_ct_AR"; then
6290 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295 IFS=$as_save_IFS
6296 case $as_dir in #(((
6297 '') as_dir=./ ;;
6298 */) ;;
6299 *) as_dir=$as_dir/ ;;
6300 esac
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_ac_ct_AR="$ac_prog"
6304 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307 done
6308 done
6309 IFS=$as_save_IFS
6310
6311 fi ;;
6312 esac
6313 fi
6314 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6315 if test -n "$ac_ct_AR"; then
6316 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6317 printf '%s\n' "$ac_ct_AR" >&6; }
6318 else
6319 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 printf '%s\n' "no" >&6; }
6321 fi
6322
6323
6324 test -n "$ac_ct_AR" && break
6325 done
6326
6327 if test "x$ac_ct_AR" = x; then
6328 AR="false"
6329 else
6330 case $cross_compiling:$ac_tool_warned in
6331 yes:)
6332 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6333 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334 ac_tool_warned=yes ;;
6335 esac
6336 AR=$ac_ct_AR
6337 fi
6338 fi
6339
6340 : ${AR=ar}
6341 : ${ARFLAGS=cr}
6342
6343 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6344 printf %s "checking the archiver ($AR) interface... " >&6; }
6345 if test ${am_cv_ar_interface+y}
6346 then :
6347 printf %s "(cached) " >&6
6348 else case e in #(
6349 e) ac_ext=c
6350 ac_cpp='$CPP $CPPFLAGS'
6351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6354
6355 am_cv_ar_interface=ar
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 int some_variable = 0;
6359 _ACEOF
6360 if ac_fn_c_try_compile "$LINENO"
6361 then :
6362 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
6363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6364 (eval $am_ar_try) 2>&5
6365 ac_status=$?
6366 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6367 test $ac_status = 0; }
6368 if test "$ac_status" -eq 0; then
6369 am_cv_ar_interface=ar
6370 else
6371 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6373 (eval $am_ar_try) 2>&5
6374 ac_status=$?
6375 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376 test $ac_status = 0; }
6377 if test "$ac_status" -eq 0; then
6378 am_cv_ar_interface=lib
6379 else
6380 am_cv_ar_interface=unknown
6381 fi
6382 fi
6383 rm -f conftest.lib libconftest.a
6384
6385 fi
6386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6387 ac_ext=c
6388 ac_cpp='$CPP $CPPFLAGS'
6389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6392 ;;
6393 esac
6394 fi
6395 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6396 printf '%s\n' "$am_cv_ar_interface" >&6; }
6397
6398 case $am_cv_ar_interface in
6399 ar)
6400 ;;
6401 lib)
6402 # Microsoft lib, so override with the ar-lib wrapper script.
6403 # FIXME: It is wrong to rewrite AR.
6404 # But if we don't then we get into trouble of one sort or another.
6405 # A longer-term fix would be to have automake use am__AR in this case,
6406 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6407 # similar.
6408 AR="$am_aux_dir/ar-lib $AR"
6409 ;;
6410 unknown)
6411 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6412 ;;
6413 esac
6414
6415
6416 case `pwd` in
6417 *\ * | *\ *)
6418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6419 printf '%s\n' "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6420 esac
6421
6422
6423
6424 macro_version='2.5.4'
6425 macro_revision='2.5.4'
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440 ltmain=$ac_aux_dir/ltmain.sh
6441
6442 # Backslashify metacharacters that are still active within
6443 # double-quoted strings.
6444 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6445
6446 # Same as above, but do not quote variable references.
6447 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6448
6449 # Sed substitution to delay expansion of an escaped shell variable in a
6450 # double_quote_subst'ed string.
6451 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6452
6453 # Sed substitution to delay expansion of an escaped single quote.
6454 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6455
6456 # Sed substitution to avoid accidental globbing in evaled expressions
6457 no_glob_subst='s/\*/\\\*/g'
6458
6459 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6460 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6461 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6462
6463 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6464 printf %s "checking how to print strings... " >&6; }
6465 # Test print first, because it will be a builtin if present.
6466 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6467 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6468 ECHO='print -r --'
6469 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6470 ECHO='printf %s\n'
6471 else
6472 # Use this function as a fallback that always works.
6473 func_fallback_echo ()
6474 {
6475 eval 'cat <<_LTECHO_EOF
6476 $1
6477 _LTECHO_EOF'
6478 }
6479 ECHO='func_fallback_echo'
6480 fi
6481
6482 # func_echo_all arg...
6483 # Invoke $ECHO with all args, space-separated.
6484 func_echo_all ()
6485 {
6486 $ECHO ""
6487 }
6488
6489 case $ECHO in
6490 printf*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6491 printf '%s\n' "printf" >&6; } ;;
6492 print*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6493 printf '%s\n' "print -r" >&6; } ;;
6494 *) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6495 printf '%s\n' "cat" >&6; } ;;
6496 esac
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6512 printf %s "checking for a sed that does not truncate output... " >&6; }
6513 if test ${ac_cv_path_SED+y}
6514 then :
6515 printf %s "(cached) " >&6
6516 else case e in #(
6517 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6518 for ac_i in 1 2 3 4 5 6 7; do
6519 ac_script="$ac_script$as_nl$ac_script"
6520 done
6521 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6522 { ac_script=; unset ac_script;}
6523 if test -z "$SED"; then
6524 ac_path_SED_found=false
6525 # Loop through the user's path and test for each of PROGNAME-LIST
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529 IFS=$as_save_IFS
6530 case $as_dir in #(((
6531 '') as_dir=./ ;;
6532 */) ;;
6533 *) as_dir=$as_dir/ ;;
6534 esac
6535 for ac_prog in sed gsed
6536 do
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6539 as_fn_executable_p "$ac_path_SED" || continue
6540 # Check for GNU ac_path_SED and select it if it is found.
6541 # Check for GNU $ac_path_SED
6542 case `"$ac_path_SED" --version 2>&1` in #(
6543 *GNU*)
6544 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6545 #(
6546 *)
6547 ac_count=0
6548 printf %s 0123456789 >"conftest.in"
6549 while :
6550 do
6551 cat "conftest.in" "conftest.in" >"conftest.tmp"
6552 mv "conftest.tmp" "conftest.in"
6553 cp "conftest.in" "conftest.nl"
6554 printf '%s\n' '' >> "conftest.nl"
6555 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6557 as_fn_arith $ac_count + 1 && ac_count=$as_val
6558 if test $ac_count -gt ${ac_path_SED_max-0}; then
6559 # Best one so far, save it but keep looking for a better one
6560 ac_cv_path_SED="$ac_path_SED"
6561 ac_path_SED_max=$ac_count
6562 fi
6563 # 10*(2^10) chars as input seems more than enough
6564 test $ac_count -gt 10 && break
6565 done
6566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6567 esac
6568
6569 $ac_path_SED_found && break 3
6570 done
6571 done
6572 done
6573 IFS=$as_save_IFS
6574 if test -z "$ac_cv_path_SED"; then
6575 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6576 fi
6577 else
6578 ac_cv_path_SED=$SED
6579 fi
6580 ;;
6581 esac
6582 fi
6583 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6584 printf '%s\n' "$ac_cv_path_SED" >&6; }
6585 SED="$ac_cv_path_SED"
6586 rm -f conftest.sed
6587
6588 test -z "$SED" && SED=sed
6589 Xsed="$SED -e 1s/^X//"
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6602 printf %s "checking for grep that handles long lines and -e... " >&6; }
6603 if test ${ac_cv_path_GREP+y}
6604 then :
6605 printf %s "(cached) " >&6
6606 else case e in #(
6607 e) if test -z "$GREP"; then
6608 ac_path_GREP_found=false
6609 # Loop through the user's path and test for each of PROGNAME-LIST
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6612 do
6613 IFS=$as_save_IFS
6614 case $as_dir in #(((
6615 '') as_dir=./ ;;
6616 */) ;;
6617 *) as_dir=$as_dir/ ;;
6618 esac
6619 for ac_prog in grep ggrep
6620 do
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6623 as_fn_executable_p "$ac_path_GREP" || continue
6624 # Check for GNU ac_path_GREP and select it if it is found.
6625 # Check for GNU $ac_path_GREP
6626 case `"$ac_path_GREP" --version 2>&1` in #(
6627 *GNU*)
6628 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6629 #(
6630 *)
6631 ac_count=0
6632 printf %s 0123456789 >"conftest.in"
6633 while :
6634 do
6635 cat "conftest.in" "conftest.in" >"conftest.tmp"
6636 mv "conftest.tmp" "conftest.in"
6637 cp "conftest.in" "conftest.nl"
6638 printf '%s\n' 'GREP' >> "conftest.nl"
6639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6641 as_fn_arith $ac_count + 1 && ac_count=$as_val
6642 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6643 # Best one so far, save it but keep looking for a better one
6644 ac_cv_path_GREP="$ac_path_GREP"
6645 ac_path_GREP_max=$ac_count
6646 fi
6647 # 10*(2^10) chars as input seems more than enough
6648 test $ac_count -gt 10 && break
6649 done
6650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6651 esac
6652
6653 $ac_path_GREP_found && break 3
6654 done
6655 done
6656 done
6657 IFS=$as_save_IFS
6658 if test -z "$ac_cv_path_GREP"; then
6659 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6660 fi
6661 else
6662 ac_cv_path_GREP=$GREP
6663 fi
6664 ;;
6665 esac
6666 fi
6667 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6668 printf '%s\n' "$ac_cv_path_GREP" >&6; }
6669 GREP="$ac_cv_path_GREP"
6670
6671
6672 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6673 printf %s "checking for egrep... " >&6; }
6674 if test ${ac_cv_path_EGREP+y}
6675 then :
6676 printf %s "(cached) " >&6
6677 else case e in #(
6678 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6679 then ac_cv_path_EGREP="$GREP -E"
6680 else
6681 if test -z "$EGREP"; then
6682 ac_path_EGREP_found=false
6683 # Loop through the user's path and test for each of PROGNAME-LIST
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6686 do
6687 IFS=$as_save_IFS
6688 case $as_dir in #(((
6689 '') as_dir=./ ;;
6690 */) ;;
6691 *) as_dir=$as_dir/ ;;
6692 esac
6693 for ac_prog in egrep
6694 do
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6697 as_fn_executable_p "$ac_path_EGREP" || continue
6698 # Check for GNU ac_path_EGREP and select it if it is found.
6699 # Check for GNU $ac_path_EGREP
6700 case `"$ac_path_EGREP" --version 2>&1` in #(
6701 *GNU*)
6702 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6703 #(
6704 *)
6705 ac_count=0
6706 printf %s 0123456789 >"conftest.in"
6707 while :
6708 do
6709 cat "conftest.in" "conftest.in" >"conftest.tmp"
6710 mv "conftest.tmp" "conftest.in"
6711 cp "conftest.in" "conftest.nl"
6712 printf '%s\n' 'EGREP' >> "conftest.nl"
6713 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6715 as_fn_arith $ac_count + 1 && ac_count=$as_val
6716 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6717 # Best one so far, save it but keep looking for a better one
6718 ac_cv_path_EGREP="$ac_path_EGREP"
6719 ac_path_EGREP_max=$ac_count
6720 fi
6721 # 10*(2^10) chars as input seems more than enough
6722 test $ac_count -gt 10 && break
6723 done
6724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6725 esac
6726
6727 $ac_path_EGREP_found && break 3
6728 done
6729 done
6730 done
6731 IFS=$as_save_IFS
6732 if test -z "$ac_cv_path_EGREP"; then
6733 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6734 fi
6735 else
6736 ac_cv_path_EGREP=$EGREP
6737 fi
6738
6739 fi ;;
6740 esac
6741 fi
6742 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6743 printf '%s\n' "$ac_cv_path_EGREP" >&6; }
6744 EGREP="$ac_cv_path_EGREP"
6745
6746 EGREP_TRADITIONAL=$EGREP
6747 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6748
6749 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6750 printf %s "checking for fgrep... " >&6; }
6751 if test ${ac_cv_path_FGREP+y}
6752 then :
6753 printf %s "(cached) " >&6
6754 else case e in #(
6755 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6756 then ac_cv_path_FGREP="$GREP -F"
6757 else
6758 if test -z "$FGREP"; then
6759 ac_path_FGREP_found=false
6760 # Loop through the user's path and test for each of PROGNAME-LIST
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6763 do
6764 IFS=$as_save_IFS
6765 case $as_dir in #(((
6766 '') as_dir=./ ;;
6767 */) ;;
6768 *) as_dir=$as_dir/ ;;
6769 esac
6770 for ac_prog in fgrep
6771 do
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6774 as_fn_executable_p "$ac_path_FGREP" || continue
6775 # Check for GNU ac_path_FGREP and select it if it is found.
6776 # Check for GNU $ac_path_FGREP
6777 case `"$ac_path_FGREP" --version 2>&1` in #(
6778 *GNU*)
6779 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6780 #(
6781 *)
6782 ac_count=0
6783 printf %s 0123456789 >"conftest.in"
6784 while :
6785 do
6786 cat "conftest.in" "conftest.in" >"conftest.tmp"
6787 mv "conftest.tmp" "conftest.in"
6788 cp "conftest.in" "conftest.nl"
6789 printf '%s\n' 'FGREP' >> "conftest.nl"
6790 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6792 as_fn_arith $ac_count + 1 && ac_count=$as_val
6793 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6794 # Best one so far, save it but keep looking for a better one
6795 ac_cv_path_FGREP="$ac_path_FGREP"
6796 ac_path_FGREP_max=$ac_count
6797 fi
6798 # 10*(2^10) chars as input seems more than enough
6799 test $ac_count -gt 10 && break
6800 done
6801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6802 esac
6803
6804 $ac_path_FGREP_found && break 3
6805 done
6806 done
6807 done
6808 IFS=$as_save_IFS
6809 if test -z "$ac_cv_path_FGREP"; then
6810 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6811 fi
6812 else
6813 ac_cv_path_FGREP=$FGREP
6814 fi
6815
6816 fi ;;
6817 esac
6818 fi
6819 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6820 printf '%s\n' "$ac_cv_path_FGREP" >&6; }
6821 FGREP="$ac_cv_path_FGREP"
6822
6823
6824 test -z "$GREP" && GREP=grep
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844 # Check whether --with-gnu-ld was given.
6845 if test ${with_gnu_ld+y}
6846 then :
6847 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6848 else case e in #(
6849 e) with_gnu_ld=no ;;
6850 esac
6851 fi
6852
6853 ac_prog=ld
6854 if test yes = "$GCC"; then
6855 # Check if gcc -print-prog-name=ld gives a path.
6856 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6857 printf %s "checking for ld used by $CC... " >&6; }
6858 case $host in
6859 *-*-mingw* | *-*-windows*)
6860 # gcc leaves a trailing carriage return, which upsets mingw
6861 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6862 *)
6863 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6864 esac
6865 case $ac_prog in
6866 # Accept absolute paths.
6867 [\\/]* | ?:[\\/]*)
6868 re_direlt='/[^/][^/]*/\.\./'
6869 # Canonicalize the pathname of ld
6870 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6871 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6872 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6873 done
6874 test -z "$LD" && LD=$ac_prog
6875 ;;
6876 "")
6877 # If it fails, then pretend we aren't using GCC.
6878 ac_prog=ld
6879 ;;
6880 *)
6881 # If it is relative, then search for the first ld in PATH.
6882 with_gnu_ld=unknown
6883 ;;
6884 esac
6885 elif test yes = "$with_gnu_ld"; then
6886 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6887 printf %s "checking for GNU ld... " >&6; }
6888 else
6889 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6890 printf %s "checking for non-GNU ld... " >&6; }
6891 fi
6892 if test ${lt_cv_path_LD+y}
6893 then :
6894 printf %s "(cached) " >&6
6895 else case e in #(
6896 e) if test -z "$LD"; then
6897 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6898 for ac_dir in $PATH; do
6899 IFS=$lt_save_ifs
6900 test -z "$ac_dir" && ac_dir=.
6901 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6902 lt_cv_path_LD=$ac_dir/$ac_prog
6903 # Check to see if the program is GNU ld. I'd rather use --version,
6904 # but apparently some variants of GNU ld only accept -v.
6905 # Break only if it was the GNU/non-GNU ld that we prefer.
6906 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6907 *GNU* | *'with BFD'*)
6908 test no != "$with_gnu_ld" && break
6909 ;;
6910 *)
6911 test yes != "$with_gnu_ld" && break
6912 ;;
6913 esac
6914 fi
6915 done
6916 IFS=$lt_save_ifs
6917 else
6918 lt_cv_path_LD=$LD # Let the user override the test with a path.
6919 fi ;;
6920 esac
6921 fi
6922
6923 LD=$lt_cv_path_LD
6924 if test -n "$LD"; then
6925 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6926 printf '%s\n' "$LD" >&6; }
6927 else
6928 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 printf '%s\n' "no" >&6; }
6930 fi
6931 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6932 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6933 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6934 if test ${lt_cv_prog_gnu_ld+y}
6935 then :
6936 printf %s "(cached) " >&6
6937 else case e in #(
6938 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6939 case `$LD -v 2>&1 </dev/null` in
6940 *GNU* | *'with BFD'*)
6941 lt_cv_prog_gnu_ld=yes
6942 ;;
6943 *)
6944 lt_cv_prog_gnu_ld=no
6945 ;;
6946 esac ;;
6947 esac
6948 fi
6949 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6950 printf '%s\n' "$lt_cv_prog_gnu_ld" >&6; }
6951 with_gnu_ld=$lt_cv_prog_gnu_ld
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6962 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6963 if test ${lt_cv_path_NM+y}
6964 then :
6965 printf %s "(cached) " >&6
6966 else case e in #(
6967 e) if test -n "$NM"; then
6968 # Let the user override the test.
6969 lt_cv_path_NM=$NM
6970 else
6971 lt_nm_to_check=${ac_tool_prefix}nm
6972 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6973 lt_nm_to_check="$lt_nm_to_check nm"
6974 fi
6975 for lt_tmp_nm in $lt_nm_to_check; do
6976 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6977 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6978 IFS=$lt_save_ifs
6979 test -z "$ac_dir" && ac_dir=.
6980 tmp_nm=$ac_dir/$lt_tmp_nm
6981 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6982 # Check to see if the nm accepts a BSD-compat flag.
6983 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6984 # nm: unknown option "B" ignored
6985 # Tru64's nm complains that /dev/null is an invalid object file
6986 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6987 case $build_os in
6988 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6989 *) lt_bad_file=/dev/null ;;
6990 esac
6991 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6992 *$lt_bad_file* | *'Invalid file or object type'*)
6993 lt_cv_path_NM="$tmp_nm -B"
6994 break 2
6995 ;;
6996 *)
6997 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6998 */dev/null*)
6999 lt_cv_path_NM="$tmp_nm -p"
7000 break 2
7001 ;;
7002 *)
7003 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7004 continue # so that we can try to find one that supports BSD flags
7005 ;;
7006 esac
7007 ;;
7008 esac
7009 fi
7010 done
7011 IFS=$lt_save_ifs
7012 done
7013 : ${lt_cv_path_NM=no}
7014 fi ;;
7015 esac
7016 fi
7017 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7018 printf '%s\n' "$lt_cv_path_NM" >&6; }
7019 if test no != "$lt_cv_path_NM"; then
7020 NM=$lt_cv_path_NM
7021 else
7022 # Didn't find any BSD compatible name lister, look for dumpbin.
7023 if test -n "$DUMPBIN"; then :
7024 # Let the user override the test.
7025 else
7026 if test -n "$ac_tool_prefix"; then
7027 for ac_prog in dumpbin "link -dump"
7028 do
7029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7031 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 printf %s "checking for $ac_word... " >&6; }
7033 if test ${ac_cv_prog_DUMPBIN+y}
7034 then :
7035 printf %s "(cached) " >&6
7036 else case e in #(
7037 e) if test -n "$DUMPBIN"; then
7038 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043 IFS=$as_save_IFS
7044 case $as_dir in #(((
7045 '') as_dir=./ ;;
7046 */) ;;
7047 *) as_dir=$as_dir/ ;;
7048 esac
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7051 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7052 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7053 break 2
7054 fi
7055 done
7056 done
7057 IFS=$as_save_IFS
7058
7059 fi ;;
7060 esac
7061 fi
7062 DUMPBIN=$ac_cv_prog_DUMPBIN
7063 if test -n "$DUMPBIN"; then
7064 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7065 printf '%s\n' "$DUMPBIN" >&6; }
7066 else
7067 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 printf '%s\n' "no" >&6; }
7069 fi
7070
7071
7072 test -n "$DUMPBIN" && break
7073 done
7074 fi
7075 if test -z "$DUMPBIN"; then
7076 ac_ct_DUMPBIN=$DUMPBIN
7077 for ac_prog in dumpbin "link -dump"
7078 do
7079 # Extract the first word of "$ac_prog", so it can be a program name with args.
7080 set dummy $ac_prog; ac_word=$2
7081 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 printf %s "checking for $ac_word... " >&6; }
7083 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7084 then :
7085 printf %s "(cached) " >&6
7086 else case e in #(
7087 e) if test -n "$ac_ct_DUMPBIN"; then
7088 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093 IFS=$as_save_IFS
7094 case $as_dir in #(((
7095 '') as_dir=./ ;;
7096 */) ;;
7097 *) as_dir=$as_dir/ ;;
7098 esac
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7101 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7102 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109 fi ;;
7110 esac
7111 fi
7112 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7113 if test -n "$ac_ct_DUMPBIN"; then
7114 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7115 printf '%s\n' "$ac_ct_DUMPBIN" >&6; }
7116 else
7117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 printf '%s\n' "no" >&6; }
7119 fi
7120
7121
7122 test -n "$ac_ct_DUMPBIN" && break
7123 done
7124
7125 if test "x$ac_ct_DUMPBIN" = x; then
7126 DUMPBIN=":"
7127 else
7128 case $cross_compiling:$ac_tool_warned in
7129 yes:)
7130 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7131 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7132 ac_tool_warned=yes ;;
7133 esac
7134 DUMPBIN=$ac_ct_DUMPBIN
7135 fi
7136 fi
7137
7138 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7139 *COFF*)
7140 DUMPBIN="$DUMPBIN -symbols -headers"
7141 ;;
7142 *)
7143 DUMPBIN=:
7144 ;;
7145 esac
7146 fi
7147
7148 if test : != "$DUMPBIN"; then
7149 NM=$DUMPBIN
7150 fi
7151 fi
7152 test -z "$NM" && NM=nm
7153
7154
7155
7156
7157
7158
7159 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7160 printf %s "checking the name lister ($NM) interface... " >&6; }
7161 if test ${lt_cv_nm_interface+y}
7162 then :
7163 printf %s "(cached) " >&6
7164 else case e in #(
7165 e) lt_cv_nm_interface="BSD nm"
7166 echo "int some_variable = 0;" > conftest.$ac_ext
7167 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7168 (eval "$ac_compile" 2>conftest.err)
7169 cat conftest.err >&5
7170 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7171 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7172 cat conftest.err >&5
7173 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7174 cat conftest.out >&5
7175 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7176 lt_cv_nm_interface="MS dumpbin"
7177 fi
7178 rm -f conftest* ;;
7179 esac
7180 fi
7181 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7182 printf '%s\n' "$lt_cv_nm_interface" >&6; }
7183
7184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7185 printf %s "checking whether ln -s works... " >&6; }
7186 LN_S=$as_ln_s
7187 if test "$LN_S" = "ln -s"; then
7188 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7189 printf '%s\n' "yes" >&6; }
7190 else
7191 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7192 printf '%s\n' "no, using $LN_S" >&6; }
7193 fi
7194
7195 # find the maximum length of command line arguments
7196 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7197 printf %s "checking the maximum length of command line arguments... " >&6; }
7198 if test ${lt_cv_sys_max_cmd_len+y}
7199 then :
7200 printf %s "(cached) " >&6
7201 else case e in #(
7202 e) i=0
7203 teststring=ABCD
7204
7205 case $build_os in
7206 msdosdjgpp*)
7207 # On DJGPP, this test can blow up pretty badly due to problems in libc
7208 # (any single argument exceeding 2000 bytes causes a buffer overrun
7209 # during glob expansion). Even if it were fixed, the result of this
7210 # check would be larger than it should be.
7211 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7212 ;;
7213
7214 gnu* | ironclad*)
7215 # Under GNU Hurd and Ironclad, this test is not required because there
7216 # is no limit to the length of command line arguments.
7217 # Libtool will interpret -1 as no limit whatsoever
7218 lt_cv_sys_max_cmd_len=-1;
7219 ;;
7220
7221 cygwin* | mingw* | windows* | cegcc*)
7222 # On Win9x/ME, this test blows up -- it succeeds, but takes
7223 # about 5 minutes as the teststring grows exponentially.
7224 # Worse, since 9x/ME are not pre-emptively multitasking,
7225 # you end up with a "frozen" computer, even though with patience
7226 # the test eventually succeeds (with a max line length of 256k).
7227 # Instead, let's just punt: use the minimum linelength reported by
7228 # all of the supported platforms: 8192 (on NT/2K/XP).
7229 lt_cv_sys_max_cmd_len=8192;
7230 ;;
7231
7232 mint*)
7233 # On MiNT this can take a long time and run out of memory.
7234 lt_cv_sys_max_cmd_len=8192;
7235 ;;
7236
7237 amigaos*)
7238 # On AmigaOS with pdksh, this test takes hours, literally.
7239 # So we just punt and use a minimum line length of 8192.
7240 lt_cv_sys_max_cmd_len=8192;
7241 ;;
7242
7243 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7244 # This has been around since 386BSD, at least. Likely further.
7245 if test -x /sbin/sysctl; then
7246 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7247 elif test -x /usr/sbin/sysctl; then
7248 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7249 else
7250 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7251 fi
7252 # And add a safety zone
7253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7255 ;;
7256
7257 interix*)
7258 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7259 lt_cv_sys_max_cmd_len=196608
7260 ;;
7261
7262 os2*)
7263 # The test takes a long time on OS/2.
7264 lt_cv_sys_max_cmd_len=8192
7265 ;;
7266
7267 osf*)
7268 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7269 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7270 # nice to cause kernel panics so lets avoid the loop below.
7271 # First set a reasonable default.
7272 lt_cv_sys_max_cmd_len=16384
7273 #
7274 if test -x /sbin/sysconfig; then
7275 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7276 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7277 esac
7278 fi
7279 ;;
7280 sco3.2v5*)
7281 lt_cv_sys_max_cmd_len=102400
7282 ;;
7283 sysv5* | sco5v6* | sysv4.2uw2*)
7284 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7285 if test -n "$kargmax"; then
7286 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7287 else
7288 lt_cv_sys_max_cmd_len=32768
7289 fi
7290 ;;
7291 *)
7292 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7293 if test -n "$lt_cv_sys_max_cmd_len" && \
7294 test undefined != "$lt_cv_sys_max_cmd_len"; then
7295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7297 else
7298 # Make teststring a little bigger before we do anything with it.
7299 # a 1K string should be a reasonable start.
7300 for i in 1 2 3 4 5 6 7 8; do
7301 teststring=$teststring$teststring
7302 done
7303 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7304 # If test is not a shell built-in, we'll probably end up computing a
7305 # maximum length that is only half of the actual maximum length, but
7306 # we can't tell.
7307 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7308 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7309 test 17 != "$i" # 1/2 MB should be enough
7310 do
7311 i=`expr $i + 1`
7312 teststring=$teststring$teststring
7313 done
7314 # Only check the string length outside the loop.
7315 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7316 teststring=
7317 # Add a significant safety factor because C++ compilers can tack on
7318 # massive amounts of additional arguments before passing them to the
7319 # linker. It appears as though 1/2 is a usable value.
7320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7321 fi
7322 ;;
7323 esac
7324 ;;
7325 esac
7326 fi
7327
7328 if test -n "$lt_cv_sys_max_cmd_len"; then
7329 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7330 printf '%s\n' "$lt_cv_sys_max_cmd_len" >&6; }
7331 else
7332 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none" >&5
7333 printf '%s\n' "none" >&6; }
7334 fi
7335 max_cmd_len=$lt_cv_sys_max_cmd_len
7336
7337
7338
7339
7340
7341
7342 : ${CP="cp -f"}
7343 : ${MV="mv -f"}
7344 : ${RM="rm -f"}
7345
7346 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7347 lt_unset=unset
7348 else
7349 lt_unset=false
7350 fi
7351
7352
7353
7354
7355
7356 # test EBCDIC or ASCII
7357 case `echo X|tr X '\101'` in
7358 A) # ASCII based system
7359 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7360 lt_SP2NL='tr \040 \012'
7361 lt_NL2SP='tr \015\012 \040\040'
7362 ;;
7363 *) # EBCDIC based system
7364 lt_SP2NL='tr \100 \n'
7365 lt_NL2SP='tr \r\n \100\100'
7366 ;;
7367 esac
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7378 printf %s "checking how to convert $build file names to $host format... " >&6; }
7379 if test ${lt_cv_to_host_file_cmd+y}
7380 then :
7381 printf %s "(cached) " >&6
7382 else case e in #(
7383 e) case $host in
7384 *-*-mingw* )
7385 case $build in
7386 *-*-mingw* | *-*-windows* ) # actually msys
7387 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7388 ;;
7389 *-*-cygwin* )
7390 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7391 ;;
7392 * ) # otherwise, assume *nix
7393 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7394 ;;
7395 esac
7396 ;;
7397 *-*-cygwin* )
7398 case $build in
7399 *-*-mingw* | *-*-windows* ) # actually msys
7400 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7401 ;;
7402 *-*-cygwin* )
7403 lt_cv_to_host_file_cmd=func_convert_file_noop
7404 ;;
7405 * ) # otherwise, assume *nix
7406 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7407 ;;
7408 esac
7409 ;;
7410 * ) # unhandled hosts (and "normal" native builds)
7411 lt_cv_to_host_file_cmd=func_convert_file_noop
7412 ;;
7413 esac
7414 ;;
7415 esac
7416 fi
7417
7418 to_host_file_cmd=$lt_cv_to_host_file_cmd
7419 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7420 printf '%s\n' "$lt_cv_to_host_file_cmd" >&6; }
7421
7422
7423
7424
7425
7426 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7427 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7428 if test ${lt_cv_to_tool_file_cmd+y}
7429 then :
7430 printf %s "(cached) " >&6
7431 else case e in #(
7432 e) #assume ordinary cross tools, or native build.
7433 lt_cv_to_tool_file_cmd=func_convert_file_noop
7434 case $host in
7435 *-*-mingw* | *-*-windows* )
7436 case $build in
7437 *-*-mingw* | *-*-windows* ) # actually msys
7438 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7439 ;;
7440 esac
7441 ;;
7442 esac
7443 ;;
7444 esac
7445 fi
7446
7447 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7448 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7449 printf '%s\n' "$lt_cv_to_tool_file_cmd" >&6; }
7450
7451
7452
7453
7454
7455 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7456 printf %s "checking for $LD option to reload object files... " >&6; }
7457 if test ${lt_cv_ld_reload_flag+y}
7458 then :
7459 printf %s "(cached) " >&6
7460 else case e in #(
7461 e) lt_cv_ld_reload_flag='-r' ;;
7462 esac
7463 fi
7464 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7465 printf '%s\n' "$lt_cv_ld_reload_flag" >&6; }
7466 reload_flag=$lt_cv_ld_reload_flag
7467 case $reload_flag in
7468 "" | " "*) ;;
7469 *) reload_flag=" $reload_flag" ;;
7470 esac
7471 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7472 case $host_os in
7473 cygwin* | mingw* | windows* | pw32* | cegcc*)
7474 if test yes != "$GCC"; then
7475 reload_cmds=false
7476 fi
7477 ;;
7478 darwin*)
7479 if test yes = "$GCC"; then
7480 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7481 else
7482 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7483 fi
7484 ;;
7485 esac
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495 # Extract the first word of "file", so it can be a program name with args.
7496 set dummy file; ac_word=$2
7497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 printf %s "checking for $ac_word... " >&6; }
7499 if test ${ac_cv_prog_FILECMD+y}
7500 then :
7501 printf %s "(cached) " >&6
7502 else case e in #(
7503 e) if test -n "$FILECMD"; then
7504 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7505 else
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509 IFS=$as_save_IFS
7510 case $as_dir in #(((
7511 '') as_dir=./ ;;
7512 */) ;;
7513 *) as_dir=$as_dir/ ;;
7514 esac
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_FILECMD="file"
7518 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7519 break 2
7520 fi
7521 done
7522 done
7523 IFS=$as_save_IFS
7524
7525 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7526 fi ;;
7527 esac
7528 fi
7529 FILECMD=$ac_cv_prog_FILECMD
7530 if test -n "$FILECMD"; then
7531 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7532 printf '%s\n' "$FILECMD" >&6; }
7533 else
7534 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 printf '%s\n' "no" >&6; }
7536 fi
7537
7538
7539
7540
7541
7542
7543
7544
7545 if test -n "$ac_tool_prefix"; then
7546 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7547 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7548 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 printf %s "checking for $ac_word... " >&6; }
7550 if test ${ac_cv_prog_OBJDUMP+y}
7551 then :
7552 printf %s "(cached) " >&6
7553 else case e in #(
7554 e) if test -n "$OBJDUMP"; then
7555 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560 IFS=$as_save_IFS
7561 case $as_dir in #(((
7562 '') as_dir=./ ;;
7563 */) ;;
7564 *) as_dir=$as_dir/ ;;
7565 esac
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7568 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7569 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7570 break 2
7571 fi
7572 done
7573 done
7574 IFS=$as_save_IFS
7575
7576 fi ;;
7577 esac
7578 fi
7579 OBJDUMP=$ac_cv_prog_OBJDUMP
7580 if test -n "$OBJDUMP"; then
7581 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7582 printf '%s\n' "$OBJDUMP" >&6; }
7583 else
7584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 printf '%s\n' "no" >&6; }
7586 fi
7587
7588
7589 fi
7590 if test -z "$ac_cv_prog_OBJDUMP"; then
7591 ac_ct_OBJDUMP=$OBJDUMP
7592 # Extract the first word of "objdump", so it can be a program name with args.
7593 set dummy objdump; ac_word=$2
7594 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595 printf %s "checking for $ac_word... " >&6; }
7596 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7597 then :
7598 printf %s "(cached) " >&6
7599 else case e in #(
7600 e) if test -n "$ac_ct_OBJDUMP"; then
7601 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606 IFS=$as_save_IFS
7607 case $as_dir in #(((
7608 '') as_dir=./ ;;
7609 */) ;;
7610 *) as_dir=$as_dir/ ;;
7611 esac
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7614 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7615 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7616 break 2
7617 fi
7618 done
7619 done
7620 IFS=$as_save_IFS
7621
7622 fi ;;
7623 esac
7624 fi
7625 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7626 if test -n "$ac_ct_OBJDUMP"; then
7627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7628 printf '%s\n' "$ac_ct_OBJDUMP" >&6; }
7629 else
7630 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 printf '%s\n' "no" >&6; }
7632 fi
7633
7634 if test "x$ac_ct_OBJDUMP" = x; then
7635 OBJDUMP="false"
7636 else
7637 case $cross_compiling:$ac_tool_warned in
7638 yes:)
7639 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641 ac_tool_warned=yes ;;
7642 esac
7643 OBJDUMP=$ac_ct_OBJDUMP
7644 fi
7645 else
7646 OBJDUMP="$ac_cv_prog_OBJDUMP"
7647 fi
7648
7649 test -z "$OBJDUMP" && OBJDUMP=objdump
7650
7651
7652
7653
7654
7655
7656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7657 printf %s "checking how to recognize dependent libraries... " >&6; }
7658 if test ${lt_cv_deplibs_check_method+y}
7659 then :
7660 printf %s "(cached) " >&6
7661 else case e in #(
7662 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7663 lt_cv_file_magic_test_file=
7664 lt_cv_deplibs_check_method='unknown'
7665 # Need to set the preceding variable on all platforms that support
7666 # interlibrary dependencies.
7667 # 'none' -- dependencies not supported.
7668 # 'unknown' -- same as none, but documents that we really don't know.
7669 # 'pass_all' -- all dependencies passed with no checks.
7670 # 'file_magic [[regex]]' -- check by looking for files in library path
7671 # that responds to the $file_magic_cmd with a given extended regex.
7672 # If you have 'file' or equivalent on your system and you're not sure
7673 # whether 'pass_all' will *always* work, you probably want this one.
7674
7675 case $host_os in
7676 aix[4-9]*)
7677 lt_cv_deplibs_check_method=pass_all
7678 ;;
7679
7680 beos*)
7681 lt_cv_deplibs_check_method=pass_all
7682 ;;
7683
7684 bsdi[45]*)
7685 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7686 lt_cv_file_magic_cmd='$FILECMD -L'
7687 lt_cv_file_magic_test_file=/shlib/libc.so
7688 ;;
7689
7690 cygwin*)
7691 # func_win32_libid is a shell function defined in ltmain.sh
7692 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7693 lt_cv_file_magic_cmd='func_win32_libid'
7694 ;;
7695
7696 mingw* | windows* | pw32*)
7697 # Base MSYS/MinGW do not provide the 'file' command needed by
7698 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7699 # unless we find 'file', for example because we are cross-compiling.
7700 if ( file / ) >/dev/null 2>&1; then
7701 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7702 lt_cv_file_magic_cmd='func_win32_libid'
7703 else
7704 # Keep this pattern in sync with the one in func_win32_libid.
7705 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7706 lt_cv_file_magic_cmd='$OBJDUMP -f'
7707 fi
7708 ;;
7709
7710 cegcc*)
7711 # use the weaker test based on 'objdump'. See mingw*.
7712 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7713 lt_cv_file_magic_cmd='$OBJDUMP -f'
7714 ;;
7715
7716 darwin* | rhapsody*)
7717 lt_cv_deplibs_check_method=pass_all
7718 ;;
7719
7720 freebsd* | dragonfly* | midnightbsd*)
7721 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7722 case $host_cpu in
7723 i*86 )
7724 # Not sure whether the presence of OpenBSD here was a mistake.
7725 # Let's accept both of them until this is cleared up.
7726 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7727 lt_cv_file_magic_cmd=$FILECMD
7728 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7729 ;;
7730 esac
7731 else
7732 lt_cv_deplibs_check_method=pass_all
7733 fi
7734 ;;
7735
7736 haiku*)
7737 lt_cv_deplibs_check_method=pass_all
7738 ;;
7739
7740 hpux10.20* | hpux11*)
7741 lt_cv_file_magic_cmd=$FILECMD
7742 case $host_cpu in
7743 ia64*)
7744 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7745 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7746 ;;
7747 hppa*64*)
7748 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]'
7749 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7750 ;;
7751 *)
7752 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7753 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7754 ;;
7755 esac
7756 ;;
7757
7758 interix[3-9]*)
7759 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7761 ;;
7762
7763 irix5* | irix6* | nonstopux*)
7764 case $LD in
7765 *-32|*"-32 ") libmagic=32-bit;;
7766 *-n32|*"-n32 ") libmagic=N32;;
7767 *-64|*"-64 ") libmagic=64-bit;;
7768 *) libmagic=never-match;;
7769 esac
7770 lt_cv_deplibs_check_method=pass_all
7771 ;;
7772
7773 # This must be glibc/ELF.
7774 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7775 lt_cv_deplibs_check_method=pass_all
7776 ;;
7777
7778 *-mlibc)
7779 lt_cv_deplibs_check_method=pass_all
7780 ;;
7781
7782 netbsd* | netbsdelf*-gnu)
7783 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7785 else
7786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7787 fi
7788 ;;
7789
7790 newos6*)
7791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7792 lt_cv_file_magic_cmd=$FILECMD
7793 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7794 ;;
7795
7796 *nto* | *qnx*)
7797 lt_cv_deplibs_check_method=pass_all
7798 ;;
7799
7800 openbsd*)
7801 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7803 else
7804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7805 fi
7806 ;;
7807
7808 osf3* | osf4* | osf5*)
7809 lt_cv_deplibs_check_method=pass_all
7810 ;;
7811
7812 rdos*)
7813 lt_cv_deplibs_check_method=pass_all
7814 ;;
7815
7816 serenity*)
7817 lt_cv_deplibs_check_method=pass_all
7818 ;;
7819
7820 solaris*)
7821 lt_cv_deplibs_check_method=pass_all
7822 ;;
7823
7824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7825 lt_cv_deplibs_check_method=pass_all
7826 ;;
7827
7828 sysv4 | sysv4.3*)
7829 case $host_vendor in
7830 motorola)
7831 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]'
7832 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7833 ;;
7834 ncr)
7835 lt_cv_deplibs_check_method=pass_all
7836 ;;
7837 sequent)
7838 lt_cv_file_magic_cmd='/bin/file'
7839 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7840 ;;
7841 sni)
7842 lt_cv_file_magic_cmd='/bin/file'
7843 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7844 lt_cv_file_magic_test_file=/lib/libc.so
7845 ;;
7846 siemens)
7847 lt_cv_deplibs_check_method=pass_all
7848 ;;
7849 pc)
7850 lt_cv_deplibs_check_method=pass_all
7851 ;;
7852 esac
7853 ;;
7854
7855 tpf*)
7856 lt_cv_deplibs_check_method=pass_all
7857 ;;
7858 os2*)
7859 lt_cv_deplibs_check_method=pass_all
7860 ;;
7861 esac
7862 ;;
7863 esac
7864 fi
7865 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7866 printf '%s\n' "$lt_cv_deplibs_check_method" >&6; }
7867
7868 file_magic_glob=
7869 want_nocaseglob=no
7870 if test "$build" = "$host"; then
7871 case $host_os in
7872 mingw* | windows* | pw32*)
7873 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7874 want_nocaseglob=yes
7875 else
7876 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7877 fi
7878 ;;
7879 esac
7880 fi
7881
7882 file_magic_cmd=$lt_cv_file_magic_cmd
7883 deplibs_check_method=$lt_cv_deplibs_check_method
7884 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907 if test -n "$ac_tool_prefix"; then
7908 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7909 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7910 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911 printf %s "checking for $ac_word... " >&6; }
7912 if test ${ac_cv_prog_DLLTOOL+y}
7913 then :
7914 printf %s "(cached) " >&6
7915 else case e in #(
7916 e) if test -n "$DLLTOOL"; then
7917 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7921 do
7922 IFS=$as_save_IFS
7923 case $as_dir in #(((
7924 '') as_dir=./ ;;
7925 */) ;;
7926 *) as_dir=$as_dir/ ;;
7927 esac
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7930 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7931 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7932 break 2
7933 fi
7934 done
7935 done
7936 IFS=$as_save_IFS
7937
7938 fi ;;
7939 esac
7940 fi
7941 DLLTOOL=$ac_cv_prog_DLLTOOL
7942 if test -n "$DLLTOOL"; then
7943 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7944 printf '%s\n' "$DLLTOOL" >&6; }
7945 else
7946 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 printf '%s\n' "no" >&6; }
7948 fi
7949
7950
7951 fi
7952 if test -z "$ac_cv_prog_DLLTOOL"; then
7953 ac_ct_DLLTOOL=$DLLTOOL
7954 # Extract the first word of "dlltool", so it can be a program name with args.
7955 set dummy dlltool; ac_word=$2
7956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 printf %s "checking for $ac_word... " >&6; }
7958 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7959 then :
7960 printf %s "(cached) " >&6
7961 else case e in #(
7962 e) if test -n "$ac_ct_DLLTOOL"; then
7963 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7964 else
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7967 do
7968 IFS=$as_save_IFS
7969 case $as_dir in #(((
7970 '') as_dir=./ ;;
7971 */) ;;
7972 *) as_dir=$as_dir/ ;;
7973 esac
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7976 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7977 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7978 break 2
7979 fi
7980 done
7981 done
7982 IFS=$as_save_IFS
7983
7984 fi ;;
7985 esac
7986 fi
7987 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7988 if test -n "$ac_ct_DLLTOOL"; then
7989 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7990 printf '%s\n' "$ac_ct_DLLTOOL" >&6; }
7991 else
7992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 printf '%s\n' "no" >&6; }
7994 fi
7995
7996 if test "x$ac_ct_DLLTOOL" = x; then
7997 DLLTOOL="false"
7998 else
7999 case $cross_compiling:$ac_tool_warned in
8000 yes:)
8001 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8002 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8003 ac_tool_warned=yes ;;
8004 esac
8005 DLLTOOL=$ac_ct_DLLTOOL
8006 fi
8007 else
8008 DLLTOOL="$ac_cv_prog_DLLTOOL"
8009 fi
8010
8011 test -z "$DLLTOOL" && DLLTOOL=dlltool
8012
8013
8014
8015
8016
8017
8018
8019 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8020 printf %s "checking how to associate runtime and link libraries... " >&6; }
8021 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8022 then :
8023 printf %s "(cached) " >&6
8024 else case e in #(
8025 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
8026
8027 case $host_os in
8028 cygwin* | mingw* | windows* | pw32* | cegcc*)
8029 # two different shell functions defined in ltmain.sh;
8030 # decide which one to use based on capabilities of $DLLTOOL
8031 case `$DLLTOOL --help 2>&1` in
8032 *--identify-strict*)
8033 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8034 ;;
8035 *)
8036 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8037 ;;
8038 esac
8039 ;;
8040 *)
8041 # fallback: assume linklib IS sharedlib
8042 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8043 ;;
8044 esac
8045 ;;
8046 esac
8047 fi
8048 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8049 printf '%s\n' "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8050 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8051 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8052
8053
8054
8055
8056
8057
8058
8059 if test -n "$ac_tool_prefix"; then
8060 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8061 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8062 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 printf %s "checking for $ac_word... " >&6; }
8064 if test ${ac_cv_prog_RANLIB+y}
8065 then :
8066 printf %s "(cached) " >&6
8067 else case e in #(
8068 e) if test -n "$RANLIB"; then
8069 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8070 else
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8073 do
8074 IFS=$as_save_IFS
8075 case $as_dir in #(((
8076 '') as_dir=./ ;;
8077 */) ;;
8078 *) as_dir=$as_dir/ ;;
8079 esac
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8083 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090 fi ;;
8091 esac
8092 fi
8093 RANLIB=$ac_cv_prog_RANLIB
8094 if test -n "$RANLIB"; then
8095 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8096 printf '%s\n' "$RANLIB" >&6; }
8097 else
8098 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 printf '%s\n' "no" >&6; }
8100 fi
8101
8102
8103 fi
8104 if test -z "$ac_cv_prog_RANLIB"; then
8105 ac_ct_RANLIB=$RANLIB
8106 # Extract the first word of "ranlib", so it can be a program name with args.
8107 set dummy ranlib; ac_word=$2
8108 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 printf %s "checking for $ac_word... " >&6; }
8110 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8111 then :
8112 printf %s "(cached) " >&6
8113 else case e in #(
8114 e) if test -n "$ac_ct_RANLIB"; then
8115 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8119 do
8120 IFS=$as_save_IFS
8121 case $as_dir in #(((
8122 '') as_dir=./ ;;
8123 */) ;;
8124 *) as_dir=$as_dir/ ;;
8125 esac
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8128 ac_cv_prog_ac_ct_RANLIB="ranlib"
8129 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8130 break 2
8131 fi
8132 done
8133 done
8134 IFS=$as_save_IFS
8135
8136 fi ;;
8137 esac
8138 fi
8139 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8140 if test -n "$ac_ct_RANLIB"; then
8141 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8142 printf '%s\n' "$ac_ct_RANLIB" >&6; }
8143 else
8144 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 printf '%s\n' "no" >&6; }
8146 fi
8147
8148 if test "x$ac_ct_RANLIB" = x; then
8149 RANLIB=":"
8150 else
8151 case $cross_compiling:$ac_tool_warned in
8152 yes:)
8153 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8154 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8155 ac_tool_warned=yes ;;
8156 esac
8157 RANLIB=$ac_ct_RANLIB
8158 fi
8159 else
8160 RANLIB="$ac_cv_prog_RANLIB"
8161 fi
8162
8163 if test -n "$ac_tool_prefix"; then
8164 for ac_prog in ar
8165 do
8166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8168 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 printf %s "checking for $ac_word... " >&6; }
8170 if test ${ac_cv_prog_AR+y}
8171 then :
8172 printf %s "(cached) " >&6
8173 else case e in #(
8174 e) if test -n "$AR"; then
8175 ac_cv_prog_AR="$AR" # Let the user override the test.
8176 else
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8179 do
8180 IFS=$as_save_IFS
8181 case $as_dir in #(((
8182 '') as_dir=./ ;;
8183 */) ;;
8184 *) as_dir=$as_dir/ ;;
8185 esac
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8188 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8189 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8190 break 2
8191 fi
8192 done
8193 done
8194 IFS=$as_save_IFS
8195
8196 fi ;;
8197 esac
8198 fi
8199 AR=$ac_cv_prog_AR
8200 if test -n "$AR"; then
8201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8202 printf '%s\n' "$AR" >&6; }
8203 else
8204 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 printf '%s\n' "no" >&6; }
8206 fi
8207
8208
8209 test -n "$AR" && break
8210 done
8211 fi
8212 if test -z "$AR"; then
8213 ac_ct_AR=$AR
8214 for ac_prog in ar
8215 do
8216 # Extract the first word of "$ac_prog", so it can be a program name with args.
8217 set dummy $ac_prog; ac_word=$2
8218 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 printf %s "checking for $ac_word... " >&6; }
8220 if test ${ac_cv_prog_ac_ct_AR+y}
8221 then :
8222 printf %s "(cached) " >&6
8223 else case e in #(
8224 e) if test -n "$ac_ct_AR"; then
8225 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8226 else
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8229 do
8230 IFS=$as_save_IFS
8231 case $as_dir in #(((
8232 '') as_dir=./ ;;
8233 */) ;;
8234 *) as_dir=$as_dir/ ;;
8235 esac
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8238 ac_cv_prog_ac_ct_AR="$ac_prog"
8239 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8240 break 2
8241 fi
8242 done
8243 done
8244 IFS=$as_save_IFS
8245
8246 fi ;;
8247 esac
8248 fi
8249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8250 if test -n "$ac_ct_AR"; then
8251 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8252 printf '%s\n' "$ac_ct_AR" >&6; }
8253 else
8254 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 printf '%s\n' "no" >&6; }
8256 fi
8257
8258
8259 test -n "$ac_ct_AR" && break
8260 done
8261
8262 if test "x$ac_ct_AR" = x; then
8263 AR="false"
8264 else
8265 case $cross_compiling:$ac_tool_warned in
8266 yes:)
8267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8268 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8269 ac_tool_warned=yes ;;
8270 esac
8271 AR=$ac_ct_AR
8272 fi
8273 fi
8274
8275 : ${AR=ar}
8276
8277
8278
8279
8280
8281
8282 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8283 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8284 # higher priority because that's what people were doing historically (setting
8285 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8286 # variable obsoleted/removed.
8287
8288 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8289 lt_ar_flags=$AR_FLAGS
8290
8291
8292
8293
8294
8295
8296 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8297 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8298
8299
8300
8301
8302
8303
8304 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8305 printf %s "checking for archiver @FILE support... " >&6; }
8306 if test ${lt_cv_ar_at_file+y}
8307 then :
8308 printf %s "(cached) " >&6
8309 else case e in #(
8310 e) lt_cv_ar_at_file=no
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8313
8314 int
8315 main (void)
8316 {
8317
8318 ;
8319 return 0;
8320 }
8321 _ACEOF
8322 if ac_fn_c_try_compile "$LINENO"
8323 then :
8324 echo conftest.$ac_objext > conftest.lst
8325 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8327 (eval $lt_ar_try) 2>&5
8328 ac_status=$?
8329 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8330 test $ac_status = 0; }
8331 if test 0 -eq "$ac_status"; then
8332 # Ensure the archiver fails upon bogus file names.
8333 rm -f conftest.$ac_objext libconftest.a
8334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8335 (eval $lt_ar_try) 2>&5
8336 ac_status=$?
8337 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8338 test $ac_status = 0; }
8339 if test 0 -ne "$ac_status"; then
8340 lt_cv_ar_at_file=@
8341 fi
8342 fi
8343 rm -f conftest.* libconftest.a
8344
8345 fi
8346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8347 ;;
8348 esac
8349 fi
8350 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8351 printf '%s\n' "$lt_cv_ar_at_file" >&6; }
8352
8353 if test no = "$lt_cv_ar_at_file"; then
8354 archiver_list_spec=
8355 else
8356 archiver_list_spec=$lt_cv_ar_at_file
8357 fi
8358
8359
8360
8361
8362
8363
8364
8365 if test -n "$ac_tool_prefix"; then
8366 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8367 set dummy ${ac_tool_prefix}strip; ac_word=$2
8368 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 printf %s "checking for $ac_word... " >&6; }
8370 if test ${ac_cv_prog_STRIP+y}
8371 then :
8372 printf %s "(cached) " >&6
8373 else case e in #(
8374 e) if test -n "$STRIP"; then
8375 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8376 else
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8379 do
8380 IFS=$as_save_IFS
8381 case $as_dir in #(((
8382 '') as_dir=./ ;;
8383 */) ;;
8384 *) as_dir=$as_dir/ ;;
8385 esac
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8388 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8389 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8390 break 2
8391 fi
8392 done
8393 done
8394 IFS=$as_save_IFS
8395
8396 fi ;;
8397 esac
8398 fi
8399 STRIP=$ac_cv_prog_STRIP
8400 if test -n "$STRIP"; then
8401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8402 printf '%s\n' "$STRIP" >&6; }
8403 else
8404 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 printf '%s\n' "no" >&6; }
8406 fi
8407
8408
8409 fi
8410 if test -z "$ac_cv_prog_STRIP"; then
8411 ac_ct_STRIP=$STRIP
8412 # Extract the first word of "strip", so it can be a program name with args.
8413 set dummy strip; ac_word=$2
8414 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 printf %s "checking for $ac_word... " >&6; }
8416 if test ${ac_cv_prog_ac_ct_STRIP+y}
8417 then :
8418 printf %s "(cached) " >&6
8419 else case e in #(
8420 e) if test -n "$ac_ct_STRIP"; then
8421 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8422 else
8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424 for as_dir in $PATH
8425 do
8426 IFS=$as_save_IFS
8427 case $as_dir in #(((
8428 '') as_dir=./ ;;
8429 */) ;;
8430 *) as_dir=$as_dir/ ;;
8431 esac
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8434 ac_cv_prog_ac_ct_STRIP="strip"
8435 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8436 break 2
8437 fi
8438 done
8439 done
8440 IFS=$as_save_IFS
8441
8442 fi ;;
8443 esac
8444 fi
8445 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8446 if test -n "$ac_ct_STRIP"; then
8447 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8448 printf '%s\n' "$ac_ct_STRIP" >&6; }
8449 else
8450 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 printf '%s\n' "no" >&6; }
8452 fi
8453
8454 if test "x$ac_ct_STRIP" = x; then
8455 STRIP=":"
8456 else
8457 case $cross_compiling:$ac_tool_warned in
8458 yes:)
8459 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8460 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8461 ac_tool_warned=yes ;;
8462 esac
8463 STRIP=$ac_ct_STRIP
8464 fi
8465 else
8466 STRIP="$ac_cv_prog_STRIP"
8467 fi
8468
8469 test -z "$STRIP" && STRIP=:
8470
8471
8472
8473
8474
8475
8476
8477 test -z "$RANLIB" && RANLIB=:
8478
8479
8480
8481
8482
8483
8484 # Determine commands to create old-style static archives.
8485 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8486 old_postinstall_cmds='chmod 644 $oldlib'
8487 old_postuninstall_cmds=
8488
8489 if test -n "$RANLIB"; then
8490 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8491 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8492 fi
8493
8494 case $host_os in
8495 darwin*)
8496 lock_old_archive_extraction=yes ;;
8497 *)
8498 lock_old_archive_extraction=no ;;
8499 esac
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539 # If no C compiler was specified, use CC.
8540 LTCC=${LTCC-"$CC"}
8541
8542 # If no C compiler flags were specified, use CFLAGS.
8543 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8544
8545 # Allow CC to be a program name with arguments.
8546 compiler=$CC
8547
8548
8549 # Check for command to grab the raw symbol name followed by C symbol from nm.
8550 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8551 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8552 if test ${lt_cv_sys_global_symbol_pipe+y}
8553 then :
8554 printf %s "(cached) " >&6
8555 else case e in #(
8556 e)
8557 # These are sane defaults that work on at least a few old systems.
8558 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8559
8560 # Character class describing NM global symbol codes.
8561 symcode='[BCDEGRST]'
8562
8563 # Regexp to match symbols that can be accessed directly from C.
8564 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8565
8566 # Define system-specific variables.
8567 case $host_os in
8568 aix*)
8569 symcode='[BCDT]'
8570 ;;
8571 cygwin* | mingw* | windows* | pw32* | cegcc*)
8572 symcode='[ABCDGISTW]'
8573 ;;
8574 hpux*)
8575 if test ia64 = "$host_cpu"; then
8576 symcode='[ABCDEGRST]'
8577 fi
8578 ;;
8579 irix* | nonstopux*)
8580 symcode='[BCDEGRST]'
8581 ;;
8582 osf*)
8583 symcode='[BCDEGQRST]'
8584 ;;
8585 solaris*)
8586 symcode='[BCDRT]'
8587 ;;
8588 sco3.2v5*)
8589 symcode='[DT]'
8590 ;;
8591 sysv4.2uw2*)
8592 symcode='[DT]'
8593 ;;
8594 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8595 symcode='[ABDT]'
8596 ;;
8597 sysv4)
8598 symcode='[DFNSTU]'
8599 ;;
8600 esac
8601
8602 # If we're using GNU nm, then use its standard symbol codes.
8603 case `$NM -V 2>&1` in
8604 *GNU* | *'with BFD'*)
8605 symcode='[ABCDGIRSTW]' ;;
8606 esac
8607
8608 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8609 # Gets list of data symbols to import.
8610 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8611 # Adjust the below global symbol transforms to fixup imported variables.
8612 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8613 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8614 lt_c_name_lib_hook="\
8615 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8616 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8617 else
8618 # Disable hooks by default.
8619 lt_cv_sys_global_symbol_to_import=
8620 lt_cdecl_hook=
8621 lt_c_name_hook=
8622 lt_c_name_lib_hook=
8623 fi
8624
8625 # Transform an extracted symbol line into a proper C declaration.
8626 # Some systems (esp. on ia64) link data and code symbols differently,
8627 # so use this general approach.
8628 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8629 $lt_cdecl_hook\
8630 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8631 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8632
8633 # Transform an extracted symbol line into symbol name and symbol address
8634 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8635 $lt_c_name_hook\
8636 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8637 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8638
8639 # Transform an extracted symbol line into symbol name with lib prefix and
8640 # symbol address.
8641 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8642 $lt_c_name_lib_hook\
8643 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8644 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8645 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8646
8647 # Handle CRLF in mingw tool chain
8648 opt_cr=
8649 case $build_os in
8650 mingw* | windows*)
8651 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8652 ;;
8653 esac
8654
8655 # Try without a prefix underscore, then with it.
8656 for ac_symprfx in "" "_"; do
8657
8658 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8659 symxfrm="\\1 $ac_symprfx\\2 \\2"
8660
8661 # Write the raw and C identifiers.
8662 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8663 # Fake it for dumpbin and say T for any non-static function,
8664 # D for any global variable and I for any imported variable.
8665 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8666 # which start with @ or ?.
8667 lt_cv_sys_global_symbol_pipe="$AWK '"\
8668 " {last_section=section; section=\$ 3};"\
8669 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8670 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8671 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8672 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8673 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8674 " \$ 0!~/External *\|/{next};"\
8675 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8676 " {if(hide[section]) next};"\
8677 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8678 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8679 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8680 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8681 " ' prfx=^$ac_symprfx"
8682 else
8683 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8684 fi
8685 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8686
8687 # Check to see that the pipe works correctly.
8688 pipe_works=no
8689
8690 rm -f conftest*
8691 cat > conftest.$ac_ext <<_LT_EOF
8692 #ifdef __cplusplus
8693 extern "C" {
8694 #endif
8695 char nm_test_var;
8696 void nm_test_func(void);
8697 void nm_test_func(void){}
8698 #ifdef __cplusplus
8699 }
8700 #endif
8701 int main(void){nm_test_var='a';nm_test_func();return(0);}
8702 _LT_EOF
8703
8704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8705 (eval $ac_compile) 2>&5
8706 ac_status=$?
8707 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8708 test $ac_status = 0; }; then
8709 # Now try to grab the symbols.
8710 nlist=conftest.nm
8711 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8712 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8713 # Try sorting and uniquifying the output.
8714 if sort "$nlist" | uniq > "$nlist"T; then
8715 mv -f "$nlist"T "$nlist"
8716 else
8717 rm -f "$nlist"T
8718 fi
8719
8720 # Make sure that we snagged all the symbols we need.
8721 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8722 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8723 cat <<_LT_EOF > conftest.$ac_ext
8724 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8725 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8726 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8727 relocations are performed -- see ld's documentation on pseudo-relocs. */
8728 # define LT_DLSYM_CONST
8729 #elif defined __osf__
8730 /* This system does not cope well with relocations in const data. */
8731 # define LT_DLSYM_CONST
8732 #else
8733 # define LT_DLSYM_CONST const
8734 #endif
8735
8736 #ifdef __cplusplus
8737 extern "C" {
8738 #endif
8739
8740 _LT_EOF
8741 # Now generate the symbol file.
8742 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8743
8744 cat <<_LT_EOF >> conftest.$ac_ext
8745
8746 /* The mapping between symbol names and symbols. */
8747 LT_DLSYM_CONST struct {
8748 const char *name;
8749 void *address;
8750 }
8751 lt__PROGRAM__LTX_preloaded_symbols[] =
8752 {
8753 { "@PROGRAM@", (void *) 0 },
8754 _LT_EOF
8755 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8756 cat <<\_LT_EOF >> conftest.$ac_ext
8757 {0, (void *) 0}
8758 };
8759
8760 /* This works around a problem in FreeBSD linker */
8761 #ifdef FREEBSD_WORKAROUND
8762 static const void *lt_preloaded_setup() {
8763 return lt__PROGRAM__LTX_preloaded_symbols;
8764 }
8765 #endif
8766
8767 #ifdef __cplusplus
8768 }
8769 #endif
8770 _LT_EOF
8771 # Now try linking the two files.
8772 mv conftest.$ac_objext conftstm.$ac_objext
8773 lt_globsym_save_LIBS=$LIBS
8774 lt_globsym_save_CFLAGS=$CFLAGS
8775 LIBS=conftstm.$ac_objext
8776 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8778 (eval $ac_link) 2>&5
8779 ac_status=$?
8780 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8781 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8782 pipe_works=yes
8783 fi
8784 LIBS=$lt_globsym_save_LIBS
8785 CFLAGS=$lt_globsym_save_CFLAGS
8786 else
8787 echo "cannot find nm_test_func in $nlist" >&5
8788 fi
8789 else
8790 echo "cannot find nm_test_var in $nlist" >&5
8791 fi
8792 else
8793 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8794 fi
8795 else
8796 echo "$progname: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8798 fi
8799 rm -rf conftest* conftst*
8800
8801 # Do not use the global_symbol_pipe unless it works.
8802 if test yes = "$pipe_works"; then
8803 break
8804 else
8805 lt_cv_sys_global_symbol_pipe=
8806 fi
8807 done
8808 ;;
8809 esac
8810 fi
8811
8812 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8813 lt_cv_sys_global_symbol_to_cdecl=
8814 fi
8815 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8816 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8817 printf '%s\n' "failed" >&6; }
8818 else
8819 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8820 printf '%s\n' "ok" >&6; }
8821 fi
8822
8823 # Response file support.
8824 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8825 nm_file_list_spec='@'
8826 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8827 nm_file_list_spec='@'
8828 fi
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8867 printf %s "checking for sysroot... " >&6; }
8868
8869 # Check whether --with-sysroot was given.
8870 if test ${with_sysroot+y}
8871 then :
8872 withval=$with_sysroot;
8873 else case e in #(
8874 e) with_sysroot=no ;;
8875 esac
8876 fi
8877
8878
8879 lt_sysroot=
8880 case $with_sysroot in #(
8881 yes)
8882 if test yes = "$GCC"; then
8883 # Trim trailing / since we'll always append absolute paths and we want
8884 # to avoid //, if only for less confusing output for the user.
8885 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8886 fi
8887 ;; #(
8888 /*)
8889 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8890 ;; #(
8891 no|'')
8892 ;; #(
8893 *)
8894 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8895 printf '%s\n' "$with_sysroot" >&6; }
8896 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8897 ;;
8898 esac
8899
8900 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8901 printf '%s\n' "${lt_sysroot:-no}" >&6; }
8902
8903
8904
8905
8906
8907 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8908 printf %s "checking for a working dd... " >&6; }
8909 if test ${ac_cv_path_lt_DD+y}
8910 then :
8911 printf %s "(cached) " >&6
8912 else case e in #(
8913 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8914 cat conftest.i conftest.i >conftest2.i
8915 : ${lt_DD:=$DD}
8916 if test -z "$lt_DD"; then
8917 ac_path_lt_DD_found=false
8918 # Loop through the user's path and test for each of PROGNAME-LIST
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 for as_dir in $PATH
8921 do
8922 IFS=$as_save_IFS
8923 case $as_dir in #(((
8924 '') as_dir=./ ;;
8925 */) ;;
8926 *) as_dir=$as_dir/ ;;
8927 esac
8928 for ac_prog in dd
8929 do
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8932 as_fn_executable_p "$ac_path_lt_DD" || continue
8933 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8934 cmp -s conftest.i conftest.out \
8935 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8936 fi
8937 $ac_path_lt_DD_found && break 3
8938 done
8939 done
8940 done
8941 IFS=$as_save_IFS
8942 if test -z "$ac_cv_path_lt_DD"; then
8943 :
8944 fi
8945 else
8946 ac_cv_path_lt_DD=$lt_DD
8947 fi
8948
8949 rm -f conftest.i conftest2.i conftest.out ;;
8950 esac
8951 fi
8952 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8953 printf '%s\n' "$ac_cv_path_lt_DD" >&6; }
8954
8955
8956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8957 printf %s "checking how to truncate binary pipes... " >&6; }
8958 if test ${lt_cv_truncate_bin+y}
8959 then :
8960 printf %s "(cached) " >&6
8961 else case e in #(
8962 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8963 cat conftest.i conftest.i >conftest2.i
8964 lt_cv_truncate_bin=
8965 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8966 cmp -s conftest.i conftest.out \
8967 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8968 fi
8969 rm -f conftest.i conftest2.i conftest.out
8970 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8971 esac
8972 fi
8973 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8974 printf '%s\n' "$lt_cv_truncate_bin" >&6; }
8975
8976
8977
8978
8979
8980
8981
8982 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8983 func_cc_basename ()
8984 {
8985 for cc_temp in $*""; do
8986 case $cc_temp in
8987 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8988 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8989 \-*) ;;
8990 *) break;;
8991 esac
8992 done
8993 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8994 }
8995
8996 # Check whether --enable-libtool-lock was given.
8997 if test ${enable_libtool_lock+y}
8998 then :
8999 enableval=$enable_libtool_lock;
9000 fi
9001
9002 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9003
9004 # Some flags need to be propagated to the compiler or linker for good
9005 # libtool support.
9006 case $host in
9007 ia64-*-hpux*)
9008 # Find out what ABI is being produced by ac_compile, and set mode
9009 # options accordingly.
9010 echo 'int i;' > conftest.$ac_ext
9011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9012 (eval $ac_compile) 2>&5
9013 ac_status=$?
9014 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9015 test $ac_status = 0; }; then
9016 case `$FILECMD conftest.$ac_objext` in
9017 *ELF-32*)
9018 HPUX_IA64_MODE=32
9019 ;;
9020 *ELF-64*)
9021 HPUX_IA64_MODE=64
9022 ;;
9023 esac
9024 fi
9025 rm -rf conftest*
9026 ;;
9027 *-*-irix6*)
9028 # Find out what ABI is being produced by ac_compile, and set linker
9029 # options accordingly.
9030 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9032 (eval $ac_compile) 2>&5
9033 ac_status=$?
9034 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9035 test $ac_status = 0; }; then
9036 if test yes = "$lt_cv_prog_gnu_ld"; then
9037 case `$FILECMD conftest.$ac_objext` in
9038 *32-bit*)
9039 LD="${LD-ld} -melf32bsmip"
9040 ;;
9041 *N32*)
9042 LD="${LD-ld} -melf32bmipn32"
9043 ;;
9044 *64-bit*)
9045 LD="${LD-ld} -melf64bmip"
9046 ;;
9047 esac
9048 else
9049 case `$FILECMD conftest.$ac_objext` in
9050 *32-bit*)
9051 LD="${LD-ld} -32"
9052 ;;
9053 *N32*)
9054 LD="${LD-ld} -n32"
9055 ;;
9056 *64-bit*)
9057 LD="${LD-ld} -64"
9058 ;;
9059 esac
9060 fi
9061 fi
9062 rm -rf conftest*
9063 ;;
9064
9065 mips64*-*linux*)
9066 # Find out what ABI is being produced by ac_compile, and set linker
9067 # options accordingly.
9068 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9070 (eval $ac_compile) 2>&5
9071 ac_status=$?
9072 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9073 test $ac_status = 0; }; then
9074 emul=elf
9075 case `$FILECMD conftest.$ac_objext` in
9076 *32-bit*)
9077 emul="${emul}32"
9078 ;;
9079 *64-bit*)
9080 emul="${emul}64"
9081 ;;
9082 esac
9083 case `$FILECMD conftest.$ac_objext` in
9084 *MSB*)
9085 emul="${emul}btsmip"
9086 ;;
9087 *LSB*)
9088 emul="${emul}ltsmip"
9089 ;;
9090 esac
9091 case `$FILECMD conftest.$ac_objext` in
9092 *N32*)
9093 emul="${emul}n32"
9094 ;;
9095 esac
9096 LD="${LD-ld} -m $emul"
9097 fi
9098 rm -rf conftest*
9099 ;;
9100
9101 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9102 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9103 # Find out what ABI is being produced by ac_compile, and set linker
9104 # options accordingly. Note that the listed cases only cover the
9105 # situations where additional linker options are needed (such as when
9106 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9107 # vice versa); the common cases where no linker options are needed do
9108 # not appear in the list.
9109 echo 'int i;' > conftest.$ac_ext
9110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9111 (eval $ac_compile) 2>&5
9112 ac_status=$?
9113 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9114 test $ac_status = 0; }; then
9115 case `$FILECMD conftest.o` in
9116 *32-bit*)
9117 case $host in
9118 x86_64-*kfreebsd*-gnu)
9119 LD="${LD-ld} -m elf_i386_fbsd"
9120 ;;
9121 x86_64-*linux*|x86_64-gnu*)
9122 case `$FILECMD conftest.o` in
9123 *x86-64*)
9124 LD="${LD-ld} -m elf32_x86_64"
9125 ;;
9126 *)
9127 LD="${LD-ld} -m elf_i386"
9128 ;;
9129 esac
9130 ;;
9131 powerpc64le-*linux*)
9132 LD="${LD-ld} -m elf32lppclinux"
9133 ;;
9134 powerpc64-*linux*)
9135 LD="${LD-ld} -m elf32ppclinux"
9136 ;;
9137 s390x-*linux*)
9138 LD="${LD-ld} -m elf_s390"
9139 ;;
9140 sparc64-*linux*)
9141 LD="${LD-ld} -m elf32_sparc"
9142 ;;
9143 esac
9144 ;;
9145 *64-bit*)
9146 case $host in
9147 x86_64-*kfreebsd*-gnu)
9148 LD="${LD-ld} -m elf_x86_64_fbsd"
9149 ;;
9150 x86_64-*linux*|x86_64-gnu*)
9151 LD="${LD-ld} -m elf_x86_64"
9152 ;;
9153 powerpcle-*linux*)
9154 LD="${LD-ld} -m elf64lppc"
9155 ;;
9156 powerpc-*linux*)
9157 LD="${LD-ld} -m elf64ppc"
9158 ;;
9159 s390*-*linux*|s390*-*tpf*)
9160 LD="${LD-ld} -m elf64_s390"
9161 ;;
9162 sparc*-*linux*)
9163 LD="${LD-ld} -m elf64_sparc"
9164 ;;
9165 esac
9166 ;;
9167 esac
9168 fi
9169 rm -rf conftest*
9170 ;;
9171
9172 *-*-sco3.2v5*)
9173 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9174 SAVE_CFLAGS=$CFLAGS
9175 CFLAGS="$CFLAGS -belf"
9176 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9177 printf %s "checking whether the C compiler needs -belf... " >&6; }
9178 if test ${lt_cv_cc_needs_belf+y}
9179 then :
9180 printf %s "(cached) " >&6
9181 else case e in #(
9182 e) ac_ext=c
9183 ac_cpp='$CPP $CPPFLAGS'
9184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9187
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190
9191 int
9192 main (void)
9193 {
9194
9195 ;
9196 return 0;
9197 }
9198 _ACEOF
9199 if ac_fn_c_try_link "$LINENO"
9200 then :
9201 lt_cv_cc_needs_belf=yes
9202 else case e in #(
9203 e) lt_cv_cc_needs_belf=no ;;
9204 esac
9205 fi
9206 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9207 conftest$ac_exeext conftest.$ac_ext
9208 ac_ext=c
9209 ac_cpp='$CPP $CPPFLAGS'
9210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9213 ;;
9214 esac
9215 fi
9216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9217 printf '%s\n' "$lt_cv_cc_needs_belf" >&6; }
9218 if test yes != "$lt_cv_cc_needs_belf"; then
9219 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9220 CFLAGS=$SAVE_CFLAGS
9221 fi
9222 ;;
9223 *-*solaris*)
9224 # Find out what ABI is being produced by ac_compile, and set linker
9225 # options accordingly.
9226 echo 'int i;' > conftest.$ac_ext
9227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9228 (eval $ac_compile) 2>&5
9229 ac_status=$?
9230 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9231 test $ac_status = 0; }; then
9232 case `$FILECMD conftest.o` in
9233 *64-bit*)
9234 case $lt_cv_prog_gnu_ld in
9235 yes*)
9236 case $host in
9237 i?86-*-solaris*|x86_64-*-solaris*)
9238 LD="${LD-ld} -m elf_x86_64"
9239 ;;
9240 sparc*-*-solaris*)
9241 LD="${LD-ld} -m elf64_sparc"
9242 ;;
9243 esac
9244 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9245 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9246 LD=${LD-ld}_sol2
9247 fi
9248 ;;
9249 *)
9250 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9251 LD="${LD-ld} -64"
9252 fi
9253 ;;
9254 esac
9255 ;;
9256 esac
9257 fi
9258 rm -rf conftest*
9259 ;;
9260 esac
9261
9262 need_locks=$enable_libtool_lock
9263
9264 if test -n "$ac_tool_prefix"; then
9265 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9266 set dummy ${ac_tool_prefix}mt; ac_word=$2
9267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9268 printf %s "checking for $ac_word... " >&6; }
9269 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9270 then :
9271 printf %s "(cached) " >&6
9272 else case e in #(
9273 e) if test -n "$MANIFEST_TOOL"; then
9274 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9275 else
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 for as_dir in $PATH
9278 do
9279 IFS=$as_save_IFS
9280 case $as_dir in #(((
9281 '') as_dir=./ ;;
9282 */) ;;
9283 *) as_dir=$as_dir/ ;;
9284 esac
9285 for ac_exec_ext in '' $ac_executable_extensions; do
9286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9287 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9288 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9289 break 2
9290 fi
9291 done
9292 done
9293 IFS=$as_save_IFS
9294
9295 fi ;;
9296 esac
9297 fi
9298 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9299 if test -n "$MANIFEST_TOOL"; then
9300 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9301 printf '%s\n' "$MANIFEST_TOOL" >&6; }
9302 else
9303 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304 printf '%s\n' "no" >&6; }
9305 fi
9306
9307
9308 fi
9309 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9310 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9311 # Extract the first word of "mt", so it can be a program name with args.
9312 set dummy mt; ac_word=$2
9313 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314 printf %s "checking for $ac_word... " >&6; }
9315 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9316 then :
9317 printf %s "(cached) " >&6
9318 else case e in #(
9319 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9320 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9321 else
9322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9323 for as_dir in $PATH
9324 do
9325 IFS=$as_save_IFS
9326 case $as_dir in #(((
9327 '') as_dir=./ ;;
9328 */) ;;
9329 *) as_dir=$as_dir/ ;;
9330 esac
9331 for ac_exec_ext in '' $ac_executable_extensions; do
9332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9333 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9334 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9335 break 2
9336 fi
9337 done
9338 done
9339 IFS=$as_save_IFS
9340
9341 fi ;;
9342 esac
9343 fi
9344 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9345 if test -n "$ac_ct_MANIFEST_TOOL"; then
9346 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9347 printf '%s\n' "$ac_ct_MANIFEST_TOOL" >&6; }
9348 else
9349 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350 printf '%s\n' "no" >&6; }
9351 fi
9352
9353 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9354 MANIFEST_TOOL=":"
9355 else
9356 case $cross_compiling:$ac_tool_warned in
9357 yes:)
9358 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9359 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9360 ac_tool_warned=yes ;;
9361 esac
9362 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9363 fi
9364 else
9365 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9366 fi
9367
9368 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9369 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9370 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9371 if test ${lt_cv_path_manifest_tool+y}
9372 then :
9373 printf %s "(cached) " >&6
9374 else case e in #(
9375 e) lt_cv_path_manifest_tool=no
9376 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9377 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9378 cat conftest.err >&5
9379 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9380 lt_cv_path_manifest_tool=yes
9381 fi
9382 rm -f conftest* ;;
9383 esac
9384 fi
9385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9386 printf '%s\n' "$lt_cv_path_manifest_tool" >&6; }
9387 if test yes != "$lt_cv_path_manifest_tool"; then
9388 MANIFEST_TOOL=:
9389 fi
9390
9391
9392
9393
9394
9395
9396 case $host_os in
9397 rhapsody* | darwin*)
9398 if test -n "$ac_tool_prefix"; then
9399 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9400 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9402 printf %s "checking for $ac_word... " >&6; }
9403 if test ${ac_cv_prog_DSYMUTIL+y}
9404 then :
9405 printf %s "(cached) " >&6
9406 else case e in #(
9407 e) if test -n "$DSYMUTIL"; then
9408 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9409 else
9410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411 for as_dir in $PATH
9412 do
9413 IFS=$as_save_IFS
9414 case $as_dir in #(((
9415 '') as_dir=./ ;;
9416 */) ;;
9417 *) as_dir=$as_dir/ ;;
9418 esac
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9421 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9422 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9423 break 2
9424 fi
9425 done
9426 done
9427 IFS=$as_save_IFS
9428
9429 fi ;;
9430 esac
9431 fi
9432 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9433 if test -n "$DSYMUTIL"; then
9434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9435 printf '%s\n' "$DSYMUTIL" >&6; }
9436 else
9437 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9438 printf '%s\n' "no" >&6; }
9439 fi
9440
9441
9442 fi
9443 if test -z "$ac_cv_prog_DSYMUTIL"; then
9444 ac_ct_DSYMUTIL=$DSYMUTIL
9445 # Extract the first word of "dsymutil", so it can be a program name with args.
9446 set dummy dsymutil; ac_word=$2
9447 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448 printf %s "checking for $ac_word... " >&6; }
9449 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9450 then :
9451 printf %s "(cached) " >&6
9452 else case e in #(
9453 e) if test -n "$ac_ct_DSYMUTIL"; then
9454 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9455 else
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457 for as_dir in $PATH
9458 do
9459 IFS=$as_save_IFS
9460 case $as_dir in #(((
9461 '') as_dir=./ ;;
9462 */) ;;
9463 *) as_dir=$as_dir/ ;;
9464 esac
9465 for ac_exec_ext in '' $ac_executable_extensions; do
9466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9467 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9468 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9469 break 2
9470 fi
9471 done
9472 done
9473 IFS=$as_save_IFS
9474
9475 fi ;;
9476 esac
9477 fi
9478 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9479 if test -n "$ac_ct_DSYMUTIL"; then
9480 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9481 printf '%s\n' "$ac_ct_DSYMUTIL" >&6; }
9482 else
9483 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 printf '%s\n' "no" >&6; }
9485 fi
9486
9487 if test "x$ac_ct_DSYMUTIL" = x; then
9488 DSYMUTIL=":"
9489 else
9490 case $cross_compiling:$ac_tool_warned in
9491 yes:)
9492 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9493 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9494 ac_tool_warned=yes ;;
9495 esac
9496 DSYMUTIL=$ac_ct_DSYMUTIL
9497 fi
9498 else
9499 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9500 fi
9501
9502 if test -n "$ac_tool_prefix"; then
9503 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9504 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9505 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9506 printf %s "checking for $ac_word... " >&6; }
9507 if test ${ac_cv_prog_NMEDIT+y}
9508 then :
9509 printf %s "(cached) " >&6
9510 else case e in #(
9511 e) if test -n "$NMEDIT"; then
9512 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9513 else
9514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515 for as_dir in $PATH
9516 do
9517 IFS=$as_save_IFS
9518 case $as_dir in #(((
9519 '') as_dir=./ ;;
9520 */) ;;
9521 *) as_dir=$as_dir/ ;;
9522 esac
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9525 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9526 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9527 break 2
9528 fi
9529 done
9530 done
9531 IFS=$as_save_IFS
9532
9533 fi ;;
9534 esac
9535 fi
9536 NMEDIT=$ac_cv_prog_NMEDIT
9537 if test -n "$NMEDIT"; then
9538 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9539 printf '%s\n' "$NMEDIT" >&6; }
9540 else
9541 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 printf '%s\n' "no" >&6; }
9543 fi
9544
9545
9546 fi
9547 if test -z "$ac_cv_prog_NMEDIT"; then
9548 ac_ct_NMEDIT=$NMEDIT
9549 # Extract the first word of "nmedit", so it can be a program name with args.
9550 set dummy nmedit; ac_word=$2
9551 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552 printf %s "checking for $ac_word... " >&6; }
9553 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9554 then :
9555 printf %s "(cached) " >&6
9556 else case e in #(
9557 e) if test -n "$ac_ct_NMEDIT"; then
9558 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9559 else
9560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561 for as_dir in $PATH
9562 do
9563 IFS=$as_save_IFS
9564 case $as_dir in #(((
9565 '') as_dir=./ ;;
9566 */) ;;
9567 *) as_dir=$as_dir/ ;;
9568 esac
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9571 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9572 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9573 break 2
9574 fi
9575 done
9576 done
9577 IFS=$as_save_IFS
9578
9579 fi ;;
9580 esac
9581 fi
9582 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9583 if test -n "$ac_ct_NMEDIT"; then
9584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9585 printf '%s\n' "$ac_ct_NMEDIT" >&6; }
9586 else
9587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 printf '%s\n' "no" >&6; }
9589 fi
9590
9591 if test "x$ac_ct_NMEDIT" = x; then
9592 NMEDIT=":"
9593 else
9594 case $cross_compiling:$ac_tool_warned in
9595 yes:)
9596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9597 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9598 ac_tool_warned=yes ;;
9599 esac
9600 NMEDIT=$ac_ct_NMEDIT
9601 fi
9602 else
9603 NMEDIT="$ac_cv_prog_NMEDIT"
9604 fi
9605
9606 if test -n "$ac_tool_prefix"; then
9607 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9608 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9609 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9610 printf %s "checking for $ac_word... " >&6; }
9611 if test ${ac_cv_prog_LIPO+y}
9612 then :
9613 printf %s "(cached) " >&6
9614 else case e in #(
9615 e) if test -n "$LIPO"; then
9616 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9617 else
9618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619 for as_dir in $PATH
9620 do
9621 IFS=$as_save_IFS
9622 case $as_dir in #(((
9623 '') as_dir=./ ;;
9624 */) ;;
9625 *) as_dir=$as_dir/ ;;
9626 esac
9627 for ac_exec_ext in '' $ac_executable_extensions; do
9628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9629 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9630 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9631 break 2
9632 fi
9633 done
9634 done
9635 IFS=$as_save_IFS
9636
9637 fi ;;
9638 esac
9639 fi
9640 LIPO=$ac_cv_prog_LIPO
9641 if test -n "$LIPO"; then
9642 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9643 printf '%s\n' "$LIPO" >&6; }
9644 else
9645 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646 printf '%s\n' "no" >&6; }
9647 fi
9648
9649
9650 fi
9651 if test -z "$ac_cv_prog_LIPO"; then
9652 ac_ct_LIPO=$LIPO
9653 # Extract the first word of "lipo", so it can be a program name with args.
9654 set dummy lipo; ac_word=$2
9655 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656 printf %s "checking for $ac_word... " >&6; }
9657 if test ${ac_cv_prog_ac_ct_LIPO+y}
9658 then :
9659 printf %s "(cached) " >&6
9660 else case e in #(
9661 e) if test -n "$ac_ct_LIPO"; then
9662 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9663 else
9664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665 for as_dir in $PATH
9666 do
9667 IFS=$as_save_IFS
9668 case $as_dir in #(((
9669 '') as_dir=./ ;;
9670 */) ;;
9671 *) as_dir=$as_dir/ ;;
9672 esac
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9675 ac_cv_prog_ac_ct_LIPO="lipo"
9676 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9677 break 2
9678 fi
9679 done
9680 done
9681 IFS=$as_save_IFS
9682
9683 fi ;;
9684 esac
9685 fi
9686 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9687 if test -n "$ac_ct_LIPO"; then
9688 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9689 printf '%s\n' "$ac_ct_LIPO" >&6; }
9690 else
9691 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 printf '%s\n' "no" >&6; }
9693 fi
9694
9695 if test "x$ac_ct_LIPO" = x; then
9696 LIPO=":"
9697 else
9698 case $cross_compiling:$ac_tool_warned in
9699 yes:)
9700 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9701 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9702 ac_tool_warned=yes ;;
9703 esac
9704 LIPO=$ac_ct_LIPO
9705 fi
9706 else
9707 LIPO="$ac_cv_prog_LIPO"
9708 fi
9709
9710 if test -n "$ac_tool_prefix"; then
9711 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9712 set dummy ${ac_tool_prefix}otool; ac_word=$2
9713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714 printf %s "checking for $ac_word... " >&6; }
9715 if test ${ac_cv_prog_OTOOL+y}
9716 then :
9717 printf %s "(cached) " >&6
9718 else case e in #(
9719 e) if test -n "$OTOOL"; then
9720 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9721 else
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH
9724 do
9725 IFS=$as_save_IFS
9726 case $as_dir in #(((
9727 '') as_dir=./ ;;
9728 */) ;;
9729 *) as_dir=$as_dir/ ;;
9730 esac
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9733 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9734 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9735 break 2
9736 fi
9737 done
9738 done
9739 IFS=$as_save_IFS
9740
9741 fi ;;
9742 esac
9743 fi
9744 OTOOL=$ac_cv_prog_OTOOL
9745 if test -n "$OTOOL"; then
9746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9747 printf '%s\n' "$OTOOL" >&6; }
9748 else
9749 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 printf '%s\n' "no" >&6; }
9751 fi
9752
9753
9754 fi
9755 if test -z "$ac_cv_prog_OTOOL"; then
9756 ac_ct_OTOOL=$OTOOL
9757 # Extract the first word of "otool", so it can be a program name with args.
9758 set dummy otool; ac_word=$2
9759 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760 printf %s "checking for $ac_word... " >&6; }
9761 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9762 then :
9763 printf %s "(cached) " >&6
9764 else case e in #(
9765 e) if test -n "$ac_ct_OTOOL"; then
9766 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9767 else
9768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 for as_dir in $PATH
9770 do
9771 IFS=$as_save_IFS
9772 case $as_dir in #(((
9773 '') as_dir=./ ;;
9774 */) ;;
9775 *) as_dir=$as_dir/ ;;
9776 esac
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9779 ac_cv_prog_ac_ct_OTOOL="otool"
9780 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9781 break 2
9782 fi
9783 done
9784 done
9785 IFS=$as_save_IFS
9786
9787 fi ;;
9788 esac
9789 fi
9790 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9791 if test -n "$ac_ct_OTOOL"; then
9792 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9793 printf '%s\n' "$ac_ct_OTOOL" >&6; }
9794 else
9795 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 printf '%s\n' "no" >&6; }
9797 fi
9798
9799 if test "x$ac_ct_OTOOL" = x; then
9800 OTOOL=":"
9801 else
9802 case $cross_compiling:$ac_tool_warned in
9803 yes:)
9804 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9805 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9806 ac_tool_warned=yes ;;
9807 esac
9808 OTOOL=$ac_ct_OTOOL
9809 fi
9810 else
9811 OTOOL="$ac_cv_prog_OTOOL"
9812 fi
9813
9814 if test -n "$ac_tool_prefix"; then
9815 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9816 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9817 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818 printf %s "checking for $ac_word... " >&6; }
9819 if test ${ac_cv_prog_OTOOL64+y}
9820 then :
9821 printf %s "(cached) " >&6
9822 else case e in #(
9823 e) if test -n "$OTOOL64"; then
9824 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9825 else
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH
9828 do
9829 IFS=$as_save_IFS
9830 case $as_dir in #(((
9831 '') as_dir=./ ;;
9832 */) ;;
9833 *) as_dir=$as_dir/ ;;
9834 esac
9835 for ac_exec_ext in '' $ac_executable_extensions; do
9836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9837 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9838 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9839 break 2
9840 fi
9841 done
9842 done
9843 IFS=$as_save_IFS
9844
9845 fi ;;
9846 esac
9847 fi
9848 OTOOL64=$ac_cv_prog_OTOOL64
9849 if test -n "$OTOOL64"; then
9850 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9851 printf '%s\n' "$OTOOL64" >&6; }
9852 else
9853 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854 printf '%s\n' "no" >&6; }
9855 fi
9856
9857
9858 fi
9859 if test -z "$ac_cv_prog_OTOOL64"; then
9860 ac_ct_OTOOL64=$OTOOL64
9861 # Extract the first word of "otool64", so it can be a program name with args.
9862 set dummy otool64; ac_word=$2
9863 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864 printf %s "checking for $ac_word... " >&6; }
9865 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9866 then :
9867 printf %s "(cached) " >&6
9868 else case e in #(
9869 e) if test -n "$ac_ct_OTOOL64"; then
9870 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9871 else
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 for as_dir in $PATH
9874 do
9875 IFS=$as_save_IFS
9876 case $as_dir in #(((
9877 '') as_dir=./ ;;
9878 */) ;;
9879 *) as_dir=$as_dir/ ;;
9880 esac
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9883 ac_cv_prog_ac_ct_OTOOL64="otool64"
9884 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9885 break 2
9886 fi
9887 done
9888 done
9889 IFS=$as_save_IFS
9890
9891 fi ;;
9892 esac
9893 fi
9894 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9895 if test -n "$ac_ct_OTOOL64"; then
9896 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9897 printf '%s\n' "$ac_ct_OTOOL64" >&6; }
9898 else
9899 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 printf '%s\n' "no" >&6; }
9901 fi
9902
9903 if test "x$ac_ct_OTOOL64" = x; then
9904 OTOOL64=":"
9905 else
9906 case $cross_compiling:$ac_tool_warned in
9907 yes:)
9908 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9909 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9910 ac_tool_warned=yes ;;
9911 esac
9912 OTOOL64=$ac_ct_OTOOL64
9913 fi
9914 else
9915 OTOOL64="$ac_cv_prog_OTOOL64"
9916 fi
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9945 printf %s "checking for -single_module linker flag... " >&6; }
9946 if test ${lt_cv_apple_cc_single_mod+y}
9947 then :
9948 printf %s "(cached) " >&6
9949 else case e in #(
9950 e) lt_cv_apple_cc_single_mod=no
9951 if test -z "$LT_MULTI_MODULE"; then
9952 # By default we will add the -single_module flag. You can override
9953 # by either setting the environment variable LT_MULTI_MODULE
9954 # non-empty at configure time, or by adding -multi_module to the
9955 # link flags.
9956 rm -rf libconftest.dylib*
9957 echo "int foo(void){return 1;}" > conftest.c
9958 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9959 -dynamiclib -Wl,-single_module conftest.c" >&5
9960 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9961 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9962 _lt_result=$?
9963 # If there is a non-empty error log, and "single_module"
9964 # appears in it, assume the flag caused a linker warning
9965 if test -s conftest.err && $GREP single_module conftest.err; then
9966 cat conftest.err >&5
9967 # Otherwise, if the output was created with a 0 exit code from
9968 # the compiler, it worked.
9969 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9970 lt_cv_apple_cc_single_mod=yes
9971 else
9972 cat conftest.err >&5
9973 fi
9974 rm -rf libconftest.dylib*
9975 rm -f conftest.*
9976 fi ;;
9977 esac
9978 fi
9979 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9980 printf '%s\n' "$lt_cv_apple_cc_single_mod" >&6; }
9981
9982 # Feature test to disable chained fixups since it is not
9983 # compatible with '-undefined dynamic_lookup'
9984 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9985 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9986 if test ${lt_cv_support_no_fixup_chains+y}
9987 then :
9988 printf %s "(cached) " >&6
9989 else case e in #(
9990 e) save_LDFLAGS=$LDFLAGS
9991 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9994
9995 int
9996 main (void)
9997 {
9998
9999 ;
10000 return 0;
10001 }
10002 _ACEOF
10003 if ac_fn_c_try_link "$LINENO"
10004 then :
10005 lt_cv_support_no_fixup_chains=yes
10006 else case e in #(
10007 e) lt_cv_support_no_fixup_chains=no
10008 ;;
10009 esac
10010 fi
10011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10012 conftest$ac_exeext conftest.$ac_ext
10013 LDFLAGS=$save_LDFLAGS
10014
10015 ;;
10016 esac
10017 fi
10018 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
10019 printf '%s\n' "$lt_cv_support_no_fixup_chains" >&6; }
10020
10021 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10022 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10023 if test ${lt_cv_ld_exported_symbols_list+y}
10024 then :
10025 printf %s "(cached) " >&6
10026 else case e in #(
10027 e) lt_cv_ld_exported_symbols_list=no
10028 save_LDFLAGS=$LDFLAGS
10029 echo "_main" > conftest.sym
10030 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033
10034 int
10035 main (void)
10036 {
10037
10038 ;
10039 return 0;
10040 }
10041 _ACEOF
10042 if ac_fn_c_try_link "$LINENO"
10043 then :
10044 lt_cv_ld_exported_symbols_list=yes
10045 else case e in #(
10046 e) lt_cv_ld_exported_symbols_list=no ;;
10047 esac
10048 fi
10049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10050 conftest$ac_exeext conftest.$ac_ext
10051 LDFLAGS=$save_LDFLAGS
10052 ;;
10053 esac
10054 fi
10055 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10056 printf '%s\n' "$lt_cv_ld_exported_symbols_list" >&6; }
10057
10058 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10059 printf %s "checking for -force_load linker flag... " >&6; }
10060 if test ${lt_cv_ld_force_load+y}
10061 then :
10062 printf %s "(cached) " >&6
10063 else case e in #(
10064 e) lt_cv_ld_force_load=no
10065 cat > conftest.c << _LT_EOF
10066 int forced_loaded() { return 2;}
10067 _LT_EOF
10068 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10069 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10070 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10071 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10072 echo "$RANLIB libconftest.a" >&5
10073 $RANLIB libconftest.a 2>&5
10074 cat > conftest.c << _LT_EOF
10075 int main(void) { return 0;}
10076 _LT_EOF
10077 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10078 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10079 _lt_result=$?
10080 if test -s conftest.err && $GREP force_load conftest.err; then
10081 cat conftest.err >&5
10082 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10083 lt_cv_ld_force_load=yes
10084 else
10085 cat conftest.err >&5
10086 fi
10087 rm -f conftest.err libconftest.a conftest conftest.c
10088 rm -rf conftest.dSYM
10089 ;;
10090 esac
10091 fi
10092 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10093 printf '%s\n' "$lt_cv_ld_force_load" >&6; }
10094 case $host_os in
10095 rhapsody* | darwin1.[012])
10096 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10097 darwin1.*)
10098 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10099 darwin*)
10100 case $MACOSX_DEPLOYMENT_TARGET,$host in
10101 10.[012],*|,*powerpc*-darwin[5-8]*)
10102 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10103 *)
10104 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10105 if test yes = "$lt_cv_support_no_fixup_chains"; then
10106 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10107 fi
10108 ;;
10109 esac
10110 ;;
10111 esac
10112 if test yes = "$lt_cv_apple_cc_single_mod"; then
10113 _lt_dar_single_mod='$single_module'
10114 fi
10115 _lt_dar_needs_single_mod=no
10116 case $host_os in
10117 rhapsody* | darwin1.*)
10118 _lt_dar_needs_single_mod=yes ;;
10119 darwin*)
10120 # When targeting Mac OS X 10.4 (darwin 8) or later,
10121 # -single_module is the default and -multi_module is unsupported.
10122 # The toolchain on macOS 10.14 (darwin 18) and later cannot
10123 # target any OS version that needs -single_module.
10124 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10125 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10126 _lt_dar_needs_single_mod=yes ;;
10127 esac
10128 ;;
10129 esac
10130 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10131 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10132 else
10133 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10134 fi
10135 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10136 _lt_dsymutil='~$DSYMUTIL $lib || :'
10137 else
10138 _lt_dsymutil=
10139 fi
10140 ;;
10141 esac
10142
10143 # func_munge_path_list VARIABLE PATH
10144 # -----------------------------------
10145 # VARIABLE is name of variable containing _space_ separated list of
10146 # directories to be munged by the contents of PATH, which is string
10147 # having a format:
10148 # "DIR[:DIR]:"
10149 # string "DIR[ DIR]" will be prepended to VARIABLE
10150 # ":DIR[:DIR]"
10151 # string "DIR[ DIR]" will be appended to VARIABLE
10152 # "DIRP[:DIRP]::[DIRA:]DIRA"
10153 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10154 # "DIRA[ DIRA]" will be appended to VARIABLE
10155 # "DIR[:DIR]"
10156 # VARIABLE will be replaced by "DIR[ DIR]"
10157 func_munge_path_list ()
10158 {
10159 case x$2 in
10160 x)
10161 ;;
10162 *:)
10163 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10164 ;;
10165 x:*)
10166 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10167 ;;
10168 *::*)
10169 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10170 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10171 ;;
10172 *)
10173 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10174 ;;
10175 esac
10176 }
10177
10178 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10179 "
10180 if test "x$ac_cv_header_dlfcn_h" = xyes
10181 then :
10182 printf '%s\n' "#define HAVE_DLFCN_H 1" >>confdefs.h
10183
10184 fi
10185
10186
10187
10188
10189
10190 # Set options
10191 enable_dlopen=yes
10192 enable_win32_dll=yes
10193
10194 case $host in
10195 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
10196 if test -n "$ac_tool_prefix"; then
10197 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10198 set dummy ${ac_tool_prefix}as; ac_word=$2
10199 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200 printf %s "checking for $ac_word... " >&6; }
10201 if test ${ac_cv_prog_AS+y}
10202 then :
10203 printf %s "(cached) " >&6
10204 else case e in #(
10205 e) if test -n "$AS"; then
10206 ac_cv_prog_AS="$AS" # Let the user override the test.
10207 else
10208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $PATH
10210 do
10211 IFS=$as_save_IFS
10212 case $as_dir in #(((
10213 '') as_dir=./ ;;
10214 */) ;;
10215 *) as_dir=$as_dir/ ;;
10216 esac
10217 for ac_exec_ext in '' $ac_executable_extensions; do
10218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10219 ac_cv_prog_AS="${ac_tool_prefix}as"
10220 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10221 break 2
10222 fi
10223 done
10224 done
10225 IFS=$as_save_IFS
10226
10227 fi ;;
10228 esac
10229 fi
10230 AS=$ac_cv_prog_AS
10231 if test -n "$AS"; then
10232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10233 printf '%s\n' "$AS" >&6; }
10234 else
10235 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236 printf '%s\n' "no" >&6; }
10237 fi
10238
10239
10240 fi
10241 if test -z "$ac_cv_prog_AS"; then
10242 ac_ct_AS=$AS
10243 # Extract the first word of "as", so it can be a program name with args.
10244 set dummy as; ac_word=$2
10245 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10246 printf %s "checking for $ac_word... " >&6; }
10247 if test ${ac_cv_prog_ac_ct_AS+y}
10248 then :
10249 printf %s "(cached) " >&6
10250 else case e in #(
10251 e) if test -n "$ac_ct_AS"; then
10252 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10253 else
10254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255 for as_dir in $PATH
10256 do
10257 IFS=$as_save_IFS
10258 case $as_dir in #(((
10259 '') as_dir=./ ;;
10260 */) ;;
10261 *) as_dir=$as_dir/ ;;
10262 esac
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10265 ac_cv_prog_ac_ct_AS="as"
10266 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10267 break 2
10268 fi
10269 done
10270 done
10271 IFS=$as_save_IFS
10272
10273 fi ;;
10274 esac
10275 fi
10276 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10277 if test -n "$ac_ct_AS"; then
10278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10279 printf '%s\n' "$ac_ct_AS" >&6; }
10280 else
10281 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 printf '%s\n' "no" >&6; }
10283 fi
10284
10285 if test "x$ac_ct_AS" = x; then
10286 AS="false"
10287 else
10288 case $cross_compiling:$ac_tool_warned in
10289 yes:)
10290 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10291 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10292 ac_tool_warned=yes ;;
10293 esac
10294 AS=$ac_ct_AS
10295 fi
10296 else
10297 AS="$ac_cv_prog_AS"
10298 fi
10299
10300 if test -n "$ac_tool_prefix"; then
10301 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10302 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10303 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304 printf %s "checking for $ac_word... " >&6; }
10305 if test ${ac_cv_prog_DLLTOOL+y}
10306 then :
10307 printf %s "(cached) " >&6
10308 else case e in #(
10309 e) if test -n "$DLLTOOL"; then
10310 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10311 else
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10314 do
10315 IFS=$as_save_IFS
10316 case $as_dir in #(((
10317 '') as_dir=./ ;;
10318 */) ;;
10319 *) as_dir=$as_dir/ ;;
10320 esac
10321 for ac_exec_ext in '' $ac_executable_extensions; do
10322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10323 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10324 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10325 break 2
10326 fi
10327 done
10328 done
10329 IFS=$as_save_IFS
10330
10331 fi ;;
10332 esac
10333 fi
10334 DLLTOOL=$ac_cv_prog_DLLTOOL
10335 if test -n "$DLLTOOL"; then
10336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10337 printf '%s\n' "$DLLTOOL" >&6; }
10338 else
10339 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 printf '%s\n' "no" >&6; }
10341 fi
10342
10343
10344 fi
10345 if test -z "$ac_cv_prog_DLLTOOL"; then
10346 ac_ct_DLLTOOL=$DLLTOOL
10347 # Extract the first word of "dlltool", so it can be a program name with args.
10348 set dummy dlltool; ac_word=$2
10349 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350 printf %s "checking for $ac_word... " >&6; }
10351 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10352 then :
10353 printf %s "(cached) " >&6
10354 else case e in #(
10355 e) if test -n "$ac_ct_DLLTOOL"; then
10356 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10357 else
10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10360 do
10361 IFS=$as_save_IFS
10362 case $as_dir in #(((
10363 '') as_dir=./ ;;
10364 */) ;;
10365 *) as_dir=$as_dir/ ;;
10366 esac
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10369 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10370 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10371 break 2
10372 fi
10373 done
10374 done
10375 IFS=$as_save_IFS
10376
10377 fi ;;
10378 esac
10379 fi
10380 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10381 if test -n "$ac_ct_DLLTOOL"; then
10382 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10383 printf '%s\n' "$ac_ct_DLLTOOL" >&6; }
10384 else
10385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 printf '%s\n' "no" >&6; }
10387 fi
10388
10389 if test "x$ac_ct_DLLTOOL" = x; then
10390 DLLTOOL="false"
10391 else
10392 case $cross_compiling:$ac_tool_warned in
10393 yes:)
10394 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10395 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10396 ac_tool_warned=yes ;;
10397 esac
10398 DLLTOOL=$ac_ct_DLLTOOL
10399 fi
10400 else
10401 DLLTOOL="$ac_cv_prog_DLLTOOL"
10402 fi
10403
10404 if test -n "$ac_tool_prefix"; then
10405 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10406 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10407 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10408 printf %s "checking for $ac_word... " >&6; }
10409 if test ${ac_cv_prog_OBJDUMP+y}
10410 then :
10411 printf %s "(cached) " >&6
10412 else case e in #(
10413 e) if test -n "$OBJDUMP"; then
10414 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10415 else
10416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417 for as_dir in $PATH
10418 do
10419 IFS=$as_save_IFS
10420 case $as_dir in #(((
10421 '') as_dir=./ ;;
10422 */) ;;
10423 *) as_dir=$as_dir/ ;;
10424 esac
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10427 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10428 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10429 break 2
10430 fi
10431 done
10432 done
10433 IFS=$as_save_IFS
10434
10435 fi ;;
10436 esac
10437 fi
10438 OBJDUMP=$ac_cv_prog_OBJDUMP
10439 if test -n "$OBJDUMP"; then
10440 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10441 printf '%s\n' "$OBJDUMP" >&6; }
10442 else
10443 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444 printf '%s\n' "no" >&6; }
10445 fi
10446
10447
10448 fi
10449 if test -z "$ac_cv_prog_OBJDUMP"; then
10450 ac_ct_OBJDUMP=$OBJDUMP
10451 # Extract the first word of "objdump", so it can be a program name with args.
10452 set dummy objdump; ac_word=$2
10453 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10454 printf %s "checking for $ac_word... " >&6; }
10455 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10456 then :
10457 printf %s "(cached) " >&6
10458 else case e in #(
10459 e) if test -n "$ac_ct_OBJDUMP"; then
10460 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10461 else
10462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463 for as_dir in $PATH
10464 do
10465 IFS=$as_save_IFS
10466 case $as_dir in #(((
10467 '') as_dir=./ ;;
10468 */) ;;
10469 *) as_dir=$as_dir/ ;;
10470 esac
10471 for ac_exec_ext in '' $ac_executable_extensions; do
10472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10473 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10474 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10475 break 2
10476 fi
10477 done
10478 done
10479 IFS=$as_save_IFS
10480
10481 fi ;;
10482 esac
10483 fi
10484 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10485 if test -n "$ac_ct_OBJDUMP"; then
10486 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10487 printf '%s\n' "$ac_ct_OBJDUMP" >&6; }
10488 else
10489 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 printf '%s\n' "no" >&6; }
10491 fi
10492
10493 if test "x$ac_ct_OBJDUMP" = x; then
10494 OBJDUMP="false"
10495 else
10496 case $cross_compiling:$ac_tool_warned in
10497 yes:)
10498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10499 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10500 ac_tool_warned=yes ;;
10501 esac
10502 OBJDUMP=$ac_ct_OBJDUMP
10503 fi
10504 else
10505 OBJDUMP="$ac_cv_prog_OBJDUMP"
10506 fi
10507
10508 ;;
10509 esac
10510
10511 test -z "$AS" && AS=as
10512
10513
10514
10515
10516
10517 test -z "$DLLTOOL" && DLLTOOL=dlltool
10518
10519
10520
10521
10522
10523 test -z "$OBJDUMP" && OBJDUMP=objdump
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535 # Check whether --enable-pic was given.
10536 if test ${enable_pic+y}
10537 then :
10538 enableval=$enable_pic; lt_p=${PACKAGE-default}
10539 case $enableval in
10540 yes|no) pic_mode=$enableval ;;
10541 *)
10542 pic_mode=default
10543 # Look at the argument we got. We use all the common list separators.
10544 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10545 for lt_pkg in $enableval; do
10546 IFS=$lt_save_ifs
10547 if test "X$lt_pkg" = "X$lt_p"; then
10548 pic_mode=yes
10549 fi
10550 done
10551 IFS=$lt_save_ifs
10552 ;;
10553 esac
10554 else case e in #(
10555 e) # Check whether --with-pic was given.
10556 if test ${with_pic+y}
10557 then :
10558 withval=$with_pic; lt_p=${PACKAGE-default}
10559 case $withval in
10560 yes|no) pic_mode=$withval ;;
10561 *)
10562 pic_mode=default
10563 # Look at the argument we got. We use all the common list separators.
10564 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10565 for lt_pkg in $withval; do
10566 IFS=$lt_save_ifs
10567 if test "X$lt_pkg" = "X$lt_p"; then
10568 pic_mode=yes
10569 fi
10570 done
10571 IFS=$lt_save_ifs
10572 ;;
10573 esac
10574 else case e in #(
10575 e) pic_mode=default ;;
10576 esac
10577 fi
10578
10579 ;;
10580 esac
10581 fi
10582
10583
10584
10585
10586
10587
10588
10589
10590 # Check whether --enable-fast-install was given.
10591 if test ${enable_fast_install+y}
10592 then :
10593 enableval=$enable_fast_install; p=${PACKAGE-default}
10594 case $enableval in
10595 yes) enable_fast_install=yes ;;
10596 no) enable_fast_install=no ;;
10597 *)
10598 enable_fast_install=no
10599 # Look at the argument we got. We use all the common list separators.
10600 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10601 for pkg in $enableval; do
10602 IFS=$lt_save_ifs
10603 if test "X$pkg" = "X$p"; then
10604 enable_fast_install=yes
10605 fi
10606 done
10607 IFS=$lt_save_ifs
10608 ;;
10609 esac
10610 else case e in #(
10611 e) enable_fast_install=yes ;;
10612 esac
10613 fi
10614
10615
10616
10617
10618
10619
10620
10621
10622 shared_archive_member_spec=
10623 case $host,$enable_shared in
10624 power*-*-aix[5-9]*,yes)
10625 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10626 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10627 # Check whether --enable-aix-soname was given.
10628 if test ${enable_aix_soname+y}
10629 then :
10630 enableval=$enable_aix_soname; case $enableval in
10631 aix|svr4|both)
10632 ;;
10633 *)
10634 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10635 ;;
10636 esac
10637 lt_cv_with_aix_soname=$enable_aix_soname
10638 else case e in #(
10639 e) # Check whether --with-aix-soname was given.
10640 if test ${with_aix_soname+y}
10641 then :
10642 withval=$with_aix_soname; case $withval in
10643 aix|svr4|both)
10644 ;;
10645 *)
10646 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10647 ;;
10648 esac
10649 lt_cv_with_aix_soname=$with_aix_soname
10650 else case e in #(
10651 e) if test ${lt_cv_with_aix_soname+y}
10652 then :
10653 printf %s "(cached) " >&6
10654 else case e in #(
10655 e) lt_cv_with_aix_soname=aix ;;
10656 esac
10657 fi
10658 ;;
10659 esac
10660 fi
10661
10662 enable_aix_soname=$lt_cv_with_aix_soname ;;
10663 esac
10664 fi
10665
10666 with_aix_soname=$enable_aix_soname
10667 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10668 printf '%s\n' "$with_aix_soname" >&6; }
10669 if test aix != "$with_aix_soname"; then
10670 # For the AIX way of multilib, we name the shared archive member
10671 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10672 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10673 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10674 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10675 if test 64 = "${OBJECT_MODE-32}"; then
10676 shared_archive_member_spec=shr_64
10677 else
10678 shared_archive_member_spec=shr
10679 fi
10680 fi
10681 ;;
10682 *)
10683 with_aix_soname=aix
10684 ;;
10685 esac
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696 # This can be used to rebuild libtool when needed
10697 LIBTOOL_DEPS=$ltmain
10698
10699 # Always use our own libtool.
10700 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731 test -z "$LN_S" && LN_S="ln -s"
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746 if test -n "${ZSH_VERSION+set}"; then
10747 setopt NO_GLOB_SUBST
10748 fi
10749
10750 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10751 printf %s "checking for objdir... " >&6; }
10752 if test ${lt_cv_objdir+y}
10753 then :
10754 printf %s "(cached) " >&6
10755 else case e in #(
10756 e) rm -f .libs 2>/dev/null
10757 mkdir .libs 2>/dev/null
10758 if test -d .libs; then
10759 lt_cv_objdir=.libs
10760 else
10761 # MS-DOS does not allow filenames that begin with a dot.
10762 lt_cv_objdir=_libs
10763 fi
10764 rmdir .libs 2>/dev/null ;;
10765 esac
10766 fi
10767 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10768 printf '%s\n' "$lt_cv_objdir" >&6; }
10769 objdir=$lt_cv_objdir
10770
10771
10772
10773
10774
10775 printf '%s\n' "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10776
10777
10778
10779
10780 case $host_os in
10781 aix3*)
10782 # AIX sometimes has problems with the GCC collect2 program. For some
10783 # reason, if we set the COLLECT_NAMES environment variable, the problems
10784 # vanish in a puff of smoke.
10785 if test set != "${COLLECT_NAMES+set}"; then
10786 COLLECT_NAMES=
10787 export COLLECT_NAMES
10788 fi
10789 ;;
10790 esac
10791
10792 # Global variables:
10793 ofile=libtool
10794 can_build_shared=yes
10795
10796 # All known linkers require a '.a' archive for static linking (except MSVC and
10797 # ICC, which need '.lib').
10798 libext=a
10799
10800 with_gnu_ld=$lt_cv_prog_gnu_ld
10801
10802 old_CC=$CC
10803 old_CFLAGS=$CFLAGS
10804
10805 # Set sane defaults for various variables
10806 test -z "$CC" && CC=cc
10807 test -z "$LTCC" && LTCC=$CC
10808 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10809 test -z "$LD" && LD=ld
10810 test -z "$ac_objext" && ac_objext=o
10811
10812 func_cc_basename $compiler
10813 cc_basename=$func_cc_basename_result
10814
10815
10816 # Only perform the check for file, if the check method requires it
10817 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10818 case $deplibs_check_method in
10819 file_magic*)
10820 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10821 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10822 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10823 if test ${lt_cv_path_MAGIC_CMD+y}
10824 then :
10825 printf %s "(cached) " >&6
10826 else case e in #(
10827 e) case $MAGIC_CMD in
10828 [\\/*] | ?:[\\/]*)
10829 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10830 ;;
10831 *)
10832 lt_save_MAGIC_CMD=$MAGIC_CMD
10833 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10834 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10835 for ac_dir in $ac_dummy; do
10836 IFS=$lt_save_ifs
10837 test -z "$ac_dir" && ac_dir=.
10838 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10839 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10840 if test -n "$file_magic_test_file"; then
10841 case $deplibs_check_method in
10842 "file_magic "*)
10843 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10844 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10845 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10846 $EGREP "$file_magic_regex" > /dev/null; then
10847 :
10848 else
10849 cat <<_LT_EOF 1>&2
10850
10851 *** Warning: the command libtool uses to detect shared libraries,
10852 *** $file_magic_cmd, produces output that libtool cannot recognize.
10853 *** The result is that libtool may fail to recognize shared libraries
10854 *** as such. This will affect the creation of libtool libraries that
10855 *** depend on shared libraries, but programs linked with such libtool
10856 *** libraries will work regardless of this problem. Nevertheless, you
10857 *** may want to report the problem to your system manager and/or to
10858 *** [email protected]
10859
10860 _LT_EOF
10861 fi ;;
10862 esac
10863 fi
10864 break
10865 fi
10866 done
10867 IFS=$lt_save_ifs
10868 MAGIC_CMD=$lt_save_MAGIC_CMD
10869 ;;
10870 esac ;;
10871 esac
10872 fi
10873
10874 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10875 if test -n "$MAGIC_CMD"; then
10876 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10877 printf '%s\n' "$MAGIC_CMD" >&6; }
10878 else
10879 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10880 printf '%s\n' "no" >&6; }
10881 fi
10882
10883
10884
10885
10886
10887 if test -z "$lt_cv_path_MAGIC_CMD"; then
10888 if test -n "$ac_tool_prefix"; then
10889 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10890 printf %s "checking for file... " >&6; }
10891 if test ${lt_cv_path_MAGIC_CMD+y}
10892 then :
10893 printf %s "(cached) " >&6
10894 else case e in #(
10895 e) case $MAGIC_CMD in
10896 [\\/*] | ?:[\\/]*)
10897 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10898 ;;
10899 *)
10900 lt_save_MAGIC_CMD=$MAGIC_CMD
10901 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10902 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10903 for ac_dir in $ac_dummy; do
10904 IFS=$lt_save_ifs
10905 test -z "$ac_dir" && ac_dir=.
10906 if test -f "$ac_dir/file"; then
10907 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10908 if test -n "$file_magic_test_file"; then
10909 case $deplibs_check_method in
10910 "file_magic "*)
10911 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10912 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10913 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10914 $EGREP "$file_magic_regex" > /dev/null; then
10915 :
10916 else
10917 cat <<_LT_EOF 1>&2
10918
10919 *** Warning: the command libtool uses to detect shared libraries,
10920 *** $file_magic_cmd, produces output that libtool cannot recognize.
10921 *** The result is that libtool may fail to recognize shared libraries
10922 *** as such. This will affect the creation of libtool libraries that
10923 *** depend on shared libraries, but programs linked with such libtool
10924 *** libraries will work regardless of this problem. Nevertheless, you
10925 *** may want to report the problem to your system manager and/or to
10926 *** [email protected]
10927
10928 _LT_EOF
10929 fi ;;
10930 esac
10931 fi
10932 break
10933 fi
10934 done
10935 IFS=$lt_save_ifs
10936 MAGIC_CMD=$lt_save_MAGIC_CMD
10937 ;;
10938 esac ;;
10939 esac
10940 fi
10941
10942 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10943 if test -n "$MAGIC_CMD"; then
10944 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10945 printf '%s\n' "$MAGIC_CMD" >&6; }
10946 else
10947 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948 printf '%s\n' "no" >&6; }
10949 fi
10950
10951
10952 else
10953 MAGIC_CMD=:
10954 fi
10955 fi
10956
10957 fi
10958 ;;
10959 esac
10960
10961 # Use C for the default configuration in the libtool script
10962
10963 lt_save_CC=$CC
10964 ac_ext=c
10965 ac_cpp='$CPP $CPPFLAGS'
10966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10969
10970
10971 # Source file extension for C test sources.
10972 ac_ext=c
10973
10974 # Object file extension for compiled C test sources.
10975 objext=o
10976 objext=$objext
10977
10978 # Code to be used in simple compile tests
10979 lt_simple_compile_test_code="int some_variable = 0;"
10980
10981 # Code to be used in simple link tests
10982 lt_simple_link_test_code='int main(void){return(0);}'
10983
10984
10985
10986
10987
10988
10989
10990 # If no C compiler was specified, use CC.
10991 LTCC=${LTCC-"$CC"}
10992
10993 # If no C compiler flags were specified, use CFLAGS.
10994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10995
10996 # Allow CC to be a program name with arguments.
10997 compiler=$CC
10998
10999 # Save the default compiler, since it gets overwritten when the other
11000 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11001 compiler_DEFAULT=$CC
11002
11003 # save warnings/boilerplate of simple test code
11004 ac_outfile=conftest.$ac_objext
11005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11007 _lt_compiler_boilerplate=`cat conftest.err`
11008 $RM conftest*
11009
11010 ac_outfile=conftest.$ac_objext
11011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11013 _lt_linker_boilerplate=`cat conftest.err`
11014 $RM -r conftest*
11015
11016
11017 ## CAVEAT EMPTOR:
11018 ## There is no encapsulation within the following macros, do not change
11019 ## the running order or otherwise move them around unless you know exactly
11020 ## what you are doing...
11021 if test -n "$compiler"; then
11022
11023 lt_prog_compiler_no_builtin_flag=
11024
11025 if test yes = "$GCC"; then
11026 case $cc_basename in
11027 nvcc*)
11028 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11029 *)
11030 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11031 esac
11032
11033 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11034 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11035 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11036 then :
11037 printf %s "(cached) " >&6
11038 else case e in #(
11039 e) lt_cv_prog_compiler_rtti_exceptions=no
11040 ac_outfile=conftest.$ac_objext
11041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11042 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11043 # Insert the option either (1) after the last *FLAGS variable, or
11044 # (2) before a word containing "conftest.", or (3) at the end.
11045 # Note that $ac_compile itself does not contain backslashes and begins
11046 # with a dollar sign (not a hyphen), so the echo should work correctly.
11047 # The option is referenced via a variable to avoid confusing sed.
11048 lt_compile=`echo "$ac_compile" | $SED \
11049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11051 -e 's:$: $lt_compiler_flag:'`
11052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11053 (eval "$lt_compile" 2>conftest.err)
11054 ac_status=$?
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 if (exit $ac_status) && test -s "$ac_outfile"; then
11058 # The compiler can only warn and ignore the option if not recognized
11059 # So say no if there are warnings other than the usual output.
11060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11063 lt_cv_prog_compiler_rtti_exceptions=yes
11064 fi
11065 fi
11066 $RM conftest*
11067 ;;
11068 esac
11069 fi
11070 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11071 printf '%s\n' "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11072
11073 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11074 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11075 else
11076 :
11077 fi
11078
11079 fi
11080
11081
11082
11083
11084
11085
11086 lt_prog_compiler_wl=
11087 lt_prog_compiler_pic=
11088 lt_prog_compiler_static=
11089
11090
11091 if test yes = "$GCC"; then
11092 lt_prog_compiler_wl='-Wl,'
11093 lt_prog_compiler_static='-static'
11094
11095 case $host_os in
11096 aix*)
11097 # All AIX code is PIC.
11098 if test ia64 = "$host_cpu"; then
11099 # AIX 5 now supports IA64 processor
11100 lt_prog_compiler_static='-Bstatic'
11101 fi
11102 lt_prog_compiler_pic='-fPIC'
11103 ;;
11104
11105 amigaos*)
11106 case $host_cpu in
11107 powerpc)
11108 # see comment about AmigaOS4 .so support
11109 lt_prog_compiler_pic='-fPIC'
11110 ;;
11111 m68k)
11112 # FIXME: we need at least 68020 code to build shared libraries, but
11113 # adding the '-m68020' flag to GCC prevents building anything better,
11114 # like '-m68040'.
11115 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11116 ;;
11117 esac
11118 ;;
11119
11120 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11121 # PIC is the default for these OSes.
11122 ;;
11123
11124 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11125 # This hack is so that the source file can tell whether it is being
11126 # built for inclusion in a dll (and should export symbols for example).
11127 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11128 # (--disable-auto-import) libraries
11129 lt_prog_compiler_pic='-DDLL_EXPORT'
11130 case $host_os in
11131 os2*)
11132 lt_prog_compiler_static='$wl-static'
11133 ;;
11134 esac
11135 ;;
11136
11137 darwin* | rhapsody*)
11138 # PIC is the default on this platform
11139 # Common symbols not allowed in MH_DYLIB files
11140 lt_prog_compiler_pic='-fno-common'
11141 ;;
11142
11143 haiku*)
11144 # PIC is the default for Haiku.
11145 # The "-static" flag exists, but is broken.
11146 lt_prog_compiler_static=
11147 ;;
11148
11149 hpux*)
11150 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11151 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11152 # sets the default TLS model and affects inlining.
11153 case $host_cpu in
11154 hppa*64*)
11155 # +Z the default
11156 ;;
11157 *)
11158 lt_prog_compiler_pic='-fPIC'
11159 ;;
11160 esac
11161 ;;
11162
11163 interix[3-9]*)
11164 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11165 # Instead, we relocate shared libraries at runtime.
11166 ;;
11167
11168 msdosdjgpp*)
11169 # Just because we use GCC doesn't mean we suddenly get shared libraries
11170 # on systems that don't support them.
11171 lt_prog_compiler_can_build_shared=no
11172 enable_shared=no
11173 ;;
11174
11175 *nto* | *qnx*)
11176 # QNX uses GNU C++, but need to define -shared option too, otherwise
11177 # it will coredump.
11178 lt_prog_compiler_pic='-fPIC -shared'
11179 ;;
11180
11181 sysv4*MP*)
11182 if test -d /usr/nec; then
11183 lt_prog_compiler_pic=-Kconform_pic
11184 fi
11185 ;;
11186
11187 *)
11188 lt_prog_compiler_pic='-fPIC'
11189 ;;
11190 esac
11191
11192 case $cc_basename in
11193 nvcc*) # Cuda Compiler Driver 2.2
11194 lt_prog_compiler_wl='-Xlinker '
11195 if test -n "$lt_prog_compiler_pic"; then
11196 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11197 fi
11198 ;;
11199 esac
11200 else
11201 # PORTME Check for flag to pass linker flags through the system compiler.
11202 case $host_os in
11203 aix*)
11204 lt_prog_compiler_wl='-Wl,'
11205 if test ia64 = "$host_cpu"; then
11206 # AIX 5 now supports IA64 processor
11207 lt_prog_compiler_static='-Bstatic'
11208 else
11209 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11210 fi
11211 ;;
11212
11213 darwin* | rhapsody*)
11214 # PIC is the default on this platform
11215 # Common symbols not allowed in MH_DYLIB files
11216 lt_prog_compiler_pic='-fno-common'
11217 case $cc_basename in
11218 nagfor*)
11219 # NAG Fortran compiler
11220 lt_prog_compiler_wl='-Wl,-Wl,,'
11221 lt_prog_compiler_pic='-PIC'
11222 lt_prog_compiler_static='-Bstatic'
11223 ;;
11224 esac
11225 ;;
11226
11227 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11228 # This hack is so that the source file can tell whether it is being
11229 # built for inclusion in a dll (and should export symbols for example).
11230 lt_prog_compiler_pic='-DDLL_EXPORT'
11231 case $host_os in
11232 os2*)
11233 lt_prog_compiler_static='$wl-static'
11234 ;;
11235 esac
11236 ;;
11237
11238 hpux9* | hpux10* | hpux11*)
11239 lt_prog_compiler_wl='-Wl,'
11240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11241 # not for PA HP-UX.
11242 case $host_cpu in
11243 hppa*64*|ia64*)
11244 # +Z the default
11245 ;;
11246 *)
11247 lt_prog_compiler_pic='+Z'
11248 ;;
11249 esac
11250 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11251 lt_prog_compiler_static='$wl-a ${wl}archive'
11252 ;;
11253
11254 irix5* | irix6* | nonstopux*)
11255 lt_prog_compiler_wl='-Wl,'
11256 # PIC (with -KPIC) is the default.
11257 lt_prog_compiler_static='-non_shared'
11258 ;;
11259
11260 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11261 case $cc_basename in
11262 # old Intel for x86_64, which still supported -KPIC.
11263 ecc*)
11264 lt_prog_compiler_wl='-Wl,'
11265 lt_prog_compiler_pic='-KPIC'
11266 lt_prog_compiler_static='-static'
11267 ;;
11268 *flang* | ftn | f18* | f95*)
11269 # Flang compiler.
11270 lt_prog_compiler_wl='-Wl,'
11271 lt_prog_compiler_pic='-fPIC'
11272 lt_prog_compiler_static='-static'
11273 ;;
11274 # icc used to be incompatible with GCC.
11275 # ICC 10 doesn't accept -KPIC any more.
11276 icc* | ifort*)
11277 lt_prog_compiler_wl='-Wl,'
11278 lt_prog_compiler_pic='-fPIC'
11279 lt_prog_compiler_static='-static'
11280 ;;
11281 # Lahey Fortran 8.1.
11282 lf95*)
11283 lt_prog_compiler_wl='-Wl,'
11284 lt_prog_compiler_pic='--shared'
11285 lt_prog_compiler_static='--static'
11286 ;;
11287 nagfor*)
11288 # NAG Fortran compiler
11289 lt_prog_compiler_wl='-Wl,-Wl,,'
11290 lt_prog_compiler_pic='-PIC'
11291 lt_prog_compiler_static='-Bstatic'
11292 ;;
11293 tcc*)
11294 # Fabrice Bellard et al's Tiny C Compiler
11295 lt_prog_compiler_wl='-Wl,'
11296 lt_prog_compiler_pic='-fPIC'
11297 lt_prog_compiler_static='-static'
11298 ;;
11299 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11300 # Portland Group compilers (*not* the Pentium gcc compiler,
11301 # which looks to be a dead project)
11302 lt_prog_compiler_wl='-Wl,'
11303 lt_prog_compiler_pic='-fpic'
11304 lt_prog_compiler_static='-Bstatic'
11305 ;;
11306 ccc*)
11307 lt_prog_compiler_wl='-Wl,'
11308 # All Alpha code is PIC.
11309 lt_prog_compiler_static='-non_shared'
11310 ;;
11311 xl* | bgxl* | bgf* | mpixl*)
11312 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11313 lt_prog_compiler_wl='-Wl,'
11314 lt_prog_compiler_pic='-qpic'
11315 lt_prog_compiler_static='-qstaticlink'
11316 ;;
11317 *)
11318 case `$CC -V 2>&1 | $SED 5q` in
11319 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11320 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11321 lt_prog_compiler_pic='-KPIC'
11322 lt_prog_compiler_static='-Bstatic'
11323 lt_prog_compiler_wl=''
11324 ;;
11325 *Sun\ F* | *Sun*Fortran*)
11326 lt_prog_compiler_pic='-KPIC'
11327 lt_prog_compiler_static='-Bstatic'
11328 lt_prog_compiler_wl='-Qoption ld '
11329 ;;
11330 *Sun\ C*)
11331 # Sun C 5.9
11332 lt_prog_compiler_pic='-KPIC'
11333 lt_prog_compiler_static='-Bstatic'
11334 lt_prog_compiler_wl='-Wl,'
11335 ;;
11336 *Intel*\ [CF]*Compiler*)
11337 lt_prog_compiler_wl='-Wl,'
11338 lt_prog_compiler_pic='-fPIC'
11339 lt_prog_compiler_static='-static'
11340 ;;
11341 *Portland\ Group*)
11342 lt_prog_compiler_wl='-Wl,'
11343 lt_prog_compiler_pic='-fpic'
11344 lt_prog_compiler_static='-Bstatic'
11345 ;;
11346 esac
11347 ;;
11348 esac
11349 ;;
11350
11351 newsos6)
11352 lt_prog_compiler_pic='-KPIC'
11353 lt_prog_compiler_static='-Bstatic'
11354 ;;
11355
11356 *-mlibc)
11357 lt_prog_compiler_wl='-Wl,'
11358 lt_prog_compiler_pic='-fPIC'
11359 lt_prog_compiler_static='-static'
11360 ;;
11361
11362 *nto* | *qnx*)
11363 # QNX uses GNU C++, but need to define -shared option too, otherwise
11364 # it will coredump.
11365 lt_prog_compiler_pic='-fPIC -shared'
11366 ;;
11367
11368 osf3* | osf4* | osf5*)
11369 lt_prog_compiler_wl='-Wl,'
11370 # All OSF/1 code is PIC.
11371 lt_prog_compiler_static='-non_shared'
11372 ;;
11373
11374 rdos*)
11375 lt_prog_compiler_static='-non_shared'
11376 ;;
11377
11378 serenity*)
11379 ;;
11380
11381 solaris*)
11382 lt_prog_compiler_pic='-KPIC'
11383 lt_prog_compiler_static='-Bstatic'
11384 case $cc_basename in
11385 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11386 lt_prog_compiler_wl='-Qoption ld ';;
11387 *)
11388 lt_prog_compiler_wl='-Wl,';;
11389 esac
11390 ;;
11391
11392 sunos4*)
11393 lt_prog_compiler_wl='-Qoption ld '
11394 lt_prog_compiler_pic='-PIC'
11395 lt_prog_compiler_static='-Bstatic'
11396 ;;
11397
11398 sysv4 | sysv4.2uw2* | sysv4.3*)
11399 lt_prog_compiler_wl='-Wl,'
11400 lt_prog_compiler_pic='-KPIC'
11401 lt_prog_compiler_static='-Bstatic'
11402 ;;
11403
11404 sysv4*MP*)
11405 if test -d /usr/nec; then
11406 lt_prog_compiler_pic='-Kconform_pic'
11407 lt_prog_compiler_static='-Bstatic'
11408 fi
11409 ;;
11410
11411 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11412 lt_prog_compiler_wl='-Wl,'
11413 lt_prog_compiler_pic='-KPIC'
11414 lt_prog_compiler_static='-Bstatic'
11415 ;;
11416
11417 unicos*)
11418 lt_prog_compiler_wl='-Wl,'
11419 lt_prog_compiler_can_build_shared=no
11420 ;;
11421
11422 uts4*)
11423 lt_prog_compiler_pic='-pic'
11424 lt_prog_compiler_static='-Bstatic'
11425 ;;
11426
11427 *)
11428 lt_prog_compiler_can_build_shared=no
11429 ;;
11430 esac
11431 fi
11432
11433 case $host_os in
11434 # For platforms that do not support PIC, -DPIC is meaningless:
11435 *djgpp*)
11436 lt_prog_compiler_pic=
11437 ;;
11438 *)
11439 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11440 ;;
11441 esac
11442
11443 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11444 printf %s "checking for $compiler option to produce PIC... " >&6; }
11445 if test ${lt_cv_prog_compiler_pic+y}
11446 then :
11447 printf %s "(cached) " >&6
11448 else case e in #(
11449 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11450 esac
11451 fi
11452 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11453 printf '%s\n' "$lt_cv_prog_compiler_pic" >&6; }
11454 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11455
11456 #
11457 # Check to make sure the PIC flag actually works.
11458 #
11459 if test -n "$lt_prog_compiler_pic"; then
11460 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11461 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11462 if test ${lt_cv_prog_compiler_pic_works+y}
11463 then :
11464 printf %s "(cached) " >&6
11465 else case e in #(
11466 e) lt_cv_prog_compiler_pic_works=no
11467 ac_outfile=conftest.$ac_objext
11468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11469 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11470 # Insert the option either (1) after the last *FLAGS variable, or
11471 # (2) before a word containing "conftest.", or (3) at the end.
11472 # Note that $ac_compile itself does not contain backslashes and begins
11473 # with a dollar sign (not a hyphen), so the echo should work correctly.
11474 # The option is referenced via a variable to avoid confusing sed.
11475 lt_compile=`echo "$ac_compile" | $SED \
11476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11478 -e 's:$: $lt_compiler_flag:'`
11479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11480 (eval "$lt_compile" 2>conftest.err)
11481 ac_status=$?
11482 cat conftest.err >&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 if (exit $ac_status) && test -s "$ac_outfile"; then
11485 # The compiler can only warn and ignore the option if not recognized
11486 # So say no if there are warnings other than the usual output.
11487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11490 lt_cv_prog_compiler_pic_works=yes
11491 fi
11492 fi
11493 $RM conftest*
11494 ;;
11495 esac
11496 fi
11497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11498 printf '%s\n' "$lt_cv_prog_compiler_pic_works" >&6; }
11499
11500 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11501 case $lt_prog_compiler_pic in
11502 "" | " "*) ;;
11503 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11504 esac
11505 else
11506 lt_prog_compiler_pic=
11507 lt_prog_compiler_can_build_shared=no
11508 fi
11509
11510 fi
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522 #
11523 # Check to make sure the static flag actually works.
11524 #
11525 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11527 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11528 if test ${lt_cv_prog_compiler_static_works+y}
11529 then :
11530 printf %s "(cached) " >&6
11531 else case e in #(
11532 e) lt_cv_prog_compiler_static_works=no
11533 save_LDFLAGS=$LDFLAGS
11534 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11535 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11536 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11537 # The linker can only warn and ignore the option if not recognized
11538 # So say no if there are warnings
11539 if test -s conftest.err; then
11540 # Append any errors to the config.log.
11541 cat conftest.err 1>&5
11542 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11544 if diff conftest.exp conftest.er2 >/dev/null; then
11545 lt_cv_prog_compiler_static_works=yes
11546 fi
11547 else
11548 lt_cv_prog_compiler_static_works=yes
11549 fi
11550 fi
11551 $RM -r conftest*
11552 LDFLAGS=$save_LDFLAGS
11553 ;;
11554 esac
11555 fi
11556 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11557 printf '%s\n' "$lt_cv_prog_compiler_static_works" >&6; }
11558
11559 if test yes = "$lt_cv_prog_compiler_static_works"; then
11560 :
11561 else
11562 lt_prog_compiler_static=
11563 fi
11564
11565
11566
11567
11568
11569
11570
11571 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11572 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11573 if test ${lt_cv_prog_compiler_c_o+y}
11574 then :
11575 printf %s "(cached) " >&6
11576 else case e in #(
11577 e) lt_cv_prog_compiler_c_o=no
11578 $RM -r conftest 2>/dev/null
11579 mkdir conftest
11580 cd conftest
11581 mkdir out
11582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11583
11584 lt_compiler_flag="-o out/conftest2.$ac_objext"
11585 # Insert the option either (1) after the last *FLAGS variable, or
11586 # (2) before a word containing "conftest.", or (3) at the end.
11587 # Note that $ac_compile itself does not contain backslashes and begins
11588 # with a dollar sign (not a hyphen), so the echo should work correctly.
11589 lt_compile=`echo "$ac_compile" | $SED \
11590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11592 -e 's:$: $lt_compiler_flag:'`
11593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11594 (eval "$lt_compile" 2>out/conftest.err)
11595 ac_status=$?
11596 cat out/conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11599 then
11600 # The compiler can only warn and ignore the option if not recognized
11601 # So say no if there are warnings
11602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11605 lt_cv_prog_compiler_c_o=yes
11606 fi
11607 fi
11608 chmod u+w . 2>&5
11609 $RM conftest*
11610 # SGI C++ compiler will create directory out/ii_files/ for
11611 # template instantiation
11612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11613 $RM out/* && rmdir out
11614 cd ..
11615 $RM -r conftest
11616 $RM conftest*
11617 ;;
11618 esac
11619 fi
11620 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11621 printf '%s\n' "$lt_cv_prog_compiler_c_o" >&6; }
11622
11623
11624
11625
11626
11627
11628 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11629 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11630 if test ${lt_cv_prog_compiler_c_o+y}
11631 then :
11632 printf %s "(cached) " >&6
11633 else case e in #(
11634 e) lt_cv_prog_compiler_c_o=no
11635 $RM -r conftest 2>/dev/null
11636 mkdir conftest
11637 cd conftest
11638 mkdir out
11639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11640
11641 lt_compiler_flag="-o out/conftest2.$ac_objext"
11642 # Insert the option either (1) after the last *FLAGS variable, or
11643 # (2) before a word containing "conftest.", or (3) at the end.
11644 # Note that $ac_compile itself does not contain backslashes and begins
11645 # with a dollar sign (not a hyphen), so the echo should work correctly.
11646 lt_compile=`echo "$ac_compile" | $SED \
11647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11649 -e 's:$: $lt_compiler_flag:'`
11650 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11651 (eval "$lt_compile" 2>out/conftest.err)
11652 ac_status=$?
11653 cat out/conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11656 then
11657 # The compiler can only warn and ignore the option if not recognized
11658 # So say no if there are warnings
11659 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11660 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11661 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11662 lt_cv_prog_compiler_c_o=yes
11663 fi
11664 fi
11665 chmod u+w . 2>&5
11666 $RM conftest*
11667 # SGI C++ compiler will create directory out/ii_files/ for
11668 # template instantiation
11669 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11670 $RM out/* && rmdir out
11671 cd ..
11672 $RM -r conftest
11673 $RM conftest*
11674 ;;
11675 esac
11676 fi
11677 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11678 printf '%s\n' "$lt_cv_prog_compiler_c_o" >&6; }
11679
11680
11681
11682
11683 hard_links=nottested
11684 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11685 # do not overwrite the value of need_locks provided by the user
11686 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11687 printf %s "checking if we can lock with hard links... " >&6; }
11688 hard_links=yes
11689 $RM conftest*
11690 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11691 touch conftest.a
11692 ln conftest.a conftest.b 2>&5 || hard_links=no
11693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11694 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11695 printf '%s\n' "$hard_links" >&6; }
11696 if test no = "$hard_links"; then
11697 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11698 printf '%s\n' "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11699 need_locks=warn
11700 fi
11701 else
11702 need_locks=no
11703 fi
11704
11705
11706
11707
11708
11709
11710 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11711 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11712
11713 runpath_var=
11714 allow_undefined_flag=
11715 always_export_symbols=no
11716 archive_cmds=
11717 archive_expsym_cmds=
11718 compiler_needs_object=no
11719 enable_shared_with_static_runtimes=no
11720 export_dynamic_flag_spec=
11721 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11722 hardcode_automatic=no
11723 hardcode_direct=no
11724 hardcode_direct_absolute=no
11725 hardcode_libdir_flag_spec=
11726 hardcode_libdir_separator=
11727 hardcode_minus_L=no
11728 hardcode_shlibpath_var=unsupported
11729 inherit_rpath=no
11730 link_all_deplibs=unknown
11731 module_cmds=
11732 module_expsym_cmds=
11733 old_archive_from_new_cmds=
11734 old_archive_from_expsyms_cmds=
11735 thread_safe_flag_spec=
11736 whole_archive_flag_spec=
11737 # include_expsyms should be a list of space-separated symbols to be *always*
11738 # included in the symbol list
11739 include_expsyms=
11740 # exclude_expsyms can be an extended regexp of symbols to exclude
11741 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11742 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11743 # as well as any symbol that contains 'd'.
11744 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11745 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11746 # platforms (ab)use it in PIC code, but their linkers get confused if
11747 # the symbol is explicitly referenced. Since portable code cannot
11748 # rely on this symbol name, it's probably fine to never include it in
11749 # preloaded symbol tables.
11750 # Exclude shared library initialization/finalization symbols.
11751 extract_expsyms_cmds=
11752
11753 case $host_os in
11754 cygwin* | mingw* | windows* | pw32* | cegcc*)
11755 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11756 # When not using gcc, we currently assume that we are using
11757 # Microsoft Visual C++ or Intel C++ Compiler.
11758 if test yes != "$GCC"; then
11759 with_gnu_ld=no
11760 fi
11761 ;;
11762 interix*)
11763 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11764 with_gnu_ld=yes
11765 ;;
11766 esac
11767
11768 ld_shlibs=yes
11769
11770 # On some targets, GNU ld is compatible enough with the native linker
11771 # that we're better off using the native interface for both.
11772 lt_use_gnu_ld_interface=no
11773 if test yes = "$with_gnu_ld"; then
11774 case $host_os in
11775 aix*)
11776 # The AIX port of GNU ld has always aspired to compatibility
11777 # with the native linker. However, as the warning in the GNU ld
11778 # block says, versions before 2.19.5* couldn't really create working
11779 # shared libraries, regardless of the interface used.
11780 case `$LD -v 2>&1` in
11781 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11782 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11783 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11784 *)
11785 lt_use_gnu_ld_interface=yes
11786 ;;
11787 esac
11788 ;;
11789 *)
11790 lt_use_gnu_ld_interface=yes
11791 ;;
11792 esac
11793 fi
11794
11795 if test yes = "$lt_use_gnu_ld_interface"; then
11796 # If archive_cmds runs LD, not CC, wlarc should be empty
11797 wlarc='$wl'
11798
11799 # Set some defaults for GNU ld with shared library support. These
11800 # are reset later if shared libraries are not supported. Putting them
11801 # here allows them to be overridden if necessary.
11802 runpath_var=LD_RUN_PATH
11803 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11804 export_dynamic_flag_spec='$wl--export-dynamic'
11805 # ancient GNU ld didn't support --whole-archive et. al.
11806 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11807 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11808 else
11809 whole_archive_flag_spec=
11810 fi
11811 supports_anon_versioning=no
11812 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11813 *GNU\ gold*) supports_anon_versioning=yes ;;
11814 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11815 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11816 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11817 *\ 2.11.*) ;; # other 2.11 versions
11818 *) supports_anon_versioning=yes ;;
11819 esac
11820
11821 # See if GNU ld supports shared libraries.
11822 case $host_os in
11823 aix[3-9]*)
11824 # On AIX/PPC, the GNU linker is very broken
11825 if test ia64 != "$host_cpu"; then
11826 ld_shlibs=no
11827 cat <<_LT_EOF 1>&2
11828
11829 *** Warning: the GNU linker, at least up to release 2.19, is reported
11830 *** to be unable to reliably create shared libraries on AIX.
11831 *** Therefore, libtool is disabling shared libraries support. If you
11832 *** really care for shared libraries, you may want to install binutils
11833 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11834 *** You will then need to restart the configuration process.
11835
11836 _LT_EOF
11837 fi
11838 ;;
11839
11840 amigaos*)
11841 case $host_cpu in
11842 powerpc)
11843 # see comment about AmigaOS4 .so support
11844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11845 archive_expsym_cmds=''
11846 ;;
11847 m68k)
11848 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)'
11849 hardcode_libdir_flag_spec='-L$libdir'
11850 hardcode_minus_L=yes
11851 ;;
11852 esac
11853 ;;
11854
11855 beos*)
11856 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11857 allow_undefined_flag=unsupported
11858 # Joseph Beckenbach <[email protected]> says some releases of gcc
11859 # support --undefined. This deserves some investigation. FIXME
11860 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11861 else
11862 ld_shlibs=no
11863 fi
11864 ;;
11865
11866 cygwin* | mingw* | windows* | pw32* | cegcc*)
11867 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11868 # as there is no search path for DLLs.
11869 hardcode_libdir_flag_spec='-L$libdir'
11870 export_dynamic_flag_spec='$wl--export-all-symbols'
11871 allow_undefined_flag=unsupported
11872 always_export_symbols=no
11873 enable_shared_with_static_runtimes=yes
11874 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'
11875 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11876 file_list_spec='@'
11877
11878 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11880 # If the export-symbols file already is a .def file, use it as
11881 # is; otherwise, prepend EXPORTS...
11882 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11883 cp $export_symbols $output_objdir/$soname.def;
11884 else
11885 echo EXPORTS > $output_objdir/$soname.def;
11886 cat $export_symbols >> $output_objdir/$soname.def;
11887 fi~
11888 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11889 else
11890 ld_shlibs=no
11891 fi
11892 ;;
11893
11894 haiku*)
11895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11896 link_all_deplibs=no
11897 ;;
11898
11899 os2*)
11900 hardcode_libdir_flag_spec='-L$libdir'
11901 hardcode_minus_L=yes
11902 allow_undefined_flag=unsupported
11903 shrext_cmds=.dll
11904 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11905 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11906 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11907 $ECHO EXPORTS >> $output_objdir/$libname.def~
11908 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11909 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11910 emximp -o $lib $output_objdir/$libname.def'
11911 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11912 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11913 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11914 $ECHO EXPORTS >> $output_objdir/$libname.def~
11915 prefix_cmds="$SED"~
11916 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11917 prefix_cmds="$prefix_cmds -e 1d";
11918 fi~
11919 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11920 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11921 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11922 emximp -o $lib $output_objdir/$libname.def'
11923 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11924 enable_shared_with_static_runtimes=yes
11925 file_list_spec='@'
11926 ;;
11927
11928 interix[3-9]*)
11929 hardcode_direct=no
11930 hardcode_shlibpath_var=no
11931 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11932 export_dynamic_flag_spec='$wl-E'
11933 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11934 # Instead, shared libraries are loaded at an image base (0x10000000 by
11935 # default) and relocated if they conflict, which is a slow very memory
11936 # consuming and fragmenting process. To avoid this, we pick a random,
11937 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11938 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11939 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11940 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'
11941 ;;
11942
11943 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11944 tmp_diet=no
11945 if test linux-dietlibc = "$host_os"; then
11946 case $cc_basename in
11947 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11948 esac
11949 fi
11950 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11951 && test no = "$tmp_diet"
11952 then
11953 tmp_addflag=' $pic_flag'
11954 tmp_sharedflag='-shared'
11955 case $cc_basename,$host_cpu in
11956 pgcc*) # Portland Group C compiler
11957 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'
11958 tmp_addflag=' $pic_flag'
11959 ;;
11960 pgf77* | pgf90* | pgf95* | pgfortran*)
11961 # Portland Group f77 and f90 compilers
11962 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'
11963 tmp_addflag=' $pic_flag -Mnomain' ;;
11964 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11965 tmp_addflag=' -i_dynamic' ;;
11966 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11967 tmp_addflag=' -i_dynamic -nofor_main' ;;
11968 ifc* | ifort*) # Intel Fortran compiler
11969 tmp_addflag=' -nofor_main' ;;
11970 lf95*) # Lahey Fortran 8.1
11971 whole_archive_flag_spec=
11972 tmp_sharedflag='--shared' ;;
11973 nagfor*) # NAGFOR 5.3
11974 tmp_sharedflag='-Wl,-shared' ;;
11975 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11976 tmp_sharedflag='-qmkshrobj'
11977 tmp_addflag= ;;
11978 nvcc*) # Cuda Compiler Driver 2.2
11979 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'
11980 compiler_needs_object=yes
11981 ;;
11982 esac
11983 case `$CC -V 2>&1 | $SED 5q` in
11984 *Sun\ C*) # Sun C 5.9
11985 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'
11986 compiler_needs_object=yes
11987 tmp_sharedflag='-G' ;;
11988 *Sun\ F*) # Sun Fortran 8.3
11989 tmp_sharedflag='-G' ;;
11990 esac
11991 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11992
11993 if test yes = "$supports_anon_versioning"; then
11994 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11995 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11996 echo "local: *; };" >> $output_objdir/$libname.ver~
11997 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11998 fi
11999
12000 case $cc_basename in
12001 tcc*)
12002 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12003 export_dynamic_flag_spec='-rdynamic'
12004 ;;
12005 xlf* | bgf* | bgxlf* | mpixlf*)
12006 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12007 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12008 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12009 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12010 if test yes = "$supports_anon_versioning"; then
12011 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12012 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12013 echo "local: *; };" >> $output_objdir/$libname.ver~
12014 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12015 fi
12016 ;;
12017 esac
12018 else
12019 ld_shlibs=no
12020 fi
12021 ;;
12022
12023 *-mlibc)
12024 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12025 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12026 ;;
12027
12028 netbsd* | netbsdelf*-gnu)
12029 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12030 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12031 wlarc=
12032 else
12033 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12034 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12035 fi
12036 ;;
12037
12038 solaris*)
12039 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12040 ld_shlibs=no
12041 cat <<_LT_EOF 1>&2
12042
12043 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12044 *** create shared libraries on Solaris systems. Therefore, libtool
12045 *** is disabling shared libraries support. We urge you to upgrade GNU
12046 *** binutils to release 2.9.1 or newer. Another option is to modify
12047 *** your PATH or compiler configuration so that the native linker is
12048 *** used, and then restart.
12049
12050 _LT_EOF
12051 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12052 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12053 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12054 else
12055 ld_shlibs=no
12056 fi
12057 ;;
12058
12059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12060 case `$LD -v 2>&1` in
12061 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12062 ld_shlibs=no
12063 cat <<_LT_EOF 1>&2
12064
12065 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12066 *** reliably create shared libraries on SCO systems. Therefore, libtool
12067 *** is disabling shared libraries support. We urge you to upgrade GNU
12068 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12069 *** your PATH or compiler configuration so that the native linker is
12070 *** used, and then restart.
12071
12072 _LT_EOF
12073 ;;
12074 *)
12075 # For security reasons, it is highly recommended that you always
12076 # use absolute paths for naming shared libraries, and exclude the
12077 # DT_RUNPATH tag from executables and libraries. But doing so
12078 # requires that you compile everything twice, which is a pain.
12079 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12080 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12082 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12083 else
12084 ld_shlibs=no
12085 fi
12086 ;;
12087 esac
12088 ;;
12089
12090 sunos4*)
12091 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12092 wlarc=
12093 hardcode_direct=yes
12094 hardcode_shlibpath_var=no
12095 ;;
12096
12097 *)
12098 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12099 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12100 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12101 else
12102 ld_shlibs=no
12103 fi
12104 ;;
12105 esac
12106
12107 if test no = "$ld_shlibs"; then
12108 runpath_var=
12109 hardcode_libdir_flag_spec=
12110 export_dynamic_flag_spec=
12111 whole_archive_flag_spec=
12112 fi
12113 else
12114 # PORTME fill in a description of your system's linker (not GNU ld)
12115 case $host_os in
12116 aix3*)
12117 allow_undefined_flag=unsupported
12118 always_export_symbols=yes
12119 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'
12120 # Note: this linker hardcodes the directories in LIBPATH if there
12121 # are no directories specified by -L.
12122 hardcode_minus_L=yes
12123 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12124 # Neither direct hardcoding nor static linking is supported with a
12125 # broken collect2.
12126 hardcode_direct=unsupported
12127 fi
12128 ;;
12129
12130 aix[4-9]*)
12131 if test ia64 = "$host_cpu"; then
12132 # On IA64, the linker does run time linking by default, so we don't
12133 # have to do anything special.
12134 aix_use_runtimelinking=no
12135 exp_sym_flag='-Bexport'
12136 no_entry_flag=
12137 else
12138 # If we're using GNU nm, then we don't want the "-C" option.
12139 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12140 # Without the "-l" option, or with the "-B" option, AIX nm treats
12141 # weak defined symbols like other global defined symbols, whereas
12142 # GNU nm marks them as "W".
12143 # While the 'weak' keyword is ignored in the Export File, we need
12144 # it in the Import File for the 'aix-soname' feature, so we have
12145 # to replace the "-B" option with "-P" for AIX nm.
12146 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12147 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'
12148 else
12149 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 == "L") || (\$ 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'
12150 fi
12151 aix_use_runtimelinking=no
12152
12153 # Test if we are trying to use run time linking or normal
12154 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12155 # have runtime linking enabled, and use it for executables.
12156 # For shared libraries, we enable/disable runtime linking
12157 # depending on the kind of the shared library created -
12158 # when "with_aix_soname,aix_use_runtimelinking" is:
12159 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12160 # "aix,yes" lib.so shared, rtl:yes, for executables
12161 # lib.a static archive
12162 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12163 # lib.a(lib.so.V) shared, rtl:no, for executables
12164 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12165 # lib.a(lib.so.V) shared, rtl:no
12166 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12167 # lib.a static archive
12168 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12169 for ld_flag in $LDFLAGS; do
12170 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12171 aix_use_runtimelinking=yes
12172 break
12173 fi
12174 done
12175 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12176 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12177 # so we don't have lib.a shared libs to link our executables.
12178 # We have to force runtime linking in this case.
12179 aix_use_runtimelinking=yes
12180 LDFLAGS="$LDFLAGS -Wl,-brtl"
12181 fi
12182 ;;
12183 esac
12184
12185 exp_sym_flag='-bexport'
12186 no_entry_flag='-bnoentry'
12187 fi
12188
12189 # When large executables or shared objects are built, AIX ld can
12190 # have problems creating the table of contents. If linking a library
12191 # or program results in "error TOC overflow" add -mminimal-toc to
12192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12194
12195 archive_cmds=''
12196 hardcode_direct=yes
12197 hardcode_direct_absolute=yes
12198 hardcode_libdir_separator=':'
12199 link_all_deplibs=yes
12200 file_list_spec='$wl-f,'
12201 case $with_aix_soname,$aix_use_runtimelinking in
12202 aix,*) ;; # traditional, no import file
12203 svr4,* | *,yes) # use import file
12204 # The Import File defines what to hardcode.
12205 hardcode_direct=no
12206 hardcode_direct_absolute=no
12207 ;;
12208 esac
12209
12210 if test yes = "$GCC"; then
12211 case $host_os in aix4.[012]|aix4.[012].*)
12212 # We only want to do this on AIX 4.2 and lower, the check
12213 # below for broken collect2 doesn't work under 4.3+
12214 collect2name=`$CC -print-prog-name=collect2`
12215 if test -f "$collect2name" &&
12216 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12217 then
12218 # We have reworked collect2
12219 :
12220 else
12221 # We have old collect2
12222 hardcode_direct=unsupported
12223 # It fails to find uninstalled libraries when the uninstalled
12224 # path is not listed in the libpath. Setting hardcode_minus_L
12225 # to unsupported forces relinking
12226 hardcode_minus_L=yes
12227 hardcode_libdir_flag_spec='-L$libdir'
12228 hardcode_libdir_separator=
12229 fi
12230 ;;
12231 esac
12232 shared_flag='-shared'
12233 if test yes = "$aix_use_runtimelinking"; then
12234 shared_flag="$shared_flag "'$wl-G'
12235 fi
12236 # Need to ensure runtime linking is disabled for the traditional
12237 # shared library, or the linker may eventually find shared libraries
12238 # /with/ Import File - we do not want to mix them.
12239 shared_flag_aix='-shared'
12240 shared_flag_svr4='-shared $wl-G'
12241 else
12242 # not using gcc
12243 if test ia64 = "$host_cpu"; then
12244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12245 # chokes on -Wl,-G. The following line is correct:
12246 shared_flag='-G'
12247 else
12248 if test yes = "$aix_use_runtimelinking"; then
12249 shared_flag='$wl-G'
12250 else
12251 shared_flag='$wl-bM:SRE'
12252 fi
12253 shared_flag_aix='$wl-bM:SRE'
12254 shared_flag_svr4='$wl-G'
12255 fi
12256 fi
12257
12258 export_dynamic_flag_spec='$wl-bexpall'
12259 # It seems that -bexpall does not export symbols beginning with
12260 # underscore (_), so it is better to generate a list of symbols to export.
12261 always_export_symbols=yes
12262 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12263 # Warning - without using the other runtime loading flags (-brtl),
12264 # -berok will link without error, but may produce a broken library.
12265 allow_undefined_flag='-berok'
12266 # Determine the default libpath from the value encoded in an
12267 # empty executable.
12268 if test set = "${lt_cv_aix_libpath+set}"; then
12269 aix_libpath=$lt_cv_aix_libpath
12270 else
12271 if test ${lt_cv_aix_libpath_+y}
12272 then :
12273 printf %s "(cached) " >&6
12274 else case e in #(
12275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12277
12278 int
12279 main (void)
12280 {
12281
12282 ;
12283 return 0;
12284 }
12285 _ACEOF
12286 if ac_fn_c_try_link "$LINENO"
12287 then :
12288
12289 lt_aix_libpath_sed='
12290 /Import File Strings/,/^$/ {
12291 /^0/ {
12292 s/^0 *\([^ ]*\) *$/\1/
12293 p
12294 }
12295 }'
12296 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12297 # Check for a 64-bit object if we didn't find anything.
12298 if test -z "$lt_cv_aix_libpath_"; then
12299 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12300 fi
12301 fi
12302 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12303 conftest$ac_exeext conftest.$ac_ext
12304 if test -z "$lt_cv_aix_libpath_"; then
12305 lt_cv_aix_libpath_=/usr/lib:/lib
12306 fi
12307 ;;
12308 esac
12309 fi
12310
12311 aix_libpath=$lt_cv_aix_libpath_
12312 fi
12313
12314 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12315 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
12316 else
12317 if test ia64 = "$host_cpu"; then
12318 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12319 allow_undefined_flag="-z nodefs"
12320 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"
12321 else
12322 # Determine the default libpath from the value encoded in an
12323 # empty executable.
12324 if test set = "${lt_cv_aix_libpath+set}"; then
12325 aix_libpath=$lt_cv_aix_libpath
12326 else
12327 if test ${lt_cv_aix_libpath_+y}
12328 then :
12329 printf %s "(cached) " >&6
12330 else case e in #(
12331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12333
12334 int
12335 main (void)
12336 {
12337
12338 ;
12339 return 0;
12340 }
12341 _ACEOF
12342 if ac_fn_c_try_link "$LINENO"
12343 then :
12344
12345 lt_aix_libpath_sed='
12346 /Import File Strings/,/^$/ {
12347 /^0/ {
12348 s/^0 *\([^ ]*\) *$/\1/
12349 p
12350 }
12351 }'
12352 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12353 # Check for a 64-bit object if we didn't find anything.
12354 if test -z "$lt_cv_aix_libpath_"; then
12355 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12356 fi
12357 fi
12358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12359 conftest$ac_exeext conftest.$ac_ext
12360 if test -z "$lt_cv_aix_libpath_"; then
12361 lt_cv_aix_libpath_=/usr/lib:/lib
12362 fi
12363 ;;
12364 esac
12365 fi
12366
12367 aix_libpath=$lt_cv_aix_libpath_
12368 fi
12369
12370 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12371 # Warning - without using the other run time loading flags,
12372 # -berok will link without error, but may produce a broken library.
12373 no_undefined_flag=' $wl-bernotok'
12374 allow_undefined_flag=' $wl-berok'
12375 if test yes = "$with_gnu_ld"; then
12376 # We only use this code for GNU lds that support --whole-archive.
12377 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12378 else
12379 # Exported symbols can be pulled into shared objects from archives
12380 whole_archive_flag_spec='$convenience'
12381 fi
12382 archive_cmds_need_lc=yes
12383 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12384 # -brtl affects multiple linker settings, -berok does not and is overridden later
12385 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12386 if test svr4 != "$with_aix_soname"; then
12387 # This is similar to how AIX traditionally builds its shared libraries.
12388 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'
12389 fi
12390 if test aix != "$with_aix_soname"; then
12391 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'
12392 else
12393 # used by -dlpreopen to get the symbols
12394 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12395 fi
12396 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12397 fi
12398 fi
12399 ;;
12400
12401 amigaos*)
12402 case $host_cpu in
12403 powerpc)
12404 # see comment about AmigaOS4 .so support
12405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12406 archive_expsym_cmds=''
12407 ;;
12408 m68k)
12409 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)'
12410 hardcode_libdir_flag_spec='-L$libdir'
12411 hardcode_minus_L=yes
12412 ;;
12413 esac
12414 ;;
12415
12416 bsdi[45]*)
12417 export_dynamic_flag_spec=-rdynamic
12418 ;;
12419
12420 cygwin* | mingw* | windows* | pw32* | cegcc*)
12421 # When not using gcc, we currently assume that we are using
12422 # Microsoft Visual C++ or Intel C++ Compiler.
12423 # hardcode_libdir_flag_spec is actually meaningless, as there is
12424 # no search path for DLLs.
12425 case $cc_basename in
12426 cl* | icl*)
12427 # Native MSVC or ICC
12428 hardcode_libdir_flag_spec=' '
12429 allow_undefined_flag=unsupported
12430 always_export_symbols=yes
12431 file_list_spec='@'
12432 # Tell ltmain to make .lib files, not .a files.
12433 libext=lib
12434 # Tell ltmain to make .dll files, not .so files.
12435 shrext_cmds=.dll
12436 # FIXME: Setting linknames here is a bad hack.
12437 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12438 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12439 cp "$export_symbols" "$output_objdir/$soname.def";
12440 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12441 else
12442 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12443 fi~
12444 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12445 linknames='
12446 # The linker will not automatically build a static lib if we build a DLL.
12447 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12448 enable_shared_with_static_runtimes=yes
12449 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12450 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12451 # Don't use ranlib
12452 old_postinstall_cmds='chmod 644 $oldlib'
12453 postlink_cmds='lt_outputfile="@OUTPUT@"~
12454 lt_tool_outputfile="@TOOL_OUTPUT@"~
12455 case $lt_outputfile in
12456 *.exe|*.EXE) ;;
12457 *)
12458 lt_outputfile=$lt_outputfile.exe
12459 lt_tool_outputfile=$lt_tool_outputfile.exe
12460 ;;
12461 esac~
12462 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12463 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12464 $RM "$lt_outputfile.manifest";
12465 fi'
12466 ;;
12467 *)
12468 # Assume MSVC and ICC wrapper
12469 hardcode_libdir_flag_spec=' '
12470 allow_undefined_flag=unsupported
12471 # Tell ltmain to make .lib files, not .a files.
12472 libext=lib
12473 # Tell ltmain to make .dll files, not .so files.
12474 shrext_cmds=.dll
12475 # FIXME: Setting linknames here is a bad hack.
12476 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12477 # The linker will automatically build a .lib file if we build a DLL.
12478 old_archive_from_new_cmds='true'
12479 # FIXME: Should let the user specify the lib program.
12480 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12481 enable_shared_with_static_runtimes=yes
12482 ;;
12483 esac
12484 ;;
12485
12486 darwin* | rhapsody*)
12487
12488
12489 archive_cmds_need_lc=no
12490 hardcode_direct=no
12491 hardcode_automatic=yes
12492 hardcode_shlibpath_var=unsupported
12493 if test yes = "$lt_cv_ld_force_load"; then
12494 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\"`'
12495
12496 else
12497 whole_archive_flag_spec=''
12498 fi
12499 link_all_deplibs=yes
12500 allow_undefined_flag=$_lt_dar_allow_undefined
12501 case $cc_basename in
12502 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12503 *) _lt_dar_can_shared=$GCC ;;
12504 esac
12505 if test yes = "$_lt_dar_can_shared"; then
12506 output_verbose_link_cmd=func_echo_all
12507 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12508 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12509 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"
12510 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"
12511
12512 else
12513 ld_shlibs=no
12514 fi
12515
12516 ;;
12517
12518 dgux*)
12519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12520 hardcode_libdir_flag_spec='-L$libdir'
12521 hardcode_shlibpath_var=no
12522 ;;
12523
12524 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12525 # support. Future versions do this automatically, but an explicit c++rt0.o
12526 # does not break anything, and helps significantly (at the cost of a little
12527 # extra space).
12528 freebsd2.2*)
12529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12530 hardcode_libdir_flag_spec='-R$libdir'
12531 hardcode_direct=yes
12532 hardcode_shlibpath_var=no
12533 ;;
12534
12535 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12536 freebsd2.*)
12537 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12538 hardcode_direct=yes
12539 hardcode_minus_L=yes
12540 hardcode_shlibpath_var=no
12541 ;;
12542
12543 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12544 freebsd* | dragonfly* | midnightbsd*)
12545 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12546 hardcode_libdir_flag_spec='-R$libdir'
12547 hardcode_direct=yes
12548 hardcode_shlibpath_var=no
12549 ;;
12550
12551 hpux9*)
12552 if test yes = "$GCC"; then
12553 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'
12554 else
12555 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'
12556 fi
12557 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12558 hardcode_libdir_separator=:
12559 hardcode_direct=yes
12560
12561 # hardcode_minus_L: Not really in the search PATH,
12562 # but as the default location of the library.
12563 hardcode_minus_L=yes
12564 export_dynamic_flag_spec='$wl-E'
12565 ;;
12566
12567 hpux10*)
12568 if test yes,no = "$GCC,$with_gnu_ld"; then
12569 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12570 else
12571 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12572 fi
12573 if test no = "$with_gnu_ld"; then
12574 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12575 hardcode_libdir_separator=:
12576 hardcode_direct=yes
12577 hardcode_direct_absolute=yes
12578 export_dynamic_flag_spec='$wl-E'
12579 # hardcode_minus_L: Not really in the search PATH,
12580 # but as the default location of the library.
12581 hardcode_minus_L=yes
12582 fi
12583 ;;
12584
12585 hpux11*)
12586 if test yes,no = "$GCC,$with_gnu_ld"; then
12587 case $host_cpu in
12588 hppa*64*)
12589 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12590 ;;
12591 ia64*)
12592 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12593 ;;
12594 *)
12595 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12596 ;;
12597 esac
12598 else
12599 case $host_cpu in
12600 hppa*64*)
12601 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12602 ;;
12603 ia64*)
12604 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12605 ;;
12606 *)
12607
12608 # Older versions of the 11.00 compiler do not understand -b yet
12609 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12610 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12611 printf %s "checking if $CC understands -b... " >&6; }
12612 if test ${lt_cv_prog_compiler__b+y}
12613 then :
12614 printf %s "(cached) " >&6
12615 else case e in #(
12616 e) lt_cv_prog_compiler__b=no
12617 save_LDFLAGS=$LDFLAGS
12618 LDFLAGS="$LDFLAGS -b"
12619 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12620 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12621 # The linker can only warn and ignore the option if not recognized
12622 # So say no if there are warnings
12623 if test -s conftest.err; then
12624 # Append any errors to the config.log.
12625 cat conftest.err 1>&5
12626 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12628 if diff conftest.exp conftest.er2 >/dev/null; then
12629 lt_cv_prog_compiler__b=yes
12630 fi
12631 else
12632 lt_cv_prog_compiler__b=yes
12633 fi
12634 fi
12635 $RM -r conftest*
12636 LDFLAGS=$save_LDFLAGS
12637 ;;
12638 esac
12639 fi
12640 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12641 printf '%s\n' "$lt_cv_prog_compiler__b" >&6; }
12642
12643 if test yes = "$lt_cv_prog_compiler__b"; then
12644 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12645 else
12646 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12647 fi
12648
12649 ;;
12650 esac
12651 fi
12652 if test no = "$with_gnu_ld"; then
12653 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12654 hardcode_libdir_separator=:
12655
12656 case $host_cpu in
12657 hppa*64*|ia64*)
12658 hardcode_direct=no
12659 hardcode_shlibpath_var=no
12660 ;;
12661 *)
12662 hardcode_direct=yes
12663 hardcode_direct_absolute=yes
12664 export_dynamic_flag_spec='$wl-E'
12665
12666 # hardcode_minus_L: Not really in the search PATH,
12667 # but as the default location of the library.
12668 hardcode_minus_L=yes
12669 ;;
12670 esac
12671 fi
12672 ;;
12673
12674 irix5* | irix6* | nonstopux*)
12675 if test yes = "$GCC"; then
12676 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'
12677 # Try to use the -exported_symbol ld option, if it does not
12678 # work, assume that -exports_file does not work either and
12679 # implicitly export all symbols.
12680 # This should be the same for all languages, so no per-tag cache variable.
12681 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12682 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12683 if test ${lt_cv_irix_exported_symbol+y}
12684 then :
12685 printf %s "(cached) " >&6
12686 else case e in #(
12687 e) save_LDFLAGS=$LDFLAGS
12688 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12691 int foo (void) { return 0; }
12692 _ACEOF
12693 if ac_fn_c_try_link "$LINENO"
12694 then :
12695 lt_cv_irix_exported_symbol=yes
12696 else case e in #(
12697 e) lt_cv_irix_exported_symbol=no ;;
12698 esac
12699 fi
12700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12701 conftest$ac_exeext conftest.$ac_ext
12702 LDFLAGS=$save_LDFLAGS ;;
12703 esac
12704 fi
12705 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12706 printf '%s\n' "$lt_cv_irix_exported_symbol" >&6; }
12707 if test yes = "$lt_cv_irix_exported_symbol"; then
12708 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'
12709 fi
12710 else
12711 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'
12712 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'
12713 fi
12714 archive_cmds_need_lc='no'
12715 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12716 hardcode_libdir_separator=:
12717 inherit_rpath=yes
12718 link_all_deplibs=yes
12719 ;;
12720
12721 linux*)
12722 case $cc_basename in
12723 tcc*)
12724 # Fabrice Bellard et al's Tiny C Compiler
12725 ld_shlibs=yes
12726 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12727 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12728 ;;
12729 esac
12730 ;;
12731
12732 *-mlibc)
12733 ;;
12734
12735 netbsd* | netbsdelf*-gnu)
12736 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12738 else
12739 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12740 fi
12741 hardcode_libdir_flag_spec='-R$libdir'
12742 hardcode_direct=yes
12743 hardcode_shlibpath_var=no
12744 ;;
12745
12746 newsos6)
12747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12748 hardcode_direct=yes
12749 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12750 hardcode_libdir_separator=:
12751 hardcode_shlibpath_var=no
12752 ;;
12753
12754 *nto* | *qnx*)
12755 ;;
12756
12757 openbsd*)
12758 if test -f /usr/libexec/ld.so; then
12759 hardcode_direct=yes
12760 hardcode_shlibpath_var=no
12761 hardcode_direct_absolute=yes
12762 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12763 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12764 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12765 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12766 export_dynamic_flag_spec='$wl-E'
12767 else
12768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12769 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12770 fi
12771 else
12772 ld_shlibs=no
12773 fi
12774 ;;
12775
12776 os2*)
12777 hardcode_libdir_flag_spec='-L$libdir'
12778 hardcode_minus_L=yes
12779 allow_undefined_flag=unsupported
12780 shrext_cmds=.dll
12781 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12782 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12783 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12784 $ECHO EXPORTS >> $output_objdir/$libname.def~
12785 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12786 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12787 emximp -o $lib $output_objdir/$libname.def'
12788 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12789 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12790 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12791 $ECHO EXPORTS >> $output_objdir/$libname.def~
12792 prefix_cmds="$SED"~
12793 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12794 prefix_cmds="$prefix_cmds -e 1d";
12795 fi~
12796 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12797 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12798 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12799 emximp -o $lib $output_objdir/$libname.def'
12800 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12801 enable_shared_with_static_runtimes=yes
12802 file_list_spec='@'
12803 ;;
12804
12805 osf3*)
12806 if test yes = "$GCC"; then
12807 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12808 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'
12809 else
12810 allow_undefined_flag=' -expect_unresolved \*'
12811 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'
12812 fi
12813 archive_cmds_need_lc='no'
12814 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12815 hardcode_libdir_separator=:
12816 ;;
12817
12818 osf4* | osf5*) # as osf3* with the addition of -msym flag
12819 if test yes = "$GCC"; then
12820 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12821 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'
12822 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12823 else
12824 allow_undefined_flag=' -expect_unresolved \*'
12825 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'
12826 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~
12827 $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'
12828
12829 # Both c and cxx compiler support -rpath directly
12830 hardcode_libdir_flag_spec='-rpath $libdir'
12831 fi
12832 archive_cmds_need_lc='no'
12833 hardcode_libdir_separator=:
12834 ;;
12835
12836 serenity*)
12837 ;;
12838
12839 solaris*)
12840 no_undefined_flag=' -z defs'
12841 if test yes = "$GCC"; then
12842 wlarc='$wl'
12843 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12844 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12845 $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'
12846 else
12847 case `$CC -V 2>&1` in
12848 *"Compilers 5.0"*)
12849 wlarc=''
12850 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12851 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12852 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12853 ;;
12854 *)
12855 wlarc='$wl'
12856 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12857 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12858 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12859 ;;
12860 esac
12861 fi
12862 hardcode_libdir_flag_spec='-R$libdir'
12863 hardcode_shlibpath_var=no
12864 case $host_os in
12865 solaris2.[0-5] | solaris2.[0-5].*) ;;
12866 *)
12867 # The compiler driver will combine and reorder linker options,
12868 # but understands '-z linker_flag'. GCC discards it without '$wl',
12869 # but is careful enough not to reorder.
12870 # Supported since Solaris 2.6 (maybe 2.5.1?)
12871 if test yes = "$GCC"; then
12872 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12873 else
12874 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12875 fi
12876 ;;
12877 esac
12878 link_all_deplibs=yes
12879 ;;
12880
12881 sunos4*)
12882 if test sequent = "$host_vendor"; then
12883 # Use $CC to link under sequent, because it throws in some extra .o
12884 # files that make .init and .fini sections work.
12885 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12886 else
12887 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12888 fi
12889 hardcode_libdir_flag_spec='-L$libdir'
12890 hardcode_direct=yes
12891 hardcode_minus_L=yes
12892 hardcode_shlibpath_var=no
12893 ;;
12894
12895 sysv4)
12896 case $host_vendor in
12897 sni)
12898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12899 hardcode_direct=yes # is this really true???
12900 ;;
12901 siemens)
12902 ## LD is ld it makes a PLAMLIB
12903 ## CC just makes a GrossModule.
12904 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12905 reload_cmds='$CC -r -o $output$reload_objs'
12906 hardcode_direct=no
12907 ;;
12908 motorola)
12909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12910 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12911 ;;
12912 esac
12913 runpath_var='LD_RUN_PATH'
12914 hardcode_shlibpath_var=no
12915 ;;
12916
12917 sysv4.3*)
12918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12919 hardcode_shlibpath_var=no
12920 export_dynamic_flag_spec='-Bexport'
12921 ;;
12922
12923 sysv4*MP*)
12924 if test -d /usr/nec; then
12925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12926 hardcode_shlibpath_var=no
12927 runpath_var=LD_RUN_PATH
12928 hardcode_runpath_var=yes
12929 ld_shlibs=yes
12930 fi
12931 ;;
12932
12933 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12934 no_undefined_flag='$wl-z,text'
12935 archive_cmds_need_lc=no
12936 hardcode_shlibpath_var=no
12937 runpath_var='LD_RUN_PATH'
12938
12939 if test yes = "$GCC"; then
12940 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12941 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12942 else
12943 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12944 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12945 fi
12946 ;;
12947
12948 sysv5* | sco3.2v5* | sco5v6*)
12949 # Note: We CANNOT use -z defs as we might desire, because we do not
12950 # link with -lc, and that would cause any symbols used from libc to
12951 # always be unresolved, which means just about no library would
12952 # ever link correctly. If we're not using GNU ld we use -z text
12953 # though, which does catch some bad symbols but isn't as heavy-handed
12954 # as -z defs.
12955 no_undefined_flag='$wl-z,text'
12956 allow_undefined_flag='$wl-z,nodefs'
12957 archive_cmds_need_lc=no
12958 hardcode_shlibpath_var=no
12959 hardcode_libdir_flag_spec='$wl-R,$libdir'
12960 hardcode_libdir_separator=':'
12961 link_all_deplibs=yes
12962 export_dynamic_flag_spec='$wl-Bexport'
12963 runpath_var='LD_RUN_PATH'
12964
12965 if test yes = "$GCC"; then
12966 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12967 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12968 else
12969 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12970 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12971 fi
12972 ;;
12973
12974 uts4*)
12975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12976 hardcode_libdir_flag_spec='-L$libdir'
12977 hardcode_shlibpath_var=no
12978 ;;
12979
12980 *)
12981 ld_shlibs=no
12982 ;;
12983 esac
12984
12985 if test sni = "$host_vendor"; then
12986 case $host in
12987 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12988 export_dynamic_flag_spec='$wl-Blargedynsym'
12989 ;;
12990 esac
12991 fi
12992 fi
12993
12994 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12995 printf '%s\n' "$ld_shlibs" >&6; }
12996 test no = "$ld_shlibs" && can_build_shared=no
12997
12998 with_gnu_ld=$with_gnu_ld
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014 #
13015 # Do we need to explicitly link libc?
13016 #
13017 case "x$archive_cmds_need_lc" in
13018 x|xyes)
13019 # Assume -lc should be added
13020 archive_cmds_need_lc=yes
13021
13022 if test yes,yes = "$GCC,$enable_shared"; then
13023 case $archive_cmds in
13024 *'~'*)
13025 # FIXME: we may have to deal with multi-command sequences.
13026 ;;
13027 '$CC '*)
13028 # Test whether the compiler implicitly links with -lc since on some
13029 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13030 # to ld, don't add -lc before -lgcc.
13031 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13032 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13033 if test ${lt_cv_archive_cmds_need_lc+y}
13034 then :
13035 printf %s "(cached) " >&6
13036 else case e in #(
13037 e) $RM conftest*
13038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13039
13040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13041 (eval $ac_compile) 2>&5
13042 ac_status=$?
13043 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13044 test $ac_status = 0; } 2>conftest.err; then
13045 soname=conftest
13046 lib=conftest
13047 libobjs=conftest.$ac_objext
13048 deplibs=
13049 wl=$lt_prog_compiler_wl
13050 pic_flag=$lt_prog_compiler_pic
13051 compiler_flags=-v
13052 linker_flags=-v
13053 verstring=
13054 output_objdir=.
13055 libname=conftest
13056 lt_save_allow_undefined_flag=$allow_undefined_flag
13057 allow_undefined_flag=
13058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13059 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13060 ac_status=$?
13061 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13062 test $ac_status = 0; }
13063 then
13064 lt_cv_archive_cmds_need_lc=no
13065 else
13066 lt_cv_archive_cmds_need_lc=yes
13067 fi
13068 allow_undefined_flag=$lt_save_allow_undefined_flag
13069 else
13070 cat conftest.err 1>&5
13071 fi
13072 $RM conftest*
13073 ;;
13074 esac
13075 fi
13076 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13077 printf '%s\n' "$lt_cv_archive_cmds_need_lc" >&6; }
13078 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13079 ;;
13080 esac
13081 fi
13082 ;;
13083 esac
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13237 printf %s "checking dynamic linker characteristics... " >&6; }
13238
13239 if test yes = "$GCC"; then
13240 case $host_os in
13241 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13242 *) lt_awk_arg='/^libraries:/' ;;
13243 esac
13244 case $host_os in
13245 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13246 *) lt_sed_strip_eq='s|=/|/|g' ;;
13247 esac
13248 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13249 case $lt_search_path_spec in
13250 *\;*)
13251 # if the path contains ";" then we assume it to be the separator
13252 # otherwise default to the standard path separator (i.e. ":") - it is
13253 # assumed that no part of a normal pathname contains ";" but that should
13254 # okay in the real world where ";" in dirpaths is itself problematic.
13255 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13256 ;;
13257 *)
13258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13259 ;;
13260 esac
13261 # Ok, now we have the path, separated by spaces, we can step through it
13262 # and add multilib dir if necessary...
13263 lt_tmp_lt_search_path_spec=
13264 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13265 # ...but if some path component already ends with the multilib dir we assume
13266 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13267 case "$lt_multi_os_dir; $lt_search_path_spec " in
13268 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13269 lt_multi_os_dir=
13270 ;;
13271 esac
13272 for lt_sys_path in $lt_search_path_spec; do
13273 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13274 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13275 elif test -n "$lt_multi_os_dir"; then
13276 test -d "$lt_sys_path" && \
13277 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13278 fi
13279 done
13280 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13281 BEGIN {RS = " "; FS = "/|\n";} {
13282 lt_foo = "";
13283 lt_count = 0;
13284 for (lt_i = NF; lt_i > 0; lt_i--) {
13285 if ($lt_i != "" && $lt_i != ".") {
13286 if ($lt_i == "..") {
13287 lt_count++;
13288 } else {
13289 if (lt_count == 0) {
13290 lt_foo = "/" $lt_i lt_foo;
13291 } else {
13292 lt_count--;
13293 }
13294 }
13295 }
13296 }
13297 if (lt_foo != "") { lt_freq[lt_foo]++; }
13298 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13299 }'`
13300 # AWK program above erroneously prepends '/' to C:/dos/paths
13301 # for these hosts.
13302 case $host_os in
13303 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13304 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13305 esac
13306 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13307 else
13308 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13309 fi
13310 library_names_spec=
13311 libname_spec='lib$name'
13312 soname_spec=
13313 shrext_cmds=.so
13314 postinstall_cmds=
13315 postuninstall_cmds=
13316 finish_cmds=
13317 finish_eval=
13318 shlibpath_var=
13319 shlibpath_overrides_runpath=unknown
13320 version_type=none
13321 dynamic_linker="$host_os ld.so"
13322 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13323 need_lib_prefix=unknown
13324 hardcode_into_libs=no
13325
13326 # when you set need_version to no, make sure it does not cause -set_version
13327 # flags to be left without arguments
13328 need_version=unknown
13329
13330
13331
13332 case $host_os in
13333 aix3*)
13334 version_type=linux # correct to gnu/linux during the next big refactor
13335 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13336 shlibpath_var=LIBPATH
13337
13338 # AIX 3 has no versioning support, so we append a major version to the name.
13339 soname_spec='$libname$release$shared_ext$major'
13340 ;;
13341
13342 aix[4-9]*)
13343 version_type=linux # correct to gnu/linux during the next big refactor
13344 need_lib_prefix=no
13345 need_version=no
13346 hardcode_into_libs=yes
13347 if test ia64 = "$host_cpu"; then
13348 # AIX 5 supports IA64
13349 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13350 shlibpath_var=LD_LIBRARY_PATH
13351 else
13352 # With GCC up to 2.95.x, collect2 would create an import file
13353 # for dependence libraries. The import file would start with
13354 # the line '#! .'. This would cause the generated library to
13355 # depend on '.', always an invalid library. This was fixed in
13356 # development snapshots of GCC prior to 3.0.
13357 case $host_os in
13358 aix4 | aix4.[01] | aix4.[01].*)
13359 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13360 echo ' yes '
13361 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13362 :
13363 else
13364 can_build_shared=no
13365 fi
13366 ;;
13367 esac
13368 # Using Import Files as archive members, it is possible to support
13369 # filename-based versioning of shared library archives on AIX. While
13370 # this would work for both with and without runtime linking, it will
13371 # prevent static linking of such archives. So we do filename-based
13372 # shared library versioning with .so extension only, which is used
13373 # when both runtime linking and shared linking is enabled.
13374 # Unfortunately, runtime linking may impact performance, so we do
13375 # not want this to be the default eventually. Also, we use the
13376 # versioned .so libs for executables only if there is the -brtl
13377 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13378 # To allow for filename-based versioning support, we need to create
13379 # libNAME.so.V as an archive file, containing:
13380 # *) an Import File, referring to the versioned filename of the
13381 # archive as well as the shared archive member, telling the
13382 # bitwidth (32 or 64) of that shared object, and providing the
13383 # list of exported symbols of that shared object, eventually
13384 # decorated with the 'weak' keyword
13385 # *) the shared object with the F_LOADONLY flag set, to really avoid
13386 # it being seen by the linker.
13387 # At run time we better use the real file rather than another symlink,
13388 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13389
13390 case $with_aix_soname,$aix_use_runtimelinking in
13391 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13392 # soname into executable. Probably we can add versioning support to
13393 # collect2, so additional links can be useful in future.
13394 aix,yes) # traditional libtool
13395 dynamic_linker='AIX unversionable lib.so'
13396 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13397 # instead of lib<name>.a to let people know that these are not
13398 # typical AIX shared libraries.
13399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13400 ;;
13401 aix,no) # traditional AIX only
13402 dynamic_linker='AIX lib.a(lib.so.V)'
13403 # We preserve .a as extension for shared libraries through AIX4.2
13404 # and later when we are not doing run time linking.
13405 library_names_spec='$libname$release.a $libname.a'
13406 soname_spec='$libname$release$shared_ext$major'
13407 ;;
13408 svr4,*) # full svr4 only
13409 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13410 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13411 # We do not specify a path in Import Files, so LIBPATH fires.
13412 shlibpath_overrides_runpath=yes
13413 ;;
13414 *,yes) # both, prefer svr4
13415 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13416 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13417 # unpreferred sharedlib libNAME.a needs extra handling
13418 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"'
13419 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"'
13420 # We do not specify a path in Import Files, so LIBPATH fires.
13421 shlibpath_overrides_runpath=yes
13422 ;;
13423 *,no) # both, prefer aix
13424 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13425 library_names_spec='$libname$release.a $libname.a'
13426 soname_spec='$libname$release$shared_ext$major'
13427 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13428 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)'
13429 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"'
13430 ;;
13431 esac
13432 shlibpath_var=LIBPATH
13433 fi
13434 ;;
13435
13436 amigaos*)
13437 case $host_cpu in
13438 powerpc)
13439 # Since July 2007 AmigaOS4 officially supports .so libraries.
13440 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13442 ;;
13443 m68k)
13444 library_names_spec='$libname.ixlibrary $libname.a'
13445 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13446 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'
13447 ;;
13448 esac
13449 ;;
13450
13451 beos*)
13452 library_names_spec='$libname$shared_ext'
13453 dynamic_linker="$host_os ld.so"
13454 shlibpath_var=LIBRARY_PATH
13455 ;;
13456
13457 bsdi[45]*)
13458 version_type=linux # correct to gnu/linux during the next big refactor
13459 need_version=no
13460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13461 soname_spec='$libname$release$shared_ext$major'
13462 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13463 shlibpath_var=LD_LIBRARY_PATH
13464 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13465 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13466 # the default ld.so.conf also contains /usr/contrib/lib and
13467 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13468 # libtool to hard-code these into programs
13469 ;;
13470
13471 cygwin* | mingw* | windows* | pw32* | cegcc*)
13472 version_type=windows
13473 shrext_cmds=.dll
13474 need_version=no
13475 need_lib_prefix=no
13476
13477 case $GCC,$cc_basename in
13478 yes,*)
13479 # gcc
13480 library_names_spec='$libname.dll.a'
13481 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13482 # If user builds GCC with multilib enabled,
13483 # it should just install on $(libdir)
13484 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13485 if test xyes = x"$multilib"; then
13486 postinstall_cmds='base_file=`basename \$file`~
13487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13488 dldir=$destdir/`dirname \$dlpath`~
13489 $install_prog $dir/$dlname $destdir/$dlname~
13490 chmod a+x $destdir/$dlname~
13491 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13492 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13493 fi'
13494 else
13495 postinstall_cmds='base_file=`basename \$file`~
13496 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13497 dldir=$destdir/`dirname \$dlpath`~
13498 test -d \$dldir || mkdir -p \$dldir~
13499 $install_prog $dir/$dlname \$dldir/$dlname~
13500 chmod a+x \$dldir/$dlname~
13501 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13502 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13503 fi'
13504 fi
13505 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13506 dlpath=$dir/\$dldll~
13507 $RM \$dlpath'
13508 shlibpath_overrides_runpath=yes
13509
13510 case $host_os in
13511 cygwin*)
13512 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13513 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13514
13515 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13516 ;;
13517 mingw* | windows* | cegcc*)
13518 # MinGW DLLs use traditional 'lib' prefix
13519 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13520 ;;
13521 pw32*)
13522 # pw32 DLLs use 'pw' prefix rather than 'lib'
13523 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13524 ;;
13525 esac
13526 dynamic_linker='Win32 ld.exe'
13527 ;;
13528
13529 *,cl* | *,icl*)
13530 # Native MSVC or ICC
13531 libname_spec='$name'
13532 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13533 library_names_spec='$libname.dll.lib'
13534
13535 case $build_os in
13536 mingw* | windows*)
13537 sys_lib_search_path_spec=
13538 lt_save_ifs=$IFS
13539 IFS=';'
13540 for lt_path in $LIB
13541 do
13542 IFS=$lt_save_ifs
13543 # Let DOS variable expansion print the short 8.3 style file name.
13544 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13545 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13546 done
13547 IFS=$lt_save_ifs
13548 # Convert to MSYS style.
13549 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13550 ;;
13551 cygwin*)
13552 # Convert to unix form, then to dos form, then back to unix form
13553 # but this time dos style (no spaces!) so that the unix form looks
13554 # like /cygdrive/c/PROGRA~1:/cygdr...
13555 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13556 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13557 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13558 ;;
13559 *)
13560 sys_lib_search_path_spec=$LIB
13561 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13562 # It is most probably a Windows format PATH.
13563 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13564 else
13565 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13566 fi
13567 # FIXME: find the short name or the path components, as spaces are
13568 # common. (e.g. "Program Files" -> "PROGRA~1")
13569 ;;
13570 esac
13571
13572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13573 postinstall_cmds='base_file=`basename \$file`~
13574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13575 dldir=$destdir/`dirname \$dlpath`~
13576 test -d \$dldir || mkdir -p \$dldir~
13577 $install_prog $dir/$dlname \$dldir/$dlname'
13578 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13579 dlpath=$dir/\$dldll~
13580 $RM \$dlpath'
13581 shlibpath_overrides_runpath=yes
13582 dynamic_linker='Win32 link.exe'
13583 ;;
13584
13585 *)
13586 # Assume MSVC and ICC wrapper
13587 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13588 dynamic_linker='Win32 ld.exe'
13589 ;;
13590 esac
13591 # FIXME: first we should search . and the directory the executable is in
13592 shlibpath_var=PATH
13593 ;;
13594
13595 darwin* | rhapsody*)
13596 dynamic_linker="$host_os dyld"
13597 version_type=darwin
13598 need_lib_prefix=no
13599 need_version=no
13600 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13601 soname_spec='$libname$release$major$shared_ext'
13602 shlibpath_overrides_runpath=yes
13603 shlibpath_var=DYLD_LIBRARY_PATH
13604 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13605
13606 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13607 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13608 ;;
13609
13610 dgux*)
13611 version_type=linux # correct to gnu/linux during the next big refactor
13612 need_lib_prefix=no
13613 need_version=no
13614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13615 soname_spec='$libname$release$shared_ext$major'
13616 shlibpath_var=LD_LIBRARY_PATH
13617 ;;
13618
13619 freebsd* | dragonfly* | midnightbsd*)
13620 # DragonFly does not have aout. When/if they implement a new
13621 # versioning mechanism, adjust this.
13622 if test -x /usr/bin/objformat; then
13623 objformat=`/usr/bin/objformat`
13624 else
13625 case $host_os in
13626 freebsd[23].*) objformat=aout ;;
13627 *) objformat=elf ;;
13628 esac
13629 fi
13630 version_type=freebsd-$objformat
13631 case $version_type in
13632 freebsd-elf*)
13633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13634 soname_spec='$libname$release$shared_ext$major'
13635 need_version=no
13636 need_lib_prefix=no
13637 ;;
13638 freebsd-*)
13639 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13640 need_version=yes
13641 ;;
13642 esac
13643 case $host_cpu in
13644 powerpc64)
13645 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13646 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13649 int test_pointer_size[sizeof (void *) - 5];
13650
13651 _ACEOF
13652 if ac_fn_c_try_compile "$LINENO"
13653 then :
13654 shlibpath_var=LD_LIBRARY_PATH
13655 else case e in #(
13656 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13657 esac
13658 fi
13659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13660 ;;
13661 *)
13662 shlibpath_var=LD_LIBRARY_PATH
13663 ;;
13664 esac
13665 case $host_os in
13666 freebsd2.*)
13667 shlibpath_overrides_runpath=yes
13668 ;;
13669 freebsd3.[01]* | freebsdelf3.[01]*)
13670 shlibpath_overrides_runpath=yes
13671 hardcode_into_libs=yes
13672 ;;
13673 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13674 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13675 shlibpath_overrides_runpath=no
13676 hardcode_into_libs=yes
13677 ;;
13678 *) # from 4.6 on, and DragonFly
13679 shlibpath_overrides_runpath=yes
13680 hardcode_into_libs=yes
13681 ;;
13682 esac
13683 ;;
13684
13685 haiku*)
13686 version_type=linux # correct to gnu/linux during the next big refactor
13687 need_lib_prefix=no
13688 need_version=no
13689 dynamic_linker="$host_os runtime_loader"
13690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13691 soname_spec='$libname$release$shared_ext$major'
13692 shlibpath_var=LIBRARY_PATH
13693 shlibpath_overrides_runpath=no
13694 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13695 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13696 hardcode_into_libs=no
13697 ;;
13698
13699 hpux9* | hpux10* | hpux11*)
13700 # Give a soname corresponding to the major version so that dld.sl refuses to
13701 # link against other versions.
13702 version_type=sunos
13703 need_lib_prefix=no
13704 need_version=no
13705 case $host_cpu in
13706 ia64*)
13707 shrext_cmds='.so'
13708 hardcode_into_libs=yes
13709 dynamic_linker="$host_os dld.so"
13710 shlibpath_var=LD_LIBRARY_PATH
13711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13713 soname_spec='$libname$release$shared_ext$major'
13714 if test 32 = "$HPUX_IA64_MODE"; then
13715 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13716 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13717 else
13718 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13719 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13720 fi
13721 ;;
13722 hppa*64*)
13723 shrext_cmds='.sl'
13724 hardcode_into_libs=yes
13725 dynamic_linker="$host_os dld.sl"
13726 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13729 soname_spec='$libname$release$shared_ext$major'
13730 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13732 ;;
13733 *)
13734 shrext_cmds='.sl'
13735 dynamic_linker="$host_os dld.sl"
13736 shlibpath_var=SHLIB_PATH
13737 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13739 soname_spec='$libname$release$shared_ext$major'
13740 ;;
13741 esac
13742 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13743 postinstall_cmds='chmod 555 $lib'
13744 # or fails outright, so override atomically:
13745 install_override_mode=555
13746 ;;
13747
13748 interix[3-9]*)
13749 version_type=linux # correct to gnu/linux during the next big refactor
13750 need_lib_prefix=no
13751 need_version=no
13752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13753 soname_spec='$libname$release$shared_ext$major'
13754 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13755 shlibpath_var=LD_LIBRARY_PATH
13756 shlibpath_overrides_runpath=no
13757 hardcode_into_libs=yes
13758 ;;
13759
13760 irix5* | irix6* | nonstopux*)
13761 case $host_os in
13762 nonstopux*) version_type=nonstopux ;;
13763 *)
13764 if test yes = "$lt_cv_prog_gnu_ld"; then
13765 version_type=linux # correct to gnu/linux during the next big refactor
13766 else
13767 version_type=irix
13768 fi ;;
13769 esac
13770 need_lib_prefix=no
13771 need_version=no
13772 soname_spec='$libname$release$shared_ext$major'
13773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13774 case $host_os in
13775 irix5* | nonstopux*)
13776 libsuff= shlibsuff=
13777 ;;
13778 *)
13779 case $LD in # libtool.m4 will add one of these switches to LD
13780 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13781 libsuff= shlibsuff= libmagic=32-bit;;
13782 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13783 libsuff=32 shlibsuff=N32 libmagic=N32;;
13784 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13785 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13786 *) libsuff= shlibsuff= libmagic=never-match;;
13787 esac
13788 ;;
13789 esac
13790 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13791 shlibpath_overrides_runpath=no
13792 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13793 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13794 hardcode_into_libs=yes
13795 ;;
13796
13797 # No shared lib support for Linux oldld, aout, or coff.
13798 linux*oldld* | linux*aout* | linux*coff*)
13799 dynamic_linker=no
13800 ;;
13801
13802 linux*android*)
13803 version_type=none # Android doesn't support versioned libraries.
13804 need_lib_prefix=no
13805 need_version=no
13806 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13807 soname_spec='$libname$release$shared_ext'
13808 finish_cmds=
13809 shlibpath_var=LD_LIBRARY_PATH
13810 shlibpath_overrides_runpath=yes
13811
13812 # This implies no fast_install, which is unacceptable.
13813 # Some rework will be needed to allow for fast_install
13814 # before this can be enabled.
13815 hardcode_into_libs=yes
13816
13817 dynamic_linker='Android linker'
13818 # -rpath works at least for libraries that are not overridden by
13819 # libraries installed in system locations.
13820 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13821 ;;
13822
13823 # This must be glibc/ELF.
13824 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13825 version_type=linux # correct to gnu/linux during the next big refactor
13826 need_lib_prefix=no
13827 need_version=no
13828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13829 soname_spec='$libname$release$shared_ext$major'
13830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13831 shlibpath_var=LD_LIBRARY_PATH
13832 shlibpath_overrides_runpath=no
13833
13834 # Some binutils ld are patched to set DT_RUNPATH
13835 if test ${lt_cv_shlibpath_overrides_runpath+y}
13836 then :
13837 printf %s "(cached) " >&6
13838 else case e in #(
13839 e) lt_cv_shlibpath_overrides_runpath=no
13840 save_LDFLAGS=$LDFLAGS
13841 save_libdir=$libdir
13842 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13843 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13846
13847 int
13848 main (void)
13849 {
13850
13851 ;
13852 return 0;
13853 }
13854 _ACEOF
13855 if ac_fn_c_try_link "$LINENO"
13856 then :
13857 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13858 then :
13859 lt_cv_shlibpath_overrides_runpath=yes
13860 fi
13861 fi
13862 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13863 conftest$ac_exeext conftest.$ac_ext
13864 LDFLAGS=$save_LDFLAGS
13865 libdir=$save_libdir
13866 ;;
13867 esac
13868 fi
13869
13870 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13871
13872 # This implies no fast_install, which is unacceptable.
13873 # Some rework will be needed to allow for fast_install
13874 # before this can be enabled.
13875 hardcode_into_libs=yes
13876
13877 # Ideally, we could use ldconfig to report *all* directories which are
13878 # searched for libraries, however this is still not possible. Aside from not
13879 # being certain /sbin/ldconfig is available, command
13880 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13881 # even though it is searched at run-time. Try to do the best guess by
13882 # appending ld.so.conf contents (and includes) to the search path.
13883 if test -f /etc/ld.so.conf; then
13884 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' ' '`
13885 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13886 fi
13887
13888 # We used to test for /lib/ld.so.1 and disable shared libraries on
13889 # powerpc, because MkLinux only supported shared libraries with the
13890 # GNU dynamic linker. Since this was broken with cross compilers,
13891 # most powerpc-linux boxes support dynamic linking these days and
13892 # people can always --disable-shared, the test was removed, and we
13893 # assume the GNU/Linux dynamic linker is in use.
13894 dynamic_linker='GNU/Linux ld.so'
13895 ;;
13896
13897 netbsdelf*-gnu)
13898 version_type=linux
13899 need_lib_prefix=no
13900 need_version=no
13901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13902 soname_spec='$libname$release$shared_ext$major'
13903 shlibpath_var=LD_LIBRARY_PATH
13904 shlibpath_overrides_runpath=no
13905 hardcode_into_libs=yes
13906 dynamic_linker='NetBSD ld.elf_so'
13907 ;;
13908
13909 netbsd*)
13910 version_type=sunos
13911 need_lib_prefix=no
13912 need_version=no
13913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13914 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13916 dynamic_linker='NetBSD (a.out) ld.so'
13917 else
13918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13919 soname_spec='$libname$release$shared_ext$major'
13920 dynamic_linker='NetBSD ld.elf_so'
13921 fi
13922 shlibpath_var=LD_LIBRARY_PATH
13923 shlibpath_overrides_runpath=yes
13924 hardcode_into_libs=yes
13925 ;;
13926
13927 *-mlibc)
13928 version_type=linux # correct to gnu/linux during the next big refactor
13929 need_lib_prefix=no
13930 need_version=no
13931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13932 soname_spec='$libname$release$shared_ext$major'
13933 dynamic_linker='mlibc ld.so'
13934 shlibpath_var=LD_LIBRARY_PATH
13935 shlibpath_overrides_runpath=no
13936 hardcode_into_libs=yes
13937 ;;
13938
13939 newsos6)
13940 version_type=linux # correct to gnu/linux during the next big refactor
13941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13942 shlibpath_var=LD_LIBRARY_PATH
13943 shlibpath_overrides_runpath=yes
13944 ;;
13945
13946 *nto* | *qnx*)
13947 version_type=qnx
13948 need_lib_prefix=no
13949 need_version=no
13950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13951 soname_spec='$libname$release$shared_ext$major'
13952 shlibpath_var=LD_LIBRARY_PATH
13953 shlibpath_overrides_runpath=no
13954 hardcode_into_libs=yes
13955 dynamic_linker='ldqnx.so'
13956 ;;
13957
13958 openbsd*)
13959 version_type=sunos
13960 sys_lib_dlsearch_path_spec=/usr/lib
13961 need_lib_prefix=no
13962 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13963 need_version=no
13964 else
13965 need_version=yes
13966 fi
13967 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13969 shlibpath_var=LD_LIBRARY_PATH
13970 shlibpath_overrides_runpath=yes
13971 ;;
13972
13973 os2*)
13974 libname_spec='$name'
13975 version_type=windows
13976 shrext_cmds=.dll
13977 need_version=no
13978 need_lib_prefix=no
13979 # OS/2 can only load a DLL with a base name of 8 characters or less.
13980 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13981 v=$($ECHO $release$versuffix | tr -d .-);
13982 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13983 $ECHO $n$v`$shared_ext'
13984 library_names_spec='${libname}_dll.$libext'
13985 dynamic_linker='OS/2 ld.exe'
13986 shlibpath_var=BEGINLIBPATH
13987 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13989 postinstall_cmds='base_file=`basename \$file`~
13990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13991 dldir=$destdir/`dirname \$dlpath`~
13992 test -d \$dldir || mkdir -p \$dldir~
13993 $install_prog $dir/$dlname \$dldir/$dlname~
13994 chmod a+x \$dldir/$dlname~
13995 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13996 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13997 fi'
13998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13999 dlpath=$dir/\$dldll~
14000 $RM \$dlpath'
14001 ;;
14002
14003 osf3* | osf4* | osf5*)
14004 version_type=osf
14005 need_lib_prefix=no
14006 need_version=no
14007 soname_spec='$libname$release$shared_ext$major'
14008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14009 shlibpath_var=LD_LIBRARY_PATH
14010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14012 ;;
14013
14014 rdos*)
14015 dynamic_linker=no
14016 ;;
14017
14018 serenity*)
14019 version_type=linux # correct to gnu/linux during the next big refactor
14020 need_lib_prefix=no
14021 need_version=no
14022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14023 soname_spec='$libname$release$shared_ext$major'
14024 shlibpath_var=LD_LIBRARY_PATH
14025 shlibpath_overrides_runpath=no
14026 dynamic_linker='SerenityOS LibELF'
14027 ;;
14028
14029 solaris*)
14030 version_type=linux # correct to gnu/linux during the next big refactor
14031 need_lib_prefix=no
14032 need_version=no
14033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14034 soname_spec='$libname$release$shared_ext$major'
14035 shlibpath_var=LD_LIBRARY_PATH
14036 shlibpath_overrides_runpath=yes
14037 hardcode_into_libs=yes
14038 # ldd complains unless libraries are executable
14039 postinstall_cmds='chmod +x $lib'
14040 ;;
14041
14042 sunos4*)
14043 version_type=sunos
14044 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14045 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14046 shlibpath_var=LD_LIBRARY_PATH
14047 shlibpath_overrides_runpath=yes
14048 if test yes = "$with_gnu_ld"; then
14049 need_lib_prefix=no
14050 fi
14051 need_version=yes
14052 ;;
14053
14054 sysv4 | sysv4.3*)
14055 version_type=linux # correct to gnu/linux during the next big refactor
14056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14057 soname_spec='$libname$release$shared_ext$major'
14058 shlibpath_var=LD_LIBRARY_PATH
14059 case $host_vendor in
14060 sni)
14061 shlibpath_overrides_runpath=no
14062 need_lib_prefix=no
14063 runpath_var=LD_RUN_PATH
14064 ;;
14065 siemens)
14066 need_lib_prefix=no
14067 ;;
14068 motorola)
14069 need_lib_prefix=no
14070 need_version=no
14071 shlibpath_overrides_runpath=no
14072 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14073 ;;
14074 esac
14075 ;;
14076
14077 sysv4*MP*)
14078 if test -d /usr/nec; then
14079 version_type=linux # correct to gnu/linux during the next big refactor
14080 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14081 soname_spec='$libname$shared_ext.$major'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 fi
14084 ;;
14085
14086 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14087 version_type=sco
14088 need_lib_prefix=no
14089 need_version=no
14090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14091 soname_spec='$libname$release$shared_ext$major'
14092 shlibpath_var=LD_LIBRARY_PATH
14093 shlibpath_overrides_runpath=yes
14094 hardcode_into_libs=yes
14095 if test yes = "$with_gnu_ld"; then
14096 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14097 else
14098 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14099 case $host_os in
14100 sco3.2v5*)
14101 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14102 ;;
14103 esac
14104 fi
14105 sys_lib_dlsearch_path_spec='/usr/lib'
14106 ;;
14107
14108 tpf*)
14109 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14110 version_type=linux # correct to gnu/linux during the next big refactor
14111 need_lib_prefix=no
14112 need_version=no
14113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14114 shlibpath_var=LD_LIBRARY_PATH
14115 shlibpath_overrides_runpath=no
14116 hardcode_into_libs=yes
14117 ;;
14118
14119 uts4*)
14120 version_type=linux # correct to gnu/linux during the next big refactor
14121 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14122 soname_spec='$libname$release$shared_ext$major'
14123 shlibpath_var=LD_LIBRARY_PATH
14124 ;;
14125
14126 emscripten*)
14127 version_type=none
14128 need_lib_prefix=no
14129 need_version=no
14130 library_names_spec='$libname$release$shared_ext'
14131 soname_spec='$libname$release$shared_ext'
14132 finish_cmds=
14133 dynamic_linker="Emscripten linker"
14134 lt_prog_compiler_wl=
14135 lt_prog_compiler_pic=
14136 lt_prog_compiler_static=
14137
14138
14139 if test yes = "$GCC"; then
14140 lt_prog_compiler_wl='-Wl,'
14141 lt_prog_compiler_static='-static'
14142
14143 case $host_os in
14144 aix*)
14145 # All AIX code is PIC.
14146 if test ia64 = "$host_cpu"; then
14147 # AIX 5 now supports IA64 processor
14148 lt_prog_compiler_static='-Bstatic'
14149 fi
14150 lt_prog_compiler_pic='-fPIC'
14151 ;;
14152
14153 amigaos*)
14154 case $host_cpu in
14155 powerpc)
14156 # see comment about AmigaOS4 .so support
14157 lt_prog_compiler_pic='-fPIC'
14158 ;;
14159 m68k)
14160 # FIXME: we need at least 68020 code to build shared libraries, but
14161 # adding the '-m68020' flag to GCC prevents building anything better,
14162 # like '-m68040'.
14163 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14164 ;;
14165 esac
14166 ;;
14167
14168 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14169 # PIC is the default for these OSes.
14170 ;;
14171
14172 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14173 # This hack is so that the source file can tell whether it is being
14174 # built for inclusion in a dll (and should export symbols for example).
14175 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14176 # (--disable-auto-import) libraries
14177 lt_prog_compiler_pic='-DDLL_EXPORT'
14178 case $host_os in
14179 os2*)
14180 lt_prog_compiler_static='$wl-static'
14181 ;;
14182 esac
14183 ;;
14184
14185 darwin* | rhapsody*)
14186 # PIC is the default on this platform
14187 # Common symbols not allowed in MH_DYLIB files
14188 lt_prog_compiler_pic='-fno-common'
14189 ;;
14190
14191 haiku*)
14192 # PIC is the default for Haiku.
14193 # The "-static" flag exists, but is broken.
14194 lt_prog_compiler_static=
14195 ;;
14196
14197 hpux*)
14198 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14199 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14200 # sets the default TLS model and affects inlining.
14201 case $host_cpu in
14202 hppa*64*)
14203 # +Z the default
14204 ;;
14205 *)
14206 lt_prog_compiler_pic='-fPIC'
14207 ;;
14208 esac
14209 ;;
14210
14211 interix[3-9]*)
14212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14213 # Instead, we relocate shared libraries at runtime.
14214 ;;
14215
14216 msdosdjgpp*)
14217 # Just because we use GCC doesn't mean we suddenly get shared libraries
14218 # on systems that don't support them.
14219 lt_prog_compiler_can_build_shared=no
14220 enable_shared=no
14221 ;;
14222
14223 *nto* | *qnx*)
14224 # QNX uses GNU C++, but need to define -shared option too, otherwise
14225 # it will coredump.
14226 lt_prog_compiler_pic='-fPIC -shared'
14227 ;;
14228
14229 sysv4*MP*)
14230 if test -d /usr/nec; then
14231 lt_prog_compiler_pic=-Kconform_pic
14232 fi
14233 ;;
14234
14235 *)
14236 lt_prog_compiler_pic='-fPIC'
14237 ;;
14238 esac
14239
14240 case $cc_basename in
14241 nvcc*) # Cuda Compiler Driver 2.2
14242 lt_prog_compiler_wl='-Xlinker '
14243 if test -n "$lt_prog_compiler_pic"; then
14244 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14245 fi
14246 ;;
14247 esac
14248 else
14249 # PORTME Check for flag to pass linker flags through the system compiler.
14250 case $host_os in
14251 aix*)
14252 lt_prog_compiler_wl='-Wl,'
14253 if test ia64 = "$host_cpu"; then
14254 # AIX 5 now supports IA64 processor
14255 lt_prog_compiler_static='-Bstatic'
14256 else
14257 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14258 fi
14259 ;;
14260
14261 darwin* | rhapsody*)
14262 # PIC is the default on this platform
14263 # Common symbols not allowed in MH_DYLIB files
14264 lt_prog_compiler_pic='-fno-common'
14265 case $cc_basename in
14266 nagfor*)
14267 # NAG Fortran compiler
14268 lt_prog_compiler_wl='-Wl,-Wl,,'
14269 lt_prog_compiler_pic='-PIC'
14270 lt_prog_compiler_static='-Bstatic'
14271 ;;
14272 esac
14273 ;;
14274
14275 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14276 # This hack is so that the source file can tell whether it is being
14277 # built for inclusion in a dll (and should export symbols for example).
14278 lt_prog_compiler_pic='-DDLL_EXPORT'
14279 case $host_os in
14280 os2*)
14281 lt_prog_compiler_static='$wl-static'
14282 ;;
14283 esac
14284 ;;
14285
14286 hpux9* | hpux10* | hpux11*)
14287 lt_prog_compiler_wl='-Wl,'
14288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14289 # not for PA HP-UX.
14290 case $host_cpu in
14291 hppa*64*|ia64*)
14292 # +Z the default
14293 ;;
14294 *)
14295 lt_prog_compiler_pic='+Z'
14296 ;;
14297 esac
14298 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14299 lt_prog_compiler_static='$wl-a ${wl}archive'
14300 ;;
14301
14302 irix5* | irix6* | nonstopux*)
14303 lt_prog_compiler_wl='-Wl,'
14304 # PIC (with -KPIC) is the default.
14305 lt_prog_compiler_static='-non_shared'
14306 ;;
14307
14308 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14309 case $cc_basename in
14310 # old Intel for x86_64, which still supported -KPIC.
14311 ecc*)
14312 lt_prog_compiler_wl='-Wl,'
14313 lt_prog_compiler_pic='-KPIC'
14314 lt_prog_compiler_static='-static'
14315 ;;
14316 *flang* | ftn | f18* | f95*)
14317 # Flang compiler.
14318 lt_prog_compiler_wl='-Wl,'
14319 lt_prog_compiler_pic='-fPIC'
14320 lt_prog_compiler_static='-static'
14321 ;;
14322 # icc used to be incompatible with GCC.
14323 # ICC 10 doesn't accept -KPIC any more.
14324 icc* | ifort*)
14325 lt_prog_compiler_wl='-Wl,'
14326 lt_prog_compiler_pic='-fPIC'
14327 lt_prog_compiler_static='-static'
14328 ;;
14329 # Lahey Fortran 8.1.
14330 lf95*)
14331 lt_prog_compiler_wl='-Wl,'
14332 lt_prog_compiler_pic='--shared'
14333 lt_prog_compiler_static='--static'
14334 ;;
14335 nagfor*)
14336 # NAG Fortran compiler
14337 lt_prog_compiler_wl='-Wl,-Wl,,'
14338 lt_prog_compiler_pic='-PIC'
14339 lt_prog_compiler_static='-Bstatic'
14340 ;;
14341 tcc*)
14342 # Fabrice Bellard et al's Tiny C Compiler
14343 lt_prog_compiler_wl='-Wl,'
14344 lt_prog_compiler_pic='-fPIC'
14345 lt_prog_compiler_static='-static'
14346 ;;
14347 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14348 # Portland Group compilers (*not* the Pentium gcc compiler,
14349 # which looks to be a dead project)
14350 lt_prog_compiler_wl='-Wl,'
14351 lt_prog_compiler_pic='-fpic'
14352 lt_prog_compiler_static='-Bstatic'
14353 ;;
14354 ccc*)
14355 lt_prog_compiler_wl='-Wl,'
14356 # All Alpha code is PIC.
14357 lt_prog_compiler_static='-non_shared'
14358 ;;
14359 xl* | bgxl* | bgf* | mpixl*)
14360 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14361 lt_prog_compiler_wl='-Wl,'
14362 lt_prog_compiler_pic='-qpic'
14363 lt_prog_compiler_static='-qstaticlink'
14364 ;;
14365 *)
14366 case `$CC -V 2>&1 | $SED 5q` in
14367 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14368 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14369 lt_prog_compiler_pic='-KPIC'
14370 lt_prog_compiler_static='-Bstatic'
14371 lt_prog_compiler_wl=''
14372 ;;
14373 *Sun\ F* | *Sun*Fortran*)
14374 lt_prog_compiler_pic='-KPIC'
14375 lt_prog_compiler_static='-Bstatic'
14376 lt_prog_compiler_wl='-Qoption ld '
14377 ;;
14378 *Sun\ C*)
14379 # Sun C 5.9
14380 lt_prog_compiler_pic='-KPIC'
14381 lt_prog_compiler_static='-Bstatic'
14382 lt_prog_compiler_wl='-Wl,'
14383 ;;
14384 *Intel*\ [CF]*Compiler*)
14385 lt_prog_compiler_wl='-Wl,'
14386 lt_prog_compiler_pic='-fPIC'
14387 lt_prog_compiler_static='-static'
14388 ;;
14389 *Portland\ Group*)
14390 lt_prog_compiler_wl='-Wl,'
14391 lt_prog_compiler_pic='-fpic'
14392 lt_prog_compiler_static='-Bstatic'
14393 ;;
14394 esac
14395 ;;
14396 esac
14397 ;;
14398
14399 newsos6)
14400 lt_prog_compiler_pic='-KPIC'
14401 lt_prog_compiler_static='-Bstatic'
14402 ;;
14403
14404 *-mlibc)
14405 lt_prog_compiler_wl='-Wl,'
14406 lt_prog_compiler_pic='-fPIC'
14407 lt_prog_compiler_static='-static'
14408 ;;
14409
14410 *nto* | *qnx*)
14411 # QNX uses GNU C++, but need to define -shared option too, otherwise
14412 # it will coredump.
14413 lt_prog_compiler_pic='-fPIC -shared'
14414 ;;
14415
14416 osf3* | osf4* | osf5*)
14417 lt_prog_compiler_wl='-Wl,'
14418 # All OSF/1 code is PIC.
14419 lt_prog_compiler_static='-non_shared'
14420 ;;
14421
14422 rdos*)
14423 lt_prog_compiler_static='-non_shared'
14424 ;;
14425
14426 serenity*)
14427 ;;
14428
14429 solaris*)
14430 lt_prog_compiler_pic='-KPIC'
14431 lt_prog_compiler_static='-Bstatic'
14432 case $cc_basename in
14433 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14434 lt_prog_compiler_wl='-Qoption ld ';;
14435 *)
14436 lt_prog_compiler_wl='-Wl,';;
14437 esac
14438 ;;
14439
14440 sunos4*)
14441 lt_prog_compiler_wl='-Qoption ld '
14442 lt_prog_compiler_pic='-PIC'
14443 lt_prog_compiler_static='-Bstatic'
14444 ;;
14445
14446 sysv4 | sysv4.2uw2* | sysv4.3*)
14447 lt_prog_compiler_wl='-Wl,'
14448 lt_prog_compiler_pic='-KPIC'
14449 lt_prog_compiler_static='-Bstatic'
14450 ;;
14451
14452 sysv4*MP*)
14453 if test -d /usr/nec; then
14454 lt_prog_compiler_pic='-Kconform_pic'
14455 lt_prog_compiler_static='-Bstatic'
14456 fi
14457 ;;
14458
14459 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14460 lt_prog_compiler_wl='-Wl,'
14461 lt_prog_compiler_pic='-KPIC'
14462 lt_prog_compiler_static='-Bstatic'
14463 ;;
14464
14465 unicos*)
14466 lt_prog_compiler_wl='-Wl,'
14467 lt_prog_compiler_can_build_shared=no
14468 ;;
14469
14470 uts4*)
14471 lt_prog_compiler_pic='-pic'
14472 lt_prog_compiler_static='-Bstatic'
14473 ;;
14474
14475 *)
14476 lt_prog_compiler_can_build_shared=no
14477 ;;
14478 esac
14479 fi
14480
14481 case $host_os in
14482 # For platforms that do not support PIC, -DPIC is meaningless:
14483 *djgpp*)
14484 lt_prog_compiler_pic=
14485 ;;
14486 *)
14487 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14488 ;;
14489 esac
14490
14491 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14492 printf %s "checking for $compiler option to produce PIC... " >&6; }
14493 if test ${lt_cv_prog_compiler_pic+y}
14494 then :
14495 printf %s "(cached) " >&6
14496 else case e in #(
14497 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14498 esac
14499 fi
14500 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14501 printf '%s\n' "$lt_cv_prog_compiler_pic" >&6; }
14502 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14503
14504 #
14505 # Check to make sure the PIC flag actually works.
14506 #
14507 if test -n "$lt_prog_compiler_pic"; then
14508 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14509 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14510 if test ${lt_cv_prog_compiler_pic_works+y}
14511 then :
14512 printf %s "(cached) " >&6
14513 else case e in #(
14514 e) lt_cv_prog_compiler_pic_works=no
14515 ac_outfile=conftest.$ac_objext
14516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14517 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14518 # Insert the option either (1) after the last *FLAGS variable, or
14519 # (2) before a word containing "conftest.", or (3) at the end.
14520 # Note that $ac_compile itself does not contain backslashes and begins
14521 # with a dollar sign (not a hyphen), so the echo should work correctly.
14522 # The option is referenced via a variable to avoid confusing sed.
14523 lt_compile=`echo "$ac_compile" | $SED \
14524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14526 -e 's:$: $lt_compiler_flag:'`
14527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14528 (eval "$lt_compile" 2>conftest.err)
14529 ac_status=$?
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 if (exit $ac_status) && test -s "$ac_outfile"; then
14533 # The compiler can only warn and ignore the option if not recognized
14534 # So say no if there are warnings other than the usual output.
14535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14537 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14538 lt_cv_prog_compiler_pic_works=yes
14539 fi
14540 fi
14541 $RM conftest*
14542 ;;
14543 esac
14544 fi
14545 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14546 printf '%s\n' "$lt_cv_prog_compiler_pic_works" >&6; }
14547
14548 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14549 case $lt_prog_compiler_pic in
14550 "" | " "*) ;;
14551 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14552 esac
14553 else
14554 lt_prog_compiler_pic=
14555 lt_prog_compiler_can_build_shared=no
14556 fi
14557
14558 fi
14559
14560
14561
14562
14563
14564 #
14565 # Check to make sure the static flag actually works.
14566 #
14567 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14568 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14569 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14570 if test ${lt_cv_prog_compiler_static_works+y}
14571 then :
14572 printf %s "(cached) " >&6
14573 else case e in #(
14574 e) lt_cv_prog_compiler_static_works=no
14575 save_LDFLAGS=$LDFLAGS
14576 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14577 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14578 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14579 # The linker can only warn and ignore the option if not recognized
14580 # So say no if there are warnings
14581 if test -s conftest.err; then
14582 # Append any errors to the config.log.
14583 cat conftest.err 1>&5
14584 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14586 if diff conftest.exp conftest.er2 >/dev/null; then
14587 lt_cv_prog_compiler_static_works=yes
14588 fi
14589 else
14590 lt_cv_prog_compiler_static_works=yes
14591 fi
14592 fi
14593 $RM -r conftest*
14594 LDFLAGS=$save_LDFLAGS
14595 ;;
14596 esac
14597 fi
14598 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14599 printf '%s\n' "$lt_cv_prog_compiler_static_works" >&6; }
14600
14601 if test yes = "$lt_cv_prog_compiler_static_works"; then
14602 :
14603 else
14604 lt_prog_compiler_static=
14605 fi
14606
14607
14608
14609 ='-fPIC'
14610 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14611 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
14612 archive_cmds_need_lc=no
14613 no_undefined_flag=
14614 ;;
14615
14616 *)
14617 dynamic_linker=no
14618 ;;
14619 esac
14620 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14621 printf '%s\n' "$dynamic_linker" >&6; }
14622 test no = "$dynamic_linker" && can_build_shared=no
14623
14624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14625 if test yes = "$GCC"; then
14626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14627 fi
14628
14629 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14630 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14631 fi
14632
14633 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14634 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14635 fi
14636
14637 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14638 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14639
14640 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14641 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14642
14643 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14644 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14743 printf %s "checking how to hardcode library paths into programs... " >&6; }
14744 hardcode_action=
14745 if test -n "$hardcode_libdir_flag_spec" ||
14746 test -n "$runpath_var" ||
14747 test yes = "$hardcode_automatic"; then
14748
14749 # We can hardcode non-existent directories.
14750 if test no != "$hardcode_direct" &&
14751 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14752 # have to relink, otherwise we might link with an installed library
14753 # when we should be linking with a yet-to-be-installed one
14754 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14755 test no != "$hardcode_minus_L"; then
14756 # Linking always hardcodes the temporary library directory.
14757 hardcode_action=relink
14758 else
14759 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14760 hardcode_action=immediate
14761 fi
14762 else
14763 # We cannot hardcode anything, or else we can only hardcode existing
14764 # directories.
14765 hardcode_action=unsupported
14766 fi
14767 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14768 printf '%s\n' "$hardcode_action" >&6; }
14769
14770 if test relink = "$hardcode_action" ||
14771 test yes = "$inherit_rpath"; then
14772 # Fast installation is not supported
14773 enable_fast_install=no
14774 elif test yes = "$shlibpath_overrides_runpath" ||
14775 test no = "$enable_shared"; then
14776 # Fast installation is not necessary
14777 enable_fast_install=needless
14778 fi
14779
14780
14781
14782
14783
14784
14785 if test yes != "$enable_dlopen"; then
14786 enable_dlopen=unknown
14787 enable_dlopen_self=unknown
14788 enable_dlopen_self_static=unknown
14789 else
14790 lt_cv_dlopen=no
14791 lt_cv_dlopen_libs=
14792
14793 case $host_os in
14794 beos*)
14795 lt_cv_dlopen=load_add_on
14796 lt_cv_dlopen_libs=
14797 lt_cv_dlopen_self=yes
14798 ;;
14799
14800 mingw* | windows* | pw32* | cegcc*)
14801 lt_cv_dlopen=LoadLibrary
14802 lt_cv_dlopen_libs=
14803 ;;
14804
14805 cygwin*)
14806 lt_cv_dlopen=dlopen
14807 lt_cv_dlopen_libs=
14808 ;;
14809
14810 darwin*)
14811 # if libdl is installed we need to link against it
14812 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14813 printf %s "checking for dlopen in -ldl... " >&6; }
14814 if test ${ac_cv_lib_dl_dlopen+y}
14815 then :
14816 printf %s "(cached) " >&6
14817 else case e in #(
14818 e) ac_check_lib_save_LIBS=$LIBS
14819 LIBS="-ldl $LIBS"
14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h. */
14822
14823 /* Override any GCC internal prototype to avoid an error.
14824 Use char because int might match the return type of a GCC
14825 builtin and then its argument prototype would still apply.
14826 The 'extern "C"' is for builds by C++ compilers;
14827 although this is not generally supported in C code supporting it here
14828 has little cost and some practical benefit (sr 110532). */
14829 #ifdef __cplusplus
14830 extern "C"
14831 #endif
14832 char dlopen (void);
14833 int
14834 main (void)
14835 {
14836 return dlopen ();
14837 ;
14838 return 0;
14839 }
14840 _ACEOF
14841 if ac_fn_c_try_link "$LINENO"
14842 then :
14843 ac_cv_lib_dl_dlopen=yes
14844 else case e in #(
14845 e) ac_cv_lib_dl_dlopen=no ;;
14846 esac
14847 fi
14848 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14849 conftest$ac_exeext conftest.$ac_ext
14850 LIBS=$ac_check_lib_save_LIBS ;;
14851 esac
14852 fi
14853 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14854 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
14855 if test "x$ac_cv_lib_dl_dlopen" = xyes
14856 then :
14857 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14858 else case e in #(
14859 e)
14860 lt_cv_dlopen=dyld
14861 lt_cv_dlopen_libs=
14862 lt_cv_dlopen_self=yes
14863 ;;
14864 esac
14865 fi
14866
14867 ;;
14868
14869 tpf*)
14870 # Don't try to run any link tests for TPF. We know it's impossible
14871 # because TPF is a cross-compiler, and we know how we open DSOs.
14872 lt_cv_dlopen=dlopen
14873 lt_cv_dlopen_libs=
14874 lt_cv_dlopen_self=no
14875 ;;
14876
14877 *)
14878 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14879 if test "x$ac_cv_func_shl_load" = xyes
14880 then :
14881 lt_cv_dlopen=shl_load
14882 else case e in #(
14883 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14884 printf %s "checking for shl_load in -ldld... " >&6; }
14885 if test ${ac_cv_lib_dld_shl_load+y}
14886 then :
14887 printf %s "(cached) " >&6
14888 else case e in #(
14889 e) ac_check_lib_save_LIBS=$LIBS
14890 LIBS="-ldld $LIBS"
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14893
14894 /* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply.
14897 The 'extern "C"' is for builds by C++ compilers;
14898 although this is not generally supported in C code supporting it here
14899 has little cost and some practical benefit (sr 110532). */
14900 #ifdef __cplusplus
14901 extern "C"
14902 #endif
14903 char shl_load (void);
14904 int
14905 main (void)
14906 {
14907 return shl_load ();
14908 ;
14909 return 0;
14910 }
14911 _ACEOF
14912 if ac_fn_c_try_link "$LINENO"
14913 then :
14914 ac_cv_lib_dld_shl_load=yes
14915 else case e in #(
14916 e) ac_cv_lib_dld_shl_load=no ;;
14917 esac
14918 fi
14919 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14920 conftest$ac_exeext conftest.$ac_ext
14921 LIBS=$ac_check_lib_save_LIBS ;;
14922 esac
14923 fi
14924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14925 printf '%s\n' "$ac_cv_lib_dld_shl_load" >&6; }
14926 if test "x$ac_cv_lib_dld_shl_load" = xyes
14927 then :
14928 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14929 else case e in #(
14930 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14931 if test "x$ac_cv_func_dlopen" = xyes
14932 then :
14933 lt_cv_dlopen=dlopen
14934 else case e in #(
14935 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14936 printf %s "checking for dlopen in -ldl... " >&6; }
14937 if test ${ac_cv_lib_dl_dlopen+y}
14938 then :
14939 printf %s "(cached) " >&6
14940 else case e in #(
14941 e) ac_check_lib_save_LIBS=$LIBS
14942 LIBS="-ldl $LIBS"
14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944 /* end confdefs.h. */
14945
14946 /* Override any GCC internal prototype to avoid an error.
14947 Use char because int might match the return type of a GCC
14948 builtin and then its argument prototype would still apply.
14949 The 'extern "C"' is for builds by C++ compilers;
14950 although this is not generally supported in C code supporting it here
14951 has little cost and some practical benefit (sr 110532). */
14952 #ifdef __cplusplus
14953 extern "C"
14954 #endif
14955 char dlopen (void);
14956 int
14957 main (void)
14958 {
14959 return dlopen ();
14960 ;
14961 return 0;
14962 }
14963 _ACEOF
14964 if ac_fn_c_try_link "$LINENO"
14965 then :
14966 ac_cv_lib_dl_dlopen=yes
14967 else case e in #(
14968 e) ac_cv_lib_dl_dlopen=no ;;
14969 esac
14970 fi
14971 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14972 conftest$ac_exeext conftest.$ac_ext
14973 LIBS=$ac_check_lib_save_LIBS ;;
14974 esac
14975 fi
14976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14977 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
14978 if test "x$ac_cv_lib_dl_dlopen" = xyes
14979 then :
14980 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14981 else case e in #(
14982 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14983 printf %s "checking for dlopen in -lsvld... " >&6; }
14984 if test ${ac_cv_lib_svld_dlopen+y}
14985 then :
14986 printf %s "(cached) " >&6
14987 else case e in #(
14988 e) ac_check_lib_save_LIBS=$LIBS
14989 LIBS="-lsvld $LIBS"
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
14992
14993 /* Override any GCC internal prototype to avoid an error.
14994 Use char because int might match the return type of a GCC
14995 builtin and then its argument prototype would still apply.
14996 The 'extern "C"' is for builds by C++ compilers;
14997 although this is not generally supported in C code supporting it here
14998 has little cost and some practical benefit (sr 110532). */
14999 #ifdef __cplusplus
15000 extern "C"
15001 #endif
15002 char dlopen (void);
15003 int
15004 main (void)
15005 {
15006 return dlopen ();
15007 ;
15008 return 0;
15009 }
15010 _ACEOF
15011 if ac_fn_c_try_link "$LINENO"
15012 then :
15013 ac_cv_lib_svld_dlopen=yes
15014 else case e in #(
15015 e) ac_cv_lib_svld_dlopen=no ;;
15016 esac
15017 fi
15018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15019 conftest$ac_exeext conftest.$ac_ext
15020 LIBS=$ac_check_lib_save_LIBS ;;
15021 esac
15022 fi
15023 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15024 printf '%s\n' "$ac_cv_lib_svld_dlopen" >&6; }
15025 if test "x$ac_cv_lib_svld_dlopen" = xyes
15026 then :
15027 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15028 else case e in #(
15029 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15030 printf %s "checking for dld_link in -ldld... " >&6; }
15031 if test ${ac_cv_lib_dld_dld_link+y}
15032 then :
15033 printf %s "(cached) " >&6
15034 else case e in #(
15035 e) ac_check_lib_save_LIBS=$LIBS
15036 LIBS="-ldld $LIBS"
15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h. */
15039
15040 /* Override any GCC internal prototype to avoid an error.
15041 Use char because int might match the return type of a GCC
15042 builtin and then its argument prototype would still apply.
15043 The 'extern "C"' is for builds by C++ compilers;
15044 although this is not generally supported in C code supporting it here
15045 has little cost and some practical benefit (sr 110532). */
15046 #ifdef __cplusplus
15047 extern "C"
15048 #endif
15049 char dld_link (void);
15050 int
15051 main (void)
15052 {
15053 return dld_link ();
15054 ;
15055 return 0;
15056 }
15057 _ACEOF
15058 if ac_fn_c_try_link "$LINENO"
15059 then :
15060 ac_cv_lib_dld_dld_link=yes
15061 else case e in #(
15062 e) ac_cv_lib_dld_dld_link=no ;;
15063 esac
15064 fi
15065 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15066 conftest$ac_exeext conftest.$ac_ext
15067 LIBS=$ac_check_lib_save_LIBS ;;
15068 esac
15069 fi
15070 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15071 printf '%s\n' "$ac_cv_lib_dld_dld_link" >&6; }
15072 if test "x$ac_cv_lib_dld_dld_link" = xyes
15073 then :
15074 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15075 fi
15076
15077 ;;
15078 esac
15079 fi
15080
15081 ;;
15082 esac
15083 fi
15084
15085 ;;
15086 esac
15087 fi
15088
15089 ;;
15090 esac
15091 fi
15092
15093 ;;
15094 esac
15095 fi
15096
15097 ;;
15098 esac
15099
15100 if test no = "$lt_cv_dlopen"; then
15101 enable_dlopen=no
15102 else
15103 enable_dlopen=yes
15104 fi
15105
15106 case $lt_cv_dlopen in
15107 dlopen)
15108 save_CPPFLAGS=$CPPFLAGS
15109 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15110
15111 save_LDFLAGS=$LDFLAGS
15112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15113
15114 save_LIBS=$LIBS
15115 LIBS="$lt_cv_dlopen_libs $LIBS"
15116
15117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15118 printf %s "checking whether a program can dlopen itself... " >&6; }
15119 if test ${lt_cv_dlopen_self+y}
15120 then :
15121 printf %s "(cached) " >&6
15122 else case e in #(
15123 e) if test yes = "$cross_compiling"; then :
15124 lt_cv_dlopen_self=cross
15125 else
15126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15127 lt_status=$lt_dlunknown
15128 cat > conftest.$ac_ext <<_LT_EOF
15129 #line $LINENO "configure"
15130 #include "confdefs.h"
15131
15132 #if HAVE_DLFCN_H
15133 #include <dlfcn.h>
15134 #endif
15135
15136 #include <stdio.h>
15137
15138 #ifdef RTLD_GLOBAL
15139 # define LT_DLGLOBAL RTLD_GLOBAL
15140 #else
15141 # ifdef DL_GLOBAL
15142 # define LT_DLGLOBAL DL_GLOBAL
15143 # else
15144 # define LT_DLGLOBAL 0
15145 # endif
15146 #endif
15147
15148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15149 find out it does not work in some platform. */
15150 #ifndef LT_DLLAZY_OR_NOW
15151 # ifdef RTLD_LAZY
15152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15153 # else
15154 # ifdef DL_LAZY
15155 # define LT_DLLAZY_OR_NOW DL_LAZY
15156 # else
15157 # ifdef RTLD_NOW
15158 # define LT_DLLAZY_OR_NOW RTLD_NOW
15159 # else
15160 # ifdef DL_NOW
15161 # define LT_DLLAZY_OR_NOW DL_NOW
15162 # else
15163 # define LT_DLLAZY_OR_NOW 0
15164 # endif
15165 # endif
15166 # endif
15167 # endif
15168 #endif
15169
15170 /* When -fvisibility=hidden is used, assume the code has been annotated
15171 correspondingly for the symbols needed. */
15172 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15173 int fnord (void) __attribute__((visibility("default")));
15174 #endif
15175
15176 int fnord (void) { return 42; }
15177 int main (void)
15178 {
15179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15180 int status = $lt_dlunknown;
15181
15182 if (self)
15183 {
15184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15185 else
15186 {
15187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15188 else puts (dlerror ());
15189 }
15190 /* dlclose (self); */
15191 }
15192 else
15193 puts (dlerror ());
15194
15195 return status;
15196 }
15197 _LT_EOF
15198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15199 (eval $ac_link) 2>&5
15200 ac_status=$?
15201 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15202 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15203 (./conftest; exit; ) >&5 2>/dev/null
15204 lt_status=$?
15205 case x$lt_status in
15206 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15207 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15208 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15209 esac
15210 else :
15211 # compilation failed
15212 lt_cv_dlopen_self=no
15213 fi
15214 fi
15215 rm -fr conftest*
15216
15217 ;;
15218 esac
15219 fi
15220 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15221 printf '%s\n' "$lt_cv_dlopen_self" >&6; }
15222
15223 if test yes = "$lt_cv_dlopen_self"; then
15224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15225 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15226 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15227 if test ${lt_cv_dlopen_self_static+y}
15228 then :
15229 printf %s "(cached) " >&6
15230 else case e in #(
15231 e) if test yes = "$cross_compiling"; then :
15232 lt_cv_dlopen_self_static=cross
15233 else
15234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15235 lt_status=$lt_dlunknown
15236 cat > conftest.$ac_ext <<_LT_EOF
15237 #line $LINENO "configure"
15238 #include "confdefs.h"
15239
15240 #if HAVE_DLFCN_H
15241 #include <dlfcn.h>
15242 #endif
15243
15244 #include <stdio.h>
15245
15246 #ifdef RTLD_GLOBAL
15247 # define LT_DLGLOBAL RTLD_GLOBAL
15248 #else
15249 # ifdef DL_GLOBAL
15250 # define LT_DLGLOBAL DL_GLOBAL
15251 # else
15252 # define LT_DLGLOBAL 0
15253 # endif
15254 #endif
15255
15256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15257 find out it does not work in some platform. */
15258 #ifndef LT_DLLAZY_OR_NOW
15259 # ifdef RTLD_LAZY
15260 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15261 # else
15262 # ifdef DL_LAZY
15263 # define LT_DLLAZY_OR_NOW DL_LAZY
15264 # else
15265 # ifdef RTLD_NOW
15266 # define LT_DLLAZY_OR_NOW RTLD_NOW
15267 # else
15268 # ifdef DL_NOW
15269 # define LT_DLLAZY_OR_NOW DL_NOW
15270 # else
15271 # define LT_DLLAZY_OR_NOW 0
15272 # endif
15273 # endif
15274 # endif
15275 # endif
15276 #endif
15277
15278 /* When -fvisibility=hidden is used, assume the code has been annotated
15279 correspondingly for the symbols needed. */
15280 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15281 int fnord (void) __attribute__((visibility("default")));
15282 #endif
15283
15284 int fnord (void) { return 42; }
15285 int main (void)
15286 {
15287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15288 int status = $lt_dlunknown;
15289
15290 if (self)
15291 {
15292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15293 else
15294 {
15295 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15296 else puts (dlerror ());
15297 }
15298 /* dlclose (self); */
15299 }
15300 else
15301 puts (dlerror ());
15302
15303 return status;
15304 }
15305 _LT_EOF
15306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15307 (eval $ac_link) 2>&5
15308 ac_status=$?
15309 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15310 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15311 (./conftest; exit; ) >&5 2>/dev/null
15312 lt_status=$?
15313 case x$lt_status in
15314 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15315 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15316 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15317 esac
15318 else :
15319 # compilation failed
15320 lt_cv_dlopen_self_static=no
15321 fi
15322 fi
15323 rm -fr conftest*
15324
15325 ;;
15326 esac
15327 fi
15328 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15329 printf '%s\n' "$lt_cv_dlopen_self_static" >&6; }
15330 fi
15331
15332 CPPFLAGS=$save_CPPFLAGS
15333 LDFLAGS=$save_LDFLAGS
15334 LIBS=$save_LIBS
15335 ;;
15336 esac
15337
15338 case $lt_cv_dlopen_self in
15339 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15340 *) enable_dlopen_self=unknown ;;
15341 esac
15342
15343 case $lt_cv_dlopen_self_static in
15344 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15345 *) enable_dlopen_self_static=unknown ;;
15346 esac
15347 fi
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365 striplib=
15366 old_striplib=
15367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15368 printf %s "checking whether stripping libraries is possible... " >&6; }
15369 if test -z "$STRIP"; then
15370 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15371 printf '%s\n' "no" >&6; }
15372 else
15373 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15374 old_striplib="$STRIP --strip-debug"
15375 striplib="$STRIP --strip-unneeded"
15376 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15377 printf '%s\n' "yes" >&6; }
15378 else
15379 case $host_os in
15380 darwin*)
15381 # FIXME - insert some real tests, host_os isn't really good enough
15382 striplib="$STRIP -x"
15383 old_striplib="$STRIP -S"
15384 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15385 printf '%s\n' "yes" >&6; }
15386 ;;
15387 freebsd*)
15388 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15389 old_striplib="$STRIP --strip-debug"
15390 striplib="$STRIP --strip-unneeded"
15391 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15392 printf '%s\n' "yes" >&6; }
15393 else
15394 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15395 printf '%s\n' "no" >&6; }
15396 fi
15397 ;;
15398 *)
15399 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15400 printf '%s\n' "no" >&6; }
15401 ;;
15402 esac
15403 fi
15404 fi
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417 # Report what library types will actually be built
15418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15419 printf %s "checking if libtool supports shared libraries... " >&6; }
15420 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15421 printf '%s\n' "$can_build_shared" >&6; }
15422
15423 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15424 printf %s "checking whether to build shared libraries... " >&6; }
15425 test no = "$can_build_shared" && enable_shared=no
15426
15427 # On AIX, shared libraries and static libraries use the same namespace, and
15428 # are all built from PIC.
15429 case $host_os in
15430 aix3*)
15431 test yes = "$enable_shared" && enable_static=no
15432 if test -n "$RANLIB"; then
15433 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15434 postinstall_cmds='$RANLIB $lib'
15435 fi
15436 ;;
15437
15438 aix[4-9]*)
15439 if test ia64 != "$host_cpu"; then
15440 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15441 yes,aix,yes) ;; # shared object as lib.so file only
15442 yes,svr4,*) ;; # shared object as lib.so archive member only
15443 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15444 esac
15445 fi
15446 ;;
15447 esac
15448 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15449 printf '%s\n' "$enable_shared" >&6; }
15450
15451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15452 printf %s "checking whether to build static libraries... " >&6; }
15453 # Make sure either enable_shared or enable_static is yes.
15454 test yes = "$enable_shared" || enable_static=yes
15455 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15456 printf '%s\n' "$enable_static" >&6; }
15457
15458
15459
15460
15461 fi
15462 ac_ext=c
15463 ac_cpp='$CPP $CPPFLAGS'
15464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15467
15468 CC=$lt_save_CC
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484 ac_config_commands="$ac_config_commands libtool"
15485
15486
15487
15488
15489 # Only expand once:
15490
15491
15492
15493 ac_ext=cpp
15494 ac_cpp='$CXXCPP $CPPFLAGS'
15495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15498 if test -z "$CXX"; then
15499 if test -n "$CCC"; then
15500 CXX=$CCC
15501 else
15502 if test -n "$ac_tool_prefix"; then
15503 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15504 do
15505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15507 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15508 printf %s "checking for $ac_word... " >&6; }
15509 if test ${ac_cv_prog_CXX+y}
15510 then :
15511 printf %s "(cached) " >&6
15512 else case e in #(
15513 e) if test -n "$CXX"; then
15514 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15515 else
15516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15517 for as_dir in $PATH
15518 do
15519 IFS=$as_save_IFS
15520 case $as_dir in #(((
15521 '') as_dir=./ ;;
15522 */) ;;
15523 *) as_dir=$as_dir/ ;;
15524 esac
15525 for ac_exec_ext in '' $ac_executable_extensions; do
15526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15527 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15528 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15529 break 2
15530 fi
15531 done
15532 done
15533 IFS=$as_save_IFS
15534
15535 fi ;;
15536 esac
15537 fi
15538 CXX=$ac_cv_prog_CXX
15539 if test -n "$CXX"; then
15540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15541 printf '%s\n' "$CXX" >&6; }
15542 else
15543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15544 printf '%s\n' "no" >&6; }
15545 fi
15546
15547
15548 test -n "$CXX" && break
15549 done
15550 fi
15551 if test -z "$CXX"; then
15552 ac_ct_CXX=$CXX
15553 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15554 do
15555 # Extract the first word of "$ac_prog", so it can be a program name with args.
15556 set dummy $ac_prog; ac_word=$2
15557 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15558 printf %s "checking for $ac_word... " >&6; }
15559 if test ${ac_cv_prog_ac_ct_CXX+y}
15560 then :
15561 printf %s "(cached) " >&6
15562 else case e in #(
15563 e) if test -n "$ac_ct_CXX"; then
15564 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15565 else
15566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15567 for as_dir in $PATH
15568 do
15569 IFS=$as_save_IFS
15570 case $as_dir in #(((
15571 '') as_dir=./ ;;
15572 */) ;;
15573 *) as_dir=$as_dir/ ;;
15574 esac
15575 for ac_exec_ext in '' $ac_executable_extensions; do
15576 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15577 ac_cv_prog_ac_ct_CXX="$ac_prog"
15578 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15579 break 2
15580 fi
15581 done
15582 done
15583 IFS=$as_save_IFS
15584
15585 fi ;;
15586 esac
15587 fi
15588 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15589 if test -n "$ac_ct_CXX"; then
15590 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15591 printf '%s\n' "$ac_ct_CXX" >&6; }
15592 else
15593 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15594 printf '%s\n' "no" >&6; }
15595 fi
15596
15597
15598 test -n "$ac_ct_CXX" && break
15599 done
15600
15601 if test "x$ac_ct_CXX" = x; then
15602 CXX="g++"
15603 else
15604 case $cross_compiling:$ac_tool_warned in
15605 yes:)
15606 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15607 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15608 ac_tool_warned=yes ;;
15609 esac
15610 CXX=$ac_ct_CXX
15611 fi
15612 fi
15613
15614 fi
15615 fi
15616 # Provide some information about the compiler.
15617 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15618 set X $ac_compile
15619 ac_compiler=$2
15620 for ac_option in --version -v -V -qversion; do
15621 { { ac_try="$ac_compiler $ac_option >&5"
15622 case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15625 esac
15626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15627 printf '%s\n' "$ac_try_echo"; } >&5
15628 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15629 ac_status=$?
15630 if test -s conftest.err; then
15631 sed '10a\
15632 ... rest of stderr output deleted ...
15633 10q' conftest.err >conftest.er1
15634 cat conftest.er1 >&5
15635 fi
15636 rm -f conftest.er1 conftest.err
15637 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15638 test $ac_status = 0; }
15639 done
15640
15641 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
15642 printf %s "checking whether the compiler supports GNU C++... " >&6; }
15643 if test ${ac_cv_cxx_compiler_gnu+y}
15644 then :
15645 printf %s "(cached) " >&6
15646 else case e in #(
15647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15649
15650 int
15651 main (void)
15652 {
15653 #ifndef __GNUC__
15654 choke me
15655 #endif
15656
15657 ;
15658 return 0;
15659 }
15660 _ACEOF
15661 if ac_fn_cxx_try_compile "$LINENO"
15662 then :
15663 ac_compiler_gnu=yes
15664 else case e in #(
15665 e) ac_compiler_gnu=no ;;
15666 esac
15667 fi
15668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15669 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15670 ;;
15671 esac
15672 fi
15673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15674 printf '%s\n' "$ac_cv_cxx_compiler_gnu" >&6; }
15675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15676
15677 if test $ac_compiler_gnu = yes; then
15678 GXX=yes
15679 else
15680 GXX=
15681 fi
15682 ac_test_CXXFLAGS=${CXXFLAGS+y}
15683 ac_save_CXXFLAGS=$CXXFLAGS
15684 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15685 printf %s "checking whether $CXX accepts -g... " >&6; }
15686 if test ${ac_cv_prog_cxx_g+y}
15687 then :
15688 printf %s "(cached) " >&6
15689 else case e in #(
15690 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15691 ac_cxx_werror_flag=yes
15692 ac_cv_prog_cxx_g=no
15693 CXXFLAGS="-g"
15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h. */
15696
15697 int
15698 main (void)
15699 {
15700
15701 ;
15702 return 0;
15703 }
15704 _ACEOF
15705 if ac_fn_cxx_try_compile "$LINENO"
15706 then :
15707 ac_cv_prog_cxx_g=yes
15708 else case e in #(
15709 e) CXXFLAGS=""
15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15712
15713 int
15714 main (void)
15715 {
15716
15717 ;
15718 return 0;
15719 }
15720 _ACEOF
15721 if ac_fn_cxx_try_compile "$LINENO"
15722 then :
15723
15724 else case e in #(
15725 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15726 CXXFLAGS="-g"
15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h. */
15729
15730 int
15731 main (void)
15732 {
15733
15734 ;
15735 return 0;
15736 }
15737 _ACEOF
15738 if ac_fn_cxx_try_compile "$LINENO"
15739 then :
15740 ac_cv_prog_cxx_g=yes
15741 fi
15742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15743 esac
15744 fi
15745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15746 esac
15747 fi
15748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15749 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
15750 esac
15751 fi
15752 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15753 printf '%s\n' "$ac_cv_prog_cxx_g" >&6; }
15754 if test $ac_test_CXXFLAGS; then
15755 CXXFLAGS=$ac_save_CXXFLAGS
15756 elif test $ac_cv_prog_cxx_g = yes; then
15757 if test "$GXX" = yes; then
15758 CXXFLAGS="-g -O2"
15759 else
15760 CXXFLAGS="-g"
15761 fi
15762 else
15763 if test "$GXX" = yes; then
15764 CXXFLAGS="-O2"
15765 else
15766 CXXFLAGS=
15767 fi
15768 fi
15769 ac_ext=c
15770 ac_cpp='$CPP $CPPFLAGS'
15771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15774
15775 depcc="$CXX" am_compiler_list=
15776
15777 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15778 printf %s "checking dependency style of $depcc... " >&6; }
15779 if test ${am_cv_CXX_dependencies_compiler_type+y}
15780 then :
15781 printf %s "(cached) " >&6
15782 else case e in #(
15783 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15784 # We make a subdir and do the tests there. Otherwise we can end up
15785 # making bogus files that we don't know about and never remove. For
15786 # instance it was reported that on HP-UX the gcc test will end up
15787 # making a dummy file named 'D' -- because '-MD' means "put the output
15788 # in D".
15789 rm -rf conftest.dir
15790 mkdir conftest.dir
15791 # Copy depcomp to subdir because otherwise we won't find it if we're
15792 # using a relative directory.
15793 cp "$am_depcomp" conftest.dir
15794 cd conftest.dir
15795 # We will build objects and dependencies in a subdirectory because
15796 # it helps to detect inapplicable dependency modes. For instance
15797 # both Tru64's cc and ICC support -MD to output dependencies as a
15798 # side effect of compilation, but ICC will put the dependencies in
15799 # the current directory while Tru64 will put them in the object
15800 # directory.
15801 mkdir sub
15802
15803 am_cv_CXX_dependencies_compiler_type=none
15804 if test "$am_compiler_list" = ""; then
15805 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15806 fi
15807 am__universal=false
15808 case " $depcc " in #(
15809 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15810 esac
15811
15812 for depmode in $am_compiler_list; do
15813 # Setup a source with many dependencies, because some compilers
15814 # like to wrap large dependency lists on column 80 (with \), and
15815 # we should not choose a depcomp mode which is confused by this.
15816 #
15817 # We need to recreate these files for each test, as the compiler may
15818 # overwrite some of them when testing with obscure command lines.
15819 # This happens at least with the AIX C compiler.
15820 : > sub/conftest.c
15821 for i in 1 2 3 4 5 6; do
15822 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15823 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15824 # Solaris 10 /bin/sh.
15825 echo '/* dummy */' > sub/conftst$i.h
15826 done
15827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15828
15829 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15830 # mode. It turns out that the SunPro C++ compiler does not properly
15831 # handle '-M -o', and we need to detect this. Also, some Intel
15832 # versions had trouble with output in subdirs.
15833 am__obj=sub/conftest.${OBJEXT-o}
15834 am__minus_obj="-o $am__obj"
15835 case $depmode in
15836 gcc)
15837 # This depmode causes a compiler race in universal mode.
15838 test "$am__universal" = false || continue
15839 ;;
15840 nosideeffect)
15841 # After this tag, mechanisms are not by side-effect, so they'll
15842 # only be used when explicitly requested.
15843 if test "x$enable_dependency_tracking" = xyes; then
15844 continue
15845 else
15846 break
15847 fi
15848 ;;
15849 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15850 # This compiler won't grok '-c -o', but also, the minuso test has
15851 # not run yet. These depmodes are late enough in the game, and
15852 # so weak that their functioning should not be impacted.
15853 am__obj=conftest.${OBJEXT-o}
15854 am__minus_obj=
15855 ;;
15856 none) break ;;
15857 esac
15858 if depmode=$depmode \
15859 source=sub/conftest.c object=$am__obj \
15860 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15861 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15862 >/dev/null 2>conftest.err &&
15863 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15865 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15867 # icc doesn't choke on unknown options, it will just issue warnings
15868 # or remarks (even with -Werror). So we grep stderr for any message
15869 # that says an option was ignored or not supported.
15870 # When given -MP, icc 7.0 and 7.1 complain thus:
15871 # icc: Command line warning: ignoring option '-M'; no argument required
15872 # The diagnosis changed in icc 8.0:
15873 # icc: Command line remark: option '-MP' not supported
15874 if (grep 'ignoring option' conftest.err ||
15875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15876 am_cv_CXX_dependencies_compiler_type=$depmode
15877 break
15878 fi
15879 fi
15880 done
15881
15882 cd ..
15883 rm -rf conftest.dir
15884 else
15885 am_cv_CXX_dependencies_compiler_type=none
15886 fi
15887 ;;
15888 esac
15889 fi
15890 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15891 printf '%s\n' "$am_cv_CXX_dependencies_compiler_type" >&6; }
15892 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15893
15894 if
15895 test "x$enable_dependency_tracking" != xno \
15896 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15897 am__fastdepCXX_TRUE=
15898 am__fastdepCXX_FALSE='#'
15899 else
15900 am__fastdepCXX_TRUE='#'
15901 am__fastdepCXX_FALSE=
15902 fi
15903
15904
15905
15906
15907
15908 func_stripname_cnf ()
15909 {
15910 case $2 in
15911 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15912 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
15913 esac
15914 } # func_stripname_cnf
15915
15916 if test -n "$CXX" && ( test no != "$CXX" &&
15917 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15918 (test g++ != "$CXX"))); then
15919 ac_ext=cpp
15920 ac_cpp='$CXXCPP $CPPFLAGS'
15921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15925 printf %s "checking how to run the C++ preprocessor... " >&6; }
15926 if test -z "$CXXCPP"; then
15927 if test ${ac_cv_prog_CXXCPP+y}
15928 then :
15929 printf %s "(cached) " >&6
15930 else case e in #(
15931 e) # Double quotes because $CXX needs to be expanded
15932 for CXXCPP in "$CXX -E" cpp /lib/cpp
15933 do
15934 ac_preproc_ok=false
15935 for ac_cxx_preproc_warn_flag in '' yes
15936 do
15937 # Use a header file that comes with gcc, so configuring glibc
15938 # with a fresh cross-compiler works.
15939 # On the NeXT, cc -E runs the code through the compiler's parser,
15940 # not just through cpp. "Syntax error" is here to catch this case.
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15943 #include <limits.h>
15944 Syntax error
15945 _ACEOF
15946 if ac_fn_cxx_try_cpp "$LINENO"
15947 then :
15948
15949 else case e in #(
15950 e) # Broken: fails on valid input.
15951 continue ;;
15952 esac
15953 fi
15954 rm -f conftest.err conftest.i conftest.$ac_ext
15955
15956 # OK, works on sane cases. Now check whether nonexistent headers
15957 # can be detected and how.
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15960 #include <ac_nonexistent.h>
15961 _ACEOF
15962 if ac_fn_cxx_try_cpp "$LINENO"
15963 then :
15964 # Broken: success on invalid input.
15965 continue
15966 else case e in #(
15967 e) # Passes both tests.
15968 ac_preproc_ok=:
15969 break ;;
15970 esac
15971 fi
15972 rm -f conftest.err conftest.i conftest.$ac_ext
15973
15974 done
15975 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15976 rm -f conftest.i conftest.err conftest.$ac_ext
15977 if $ac_preproc_ok
15978 then :
15979 break
15980 fi
15981
15982 done
15983 ac_cv_prog_CXXCPP=$CXXCPP
15984 ;;
15985 esac
15986 fi
15987 CXXCPP=$ac_cv_prog_CXXCPP
15988 else
15989 ac_cv_prog_CXXCPP=$CXXCPP
15990 fi
15991 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15992 printf '%s\n' "$CXXCPP" >&6; }
15993 ac_preproc_ok=false
15994 for ac_cxx_preproc_warn_flag in '' yes
15995 do
15996 # Use a header file that comes with gcc, so configuring glibc
15997 # with a fresh cross-compiler works.
15998 # On the NeXT, cc -E runs the code through the compiler's parser,
15999 # not just through cpp. "Syntax error" is here to catch this case.
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16002 #include <limits.h>
16003 Syntax error
16004 _ACEOF
16005 if ac_fn_cxx_try_cpp "$LINENO"
16006 then :
16007
16008 else case e in #(
16009 e) # Broken: fails on valid input.
16010 continue ;;
16011 esac
16012 fi
16013 rm -f conftest.err conftest.i conftest.$ac_ext
16014
16015 # OK, works on sane cases. Now check whether nonexistent headers
16016 # can be detected and how.
16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018 /* end confdefs.h. */
16019 #include <ac_nonexistent.h>
16020 _ACEOF
16021 if ac_fn_cxx_try_cpp "$LINENO"
16022 then :
16023 # Broken: success on invalid input.
16024 continue
16025 else case e in #(
16026 e) # Passes both tests.
16027 ac_preproc_ok=:
16028 break ;;
16029 esac
16030 fi
16031 rm -f conftest.err conftest.i conftest.$ac_ext
16032
16033 done
16034 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16035 rm -f conftest.i conftest.err conftest.$ac_ext
16036 if $ac_preproc_ok
16037 then :
16038
16039 else case e in #(
16040 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16041 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
16042 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16043 See 'config.log' for more details" "$LINENO" 5; } ;;
16044 esac
16045 fi
16046
16047 ac_ext=c
16048 ac_cpp='$CPP $CPPFLAGS'
16049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16052
16053 else
16054 _lt_caught_CXX_error=yes
16055 fi
16056
16057 ac_ext=cpp
16058 ac_cpp='$CXXCPP $CPPFLAGS'
16059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16062
16063 archive_cmds_need_lc_CXX=no
16064 allow_undefined_flag_CXX=
16065 always_export_symbols_CXX=no
16066 archive_expsym_cmds_CXX=
16067 compiler_needs_object_CXX=no
16068 export_dynamic_flag_spec_CXX=
16069 hardcode_direct_CXX=no
16070 hardcode_direct_absolute_CXX=no
16071 hardcode_libdir_flag_spec_CXX=
16072 hardcode_libdir_separator_CXX=
16073 hardcode_minus_L_CXX=no
16074 hardcode_shlibpath_var_CXX=unsupported
16075 hardcode_automatic_CXX=no
16076 inherit_rpath_CXX=no
16077 module_cmds_CXX=
16078 module_expsym_cmds_CXX=
16079 link_all_deplibs_CXX=unknown
16080 old_archive_cmds_CXX=$old_archive_cmds
16081 reload_flag_CXX=$reload_flag
16082 reload_cmds_CXX=$reload_cmds
16083 no_undefined_flag_CXX=
16084 whole_archive_flag_spec_CXX=
16085 enable_shared_with_static_runtimes_CXX=no
16086
16087 # Source file extension for C++ test sources.
16088 ac_ext=cpp
16089
16090 # Object file extension for compiled C++ test sources.
16091 objext=o
16092 objext_CXX=$objext
16093
16094 # No sense in running all these tests if we already determined that
16095 # the CXX compiler isn't working. Some variables (like enable_shared)
16096 # are currently assumed to apply to all compilers on this platform,
16097 # and will be corrupted by setting them based on a non-working compiler.
16098 if test yes != "$_lt_caught_CXX_error"; then
16099 # Code to be used in simple compile tests
16100 lt_simple_compile_test_code="int some_variable = 0;"
16101
16102 # Code to be used in simple link tests
16103 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16104
16105 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16106
16107
16108
16109
16110
16111
16112 # If no C compiler was specified, use CC.
16113 LTCC=${LTCC-"$CC"}
16114
16115 # If no C compiler flags were specified, use CFLAGS.
16116 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16117
16118 # Allow CC to be a program name with arguments.
16119 compiler=$CC
16120
16121
16122 # save warnings/boilerplate of simple test code
16123 ac_outfile=conftest.$ac_objext
16124 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16125 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16126 _lt_compiler_boilerplate=`cat conftest.err`
16127 $RM conftest*
16128
16129 ac_outfile=conftest.$ac_objext
16130 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16131 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16132 _lt_linker_boilerplate=`cat conftest.err`
16133 $RM -r conftest*
16134
16135
16136 # Allow CC to be a program name with arguments.
16137 lt_save_CC=$CC
16138 lt_save_CFLAGS=$CFLAGS
16139 lt_save_LD=$LD
16140 lt_save_GCC=$GCC
16141 GCC=$GXX
16142 lt_save_with_gnu_ld=$with_gnu_ld
16143 lt_save_path_LD=$lt_cv_path_LD
16144 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16145 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16146 else
16147 $as_unset lt_cv_prog_gnu_ld
16148 fi
16149 if test -n "${lt_cv_path_LDCXX+set}"; then
16150 lt_cv_path_LD=$lt_cv_path_LDCXX
16151 else
16152 $as_unset lt_cv_path_LD
16153 fi
16154 test -z "${LDCXX+set}" || LD=$LDCXX
16155 CC=${CXX-"c++"}
16156 CFLAGS=$CXXFLAGS
16157 compiler=$CC
16158 compiler_CXX=$CC
16159 func_cc_basename $compiler
16160 cc_basename=$func_cc_basename_result
16161
16162
16163 if test -n "$compiler"; then
16164 # We don't want -fno-exception when compiling C++ code, so set the
16165 # no_builtin_flag separately
16166 if test yes = "$GXX"; then
16167 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16168 else
16169 lt_prog_compiler_no_builtin_flag_CXX=
16170 fi
16171
16172 if test yes = "$GXX"; then
16173 # Set up default GNU C++ configuration
16174
16175
16176
16177 # Check whether --with-gnu-ld was given.
16178 if test ${with_gnu_ld+y}
16179 then :
16180 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16181 else case e in #(
16182 e) with_gnu_ld=no ;;
16183 esac
16184 fi
16185
16186 ac_prog=ld
16187 if test yes = "$GCC"; then
16188 # Check if gcc -print-prog-name=ld gives a path.
16189 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16190 printf %s "checking for ld used by $CC... " >&6; }
16191 case $host in
16192 *-*-mingw* | *-*-windows*)
16193 # gcc leaves a trailing carriage return, which upsets mingw
16194 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16195 *)
16196 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16197 esac
16198 case $ac_prog in
16199 # Accept absolute paths.
16200 [\\/]* | ?:[\\/]*)
16201 re_direlt='/[^/][^/]*/\.\./'
16202 # Canonicalize the pathname of ld
16203 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16204 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16205 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16206 done
16207 test -z "$LD" && LD=$ac_prog
16208 ;;
16209 "")
16210 # If it fails, then pretend we aren't using GCC.
16211 ac_prog=ld
16212 ;;
16213 *)
16214 # If it is relative, then search for the first ld in PATH.
16215 with_gnu_ld=unknown
16216 ;;
16217 esac
16218 elif test yes = "$with_gnu_ld"; then
16219 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16220 printf %s "checking for GNU ld... " >&6; }
16221 else
16222 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16223 printf %s "checking for non-GNU ld... " >&6; }
16224 fi
16225 if test ${lt_cv_path_LD+y}
16226 then :
16227 printf %s "(cached) " >&6
16228 else case e in #(
16229 e) if test -z "$LD"; then
16230 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16231 for ac_dir in $PATH; do
16232 IFS=$lt_save_ifs
16233 test -z "$ac_dir" && ac_dir=.
16234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16235 lt_cv_path_LD=$ac_dir/$ac_prog
16236 # Check to see if the program is GNU ld. I'd rather use --version,
16237 # but apparently some variants of GNU ld only accept -v.
16238 # Break only if it was the GNU/non-GNU ld that we prefer.
16239 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16240 *GNU* | *'with BFD'*)
16241 test no != "$with_gnu_ld" && break
16242 ;;
16243 *)
16244 test yes != "$with_gnu_ld" && break
16245 ;;
16246 esac
16247 fi
16248 done
16249 IFS=$lt_save_ifs
16250 else
16251 lt_cv_path_LD=$LD # Let the user override the test with a path.
16252 fi ;;
16253 esac
16254 fi
16255
16256 LD=$lt_cv_path_LD
16257 if test -n "$LD"; then
16258 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16259 printf '%s\n' "$LD" >&6; }
16260 else
16261 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
16262 printf '%s\n' "no" >&6; }
16263 fi
16264 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16265 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16266 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16267 if test ${lt_cv_prog_gnu_ld+y}
16268 then :
16269 printf %s "(cached) " >&6
16270 else case e in #(
16271 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
16272 case `$LD -v 2>&1 </dev/null` in
16273 *GNU* | *'with BFD'*)
16274 lt_cv_prog_gnu_ld=yes
16275 ;;
16276 *)
16277 lt_cv_prog_gnu_ld=no
16278 ;;
16279 esac ;;
16280 esac
16281 fi
16282 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16283 printf '%s\n' "$lt_cv_prog_gnu_ld" >&6; }
16284 with_gnu_ld=$lt_cv_prog_gnu_ld
16285
16286
16287
16288
16289
16290
16291
16292 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16293 # archiving commands below assume that GNU ld is being used.
16294 if test yes = "$with_gnu_ld"; then
16295 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16296 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16297
16298 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16299 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16300
16301 # If archive_cmds runs LD, not CC, wlarc should be empty
16302 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16303 # investigate it a little bit more. (MM)
16304 wlarc='$wl'
16305
16306 # ancient GNU ld didn't support --whole-archive et. al.
16307 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16308 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16309 else
16310 whole_archive_flag_spec_CXX=
16311 fi
16312 else
16313 with_gnu_ld=no
16314 wlarc=
16315
16316 # A generic and very simple default shared library creation
16317 # command for GNU C++ for the case where it uses the native
16318 # linker, instead of GNU ld. If possible, this setting should
16319 # overridden to take advantage of the native linker features on
16320 # the platform it is being used on.
16321 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16322 fi
16323
16324 # Commands to make compiler produce verbose output that lists
16325 # what "hidden" libraries, object files and flags are used when
16326 # linking a shared library.
16327 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16328
16329 else
16330 GXX=no
16331 with_gnu_ld=no
16332 wlarc=
16333 fi
16334
16335 # PORTME: fill in a description of your system's C++ link characteristics
16336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16337 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16338 ld_shlibs_CXX=yes
16339 case $host_os in
16340 aix3*)
16341 # FIXME: insert proper C++ library support
16342 ld_shlibs_CXX=no
16343 ;;
16344 aix[4-9]*)
16345 if test ia64 = "$host_cpu"; then
16346 # On IA64, the linker does run time linking by default, so we don't
16347 # have to do anything special.
16348 aix_use_runtimelinking=no
16349 exp_sym_flag='-Bexport'
16350 no_entry_flag=
16351 else
16352 aix_use_runtimelinking=no
16353
16354 # Test if we are trying to use run time linking or normal
16355 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16356 # have runtime linking enabled, and use it for executables.
16357 # For shared libraries, we enable/disable runtime linking
16358 # depending on the kind of the shared library created -
16359 # when "with_aix_soname,aix_use_runtimelinking" is:
16360 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16361 # "aix,yes" lib.so shared, rtl:yes, for executables
16362 # lib.a static archive
16363 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16364 # lib.a(lib.so.V) shared, rtl:no, for executables
16365 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16366 # lib.a(lib.so.V) shared, rtl:no
16367 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16368 # lib.a static archive
16369 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16370 for ld_flag in $LDFLAGS; do
16371 case $ld_flag in
16372 *-brtl*)
16373 aix_use_runtimelinking=yes
16374 break
16375 ;;
16376 esac
16377 done
16378 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16379 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16380 # so we don't have lib.a shared libs to link our executables.
16381 # We have to force runtime linking in this case.
16382 aix_use_runtimelinking=yes
16383 LDFLAGS="$LDFLAGS -Wl,-brtl"
16384 fi
16385 ;;
16386 esac
16387
16388 exp_sym_flag='-bexport'
16389 no_entry_flag='-bnoentry'
16390 fi
16391
16392 # When large executables or shared objects are built, AIX ld can
16393 # have problems creating the table of contents. If linking a library
16394 # or program results in "error TOC overflow" add -mminimal-toc to
16395 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16396 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16397
16398 archive_cmds_CXX=''
16399 hardcode_direct_CXX=yes
16400 hardcode_direct_absolute_CXX=yes
16401 hardcode_libdir_separator_CXX=':'
16402 link_all_deplibs_CXX=yes
16403 file_list_spec_CXX='$wl-f,'
16404 case $with_aix_soname,$aix_use_runtimelinking in
16405 aix,*) ;; # no import file
16406 svr4,* | *,yes) # use import file
16407 # The Import File defines what to hardcode.
16408 hardcode_direct_CXX=no
16409 hardcode_direct_absolute_CXX=no
16410 ;;
16411 esac
16412
16413 if test yes = "$GXX"; then
16414 case $host_os in aix4.[012]|aix4.[012].*)
16415 # We only want to do this on AIX 4.2 and lower, the check
16416 # below for broken collect2 doesn't work under 4.3+
16417 collect2name=`$CC -print-prog-name=collect2`
16418 if test -f "$collect2name" &&
16419 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16420 then
16421 # We have reworked collect2
16422 :
16423 else
16424 # We have old collect2
16425 hardcode_direct_CXX=unsupported
16426 # It fails to find uninstalled libraries when the uninstalled
16427 # path is not listed in the libpath. Setting hardcode_minus_L
16428 # to unsupported forces relinking
16429 hardcode_minus_L_CXX=yes
16430 hardcode_libdir_flag_spec_CXX='-L$libdir'
16431 hardcode_libdir_separator_CXX=
16432 fi
16433 esac
16434 shared_flag='-shared'
16435 if test yes = "$aix_use_runtimelinking"; then
16436 shared_flag=$shared_flag' $wl-G'
16437 fi
16438 # Need to ensure runtime linking is disabled for the traditional
16439 # shared library, or the linker may eventually find shared libraries
16440 # /with/ Import File - we do not want to mix them.
16441 shared_flag_aix='-shared'
16442 shared_flag_svr4='-shared $wl-G'
16443 else
16444 # not using gcc
16445 if test ia64 = "$host_cpu"; then
16446 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16447 # chokes on -Wl,-G. The following line is correct:
16448 shared_flag='-G'
16449 else
16450 if test yes = "$aix_use_runtimelinking"; then
16451 shared_flag='$wl-G'
16452 else
16453 shared_flag='$wl-bM:SRE'
16454 fi
16455 shared_flag_aix='$wl-bM:SRE'
16456 shared_flag_svr4='$wl-G'
16457 fi
16458 fi
16459
16460 export_dynamic_flag_spec_CXX='$wl-bexpall'
16461 # It seems that -bexpall does not export symbols beginning with
16462 # underscore (_), so it is better to generate a list of symbols to
16463 # export.
16464 always_export_symbols_CXX=yes
16465 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16466 # Warning - without using the other runtime loading flags (-brtl),
16467 # -berok will link without error, but may produce a broken library.
16468 # The "-G" linker flag allows undefined symbols.
16469 no_undefined_flag_CXX='-bernotok'
16470 # Determine the default libpath from the value encoded in an empty
16471 # executable.
16472 if test set = "${lt_cv_aix_libpath+set}"; then
16473 aix_libpath=$lt_cv_aix_libpath
16474 else
16475 if test ${lt_cv_aix_libpath__CXX+y}
16476 then :
16477 printf %s "(cached) " >&6
16478 else case e in #(
16479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16480 /* end confdefs.h. */
16481
16482 int
16483 main (void)
16484 {
16485
16486 ;
16487 return 0;
16488 }
16489 _ACEOF
16490 if ac_fn_cxx_try_link "$LINENO"
16491 then :
16492
16493 lt_aix_libpath_sed='
16494 /Import File Strings/,/^$/ {
16495 /^0/ {
16496 s/^0 *\([^ ]*\) *$/\1/
16497 p
16498 }
16499 }'
16500 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16501 # Check for a 64-bit object if we didn't find anything.
16502 if test -z "$lt_cv_aix_libpath__CXX"; then
16503 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16504 fi
16505 fi
16506 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16507 conftest$ac_exeext conftest.$ac_ext
16508 if test -z "$lt_cv_aix_libpath__CXX"; then
16509 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16510 fi
16511 ;;
16512 esac
16513 fi
16514
16515 aix_libpath=$lt_cv_aix_libpath__CXX
16516 fi
16517
16518 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16519
16520 archive_expsym_cmds_CXX='$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
16521 else
16522 if test ia64 = "$host_cpu"; then
16523 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16524 allow_undefined_flag_CXX="-z nodefs"
16525 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
16526 else
16527 # Determine the default libpath from the value encoded in an
16528 # empty executable.
16529 if test set = "${lt_cv_aix_libpath+set}"; then
16530 aix_libpath=$lt_cv_aix_libpath
16531 else
16532 if test ${lt_cv_aix_libpath__CXX+y}
16533 then :
16534 printf %s "(cached) " >&6
16535 else case e in #(
16536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h. */
16538
16539 int
16540 main (void)
16541 {
16542
16543 ;
16544 return 0;
16545 }
16546 _ACEOF
16547 if ac_fn_cxx_try_link "$LINENO"
16548 then :
16549
16550 lt_aix_libpath_sed='
16551 /Import File Strings/,/^$/ {
16552 /^0/ {
16553 s/^0 *\([^ ]*\) *$/\1/
16554 p
16555 }
16556 }'
16557 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16558 # Check for a 64-bit object if we didn't find anything.
16559 if test -z "$lt_cv_aix_libpath__CXX"; then
16560 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16561 fi
16562 fi
16563 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16564 conftest$ac_exeext conftest.$ac_ext
16565 if test -z "$lt_cv_aix_libpath__CXX"; then
16566 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16567 fi
16568 ;;
16569 esac
16570 fi
16571
16572 aix_libpath=$lt_cv_aix_libpath__CXX
16573 fi
16574
16575 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16576 # Warning - without using the other run time loading flags,
16577 # -berok will link without error, but may produce a broken library.
16578 no_undefined_flag_CXX=' $wl-bernotok'
16579 allow_undefined_flag_CXX=' $wl-berok'
16580 if test yes = "$with_gnu_ld"; then
16581 # We only use this code for GNU lds that support --whole-archive.
16582 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16583 else
16584 # Exported symbols can be pulled into shared objects from archives
16585 whole_archive_flag_spec_CXX='$convenience'
16586 fi
16587 archive_cmds_need_lc_CXX=yes
16588 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16589 # -brtl affects multiple linker settings, -berok does not and is overridden later
16590 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16591 if test svr4 != "$with_aix_soname"; then
16592 # This is similar to how AIX traditionally builds its shared
16593 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16594 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16595 fi
16596 if test aix != "$with_aix_soname"; then
16597 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16598 else
16599 # used by -dlpreopen to get the symbols
16600 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16601 fi
16602 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16603 fi
16604 fi
16605 ;;
16606
16607 beos*)
16608 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16609 allow_undefined_flag_CXX=unsupported
16610 # Joseph Beckenbach <[email protected]> says some releases of gcc
16611 # support --undefined. This deserves some investigation. FIXME
16612 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16613 else
16614 ld_shlibs_CXX=no
16615 fi
16616 ;;
16617
16618 chorus*)
16619 case $cc_basename in
16620 *)
16621 # FIXME: insert proper C++ library support
16622 ld_shlibs_CXX=no
16623 ;;
16624 esac
16625 ;;
16626
16627 cygwin* | mingw* | windows* | pw32* | cegcc*)
16628 case $GXX,$cc_basename in
16629 ,cl* | no,cl* | ,icl* | no,icl*)
16630 # Native MSVC or ICC
16631 # hardcode_libdir_flag_spec is actually meaningless, as there is
16632 # no search path for DLLs.
16633 hardcode_libdir_flag_spec_CXX=' '
16634 allow_undefined_flag_CXX=unsupported
16635 always_export_symbols_CXX=yes
16636 file_list_spec_CXX='@'
16637 # Tell ltmain to make .lib files, not .a files.
16638 libext=lib
16639 # Tell ltmain to make .dll files, not .so files.
16640 shrext_cmds=.dll
16641 # FIXME: Setting linknames here is a bad hack.
16642 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16643 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16644 cp "$export_symbols" "$output_objdir/$soname.def";
16645 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16646 else
16647 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16648 fi~
16649 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16650 linknames='
16651 # The linker will not automatically build a static lib if we build a DLL.
16652 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16653 enable_shared_with_static_runtimes_CXX=yes
16654 # Don't use ranlib
16655 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16656 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16657 lt_tool_outputfile="@TOOL_OUTPUT@"~
16658 case $lt_outputfile in
16659 *.exe|*.EXE) ;;
16660 *)
16661 lt_outputfile=$lt_outputfile.exe
16662 lt_tool_outputfile=$lt_tool_outputfile.exe
16663 ;;
16664 esac~
16665 func_to_tool_file "$lt_outputfile"~
16666 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16667 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16668 $RM "$lt_outputfile.manifest";
16669 fi'
16670 ;;
16671 *)
16672 # g++
16673 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16674 # as there is no search path for DLLs.
16675 hardcode_libdir_flag_spec_CXX='-L$libdir'
16676 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16677 allow_undefined_flag_CXX=unsupported
16678 always_export_symbols_CXX=no
16679 enable_shared_with_static_runtimes_CXX=yes
16680 file_list_spec_CXX='@'
16681
16682 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16683 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16684 # If the export-symbols file already is a .def file, use it as
16685 # is; otherwise, prepend EXPORTS...
16686 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16687 cp $export_symbols $output_objdir/$soname.def;
16688 else
16689 echo EXPORTS > $output_objdir/$soname.def;
16690 cat $export_symbols >> $output_objdir/$soname.def;
16691 fi~
16692 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16693 else
16694 ld_shlibs_CXX=no
16695 fi
16696 ;;
16697 esac
16698 ;;
16699 darwin* | rhapsody*)
16700
16701
16702 archive_cmds_need_lc_CXX=no
16703 hardcode_direct_CXX=no
16704 hardcode_automatic_CXX=yes
16705 hardcode_shlibpath_var_CXX=unsupported
16706 if test yes = "$lt_cv_ld_force_load"; then
16707 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16708
16709 else
16710 whole_archive_flag_spec_CXX=''
16711 fi
16712 link_all_deplibs_CXX=yes
16713 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16714 case $cc_basename in
16715 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16716 *) _lt_dar_can_shared=$GCC ;;
16717 esac
16718 if test yes = "$_lt_dar_can_shared"; then
16719 output_verbose_link_cmd=func_echo_all
16720 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16721 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16722 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
16723 module_expsym_cmds_CXX="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
16724 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
16725 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
16726 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
16727 fi
16728
16729 else
16730 ld_shlibs_CXX=no
16731 fi
16732
16733 ;;
16734
16735 os2*)
16736 hardcode_libdir_flag_spec_CXX='-L$libdir'
16737 hardcode_minus_L_CXX=yes
16738 allow_undefined_flag_CXX=unsupported
16739 shrext_cmds=.dll
16740 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16741 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16742 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16743 $ECHO EXPORTS >> $output_objdir/$libname.def~
16744 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16745 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16746 emximp -o $lib $output_objdir/$libname.def'
16747 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16748 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16749 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16750 $ECHO EXPORTS >> $output_objdir/$libname.def~
16751 prefix_cmds="$SED"~
16752 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16753 prefix_cmds="$prefix_cmds -e 1d";
16754 fi~
16755 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16756 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16757 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16758 emximp -o $lib $output_objdir/$libname.def'
16759 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16760 enable_shared_with_static_runtimes_CXX=yes
16761 file_list_spec_CXX='@'
16762 ;;
16763
16764 dgux*)
16765 case $cc_basename in
16766 ec++*)
16767 # FIXME: insert proper C++ library support
16768 ld_shlibs_CXX=no
16769 ;;
16770 ghcx*)
16771 # Green Hills C++ Compiler
16772 # FIXME: insert proper C++ library support
16773 ld_shlibs_CXX=no
16774 ;;
16775 *)
16776 # FIXME: insert proper C++ library support
16777 ld_shlibs_CXX=no
16778 ;;
16779 esac
16780 ;;
16781
16782 freebsd2.*)
16783 # C++ shared libraries reported to be fairly broken before
16784 # switch to ELF
16785 ld_shlibs_CXX=no
16786 ;;
16787
16788 freebsd-elf*)
16789 archive_cmds_need_lc_CXX=no
16790 ;;
16791
16792 freebsd* | dragonfly* | midnightbsd*)
16793 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16794 # conventions
16795 ld_shlibs_CXX=yes
16796 ;;
16797
16798 haiku*)
16799 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16800 link_all_deplibs_CXX=no
16801 ;;
16802
16803 hpux9*)
16804 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16805 hardcode_libdir_separator_CXX=:
16806 export_dynamic_flag_spec_CXX='$wl-E'
16807 hardcode_direct_CXX=yes
16808 hardcode_minus_L_CXX=yes # Not in the search PATH,
16809 # but as the default
16810 # location of the library.
16811
16812 case $cc_basename in
16813 CC*)
16814 # FIXME: insert proper C++ library support
16815 ld_shlibs_CXX=no
16816 ;;
16817 aCC*)
16818 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16819 # Commands to make compiler produce verbose output that lists
16820 # what "hidden" libraries, object files and flags are used when
16821 # linking a shared library.
16822 #
16823 # There doesn't appear to be a way to prevent this compiler from
16824 # explicitly linking system object files so we need to strip them
16825 # from the output so that they don't get included in the library
16826 # dependencies.
16827 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "[-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16828 ;;
16829 *)
16830 if test yes = "$GXX"; then
16831 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16832 else
16833 # FIXME: insert proper C++ library support
16834 ld_shlibs_CXX=no
16835 fi
16836 ;;
16837 esac
16838 ;;
16839
16840 hpux10*|hpux11*)
16841 if test no = "$with_gnu_ld"; then
16842 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16843 hardcode_libdir_separator_CXX=:
16844
16845 case $host_cpu in
16846 hppa*64*|ia64*)
16847 ;;
16848 *)
16849 export_dynamic_flag_spec_CXX='$wl-E'
16850 ;;
16851 esac
16852 fi
16853 case $host_cpu in
16854 hppa*64*|ia64*)
16855 hardcode_direct_CXX=no
16856 hardcode_shlibpath_var_CXX=no
16857 ;;
16858 *)
16859 hardcode_direct_CXX=yes
16860 hardcode_direct_absolute_CXX=yes
16861 hardcode_minus_L_CXX=yes # Not in the search PATH,
16862 # but as the default
16863 # location of the library.
16864 ;;
16865 esac
16866
16867 case $cc_basename in
16868 CC*)
16869 # FIXME: insert proper C++ library support
16870 ld_shlibs_CXX=no
16871 ;;
16872 aCC*)
16873 case $host_cpu in
16874 hppa*64*)
16875 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16876 ;;
16877 ia64*)
16878 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16879 ;;
16880 *)
16881 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16882 ;;
16883 esac
16884 # Commands to make compiler produce verbose output that lists
16885 # what "hidden" libraries, object files and flags are used when
16886 # linking a shared library.
16887 #
16888 # There doesn't appear to be a way to prevent this compiler from
16889 # explicitly linking system object files so we need to strip them
16890 # from the output so that they don't get included in the library
16891 # dependencies.
16892 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " [-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16893 ;;
16894 *)
16895 if test yes = "$GXX"; then
16896 if test no = "$with_gnu_ld"; then
16897 case $host_cpu in
16898 hppa*64*)
16899 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16900 ;;
16901 ia64*)
16902 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16903 ;;
16904 *)
16905 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16906 ;;
16907 esac
16908 fi
16909 else
16910 # FIXME: insert proper C++ library support
16911 ld_shlibs_CXX=no
16912 fi
16913 ;;
16914 esac
16915 ;;
16916
16917 interix[3-9]*)
16918 hardcode_direct_CXX=no
16919 hardcode_shlibpath_var_CXX=no
16920 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16921 export_dynamic_flag_spec_CXX='$wl-E'
16922 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16923 # Instead, shared libraries are loaded at an image base (0x10000000 by
16924 # default) and relocated if they conflict, which is a slow very memory
16925 # consuming and fragmenting process. To avoid this, we pick a random,
16926 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16927 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16928 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16929 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16930 ;;
16931 irix5* | irix6*)
16932 case $cc_basename in
16933 CC*)
16934 # SGI C++
16935 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16936
16937 # Archives containing C++ object files must be created using
16938 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16939 # necessary to make sure instantiated templates are included
16940 # in the archive.
16941 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16942 ;;
16943 *)
16944 if test yes = "$GXX"; then
16945 if test no = "$with_gnu_ld"; then
16946 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16947 else
16948 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
16949 fi
16950 fi
16951 link_all_deplibs_CXX=yes
16952 ;;
16953 esac
16954 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16955 hardcode_libdir_separator_CXX=:
16956 inherit_rpath_CXX=yes
16957 ;;
16958
16959 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16960 case $cc_basename in
16961 KCC*)
16962 # Kuck and Associates, Inc. (KAI) C++ Compiler
16963
16964 # KCC will only create a shared library if the output file
16965 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16966 # to its proper name (with version) after linking.
16967 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16968 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
16969 # Commands to make compiler produce verbose output that lists
16970 # what "hidden" libraries, object files and flags are used when
16971 # linking a shared library.
16972 #
16973 # There doesn't appear to be a way to prevent this compiler from
16974 # explicitly linking system object files so we need to strip them
16975 # from the output so that they don't get included in the library
16976 # dependencies.
16977 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16978
16979 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16980 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16981
16982 # Archives containing C++ object files must be created using
16983 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16984 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16985 ;;
16986 icpc* | ecpc* )
16987 # Intel C++
16988 with_gnu_ld=yes
16989 # version 8.0 and above of icpc choke on multiply defined symbols
16990 # if we add $predep_objects and $postdep_objects, however 7.1 and
16991 # earlier do not add the objects themselves.
16992 case `$CC -V 2>&1` in
16993 *"Version 7."*)
16994 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16995 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16996 ;;
16997 *) # Version 8.0 or newer
16998 tmp_idyn=
16999 case $host_cpu in
17000 ia64*) tmp_idyn=' -i_dynamic';;
17001 esac
17002 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17003 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17004 ;;
17005 esac
17006 archive_cmds_need_lc_CXX=no
17007 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17008 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17009 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17010 ;;
17011 pgCC* | pgcpp*)
17012 # Portland Group C++ compiler
17013 case `$CC -V` in
17014 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17015 prelink_cmds_CXX='tpldir=Template.dir~
17016 rm -rf $tpldir~
17017 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17018 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17019 old_archive_cmds_CXX='tpldir=Template.dir~
17020 rm -rf $tpldir~
17021 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17022 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17023 $RANLIB $oldlib'
17024 archive_cmds_CXX='tpldir=Template.dir~
17025 rm -rf $tpldir~
17026 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17027 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17028 archive_expsym_cmds_CXX='tpldir=Template.dir~
17029 rm -rf $tpldir~
17030 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17031 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17032 ;;
17033 *) # Version 6 and above use weak symbols
17034 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17035 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17036 ;;
17037 esac
17038
17039 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17040 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17041 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
17042 ;;
17043 cxx*)
17044 # Compaq C++
17045 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17046 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
17047
17048 runpath_var=LD_RUN_PATH
17049 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17050 hardcode_libdir_separator_CXX=:
17051
17052 # Commands to make compiler produce verbose output that lists
17053 # what "hidden" libraries, object files and flags are used when
17054 # linking a shared library.
17055 #
17056 # There doesn't appear to be a way to prevent this compiler from
17057 # explicitly linking system object files so we need to strip them
17058 # from the output so that they don't get included in the library
17059 # dependencies.
17060 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
17061 ;;
17062 xl* | mpixl* | bgxl*)
17063 # IBM XL 8.0 on PPC, with GNU ld
17064 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17065 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17066 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17067 if test yes = "$supports_anon_versioning"; then
17068 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17069 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17070 echo "local: *; };" >> $output_objdir/$libname.ver~
17071 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17072 fi
17073 ;;
17074 *)
17075 case `$CC -V 2>&1 | $SED 5q` in
17076 *Sun\ C*)
17077 # Sun C++ 5.9
17078 no_undefined_flag_CXX=' -zdefs'
17079 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17080 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
17081 hardcode_libdir_flag_spec_CXX='-R$libdir'
17082 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
17083 compiler_needs_object_CXX=yes
17084
17085 # Not sure whether something based on
17086 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17087 # would be better.
17088 output_verbose_link_cmd='func_echo_all'
17089
17090 # Archives containing C++ object files must be created using
17091 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17092 # necessary to make sure instantiated templates are included
17093 # in the archive.
17094 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17095 ;;
17096 esac
17097 ;;
17098 esac
17099 ;;
17100
17101 lynxos*)
17102 # FIXME: insert proper C++ library support
17103 ld_shlibs_CXX=no
17104 ;;
17105
17106 m88k*)
17107 # FIXME: insert proper C++ library support
17108 ld_shlibs_CXX=no
17109 ;;
17110
17111 mvs*)
17112 case $cc_basename in
17113 cxx*)
17114 # FIXME: insert proper C++ library support
17115 ld_shlibs_CXX=no
17116 ;;
17117 *)
17118 # FIXME: insert proper C++ library support
17119 ld_shlibs_CXX=no
17120 ;;
17121 esac
17122 ;;
17123
17124 *-mlibc)
17125 ld_shlibs_CXX=yes
17126 ;;
17127
17128 netbsd*)
17129 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17130 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17131 wlarc=
17132 hardcode_libdir_flag_spec_CXX='-R$libdir'
17133 hardcode_direct_CXX=yes
17134 hardcode_shlibpath_var_CXX=no
17135 fi
17136 # Workaround some broken pre-1.5 toolchains
17137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17138 ;;
17139
17140 *nto* | *qnx*)
17141 ld_shlibs_CXX=yes
17142 ;;
17143
17144 openbsd*)
17145 if test -f /usr/libexec/ld.so; then
17146 hardcode_direct_CXX=yes
17147 hardcode_shlibpath_var_CXX=no
17148 hardcode_direct_absolute_CXX=yes
17149 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17150 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17151 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17152 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17153 export_dynamic_flag_spec_CXX='$wl-E'
17154 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17155 fi
17156 output_verbose_link_cmd=func_echo_all
17157 else
17158 ld_shlibs_CXX=no
17159 fi
17160 ;;
17161
17162 osf3* | osf4* | osf5*)
17163 case $cc_basename in
17164 KCC*)
17165 # Kuck and Associates, Inc. (KAI) C++ Compiler
17166
17167 # KCC will only create a shared library if the output file
17168 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17169 # to its proper name (with version) after linking.
17170 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17171
17172 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17173 hardcode_libdir_separator_CXX=:
17174
17175 # Archives containing C++ object files must be created using
17176 # the KAI C++ compiler.
17177 case $host in
17178 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17179 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17180 esac
17181 ;;
17182 RCC*)
17183 # Rational C++ 2.4.1
17184 # FIXME: insert proper C++ library support
17185 ld_shlibs_CXX=no
17186 ;;
17187 cxx*)
17188 case $host in
17189 osf3*)
17190 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17191 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17192 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17193 ;;
17194 *)
17195 allow_undefined_flag_CXX=' -expect_unresolved \*'
17196 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17197 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17198 echo "-hidden">> $lib.exp~
17199 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
17200 $RM $lib.exp'
17201 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17202 ;;
17203 esac
17204
17205 hardcode_libdir_separator_CXX=:
17206
17207 # Commands to make compiler produce verbose output that lists
17208 # what "hidden" libraries, object files and flags are used when
17209 # linking a shared library.
17210 #
17211 # There doesn't appear to be a way to prevent this compiler from
17212 # explicitly linking system object files so we need to strip them
17213 # from the output so that they don't get included in the library
17214 # dependencies.
17215 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17216 ;;
17217 *)
17218 if test yes,no = "$GXX,$with_gnu_ld"; then
17219 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17220 case $host in
17221 osf3*)
17222 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17223 ;;
17224 *)
17225 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17226 ;;
17227 esac
17228
17229 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17230 hardcode_libdir_separator_CXX=:
17231
17232 # Commands to make compiler produce verbose output that lists
17233 # what "hidden" libraries, object files and flags are used when
17234 # linking a shared library.
17235 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17236
17237 else
17238 # FIXME: insert proper C++ library support
17239 ld_shlibs_CXX=no
17240 fi
17241 ;;
17242 esac
17243 ;;
17244
17245 psos*)
17246 # FIXME: insert proper C++ library support
17247 ld_shlibs_CXX=no
17248 ;;
17249
17250 serenity*)
17251 ;;
17252
17253 sunos4*)
17254 case $cc_basename in
17255 CC*)
17256 # Sun C++ 4.x
17257 # FIXME: insert proper C++ library support
17258 ld_shlibs_CXX=no
17259 ;;
17260 lcc*)
17261 # Lucid
17262 # FIXME: insert proper C++ library support
17263 ld_shlibs_CXX=no
17264 ;;
17265 *)
17266 # FIXME: insert proper C++ library support
17267 ld_shlibs_CXX=no
17268 ;;
17269 esac
17270 ;;
17271
17272 solaris*)
17273 case $cc_basename in
17274 CC* | sunCC*)
17275 # Sun C++ 4.2, 5.x and Centerline C++
17276 archive_cmds_need_lc_CXX=yes
17277 no_undefined_flag_CXX=' -zdefs'
17278 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17279 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17280 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17281
17282 hardcode_libdir_flag_spec_CXX='-R$libdir'
17283 hardcode_shlibpath_var_CXX=no
17284 case $host_os in
17285 solaris2.[0-5] | solaris2.[0-5].*) ;;
17286 *)
17287 # The compiler driver will combine and reorder linker options,
17288 # but understands '-z linker_flag'.
17289 # Supported since Solaris 2.6 (maybe 2.5.1?)
17290 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17291 ;;
17292 esac
17293 link_all_deplibs_CXX=yes
17294
17295 output_verbose_link_cmd='func_echo_all'
17296
17297 # Archives containing C++ object files must be created using
17298 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17299 # necessary to make sure instantiated templates are included
17300 # in the archive.
17301 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17302 ;;
17303 gcx*)
17304 # Green Hills C++ Compiler
17305 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17306
17307 # The C++ compiler must be used to create the archive.
17308 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17309 ;;
17310 *)
17311 # GNU C++ compiler with Solaris linker
17312 if test yes,no = "$GXX,$with_gnu_ld"; then
17313 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17314 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17315 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17316 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17317 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17318
17319 # Commands to make compiler produce verbose output that lists
17320 # what "hidden" libraries, object files and flags are used when
17321 # linking a shared library.
17322 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17323 else
17324 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17325 # platform.
17326 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17327 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17328 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17329
17330 # Commands to make compiler produce verbose output that lists
17331 # what "hidden" libraries, object files and flags are used when
17332 # linking a shared library.
17333 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17334 fi
17335
17336 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17337 case $host_os in
17338 solaris2.[0-5] | solaris2.[0-5].*) ;;
17339 *)
17340 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17341 ;;
17342 esac
17343 fi
17344 ;;
17345 esac
17346 ;;
17347
17348 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17349 no_undefined_flag_CXX='$wl-z,text'
17350 archive_cmds_need_lc_CXX=no
17351 hardcode_shlibpath_var_CXX=no
17352 runpath_var='LD_RUN_PATH'
17353
17354 case $cc_basename in
17355 CC*)
17356 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17357 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17358 ;;
17359 *)
17360 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17361 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17362 ;;
17363 esac
17364 ;;
17365
17366 sysv5* | sco3.2v5* | sco5v6*)
17367 # Note: We CANNOT use -z defs as we might desire, because we do not
17368 # link with -lc, and that would cause any symbols used from libc to
17369 # always be unresolved, which means just about no library would
17370 # ever link correctly. If we're not using GNU ld we use -z text
17371 # though, which does catch some bad symbols but isn't as heavy-handed
17372 # as -z defs.
17373 no_undefined_flag_CXX='$wl-z,text'
17374 allow_undefined_flag_CXX='$wl-z,nodefs'
17375 archive_cmds_need_lc_CXX=no
17376 hardcode_shlibpath_var_CXX=no
17377 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17378 hardcode_libdir_separator_CXX=':'
17379 link_all_deplibs_CXX=yes
17380 export_dynamic_flag_spec_CXX='$wl-Bexport'
17381 runpath_var='LD_RUN_PATH'
17382
17383 case $cc_basename in
17384 CC*)
17385 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17386 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17387 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17388 '"$old_archive_cmds_CXX"
17389 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17390 '"$reload_cmds_CXX"
17391 ;;
17392 *)
17393 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17394 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17395 ;;
17396 esac
17397 ;;
17398
17399 tandem*)
17400 case $cc_basename in
17401 NCC*)
17402 # NonStop-UX NCC 3.20
17403 # FIXME: insert proper C++ library support
17404 ld_shlibs_CXX=no
17405 ;;
17406 *)
17407 # FIXME: insert proper C++ library support
17408 ld_shlibs_CXX=no
17409 ;;
17410 esac
17411 ;;
17412
17413 vxworks*)
17414 # FIXME: insert proper C++ library support
17415 ld_shlibs_CXX=no
17416 ;;
17417
17418 *)
17419 # FIXME: insert proper C++ library support
17420 ld_shlibs_CXX=no
17421 ;;
17422 esac
17423
17424 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17425 printf '%s\n' "$ld_shlibs_CXX" >&6; }
17426 test no = "$ld_shlibs_CXX" && can_build_shared=no
17427
17428 GCC_CXX=$GXX
17429 LD_CXX=$LD
17430
17431 ## CAVEAT EMPTOR:
17432 ## There is no encapsulation within the following macros, do not change
17433 ## the running order or otherwise move them around unless you know exactly
17434 ## what you are doing...
17435 # Dependencies to place before and after the object being linked:
17436 predep_objects_CXX=
17437 postdep_objects_CXX=
17438 predeps_CXX=
17439 postdeps_CXX=
17440 compiler_lib_search_path_CXX=
17441
17442 cat > conftest.$ac_ext <<_LT_EOF
17443 class Foo
17444 {
17445 public:
17446 Foo (void) { a = 0; }
17447 private:
17448 int a;
17449 };
17450 _LT_EOF
17451
17452
17453 _lt_libdeps_save_CFLAGS=$CFLAGS
17454 case "$CC $CFLAGS " in #(
17455 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17456 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17457 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17458 esac
17459
17460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17461 (eval $ac_compile) 2>&5
17462 ac_status=$?
17463 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17464 test $ac_status = 0; }; then
17465 # Parse the compiler output and extract the necessary
17466 # objects, libraries and library flags.
17467
17468 # Sentinel used to keep track of whether or not we are before
17469 # the conftest object file.
17470 pre_test_object_deps_done=no
17471
17472 for p in `eval "$output_verbose_link_cmd"`; do
17473 case $prev$p in
17474
17475 -L* | -R* | -l*)
17476 # Some compilers place space between "-{L,R,l}" and the path.
17477 # Remove the space.
17478 if test x-L = x"$p" ||
17479 test x-R = x"$p" ||
17480 test x-l = x"$p"; then
17481 prev=$p
17482 continue
17483 fi
17484
17485 # Expand the sysroot to ease extracting the directories later.
17486 if test -z "$prev"; then
17487 case $p in
17488 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17489 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17490 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17491 esac
17492 fi
17493 case $p in
17494 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17495 esac
17496 if test no = "$pre_test_object_deps_done"; then
17497 case $prev in
17498 -L | -R)
17499 # Internal compiler library paths should come after those
17500 # provided the user. The postdeps already come after the
17501 # user supplied libs so there is no need to process them.
17502 if test -z "$compiler_lib_search_path_CXX"; then
17503 compiler_lib_search_path_CXX=$prev$p
17504 else
17505 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17506 fi
17507 ;;
17508 # The "-l" case would never come before the object being
17509 # linked, so don't bother handling this case.
17510 esac
17511 else
17512 if test -z "$postdeps_CXX"; then
17513 postdeps_CXX=$prev$p
17514 else
17515 postdeps_CXX="${postdeps_CXX} $prev$p"
17516 fi
17517 fi
17518 prev=
17519 ;;
17520
17521 *.lto.$objext) ;; # Ignore GCC LTO objects
17522 *.$objext)
17523 # This assumes that the test object file only shows up
17524 # once in the compiler output.
17525 if test "$p" = "conftest.$objext"; then
17526 pre_test_object_deps_done=yes
17527 continue
17528 fi
17529
17530 if test no = "$pre_test_object_deps_done"; then
17531 if test -z "$predep_objects_CXX"; then
17532 predep_objects_CXX=$p
17533 else
17534 predep_objects_CXX="$predep_objects_CXX $p"
17535 fi
17536 else
17537 if test -z "$postdep_objects_CXX"; then
17538 postdep_objects_CXX=$p
17539 else
17540 postdep_objects_CXX="$postdep_objects_CXX $p"
17541 fi
17542 fi
17543 ;;
17544
17545 *) ;; # Ignore the rest.
17546
17547 esac
17548 done
17549
17550 # Clean up.
17551 rm -f a.out a.exe
17552 else
17553 echo "libtool.m4: error: problem compiling CXX test program"
17554 fi
17555
17556 $RM -f confest.$objext
17557 CFLAGS=$_lt_libdeps_save_CFLAGS
17558
17559 # PORTME: override above test on systems where it is broken
17560 case $host_os in
17561 interix[3-9]*)
17562 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17563 # hack all around it, let's just trust "g++" to DTRT.
17564 predep_objects_CXX=
17565 postdep_objects_CXX=
17566 postdeps_CXX=
17567 ;;
17568 esac
17569
17570
17571 case " $postdeps_CXX " in
17572 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17573 esac
17574 compiler_lib_search_dirs_CXX=
17575 if test -n "${compiler_lib_search_path_CXX}"; then
17576 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17577 fi
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609 lt_prog_compiler_wl_CXX=
17610 lt_prog_compiler_pic_CXX=
17611 lt_prog_compiler_static_CXX=
17612
17613
17614 # C++ specific cases for pic, static, wl, etc.
17615 if test yes = "$GXX"; then
17616 lt_prog_compiler_wl_CXX='-Wl,'
17617 lt_prog_compiler_static_CXX='-static'
17618
17619 case $host_os in
17620 aix*)
17621 # All AIX code is PIC.
17622 if test ia64 = "$host_cpu"; then
17623 # AIX 5 now supports IA64 processor
17624 lt_prog_compiler_static_CXX='-Bstatic'
17625 fi
17626 lt_prog_compiler_pic_CXX='-fPIC'
17627 ;;
17628
17629 amigaos*)
17630 case $host_cpu in
17631 powerpc)
17632 # see comment about AmigaOS4 .so support
17633 lt_prog_compiler_pic_CXX='-fPIC'
17634 ;;
17635 m68k)
17636 # FIXME: we need at least 68020 code to build shared libraries, but
17637 # adding the '-m68020' flag to GCC prevents building anything better,
17638 # like '-m68040'.
17639 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17640 ;;
17641 esac
17642 ;;
17643
17644 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17645 # PIC is the default for these OSes.
17646 ;;
17647 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17648 # This hack is so that the source file can tell whether it is being
17649 # built for inclusion in a dll (and should export symbols for example).
17650 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17651 # (--disable-auto-import) libraries
17652 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17653 case $host_os in
17654 os2*)
17655 lt_prog_compiler_static_CXX='$wl-static'
17656 ;;
17657 esac
17658 ;;
17659 darwin* | rhapsody*)
17660 # PIC is the default on this platform
17661 # Common symbols not allowed in MH_DYLIB files
17662 lt_prog_compiler_pic_CXX='-fno-common'
17663 ;;
17664 *djgpp*)
17665 # DJGPP does not support shared libraries at all
17666 lt_prog_compiler_pic_CXX=
17667 ;;
17668 haiku*)
17669 # PIC is the default for Haiku.
17670 # The "-static" flag exists, but is broken.
17671 lt_prog_compiler_static_CXX=
17672 ;;
17673 interix[3-9]*)
17674 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17675 # Instead, we relocate shared libraries at runtime.
17676 ;;
17677 sysv4*MP*)
17678 if test -d /usr/nec; then
17679 lt_prog_compiler_pic_CXX=-Kconform_pic
17680 fi
17681 ;;
17682 hpux*)
17683 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17684 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17685 # sets the default TLS model and affects inlining.
17686 case $host_cpu in
17687 hppa*64*)
17688 ;;
17689 *)
17690 lt_prog_compiler_pic_CXX='-fPIC'
17691 ;;
17692 esac
17693 ;;
17694 *qnx* | *nto*)
17695 # QNX uses GNU C++, but need to define -shared option too, otherwise
17696 # it will coredump.
17697 lt_prog_compiler_pic_CXX='-fPIC -shared'
17698 ;;
17699 *)
17700 lt_prog_compiler_pic_CXX='-fPIC'
17701 ;;
17702 esac
17703 else
17704 case $host_os in
17705 aix[4-9]*)
17706 # All AIX code is PIC.
17707 if test ia64 = "$host_cpu"; then
17708 # AIX 5 now supports IA64 processor
17709 lt_prog_compiler_static_CXX='-Bstatic'
17710 else
17711 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17712 fi
17713 ;;
17714 chorus*)
17715 case $cc_basename in
17716 cxch68*)
17717 # Green Hills C++ Compiler
17718 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17719 ;;
17720 esac
17721 ;;
17722 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17723 # This hack is so that the source file can tell whether it is being
17724 # built for inclusion in a dll (and should export symbols for example).
17725 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17726 ;;
17727 dgux*)
17728 case $cc_basename in
17729 ec++*)
17730 lt_prog_compiler_pic_CXX='-KPIC'
17731 ;;
17732 ghcx*)
17733 # Green Hills C++ Compiler
17734 lt_prog_compiler_pic_CXX='-pic'
17735 ;;
17736 *)
17737 ;;
17738 esac
17739 ;;
17740 freebsd* | dragonfly* | midnightbsd*)
17741 # FreeBSD uses GNU C++
17742 ;;
17743 hpux9* | hpux10* | hpux11*)
17744 case $cc_basename in
17745 CC*)
17746 lt_prog_compiler_wl_CXX='-Wl,'
17747 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17748 if test ia64 != "$host_cpu"; then
17749 lt_prog_compiler_pic_CXX='+Z'
17750 fi
17751 ;;
17752 aCC*)
17753 lt_prog_compiler_wl_CXX='-Wl,'
17754 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17755 case $host_cpu in
17756 hppa*64*|ia64*)
17757 # +Z the default
17758 ;;
17759 *)
17760 lt_prog_compiler_pic_CXX='+Z'
17761 ;;
17762 esac
17763 ;;
17764 *)
17765 ;;
17766 esac
17767 ;;
17768 interix*)
17769 # This is c89, which is MS Visual C++ (no shared libs)
17770 # Anyone wants to do a port?
17771 ;;
17772 irix5* | irix6* | nonstopux*)
17773 case $cc_basename in
17774 CC*)
17775 lt_prog_compiler_wl_CXX='-Wl,'
17776 lt_prog_compiler_static_CXX='-non_shared'
17777 # CC pic flag -KPIC is the default.
17778 ;;
17779 *)
17780 ;;
17781 esac
17782 ;;
17783 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17784 case $cc_basename in
17785 KCC*)
17786 # KAI C++ Compiler
17787 lt_prog_compiler_wl_CXX='--backend -Wl,'
17788 lt_prog_compiler_pic_CXX='-fPIC'
17789 ;;
17790 ecpc* )
17791 # old Intel C++ for x86_64, which still supported -KPIC.
17792 lt_prog_compiler_wl_CXX='-Wl,'
17793 lt_prog_compiler_pic_CXX='-KPIC'
17794 lt_prog_compiler_static_CXX='-static'
17795 ;;
17796 icpc* )
17797 # Intel C++, used to be incompatible with GCC.
17798 # ICC 10 doesn't accept -KPIC any more.
17799 lt_prog_compiler_wl_CXX='-Wl,'
17800 lt_prog_compiler_pic_CXX='-fPIC'
17801 lt_prog_compiler_static_CXX='-static'
17802 ;;
17803 pgCC* | pgcpp*)
17804 # Portland Group C++ compiler
17805 lt_prog_compiler_wl_CXX='-Wl,'
17806 lt_prog_compiler_pic_CXX='-fpic'
17807 lt_prog_compiler_static_CXX='-Bstatic'
17808 ;;
17809 cxx*)
17810 # Compaq C++
17811 # Make sure the PIC flag is empty. It appears that all Alpha
17812 # Linux and Compaq Tru64 Unix objects are PIC.
17813 lt_prog_compiler_pic_CXX=
17814 lt_prog_compiler_static_CXX='-non_shared'
17815 ;;
17816 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17817 # IBM XL 8.0, 9.0 on PPC and BlueGene
17818 lt_prog_compiler_wl_CXX='-Wl,'
17819 lt_prog_compiler_pic_CXX='-qpic'
17820 lt_prog_compiler_static_CXX='-qstaticlink'
17821 ;;
17822 *)
17823 case `$CC -V 2>&1 | $SED 5q` in
17824 *Sun\ C*)
17825 # Sun C++ 5.9
17826 lt_prog_compiler_pic_CXX='-KPIC'
17827 lt_prog_compiler_static_CXX='-Bstatic'
17828 lt_prog_compiler_wl_CXX='-Qoption ld '
17829 ;;
17830 esac
17831 ;;
17832 esac
17833 ;;
17834 lynxos*)
17835 ;;
17836 m88k*)
17837 ;;
17838 mvs*)
17839 case $cc_basename in
17840 cxx*)
17841 lt_prog_compiler_pic_CXX='-W c,exportall'
17842 ;;
17843 *)
17844 ;;
17845 esac
17846 ;;
17847 netbsd* | netbsdelf*-gnu)
17848 ;;
17849 *-mlibc)
17850 ;;
17851 *qnx* | *nto*)
17852 # QNX uses GNU C++, but need to define -shared option too, otherwise
17853 # it will coredump.
17854 lt_prog_compiler_pic_CXX='-fPIC -shared'
17855 ;;
17856 osf3* | osf4* | osf5*)
17857 case $cc_basename in
17858 KCC*)
17859 lt_prog_compiler_wl_CXX='--backend -Wl,'
17860 ;;
17861 RCC*)
17862 # Rational C++ 2.4.1
17863 lt_prog_compiler_pic_CXX='-pic'
17864 ;;
17865 cxx*)
17866 # Digital/Compaq C++
17867 lt_prog_compiler_wl_CXX='-Wl,'
17868 # Make sure the PIC flag is empty. It appears that all Alpha
17869 # Linux and Compaq Tru64 Unix objects are PIC.
17870 lt_prog_compiler_pic_CXX=
17871 lt_prog_compiler_static_CXX='-non_shared'
17872 ;;
17873 *)
17874 ;;
17875 esac
17876 ;;
17877 psos*)
17878 ;;
17879 serenity*)
17880 ;;
17881 solaris*)
17882 case $cc_basename in
17883 CC* | sunCC*)
17884 # Sun C++ 4.2, 5.x and Centerline C++
17885 lt_prog_compiler_pic_CXX='-KPIC'
17886 lt_prog_compiler_static_CXX='-Bstatic'
17887 lt_prog_compiler_wl_CXX='-Qoption ld '
17888 ;;
17889 gcx*)
17890 # Green Hills C++ Compiler
17891 lt_prog_compiler_pic_CXX='-PIC'
17892 ;;
17893 *)
17894 ;;
17895 esac
17896 ;;
17897 sunos4*)
17898 case $cc_basename in
17899 CC*)
17900 # Sun C++ 4.x
17901 lt_prog_compiler_pic_CXX='-pic'
17902 lt_prog_compiler_static_CXX='-Bstatic'
17903 ;;
17904 lcc*)
17905 # Lucid
17906 lt_prog_compiler_pic_CXX='-pic'
17907 ;;
17908 *)
17909 ;;
17910 esac
17911 ;;
17912 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17913 case $cc_basename in
17914 CC*)
17915 lt_prog_compiler_wl_CXX='-Wl,'
17916 lt_prog_compiler_pic_CXX='-KPIC'
17917 lt_prog_compiler_static_CXX='-Bstatic'
17918 ;;
17919 esac
17920 ;;
17921 tandem*)
17922 case $cc_basename in
17923 NCC*)
17924 # NonStop-UX NCC 3.20
17925 lt_prog_compiler_pic_CXX='-KPIC'
17926 ;;
17927 *)
17928 ;;
17929 esac
17930 ;;
17931 vxworks*)
17932 ;;
17933 *)
17934 lt_prog_compiler_can_build_shared_CXX=no
17935 ;;
17936 esac
17937 fi
17938
17939 case $host_os in
17940 # For platforms that do not support PIC, -DPIC is meaningless:
17941 *djgpp*)
17942 lt_prog_compiler_pic_CXX=
17943 ;;
17944 *)
17945 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17946 ;;
17947 esac
17948
17949 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17950 printf %s "checking for $compiler option to produce PIC... " >&6; }
17951 if test ${lt_cv_prog_compiler_pic_CXX+y}
17952 then :
17953 printf %s "(cached) " >&6
17954 else case e in #(
17955 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
17956 esac
17957 fi
17958 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17959 printf '%s\n' "$lt_cv_prog_compiler_pic_CXX" >&6; }
17960 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17961
17962 #
17963 # Check to make sure the PIC flag actually works.
17964 #
17965 if test -n "$lt_prog_compiler_pic_CXX"; then
17966 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17967 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17968 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17969 then :
17970 printf %s "(cached) " >&6
17971 else case e in #(
17972 e) lt_cv_prog_compiler_pic_works_CXX=no
17973 ac_outfile=conftest.$ac_objext
17974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17975 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17976 # Insert the option either (1) after the last *FLAGS variable, or
17977 # (2) before a word containing "conftest.", or (3) at the end.
17978 # Note that $ac_compile itself does not contain backslashes and begins
17979 # with a dollar sign (not a hyphen), so the echo should work correctly.
17980 # The option is referenced via a variable to avoid confusing sed.
17981 lt_compile=`echo "$ac_compile" | $SED \
17982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17984 -e 's:$: $lt_compiler_flag:'`
17985 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17986 (eval "$lt_compile" 2>conftest.err)
17987 ac_status=$?
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 if (exit $ac_status) && test -s "$ac_outfile"; then
17991 # The compiler can only warn and ignore the option if not recognized
17992 # So say no if there are warnings other than the usual output.
17993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17996 lt_cv_prog_compiler_pic_works_CXX=yes
17997 fi
17998 fi
17999 $RM conftest*
18000 ;;
18001 esac
18002 fi
18003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18004 printf '%s\n' "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18005
18006 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18007 case $lt_prog_compiler_pic_CXX in
18008 "" | " "*) ;;
18009 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18010 esac
18011 else
18012 lt_prog_compiler_pic_CXX=
18013 lt_prog_compiler_can_build_shared_CXX=no
18014 fi
18015
18016 fi
18017
18018
18019
18020
18021
18022 #
18023 # Check to make sure the static flag actually works.
18024 #
18025 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18026 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18027 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18028 if test ${lt_cv_prog_compiler_static_works_CXX+y}
18029 then :
18030 printf %s "(cached) " >&6
18031 else case e in #(
18032 e) lt_cv_prog_compiler_static_works_CXX=no
18033 save_LDFLAGS=$LDFLAGS
18034 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18035 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18036 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18037 # The linker can only warn and ignore the option if not recognized
18038 # So say no if there are warnings
18039 if test -s conftest.err; then
18040 # Append any errors to the config.log.
18041 cat conftest.err 1>&5
18042 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18044 if diff conftest.exp conftest.er2 >/dev/null; then
18045 lt_cv_prog_compiler_static_works_CXX=yes
18046 fi
18047 else
18048 lt_cv_prog_compiler_static_works_CXX=yes
18049 fi
18050 fi
18051 $RM -r conftest*
18052 LDFLAGS=$save_LDFLAGS
18053 ;;
18054 esac
18055 fi
18056 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18057 printf '%s\n' "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18058
18059 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18060 :
18061 else
18062 lt_prog_compiler_static_CXX=
18063 fi
18064
18065
18066
18067
18068 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18069 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18070 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18071 then :
18072 printf %s "(cached) " >&6
18073 else case e in #(
18074 e) lt_cv_prog_compiler_c_o_CXX=no
18075 $RM -r conftest 2>/dev/null
18076 mkdir conftest
18077 cd conftest
18078 mkdir out
18079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18080
18081 lt_compiler_flag="-o out/conftest2.$ac_objext"
18082 # Insert the option either (1) after the last *FLAGS variable, or
18083 # (2) before a word containing "conftest.", or (3) at the end.
18084 # Note that $ac_compile itself does not contain backslashes and begins
18085 # with a dollar sign (not a hyphen), so the echo should work correctly.
18086 lt_compile=`echo "$ac_compile" | $SED \
18087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18089 -e 's:$: $lt_compiler_flag:'`
18090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18091 (eval "$lt_compile" 2>out/conftest.err)
18092 ac_status=$?
18093 cat out/conftest.err >&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18096 then
18097 # The compiler can only warn and ignore the option if not recognized
18098 # So say no if there are warnings
18099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18102 lt_cv_prog_compiler_c_o_CXX=yes
18103 fi
18104 fi
18105 chmod u+w . 2>&5
18106 $RM conftest*
18107 # SGI C++ compiler will create directory out/ii_files/ for
18108 # template instantiation
18109 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18110 $RM out/* && rmdir out
18111 cd ..
18112 $RM -r conftest
18113 $RM conftest*
18114 ;;
18115 esac
18116 fi
18117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18118 printf '%s\n' "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18119
18120
18121
18122 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18123 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18124 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18125 then :
18126 printf %s "(cached) " >&6
18127 else case e in #(
18128 e) lt_cv_prog_compiler_c_o_CXX=no
18129 $RM -r conftest 2>/dev/null
18130 mkdir conftest
18131 cd conftest
18132 mkdir out
18133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18134
18135 lt_compiler_flag="-o out/conftest2.$ac_objext"
18136 # Insert the option either (1) after the last *FLAGS variable, or
18137 # (2) before a word containing "conftest.", or (3) at the end.
18138 # Note that $ac_compile itself does not contain backslashes and begins
18139 # with a dollar sign (not a hyphen), so the echo should work correctly.
18140 lt_compile=`echo "$ac_compile" | $SED \
18141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18143 -e 's:$: $lt_compiler_flag:'`
18144 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18145 (eval "$lt_compile" 2>out/conftest.err)
18146 ac_status=$?
18147 cat out/conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18150 then
18151 # The compiler can only warn and ignore the option if not recognized
18152 # So say no if there are warnings
18153 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18154 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18155 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18156 lt_cv_prog_compiler_c_o_CXX=yes
18157 fi
18158 fi
18159 chmod u+w . 2>&5
18160 $RM conftest*
18161 # SGI C++ compiler will create directory out/ii_files/ for
18162 # template instantiation
18163 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18164 $RM out/* && rmdir out
18165 cd ..
18166 $RM -r conftest
18167 $RM conftest*
18168 ;;
18169 esac
18170 fi
18171 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18172 printf '%s\n' "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18173
18174
18175
18176
18177 hard_links=nottested
18178 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18179 # do not overwrite the value of need_locks provided by the user
18180 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18181 printf %s "checking if we can lock with hard links... " >&6; }
18182 hard_links=yes
18183 $RM conftest*
18184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18185 touch conftest.a
18186 ln conftest.a conftest.b 2>&5 || hard_links=no
18187 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18188 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18189 printf '%s\n' "$hard_links" >&6; }
18190 if test no = "$hard_links"; then
18191 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18192 printf '%s\n' "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18193 need_locks=warn
18194 fi
18195 else
18196 need_locks=no
18197 fi
18198
18199
18200
18201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18202 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18203
18204 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18205 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18206 case $host_os in
18207 aix[4-9]*)
18208 # If we're using GNU nm, then we don't want the "-C" option.
18209 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18210 # Without the "-l" option, or with the "-B" option, AIX nm treats
18211 # weak defined symbols like other global defined symbols, whereas
18212 # GNU nm marks them as "W".
18213 # While the 'weak' keyword is ignored in the Export File, we need
18214 # it in the Import File for the 'aix-soname' feature, so we have
18215 # to replace the "-B" option with "-P" for AIX nm.
18216 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18217 export_symbols_cmds_CXX='$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'
18218 else
18219 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 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'
18220 fi
18221 ;;
18222 pw32*)
18223 export_symbols_cmds_CXX=$ltdll_cmds
18224 ;;
18225 cygwin* | mingw* | windows* | cegcc*)
18226 case $cc_basename in
18227 cl* | icl*)
18228 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18229 ;;
18230 *)
18231 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18232 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18233 ;;
18234 esac
18235 ;;
18236 *)
18237 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18238 ;;
18239 esac
18240
18241 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18242 printf '%s\n' "$ld_shlibs_CXX" >&6; }
18243 test no = "$ld_shlibs_CXX" && can_build_shared=no
18244
18245 with_gnu_ld_CXX=$with_gnu_ld
18246
18247
18248
18249
18250
18251
18252 #
18253 # Do we need to explicitly link libc?
18254 #
18255 case "x$archive_cmds_need_lc_CXX" in
18256 x|xyes)
18257 # Assume -lc should be added
18258 archive_cmds_need_lc_CXX=yes
18259
18260 if test yes,yes = "$GCC,$enable_shared"; then
18261 case $archive_cmds_CXX in
18262 *'~'*)
18263 # FIXME: we may have to deal with multi-command sequences.
18264 ;;
18265 '$CC '*)
18266 # Test whether the compiler implicitly links with -lc since on some
18267 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18268 # to ld, don't add -lc before -lgcc.
18269 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18270 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18271 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
18272 then :
18273 printf %s "(cached) " >&6
18274 else case e in #(
18275 e) $RM conftest*
18276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18277
18278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18279 (eval $ac_compile) 2>&5
18280 ac_status=$?
18281 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18282 test $ac_status = 0; } 2>conftest.err; then
18283 soname=conftest
18284 lib=conftest
18285 libobjs=conftest.$ac_objext
18286 deplibs=
18287 wl=$lt_prog_compiler_wl_CXX
18288 pic_flag=$lt_prog_compiler_pic_CXX
18289 compiler_flags=-v
18290 linker_flags=-v
18291 verstring=
18292 output_objdir=.
18293 libname=conftest
18294 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18295 allow_undefined_flag_CXX=
18296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18297 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18298 ac_status=$?
18299 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18300 test $ac_status = 0; }
18301 then
18302 lt_cv_archive_cmds_need_lc_CXX=no
18303 else
18304 lt_cv_archive_cmds_need_lc_CXX=yes
18305 fi
18306 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18307 else
18308 cat conftest.err 1>&5
18309 fi
18310 $RM conftest*
18311 ;;
18312 esac
18313 fi
18314 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18315 printf '%s\n' "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18316 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18317 ;;
18318 esac
18319 fi
18320 ;;
18321 esac
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18385 printf %s "checking dynamic linker characteristics... " >&6; }
18386
18387 library_names_spec=
18388 libname_spec='lib$name'
18389 soname_spec=
18390 shrext_cmds=.so
18391 postinstall_cmds=
18392 postuninstall_cmds=
18393 finish_cmds=
18394 finish_eval=
18395 shlibpath_var=
18396 shlibpath_overrides_runpath=unknown
18397 version_type=none
18398 dynamic_linker="$host_os ld.so"
18399 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18400 need_lib_prefix=unknown
18401 hardcode_into_libs=no
18402
18403 # when you set need_version to no, make sure it does not cause -set_version
18404 # flags to be left without arguments
18405 need_version=unknown
18406
18407
18408
18409 case $host_os in
18410 aix3*)
18411 version_type=linux # correct to gnu/linux during the next big refactor
18412 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18413 shlibpath_var=LIBPATH
18414
18415 # AIX 3 has no versioning support, so we append a major version to the name.
18416 soname_spec='$libname$release$shared_ext$major'
18417 ;;
18418
18419 aix[4-9]*)
18420 version_type=linux # correct to gnu/linux during the next big refactor
18421 need_lib_prefix=no
18422 need_version=no
18423 hardcode_into_libs=yes
18424 if test ia64 = "$host_cpu"; then
18425 # AIX 5 supports IA64
18426 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18427 shlibpath_var=LD_LIBRARY_PATH
18428 else
18429 # With GCC up to 2.95.x, collect2 would create an import file
18430 # for dependence libraries. The import file would start with
18431 # the line '#! .'. This would cause the generated library to
18432 # depend on '.', always an invalid library. This was fixed in
18433 # development snapshots of GCC prior to 3.0.
18434 case $host_os in
18435 aix4 | aix4.[01] | aix4.[01].*)
18436 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18437 echo ' yes '
18438 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18439 :
18440 else
18441 can_build_shared=no
18442 fi
18443 ;;
18444 esac
18445 # Using Import Files as archive members, it is possible to support
18446 # filename-based versioning of shared library archives on AIX. While
18447 # this would work for both with and without runtime linking, it will
18448 # prevent static linking of such archives. So we do filename-based
18449 # shared library versioning with .so extension only, which is used
18450 # when both runtime linking and shared linking is enabled.
18451 # Unfortunately, runtime linking may impact performance, so we do
18452 # not want this to be the default eventually. Also, we use the
18453 # versioned .so libs for executables only if there is the -brtl
18454 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18455 # To allow for filename-based versioning support, we need to create
18456 # libNAME.so.V as an archive file, containing:
18457 # *) an Import File, referring to the versioned filename of the
18458 # archive as well as the shared archive member, telling the
18459 # bitwidth (32 or 64) of that shared object, and providing the
18460 # list of exported symbols of that shared object, eventually
18461 # decorated with the 'weak' keyword
18462 # *) the shared object with the F_LOADONLY flag set, to really avoid
18463 # it being seen by the linker.
18464 # At run time we better use the real file rather than another symlink,
18465 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18466
18467 case $with_aix_soname,$aix_use_runtimelinking in
18468 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18469 # soname into executable. Probably we can add versioning support to
18470 # collect2, so additional links can be useful in future.
18471 aix,yes) # traditional libtool
18472 dynamic_linker='AIX unversionable lib.so'
18473 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18474 # instead of lib<name>.a to let people know that these are not
18475 # typical AIX shared libraries.
18476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18477 ;;
18478 aix,no) # traditional AIX only
18479 dynamic_linker='AIX lib.a(lib.so.V)'
18480 # We preserve .a as extension for shared libraries through AIX4.2
18481 # and later when we are not doing run time linking.
18482 library_names_spec='$libname$release.a $libname.a'
18483 soname_spec='$libname$release$shared_ext$major'
18484 ;;
18485 svr4,*) # full svr4 only
18486 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18487 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18488 # We do not specify a path in Import Files, so LIBPATH fires.
18489 shlibpath_overrides_runpath=yes
18490 ;;
18491 *,yes) # both, prefer svr4
18492 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18493 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18494 # unpreferred sharedlib libNAME.a needs extra handling
18495 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"'
18496 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"'
18497 # We do not specify a path in Import Files, so LIBPATH fires.
18498 shlibpath_overrides_runpath=yes
18499 ;;
18500 *,no) # both, prefer aix
18501 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18502 library_names_spec='$libname$release.a $libname.a'
18503 soname_spec='$libname$release$shared_ext$major'
18504 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18505 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)'
18506 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"'
18507 ;;
18508 esac
18509 shlibpath_var=LIBPATH
18510 fi
18511 ;;
18512
18513 amigaos*)
18514 case $host_cpu in
18515 powerpc)
18516 # Since July 2007 AmigaOS4 officially supports .so libraries.
18517 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18519 ;;
18520 m68k)
18521 library_names_spec='$libname.ixlibrary $libname.a'
18522 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18523 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'
18524 ;;
18525 esac
18526 ;;
18527
18528 beos*)
18529 library_names_spec='$libname$shared_ext'
18530 dynamic_linker="$host_os ld.so"
18531 shlibpath_var=LIBRARY_PATH
18532 ;;
18533
18534 bsdi[45]*)
18535 version_type=linux # correct to gnu/linux during the next big refactor
18536 need_version=no
18537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18538 soname_spec='$libname$release$shared_ext$major'
18539 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18540 shlibpath_var=LD_LIBRARY_PATH
18541 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18542 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18543 # the default ld.so.conf also contains /usr/contrib/lib and
18544 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18545 # libtool to hard-code these into programs
18546 ;;
18547
18548 cygwin* | mingw* | windows* | pw32* | cegcc*)
18549 version_type=windows
18550 shrext_cmds=.dll
18551 need_version=no
18552 need_lib_prefix=no
18553
18554 case $GCC,$cc_basename in
18555 yes,*)
18556 # gcc
18557 library_names_spec='$libname.dll.a'
18558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18559 # If user builds GCC with multilib enabled,
18560 # it should just install on $(libdir)
18561 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
18562 if test xyes = x"$multilib"; then
18563 postinstall_cmds='base_file=`basename \$file`~
18564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18565 dldir=$destdir/`dirname \$dlpath`~
18566 $install_prog $dir/$dlname $destdir/$dlname~
18567 chmod a+x $destdir/$dlname~
18568 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18569 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
18570 fi'
18571 else
18572 postinstall_cmds='base_file=`basename \$file`~
18573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18574 dldir=$destdir/`dirname \$dlpath`~
18575 test -d \$dldir || mkdir -p \$dldir~
18576 $install_prog $dir/$dlname \$dldir/$dlname~
18577 chmod a+x \$dldir/$dlname~
18578 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18579 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18580 fi'
18581 fi
18582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18583 dlpath=$dir/\$dldll~
18584 $RM \$dlpath'
18585 shlibpath_overrides_runpath=yes
18586
18587 case $host_os in
18588 cygwin*)
18589 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18590 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18591
18592 ;;
18593 mingw* | windows* | cegcc*)
18594 # MinGW DLLs use traditional 'lib' prefix
18595 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18596 ;;
18597 pw32*)
18598 # pw32 DLLs use 'pw' prefix rather than 'lib'
18599 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18600 ;;
18601 esac
18602 dynamic_linker='Win32 ld.exe'
18603 ;;
18604
18605 *,cl* | *,icl*)
18606 # Native MSVC or ICC
18607 libname_spec='$name'
18608 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18609 library_names_spec='$libname.dll.lib'
18610
18611 case $build_os in
18612 mingw* | windows*)
18613 sys_lib_search_path_spec=
18614 lt_save_ifs=$IFS
18615 IFS=';'
18616 for lt_path in $LIB
18617 do
18618 IFS=$lt_save_ifs
18619 # Let DOS variable expansion print the short 8.3 style file name.
18620 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18621 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18622 done
18623 IFS=$lt_save_ifs
18624 # Convert to MSYS style.
18625 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18626 ;;
18627 cygwin*)
18628 # Convert to unix form, then to dos form, then back to unix form
18629 # but this time dos style (no spaces!) so that the unix form looks
18630 # like /cygdrive/c/PROGRA~1:/cygdr...
18631 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18632 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18633 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18634 ;;
18635 *)
18636 sys_lib_search_path_spec=$LIB
18637 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18638 # It is most probably a Windows format PATH.
18639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18640 else
18641 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18642 fi
18643 # FIXME: find the short name or the path components, as spaces are
18644 # common. (e.g. "Program Files" -> "PROGRA~1")
18645 ;;
18646 esac
18647
18648 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18649 postinstall_cmds='base_file=`basename \$file`~
18650 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18651 dldir=$destdir/`dirname \$dlpath`~
18652 test -d \$dldir || mkdir -p \$dldir~
18653 $install_prog $dir/$dlname \$dldir/$dlname'
18654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18655 dlpath=$dir/\$dldll~
18656 $RM \$dlpath'
18657 shlibpath_overrides_runpath=yes
18658 dynamic_linker='Win32 link.exe'
18659 ;;
18660
18661 *)
18662 # Assume MSVC and ICC wrapper
18663 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18664 dynamic_linker='Win32 ld.exe'
18665 ;;
18666 esac
18667 # FIXME: first we should search . and the directory the executable is in
18668 shlibpath_var=PATH
18669 ;;
18670
18671 darwin* | rhapsody*)
18672 dynamic_linker="$host_os dyld"
18673 version_type=darwin
18674 need_lib_prefix=no
18675 need_version=no
18676 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18677 soname_spec='$libname$release$major$shared_ext'
18678 shlibpath_overrides_runpath=yes
18679 shlibpath_var=DYLD_LIBRARY_PATH
18680 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18681
18682 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18683 ;;
18684
18685 dgux*)
18686 version_type=linux # correct to gnu/linux during the next big refactor
18687 need_lib_prefix=no
18688 need_version=no
18689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18690 soname_spec='$libname$release$shared_ext$major'
18691 shlibpath_var=LD_LIBRARY_PATH
18692 ;;
18693
18694 freebsd* | dragonfly* | midnightbsd*)
18695 # DragonFly does not have aout. When/if they implement a new
18696 # versioning mechanism, adjust this.
18697 if test -x /usr/bin/objformat; then
18698 objformat=`/usr/bin/objformat`
18699 else
18700 case $host_os in
18701 freebsd[23].*) objformat=aout ;;
18702 *) objformat=elf ;;
18703 esac
18704 fi
18705 version_type=freebsd-$objformat
18706 case $version_type in
18707 freebsd-elf*)
18708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18709 soname_spec='$libname$release$shared_ext$major'
18710 need_version=no
18711 need_lib_prefix=no
18712 ;;
18713 freebsd-*)
18714 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18715 need_version=yes
18716 ;;
18717 esac
18718 case $host_cpu in
18719 powerpc64)
18720 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
18721 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
18722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18723 /* end confdefs.h. */
18724 int test_pointer_size[sizeof (void *) - 5];
18725
18726 _ACEOF
18727 if ac_fn_cxx_try_compile "$LINENO"
18728 then :
18729 shlibpath_var=LD_LIBRARY_PATH
18730 else case e in #(
18731 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
18732 esac
18733 fi
18734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18735 ;;
18736 *)
18737 shlibpath_var=LD_LIBRARY_PATH
18738 ;;
18739 esac
18740 case $host_os in
18741 freebsd2.*)
18742 shlibpath_overrides_runpath=yes
18743 ;;
18744 freebsd3.[01]* | freebsdelf3.[01]*)
18745 shlibpath_overrides_runpath=yes
18746 hardcode_into_libs=yes
18747 ;;
18748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18750 shlibpath_overrides_runpath=no
18751 hardcode_into_libs=yes
18752 ;;
18753 *) # from 4.6 on, and DragonFly
18754 shlibpath_overrides_runpath=yes
18755 hardcode_into_libs=yes
18756 ;;
18757 esac
18758 ;;
18759
18760 haiku*)
18761 version_type=linux # correct to gnu/linux during the next big refactor
18762 need_lib_prefix=no
18763 need_version=no
18764 dynamic_linker="$host_os runtime_loader"
18765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18766 soname_spec='$libname$release$shared_ext$major'
18767 shlibpath_var=LIBRARY_PATH
18768 shlibpath_overrides_runpath=no
18769 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
18770 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
18771 hardcode_into_libs=no
18772 ;;
18773
18774 hpux9* | hpux10* | hpux11*)
18775 # Give a soname corresponding to the major version so that dld.sl refuses to
18776 # link against other versions.
18777 version_type=sunos
18778 need_lib_prefix=no
18779 need_version=no
18780 case $host_cpu in
18781 ia64*)
18782 shrext_cmds='.so'
18783 hardcode_into_libs=yes
18784 dynamic_linker="$host_os dld.so"
18785 shlibpath_var=LD_LIBRARY_PATH
18786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18788 soname_spec='$libname$release$shared_ext$major'
18789 if test 32 = "$HPUX_IA64_MODE"; then
18790 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18791 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18792 else
18793 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18794 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18795 fi
18796 ;;
18797 hppa*64*)
18798 shrext_cmds='.sl'
18799 hardcode_into_libs=yes
18800 dynamic_linker="$host_os dld.sl"
18801 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18804 soname_spec='$libname$release$shared_ext$major'
18805 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18807 ;;
18808 *)
18809 shrext_cmds='.sl'
18810 dynamic_linker="$host_os dld.sl"
18811 shlibpath_var=SHLIB_PATH
18812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18814 soname_spec='$libname$release$shared_ext$major'
18815 ;;
18816 esac
18817 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18818 postinstall_cmds='chmod 555 $lib'
18819 # or fails outright, so override atomically:
18820 install_override_mode=555
18821 ;;
18822
18823 interix[3-9]*)
18824 version_type=linux # correct to gnu/linux during the next big refactor
18825 need_lib_prefix=no
18826 need_version=no
18827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18828 soname_spec='$libname$release$shared_ext$major'
18829 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18830 shlibpath_var=LD_LIBRARY_PATH
18831 shlibpath_overrides_runpath=no
18832 hardcode_into_libs=yes
18833 ;;
18834
18835 irix5* | irix6* | nonstopux*)
18836 case $host_os in
18837 nonstopux*) version_type=nonstopux ;;
18838 *)
18839 if test yes = "$lt_cv_prog_gnu_ld"; then
18840 version_type=linux # correct to gnu/linux during the next big refactor
18841 else
18842 version_type=irix
18843 fi ;;
18844 esac
18845 need_lib_prefix=no
18846 need_version=no
18847 soname_spec='$libname$release$shared_ext$major'
18848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18849 case $host_os in
18850 irix5* | nonstopux*)
18851 libsuff= shlibsuff=
18852 ;;
18853 *)
18854 case $LD in # libtool.m4 will add one of these switches to LD
18855 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18856 libsuff= shlibsuff= libmagic=32-bit;;
18857 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18858 libsuff=32 shlibsuff=N32 libmagic=N32;;
18859 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18860 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18861 *) libsuff= shlibsuff= libmagic=never-match;;
18862 esac
18863 ;;
18864 esac
18865 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18866 shlibpath_overrides_runpath=no
18867 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18868 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18869 hardcode_into_libs=yes
18870 ;;
18871
18872 # No shared lib support for Linux oldld, aout, or coff.
18873 linux*oldld* | linux*aout* | linux*coff*)
18874 dynamic_linker=no
18875 ;;
18876
18877 linux*android*)
18878 version_type=none # Android doesn't support versioned libraries.
18879 need_lib_prefix=no
18880 need_version=no
18881 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
18882 soname_spec='$libname$release$shared_ext'
18883 finish_cmds=
18884 shlibpath_var=LD_LIBRARY_PATH
18885 shlibpath_overrides_runpath=yes
18886
18887 # This implies no fast_install, which is unacceptable.
18888 # Some rework will be needed to allow for fast_install
18889 # before this can be enabled.
18890 hardcode_into_libs=yes
18891
18892 dynamic_linker='Android linker'
18893 # -rpath works at least for libraries that are not overridden by
18894 # libraries installed in system locations.
18895 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18896 ;;
18897
18898 # This must be glibc/ELF.
18899 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18900 version_type=linux # correct to gnu/linux during the next big refactor
18901 need_lib_prefix=no
18902 need_version=no
18903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18904 soname_spec='$libname$release$shared_ext$major'
18905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18906 shlibpath_var=LD_LIBRARY_PATH
18907 shlibpath_overrides_runpath=no
18908
18909 # Some binutils ld are patched to set DT_RUNPATH
18910 if test ${lt_cv_shlibpath_overrides_runpath+y}
18911 then :
18912 printf %s "(cached) " >&6
18913 else case e in #(
18914 e) lt_cv_shlibpath_overrides_runpath=no
18915 save_LDFLAGS=$LDFLAGS
18916 save_libdir=$libdir
18917 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18918 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18920 /* end confdefs.h. */
18921
18922 int
18923 main (void)
18924 {
18925
18926 ;
18927 return 0;
18928 }
18929 _ACEOF
18930 if ac_fn_cxx_try_link "$LINENO"
18931 then :
18932 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18933 then :
18934 lt_cv_shlibpath_overrides_runpath=yes
18935 fi
18936 fi
18937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18938 conftest$ac_exeext conftest.$ac_ext
18939 LDFLAGS=$save_LDFLAGS
18940 libdir=$save_libdir
18941 ;;
18942 esac
18943 fi
18944
18945 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18946
18947 # This implies no fast_install, which is unacceptable.
18948 # Some rework will be needed to allow for fast_install
18949 # before this can be enabled.
18950 hardcode_into_libs=yes
18951
18952 # Ideally, we could use ldconfig to report *all* directories which are
18953 # searched for libraries, however this is still not possible. Aside from not
18954 # being certain /sbin/ldconfig is available, command
18955 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18956 # even though it is searched at run-time. Try to do the best guess by
18957 # appending ld.so.conf contents (and includes) to the search path.
18958 if test -f /etc/ld.so.conf; then
18959 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' ' '`
18960 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18961 fi
18962
18963 # We used to test for /lib/ld.so.1 and disable shared libraries on
18964 # powerpc, because MkLinux only supported shared libraries with the
18965 # GNU dynamic linker. Since this was broken with cross compilers,
18966 # most powerpc-linux boxes support dynamic linking these days and
18967 # people can always --disable-shared, the test was removed, and we
18968 # assume the GNU/Linux dynamic linker is in use.
18969 dynamic_linker='GNU/Linux ld.so'
18970 ;;
18971
18972 netbsdelf*-gnu)
18973 version_type=linux
18974 need_lib_prefix=no
18975 need_version=no
18976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18977 soname_spec='$libname$release$shared_ext$major'
18978 shlibpath_var=LD_LIBRARY_PATH
18979 shlibpath_overrides_runpath=no
18980 hardcode_into_libs=yes
18981 dynamic_linker='NetBSD ld.elf_so'
18982 ;;
18983
18984 netbsd*)
18985 version_type=sunos
18986 need_lib_prefix=no
18987 need_version=no
18988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18989 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18991 dynamic_linker='NetBSD (a.out) ld.so'
18992 else
18993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18994 soname_spec='$libname$release$shared_ext$major'
18995 dynamic_linker='NetBSD ld.elf_so'
18996 fi
18997 shlibpath_var=LD_LIBRARY_PATH
18998 shlibpath_overrides_runpath=yes
18999 hardcode_into_libs=yes
19000 ;;
19001
19002 *-mlibc)
19003 version_type=linux # correct to gnu/linux during the next big refactor
19004 need_lib_prefix=no
19005 need_version=no
19006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19007 soname_spec='$libname$release$shared_ext$major'
19008 dynamic_linker='mlibc ld.so'
19009 shlibpath_var=LD_LIBRARY_PATH
19010 shlibpath_overrides_runpath=no
19011 hardcode_into_libs=yes
19012 ;;
19013
19014 newsos6)
19015 version_type=linux # correct to gnu/linux during the next big refactor
19016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19017 shlibpath_var=LD_LIBRARY_PATH
19018 shlibpath_overrides_runpath=yes
19019 ;;
19020
19021 *nto* | *qnx*)
19022 version_type=qnx
19023 need_lib_prefix=no
19024 need_version=no
19025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19026 soname_spec='$libname$release$shared_ext$major'
19027 shlibpath_var=LD_LIBRARY_PATH
19028 shlibpath_overrides_runpath=no
19029 hardcode_into_libs=yes
19030 dynamic_linker='ldqnx.so'
19031 ;;
19032
19033 openbsd*)
19034 version_type=sunos
19035 sys_lib_dlsearch_path_spec=/usr/lib
19036 need_lib_prefix=no
19037 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19038 need_version=no
19039 else
19040 need_version=yes
19041 fi
19042 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19044 shlibpath_var=LD_LIBRARY_PATH
19045 shlibpath_overrides_runpath=yes
19046 ;;
19047
19048 os2*)
19049 libname_spec='$name'
19050 version_type=windows
19051 shrext_cmds=.dll
19052 need_version=no
19053 need_lib_prefix=no
19054 # OS/2 can only load a DLL with a base name of 8 characters or less.
19055 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19056 v=$($ECHO $release$versuffix | tr -d .-);
19057 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19058 $ECHO $n$v`$shared_ext'
19059 library_names_spec='${libname}_dll.$libext'
19060 dynamic_linker='OS/2 ld.exe'
19061 shlibpath_var=BEGINLIBPATH
19062 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19064 postinstall_cmds='base_file=`basename \$file`~
19065 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19066 dldir=$destdir/`dirname \$dlpath`~
19067 test -d \$dldir || mkdir -p \$dldir~
19068 $install_prog $dir/$dlname \$dldir/$dlname~
19069 chmod a+x \$dldir/$dlname~
19070 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19071 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19072 fi'
19073 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19074 dlpath=$dir/\$dldll~
19075 $RM \$dlpath'
19076 ;;
19077
19078 osf3* | osf4* | osf5*)
19079 version_type=osf
19080 need_lib_prefix=no
19081 need_version=no
19082 soname_spec='$libname$release$shared_ext$major'
19083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19084 shlibpath_var=LD_LIBRARY_PATH
19085 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19087 ;;
19088
19089 rdos*)
19090 dynamic_linker=no
19091 ;;
19092
19093 serenity*)
19094 version_type=linux # correct to gnu/linux during the next big refactor
19095 need_lib_prefix=no
19096 need_version=no
19097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19098 soname_spec='$libname$release$shared_ext$major'
19099 shlibpath_var=LD_LIBRARY_PATH
19100 shlibpath_overrides_runpath=no
19101 dynamic_linker='SerenityOS LibELF'
19102 ;;
19103
19104 solaris*)
19105 version_type=linux # correct to gnu/linux during the next big refactor
19106 need_lib_prefix=no
19107 need_version=no
19108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19109 soname_spec='$libname$release$shared_ext$major'
19110 shlibpath_var=LD_LIBRARY_PATH
19111 shlibpath_overrides_runpath=yes
19112 hardcode_into_libs=yes
19113 # ldd complains unless libraries are executable
19114 postinstall_cmds='chmod +x $lib'
19115 ;;
19116
19117 sunos4*)
19118 version_type=sunos
19119 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19120 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19121 shlibpath_var=LD_LIBRARY_PATH
19122 shlibpath_overrides_runpath=yes
19123 if test yes = "$with_gnu_ld"; then
19124 need_lib_prefix=no
19125 fi
19126 need_version=yes
19127 ;;
19128
19129 sysv4 | sysv4.3*)
19130 version_type=linux # correct to gnu/linux during the next big refactor
19131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19132 soname_spec='$libname$release$shared_ext$major'
19133 shlibpath_var=LD_LIBRARY_PATH
19134 case $host_vendor in
19135 sni)
19136 shlibpath_overrides_runpath=no
19137 need_lib_prefix=no
19138 runpath_var=LD_RUN_PATH
19139 ;;
19140 siemens)
19141 need_lib_prefix=no
19142 ;;
19143 motorola)
19144 need_lib_prefix=no
19145 need_version=no
19146 shlibpath_overrides_runpath=no
19147 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19148 ;;
19149 esac
19150 ;;
19151
19152 sysv4*MP*)
19153 if test -d /usr/nec; then
19154 version_type=linux # correct to gnu/linux during the next big refactor
19155 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19156 soname_spec='$libname$shared_ext.$major'
19157 shlibpath_var=LD_LIBRARY_PATH
19158 fi
19159 ;;
19160
19161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19162 version_type=sco
19163 need_lib_prefix=no
19164 need_version=no
19165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19166 soname_spec='$libname$release$shared_ext$major'
19167 shlibpath_var=LD_LIBRARY_PATH
19168 shlibpath_overrides_runpath=yes
19169 hardcode_into_libs=yes
19170 if test yes = "$with_gnu_ld"; then
19171 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19172 else
19173 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19174 case $host_os in
19175 sco3.2v5*)
19176 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19177 ;;
19178 esac
19179 fi
19180 sys_lib_dlsearch_path_spec='/usr/lib'
19181 ;;
19182
19183 tpf*)
19184 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19185 version_type=linux # correct to gnu/linux during the next big refactor
19186 need_lib_prefix=no
19187 need_version=no
19188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19189 shlibpath_var=LD_LIBRARY_PATH
19190 shlibpath_overrides_runpath=no
19191 hardcode_into_libs=yes
19192 ;;
19193
19194 uts4*)
19195 version_type=linux # correct to gnu/linux during the next big refactor
19196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19197 soname_spec='$libname$release$shared_ext$major'
19198 shlibpath_var=LD_LIBRARY_PATH
19199 ;;
19200
19201 emscripten*)
19202 version_type=none
19203 need_lib_prefix=no
19204 need_version=no
19205 library_names_spec='$libname$release$shared_ext'
19206 soname_spec='$libname$release$shared_ext'
19207 finish_cmds=
19208 dynamic_linker="Emscripten linker"
19209 lt_prog_compiler_wl_CXX=
19210 lt_prog_compiler_pic_CXX=
19211 lt_prog_compiler_static_CXX=
19212
19213
19214 # C++ specific cases for pic, static, wl, etc.
19215 if test yes = "$GXX"; then
19216 lt_prog_compiler_wl_CXX='-Wl,'
19217 lt_prog_compiler_static_CXX='-static'
19218
19219 case $host_os in
19220 aix*)
19221 # All AIX code is PIC.
19222 if test ia64 = "$host_cpu"; then
19223 # AIX 5 now supports IA64 processor
19224 lt_prog_compiler_static_CXX='-Bstatic'
19225 fi
19226 lt_prog_compiler_pic_CXX='-fPIC'
19227 ;;
19228
19229 amigaos*)
19230 case $host_cpu in
19231 powerpc)
19232 # see comment about AmigaOS4 .so support
19233 lt_prog_compiler_pic_CXX='-fPIC'
19234 ;;
19235 m68k)
19236 # FIXME: we need at least 68020 code to build shared libraries, but
19237 # adding the '-m68020' flag to GCC prevents building anything better,
19238 # like '-m68040'.
19239 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19240 ;;
19241 esac
19242 ;;
19243
19244 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19245 # PIC is the default for these OSes.
19246 ;;
19247 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19248 # This hack is so that the source file can tell whether it is being
19249 # built for inclusion in a dll (and should export symbols for example).
19250 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19251 # (--disable-auto-import) libraries
19252 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19253 case $host_os in
19254 os2*)
19255 lt_prog_compiler_static_CXX='$wl-static'
19256 ;;
19257 esac
19258 ;;
19259 darwin* | rhapsody*)
19260 # PIC is the default on this platform
19261 # Common symbols not allowed in MH_DYLIB files
19262 lt_prog_compiler_pic_CXX='-fno-common'
19263 ;;
19264 *djgpp*)
19265 # DJGPP does not support shared libraries at all
19266 lt_prog_compiler_pic_CXX=
19267 ;;
19268 haiku*)
19269 # PIC is the default for Haiku.
19270 # The "-static" flag exists, but is broken.
19271 lt_prog_compiler_static_CXX=
19272 ;;
19273 interix[3-9]*)
19274 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19275 # Instead, we relocate shared libraries at runtime.
19276 ;;
19277 sysv4*MP*)
19278 if test -d /usr/nec; then
19279 lt_prog_compiler_pic_CXX=-Kconform_pic
19280 fi
19281 ;;
19282 hpux*)
19283 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19284 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19285 # sets the default TLS model and affects inlining.
19286 case $host_cpu in
19287 hppa*64*)
19288 ;;
19289 *)
19290 lt_prog_compiler_pic_CXX='-fPIC'
19291 ;;
19292 esac
19293 ;;
19294 *qnx* | *nto*)
19295 # QNX uses GNU C++, but need to define -shared option too, otherwise
19296 # it will coredump.
19297 lt_prog_compiler_pic_CXX='-fPIC -shared'
19298 ;;
19299 *)
19300 lt_prog_compiler_pic_CXX='-fPIC'
19301 ;;
19302 esac
19303 else
19304 case $host_os in
19305 aix[4-9]*)
19306 # All AIX code is PIC.
19307 if test ia64 = "$host_cpu"; then
19308 # AIX 5 now supports IA64 processor
19309 lt_prog_compiler_static_CXX='-Bstatic'
19310 else
19311 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19312 fi
19313 ;;
19314 chorus*)
19315 case $cc_basename in
19316 cxch68*)
19317 # Green Hills C++ Compiler
19318 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19319 ;;
19320 esac
19321 ;;
19322 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19323 # This hack is so that the source file can tell whether it is being
19324 # built for inclusion in a dll (and should export symbols for example).
19325 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19326 ;;
19327 dgux*)
19328 case $cc_basename in
19329 ec++*)
19330 lt_prog_compiler_pic_CXX='-KPIC'
19331 ;;
19332 ghcx*)
19333 # Green Hills C++ Compiler
19334 lt_prog_compiler_pic_CXX='-pic'
19335 ;;
19336 *)
19337 ;;
19338 esac
19339 ;;
19340 freebsd* | dragonfly* | midnightbsd*)
19341 # FreeBSD uses GNU C++
19342 ;;
19343 hpux9* | hpux10* | hpux11*)
19344 case $cc_basename in
19345 CC*)
19346 lt_prog_compiler_wl_CXX='-Wl,'
19347 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19348 if test ia64 != "$host_cpu"; then
19349 lt_prog_compiler_pic_CXX='+Z'
19350 fi
19351 ;;
19352 aCC*)
19353 lt_prog_compiler_wl_CXX='-Wl,'
19354 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19355 case $host_cpu in
19356 hppa*64*|ia64*)
19357 # +Z the default
19358 ;;
19359 *)
19360 lt_prog_compiler_pic_CXX='+Z'
19361 ;;
19362 esac
19363 ;;
19364 *)
19365 ;;
19366 esac
19367 ;;
19368 interix*)
19369 # This is c89, which is MS Visual C++ (no shared libs)
19370 # Anyone wants to do a port?
19371 ;;
19372 irix5* | irix6* | nonstopux*)
19373 case $cc_basename in
19374 CC*)
19375 lt_prog_compiler_wl_CXX='-Wl,'
19376 lt_prog_compiler_static_CXX='-non_shared'
19377 # CC pic flag -KPIC is the default.
19378 ;;
19379 *)
19380 ;;
19381 esac
19382 ;;
19383 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19384 case $cc_basename in
19385 KCC*)
19386 # KAI C++ Compiler
19387 lt_prog_compiler_wl_CXX='--backend -Wl,'
19388 lt_prog_compiler_pic_CXX='-fPIC'
19389 ;;
19390 ecpc* )
19391 # old Intel C++ for x86_64, which still supported -KPIC.
19392 lt_prog_compiler_wl_CXX='-Wl,'
19393 lt_prog_compiler_pic_CXX='-KPIC'
19394 lt_prog_compiler_static_CXX='-static'
19395 ;;
19396 icpc* )
19397 # Intel C++, used to be incompatible with GCC.
19398 # ICC 10 doesn't accept -KPIC any more.
19399 lt_prog_compiler_wl_CXX='-Wl,'
19400 lt_prog_compiler_pic_CXX='-fPIC'
19401 lt_prog_compiler_static_CXX='-static'
19402 ;;
19403 pgCC* | pgcpp*)
19404 # Portland Group C++ compiler
19405 lt_prog_compiler_wl_CXX='-Wl,'
19406 lt_prog_compiler_pic_CXX='-fpic'
19407 lt_prog_compiler_static_CXX='-Bstatic'
19408 ;;
19409 cxx*)
19410 # Compaq C++
19411 # Make sure the PIC flag is empty. It appears that all Alpha
19412 # Linux and Compaq Tru64 Unix objects are PIC.
19413 lt_prog_compiler_pic_CXX=
19414 lt_prog_compiler_static_CXX='-non_shared'
19415 ;;
19416 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19417 # IBM XL 8.0, 9.0 on PPC and BlueGene
19418 lt_prog_compiler_wl_CXX='-Wl,'
19419 lt_prog_compiler_pic_CXX='-qpic'
19420 lt_prog_compiler_static_CXX='-qstaticlink'
19421 ;;
19422 *)
19423 case `$CC -V 2>&1 | $SED 5q` in
19424 *Sun\ C*)
19425 # Sun C++ 5.9
19426 lt_prog_compiler_pic_CXX='-KPIC'
19427 lt_prog_compiler_static_CXX='-Bstatic'
19428 lt_prog_compiler_wl_CXX='-Qoption ld '
19429 ;;
19430 esac
19431 ;;
19432 esac
19433 ;;
19434 lynxos*)
19435 ;;
19436 m88k*)
19437 ;;
19438 mvs*)
19439 case $cc_basename in
19440 cxx*)
19441 lt_prog_compiler_pic_CXX='-W c,exportall'
19442 ;;
19443 *)
19444 ;;
19445 esac
19446 ;;
19447 netbsd* | netbsdelf*-gnu)
19448 ;;
19449 *-mlibc)
19450 ;;
19451 *qnx* | *nto*)
19452 # QNX uses GNU C++, but need to define -shared option too, otherwise
19453 # it will coredump.
19454 lt_prog_compiler_pic_CXX='-fPIC -shared'
19455 ;;
19456 osf3* | osf4* | osf5*)
19457 case $cc_basename in
19458 KCC*)
19459 lt_prog_compiler_wl_CXX='--backend -Wl,'
19460 ;;
19461 RCC*)
19462 # Rational C++ 2.4.1
19463 lt_prog_compiler_pic_CXX='-pic'
19464 ;;
19465 cxx*)
19466 # Digital/Compaq C++
19467 lt_prog_compiler_wl_CXX='-Wl,'
19468 # Make sure the PIC flag is empty. It appears that all Alpha
19469 # Linux and Compaq Tru64 Unix objects are PIC.
19470 lt_prog_compiler_pic_CXX=
19471 lt_prog_compiler_static_CXX='-non_shared'
19472 ;;
19473 *)
19474 ;;
19475 esac
19476 ;;
19477 psos*)
19478 ;;
19479 serenity*)
19480 ;;
19481 solaris*)
19482 case $cc_basename in
19483 CC* | sunCC*)
19484 # Sun C++ 4.2, 5.x and Centerline C++
19485 lt_prog_compiler_pic_CXX='-KPIC'
19486 lt_prog_compiler_static_CXX='-Bstatic'
19487 lt_prog_compiler_wl_CXX='-Qoption ld '
19488 ;;
19489 gcx*)
19490 # Green Hills C++ Compiler
19491 lt_prog_compiler_pic_CXX='-PIC'
19492 ;;
19493 *)
19494 ;;
19495 esac
19496 ;;
19497 sunos4*)
19498 case $cc_basename in
19499 CC*)
19500 # Sun C++ 4.x
19501 lt_prog_compiler_pic_CXX='-pic'
19502 lt_prog_compiler_static_CXX='-Bstatic'
19503 ;;
19504 lcc*)
19505 # Lucid
19506 lt_prog_compiler_pic_CXX='-pic'
19507 ;;
19508 *)
19509 ;;
19510 esac
19511 ;;
19512 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19513 case $cc_basename in
19514 CC*)
19515 lt_prog_compiler_wl_CXX='-Wl,'
19516 lt_prog_compiler_pic_CXX='-KPIC'
19517 lt_prog_compiler_static_CXX='-Bstatic'
19518 ;;
19519 esac
19520 ;;
19521 tandem*)
19522 case $cc_basename in
19523 NCC*)
19524 # NonStop-UX NCC 3.20
19525 lt_prog_compiler_pic_CXX='-KPIC'
19526 ;;
19527 *)
19528 ;;
19529 esac
19530 ;;
19531 vxworks*)
19532 ;;
19533 *)
19534 lt_prog_compiler_can_build_shared_CXX=no
19535 ;;
19536 esac
19537 fi
19538
19539 case $host_os in
19540 # For platforms that do not support PIC, -DPIC is meaningless:
19541 *djgpp*)
19542 lt_prog_compiler_pic_CXX=
19543 ;;
19544 *)
19545 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19546 ;;
19547 esac
19548
19549 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19550 printf %s "checking for $compiler option to produce PIC... " >&6; }
19551 if test ${lt_cv_prog_compiler_pic_CXX+y}
19552 then :
19553 printf %s "(cached) " >&6
19554 else case e in #(
19555 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
19556 esac
19557 fi
19558 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19559 printf '%s\n' "$lt_cv_prog_compiler_pic_CXX" >&6; }
19560 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19561
19562 #
19563 # Check to make sure the PIC flag actually works.
19564 #
19565 if test -n "$lt_prog_compiler_pic_CXX"; then
19566 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19567 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19568 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19569 then :
19570 printf %s "(cached) " >&6
19571 else case e in #(
19572 e) lt_cv_prog_compiler_pic_works_CXX=no
19573 ac_outfile=conftest.$ac_objext
19574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19575 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
19576 # Insert the option either (1) after the last *FLAGS variable, or
19577 # (2) before a word containing "conftest.", or (3) at the end.
19578 # Note that $ac_compile itself does not contain backslashes and begins
19579 # with a dollar sign (not a hyphen), so the echo should work correctly.
19580 # The option is referenced via a variable to avoid confusing sed.
19581 lt_compile=`echo "$ac_compile" | $SED \
19582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19584 -e 's:$: $lt_compiler_flag:'`
19585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19586 (eval "$lt_compile" 2>conftest.err)
19587 ac_status=$?
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 if (exit $ac_status) && test -s "$ac_outfile"; then
19591 # The compiler can only warn and ignore the option if not recognized
19592 # So say no if there are warnings other than the usual output.
19593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19595 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19596 lt_cv_prog_compiler_pic_works_CXX=yes
19597 fi
19598 fi
19599 $RM conftest*
19600 ;;
19601 esac
19602 fi
19603 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19604 printf '%s\n' "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19605
19606 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19607 case $lt_prog_compiler_pic_CXX in
19608 "" | " "*) ;;
19609 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19610 esac
19611 else
19612 lt_prog_compiler_pic_CXX=
19613 lt_prog_compiler_can_build_shared_CXX=no
19614 fi
19615
19616 fi
19617
19618
19619
19620
19621
19622 #
19623 # Check to make sure the static flag actually works.
19624 #
19625 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19626 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19627 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19628 if test ${lt_cv_prog_compiler_static_works_CXX+y}
19629 then :
19630 printf %s "(cached) " >&6
19631 else case e in #(
19632 e) lt_cv_prog_compiler_static_works_CXX=no
19633 save_LDFLAGS=$LDFLAGS
19634 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19635 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19636 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19637 # The linker can only warn and ignore the option if not recognized
19638 # So say no if there are warnings
19639 if test -s conftest.err; then
19640 # Append any errors to the config.log.
19641 cat conftest.err 1>&5
19642 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19644 if diff conftest.exp conftest.er2 >/dev/null; then
19645 lt_cv_prog_compiler_static_works_CXX=yes
19646 fi
19647 else
19648 lt_cv_prog_compiler_static_works_CXX=yes
19649 fi
19650 fi
19651 $RM -r conftest*
19652 LDFLAGS=$save_LDFLAGS
19653 ;;
19654 esac
19655 fi
19656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19657 printf '%s\n' "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19658
19659 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19660 :
19661 else
19662 lt_prog_compiler_static_CXX=
19663 fi
19664
19665
19666
19667 ='-fPIC'
19668 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
19669 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
19670 archive_cmds_need_lc_CXX=no
19671 no_undefined_flag_CXX=
19672 ;;
19673
19674 *)
19675 dynamic_linker=no
19676 ;;
19677 esac
19678 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19679 printf '%s\n' "$dynamic_linker" >&6; }
19680 test no = "$dynamic_linker" && can_build_shared=no
19681
19682 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19683 if test yes = "$GCC"; then
19684 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19685 fi
19686
19687 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19688 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19689 fi
19690
19691 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19692 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19693 fi
19694
19695 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19696 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19697
19698 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19699 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19700
19701 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19702 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19744 printf %s "checking how to hardcode library paths into programs... " >&6; }
19745 hardcode_action_CXX=
19746 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19747 test -n "$runpath_var_CXX" ||
19748 test yes = "$hardcode_automatic_CXX"; then
19749
19750 # We can hardcode non-existent directories.
19751 if test no != "$hardcode_direct_CXX" &&
19752 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19753 # have to relink, otherwise we might link with an installed library
19754 # when we should be linking with a yet-to-be-installed one
19755 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19756 test no != "$hardcode_minus_L_CXX"; then
19757 # Linking always hardcodes the temporary library directory.
19758 hardcode_action_CXX=relink
19759 else
19760 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19761 hardcode_action_CXX=immediate
19762 fi
19763 else
19764 # We cannot hardcode anything, or else we can only hardcode existing
19765 # directories.
19766 hardcode_action_CXX=unsupported
19767 fi
19768 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19769 printf '%s\n' "$hardcode_action_CXX" >&6; }
19770
19771 if test relink = "$hardcode_action_CXX" ||
19772 test yes = "$inherit_rpath_CXX"; then
19773 # Fast installation is not supported
19774 enable_fast_install=no
19775 elif test yes = "$shlibpath_overrides_runpath" ||
19776 test no = "$enable_shared"; then
19777 # Fast installation is not necessary
19778 enable_fast_install=needless
19779 fi
19780
19781
19782
19783
19784
19785
19786
19787 fi # test -n "$compiler"
19788
19789 CC=$lt_save_CC
19790 CFLAGS=$lt_save_CFLAGS
19791 LDCXX=$LD
19792 LD=$lt_save_LD
19793 GCC=$lt_save_GCC
19794 with_gnu_ld=$lt_save_with_gnu_ld
19795 lt_cv_path_LDCXX=$lt_cv_path_LD
19796 lt_cv_path_LD=$lt_save_path_LD
19797 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19798 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19799 fi # test yes != "$_lt_caught_CXX_error"
19800
19801 ac_ext=c
19802 ac_cpp='$CPP $CPPFLAGS'
19803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19806
19807
19808
19809 ####################################################################
19810 # Setup C, C++ compilers
19811 ####################################################################
19812
19813 CFLAGS_save=$CFLAGS
19814 ac_ext=c
19815 ac_cpp='$CPP $CPPFLAGS'
19816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19819 if test -n "$ac_tool_prefix"; then
19820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19823 printf %s "checking for $ac_word... " >&6; }
19824 if test ${ac_cv_prog_CC+y}
19825 then :
19826 printf %s "(cached) " >&6
19827 else case e in #(
19828 e) if test -n "$CC"; then
19829 ac_cv_prog_CC="$CC" # Let the user override the test.
19830 else
19831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19832 for as_dir in $PATH
19833 do
19834 IFS=$as_save_IFS
19835 case $as_dir in #(((
19836 '') as_dir=./ ;;
19837 */) ;;
19838 *) as_dir=$as_dir/ ;;
19839 esac
19840 for ac_exec_ext in '' $ac_executable_extensions; do
19841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19842 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19843 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19844 break 2
19845 fi
19846 done
19847 done
19848 IFS=$as_save_IFS
19849
19850 fi ;;
19851 esac
19852 fi
19853 CC=$ac_cv_prog_CC
19854 if test -n "$CC"; then
19855 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19856 printf '%s\n' "$CC" >&6; }
19857 else
19858 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
19859 printf '%s\n' "no" >&6; }
19860 fi
19861
19862
19863 fi
19864 if test -z "$ac_cv_prog_CC"; then
19865 ac_ct_CC=$CC
19866 # Extract the first word of "gcc", so it can be a program name with args.
19867 set dummy gcc; ac_word=$2
19868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19869 printf %s "checking for $ac_word... " >&6; }
19870 if test ${ac_cv_prog_ac_ct_CC+y}
19871 then :
19872 printf %s "(cached) " >&6
19873 else case e in #(
19874 e) if test -n "$ac_ct_CC"; then
19875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19876 else
19877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19878 for as_dir in $PATH
19879 do
19880 IFS=$as_save_IFS
19881 case $as_dir in #(((
19882 '') as_dir=./ ;;
19883 */) ;;
19884 *) as_dir=$as_dir/ ;;
19885 esac
19886 for ac_exec_ext in '' $ac_executable_extensions; do
19887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19888 ac_cv_prog_ac_ct_CC="gcc"
19889 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19890 break 2
19891 fi
19892 done
19893 done
19894 IFS=$as_save_IFS
19895
19896 fi ;;
19897 esac
19898 fi
19899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19900 if test -n "$ac_ct_CC"; then
19901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19902 printf '%s\n' "$ac_ct_CC" >&6; }
19903 else
19904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
19905 printf '%s\n' "no" >&6; }
19906 fi
19907
19908 if test "x$ac_ct_CC" = x; then
19909 CC=""
19910 else
19911 case $cross_compiling:$ac_tool_warned in
19912 yes:)
19913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19914 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19915 ac_tool_warned=yes ;;
19916 esac
19917 CC=$ac_ct_CC
19918 fi
19919 else
19920 CC="$ac_cv_prog_CC"
19921 fi
19922
19923 if test -z "$CC"; then
19924 if test -n "$ac_tool_prefix"; then
19925 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19926 set dummy ${ac_tool_prefix}cc; ac_word=$2
19927 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19928 printf %s "checking for $ac_word... " >&6; }
19929 if test ${ac_cv_prog_CC+y}
19930 then :
19931 printf %s "(cached) " >&6
19932 else case e in #(
19933 e) if test -n "$CC"; then
19934 ac_cv_prog_CC="$CC" # Let the user override the test.
19935 else
19936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19937 for as_dir in $PATH
19938 do
19939 IFS=$as_save_IFS
19940 case $as_dir in #(((
19941 '') as_dir=./ ;;
19942 */) ;;
19943 *) as_dir=$as_dir/ ;;
19944 esac
19945 for ac_exec_ext in '' $ac_executable_extensions; do
19946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19947 ac_cv_prog_CC="${ac_tool_prefix}cc"
19948 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19949 break 2
19950 fi
19951 done
19952 done
19953 IFS=$as_save_IFS
19954
19955 fi ;;
19956 esac
19957 fi
19958 CC=$ac_cv_prog_CC
19959 if test -n "$CC"; then
19960 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19961 printf '%s\n' "$CC" >&6; }
19962 else
19963 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
19964 printf '%s\n' "no" >&6; }
19965 fi
19966
19967
19968 fi
19969 fi
19970 if test -z "$CC"; then
19971 # Extract the first word of "cc", so it can be a program name with args.
19972 set dummy cc; ac_word=$2
19973 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19974 printf %s "checking for $ac_word... " >&6; }
19975 if test ${ac_cv_prog_CC+y}
19976 then :
19977 printf %s "(cached) " >&6
19978 else case e in #(
19979 e) if test -n "$CC"; then
19980 ac_cv_prog_CC="$CC" # Let the user override the test.
19981 else
19982 ac_prog_rejected=no
19983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19984 for as_dir in $PATH
19985 do
19986 IFS=$as_save_IFS
19987 case $as_dir in #(((
19988 '') as_dir=./ ;;
19989 */) ;;
19990 *) as_dir=$as_dir/ ;;
19991 esac
19992 for ac_exec_ext in '' $ac_executable_extensions; do
19993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19994 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19995 ac_prog_rejected=yes
19996 continue
19997 fi
19998 ac_cv_prog_CC="cc"
19999 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20000 break 2
20001 fi
20002 done
20003 done
20004 IFS=$as_save_IFS
20005
20006 if test $ac_prog_rejected = yes; then
20007 # We found a bogon in the path, so make sure we never use it.
20008 set dummy $ac_cv_prog_CC
20009 shift
20010 if test $# != 0; then
20011 # We chose a different compiler from the bogus one.
20012 # However, it has the same basename, so the bogon will be chosen
20013 # first if we set CC to just the basename; use the full file name.
20014 shift
20015 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
20016 fi
20017 fi
20018 fi ;;
20019 esac
20020 fi
20021 CC=$ac_cv_prog_CC
20022 if test -n "$CC"; then
20023 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
20024 printf '%s\n' "$CC" >&6; }
20025 else
20026 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
20027 printf '%s\n' "no" >&6; }
20028 fi
20029
20030
20031 fi
20032 if test -z "$CC"; then
20033 if test -n "$ac_tool_prefix"; then
20034 for ac_prog in cl.exe
20035 do
20036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20037 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20038 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20039 printf %s "checking for $ac_word... " >&6; }
20040 if test ${ac_cv_prog_CC+y}
20041 then :
20042 printf %s "(cached) " >&6
20043 else case e in #(
20044 e) if test -n "$CC"; then
20045 ac_cv_prog_CC="$CC" # Let the user override the test.
20046 else
20047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20048 for as_dir in $PATH
20049 do
20050 IFS=$as_save_IFS
20051 case $as_dir in #(((
20052 '') as_dir=./ ;;
20053 */) ;;
20054 *) as_dir=$as_dir/ ;;
20055 esac
20056 for ac_exec_ext in '' $ac_executable_extensions; do
20057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20059 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20060 break 2
20061 fi
20062 done
20063 done
20064 IFS=$as_save_IFS
20065
20066 fi ;;
20067 esac
20068 fi
20069 CC=$ac_cv_prog_CC
20070 if test -n "$CC"; then
20071 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
20072 printf '%s\n' "$CC" >&6; }
20073 else
20074 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
20075 printf '%s\n' "no" >&6; }
20076 fi
20077
20078
20079 test -n "$CC" && break
20080 done
20081 fi
20082 if test -z "$CC"; then
20083 ac_ct_CC=$CC
20084 for ac_prog in cl.exe
20085 do
20086 # Extract the first word of "$ac_prog", so it can be a program name with args.
20087 set dummy $ac_prog; ac_word=$2
20088 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20089 printf %s "checking for $ac_word... " >&6; }
20090 if test ${ac_cv_prog_ac_ct_CC+y}
20091 then :
20092 printf %s "(cached) " >&6
20093 else case e in #(
20094 e) if test -n "$ac_ct_CC"; then
20095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20096 else
20097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20098 for as_dir in $PATH
20099 do
20100 IFS=$as_save_IFS
20101 case $as_dir in #(((
20102 '') as_dir=./ ;;
20103 */) ;;
20104 *) as_dir=$as_dir/ ;;
20105 esac
20106 for ac_exec_ext in '' $ac_executable_extensions; do
20107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20108 ac_cv_prog_ac_ct_CC="$ac_prog"
20109 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20110 break 2
20111 fi
20112 done
20113 done
20114 IFS=$as_save_IFS
20115
20116 fi ;;
20117 esac
20118 fi
20119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20120 if test -n "$ac_ct_CC"; then
20121 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
20122 printf '%s\n' "$ac_ct_CC" >&6; }
20123 else
20124 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
20125 printf '%s\n' "no" >&6; }
20126 fi
20127
20128
20129 test -n "$ac_ct_CC" && break
20130 done
20131
20132 if test "x$ac_ct_CC" = x; then
20133 CC=""
20134 else
20135 case $cross_compiling:$ac_tool_warned in
20136 yes:)
20137 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20138 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20139 ac_tool_warned=yes ;;
20140 esac
20141 CC=$ac_ct_CC
20142 fi
20143 fi
20144
20145 fi
20146 if test -z "$CC"; then
20147 if test -n "$ac_tool_prefix"; then
20148 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
20149 set dummy ${ac_tool_prefix}clang; ac_word=$2
20150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20151 printf %s "checking for $ac_word... " >&6; }
20152 if test ${ac_cv_prog_CC+y}
20153 then :
20154 printf %s "(cached) " >&6
20155 else case e in #(
20156 e) if test -n "$CC"; then
20157 ac_cv_prog_CC="$CC" # Let the user override the test.
20158 else
20159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20160 for as_dir in $PATH
20161 do
20162 IFS=$as_save_IFS
20163 case $as_dir in #(((
20164 '') as_dir=./ ;;
20165 */) ;;
20166 *) as_dir=$as_dir/ ;;
20167 esac
20168 for ac_exec_ext in '' $ac_executable_extensions; do
20169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20170 ac_cv_prog_CC="${ac_tool_prefix}clang"
20171 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20172 break 2
20173 fi
20174 done
20175 done
20176 IFS=$as_save_IFS
20177
20178 fi ;;
20179 esac
20180 fi
20181 CC=$ac_cv_prog_CC
20182 if test -n "$CC"; then
20183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
20184 printf '%s\n' "$CC" >&6; }
20185 else
20186 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
20187 printf '%s\n' "no" >&6; }
20188 fi
20189
20190
20191 fi
20192 if test -z "$ac_cv_prog_CC"; then
20193 ac_ct_CC=$CC
20194 # Extract the first word of "clang", so it can be a program name with args.
20195 set dummy clang; ac_word=$2
20196 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20197 printf %s "checking for $ac_word... " >&6; }
20198 if test ${ac_cv_prog_ac_ct_CC+y}
20199 then :
20200 printf %s "(cached) " >&6
20201 else case e in #(
20202 e) if test -n "$ac_ct_CC"; then
20203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20204 else
20205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20206 for as_dir in $PATH
20207 do
20208 IFS=$as_save_IFS
20209 case $as_dir in #(((
20210 '') as_dir=./ ;;
20211 */) ;;
20212 *) as_dir=$as_dir/ ;;
20213 esac
20214 for ac_exec_ext in '' $ac_executable_extensions; do
20215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20216 ac_cv_prog_ac_ct_CC="clang"
20217 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20218 break 2
20219 fi
20220 done
20221 done
20222 IFS=$as_save_IFS
20223
20224 fi ;;
20225 esac
20226 fi
20227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20228 if test -n "$ac_ct_CC"; then
20229 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
20230 printf '%s\n' "$ac_ct_CC" >&6; }
20231 else
20232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
20233 printf '%s\n' "no" >&6; }
20234 fi
20235
20236 if test "x$ac_ct_CC" = x; then
20237 CC=""
20238 else
20239 case $cross_compiling:$ac_tool_warned in
20240 yes:)
20241 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20242 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20243 ac_tool_warned=yes ;;
20244 esac
20245 CC=$ac_ct_CC
20246 fi
20247 else
20248 CC="$ac_cv_prog_CC"
20249 fi
20250
20251 fi
20252
20253
20254 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20255 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
20256 as_fn_error $? "no acceptable C compiler found in \$PATH
20257 See 'config.log' for more details" "$LINENO" 5; }
20258
20259 # Provide some information about the compiler.
20260 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
20261 set X $ac_compile
20262 ac_compiler=$2
20263 for ac_option in --version -v -V -qversion -version; do
20264 { { ac_try="$ac_compiler $ac_option >&5"
20265 case "(($ac_try" in
20266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267 *) ac_try_echo=$ac_try;;
20268 esac
20269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20270 printf '%s\n' "$ac_try_echo"; } >&5
20271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
20272 ac_status=$?
20273 if test -s conftest.err; then
20274 sed '10a\
20275 ... rest of stderr output deleted ...
20276 10q' conftest.err >conftest.er1
20277 cat conftest.er1 >&5
20278 fi
20279 rm -f conftest.er1 conftest.err
20280 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20281 test $ac_status = 0; }
20282 done
20283
20284 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
20285 printf %s "checking whether the compiler supports GNU C... " >&6; }
20286 if test ${ac_cv_c_compiler_gnu+y}
20287 then :
20288 printf %s "(cached) " >&6
20289 else case e in #(
20290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h. */
20292
20293 int
20294 main (void)
20295 {
20296 #ifndef __GNUC__
20297 choke me
20298 #endif
20299
20300 ;
20301 return 0;
20302 }
20303 _ACEOF
20304 if ac_fn_c_try_compile "$LINENO"
20305 then :
20306 ac_compiler_gnu=yes
20307 else case e in #(
20308 e) ac_compiler_gnu=no ;;
20309 esac
20310 fi
20311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20313 ;;
20314 esac
20315 fi
20316 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
20317 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
20318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20319
20320 if test $ac_compiler_gnu = yes; then
20321 GCC=yes
20322 else
20323 GCC=
20324 fi
20325 ac_test_CFLAGS=${CFLAGS+y}
20326 ac_save_CFLAGS=$CFLAGS
20327 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
20328 printf %s "checking whether $CC accepts -g... " >&6; }
20329 if test ${ac_cv_prog_cc_g+y}
20330 then :
20331 printf %s "(cached) " >&6
20332 else case e in #(
20333 e) ac_save_c_werror_flag=$ac_c_werror_flag
20334 ac_c_werror_flag=yes
20335 ac_cv_prog_cc_g=no
20336 CFLAGS="-g"
20337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h. */
20339
20340 int
20341 main (void)
20342 {
20343
20344 ;
20345 return 0;
20346 }
20347 _ACEOF
20348 if ac_fn_c_try_compile "$LINENO"
20349 then :
20350 ac_cv_prog_cc_g=yes
20351 else case e in #(
20352 e) CFLAGS=""
20353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20354 /* end confdefs.h. */
20355
20356 int
20357 main (void)
20358 {
20359
20360 ;
20361 return 0;
20362 }
20363 _ACEOF
20364 if ac_fn_c_try_compile "$LINENO"
20365 then :
20366
20367 else case e in #(
20368 e) ac_c_werror_flag=$ac_save_c_werror_flag
20369 CFLAGS="-g"
20370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20371 /* end confdefs.h. */
20372
20373 int
20374 main (void)
20375 {
20376
20377 ;
20378 return 0;
20379 }
20380 _ACEOF
20381 if ac_fn_c_try_compile "$LINENO"
20382 then :
20383 ac_cv_prog_cc_g=yes
20384 fi
20385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20386 esac
20387 fi
20388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20389 esac
20390 fi
20391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20392 ac_c_werror_flag=$ac_save_c_werror_flag ;;
20393 esac
20394 fi
20395 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
20396 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
20397 if test $ac_test_CFLAGS; then
20398 CFLAGS=$ac_save_CFLAGS
20399 elif test $ac_cv_prog_cc_g = yes; then
20400 if test "$GCC" = yes; then
20401 CFLAGS="-g -O2"
20402 else
20403 CFLAGS="-g"
20404 fi
20405 else
20406 if test "$GCC" = yes; then
20407 CFLAGS="-O2"
20408 else
20409 CFLAGS=
20410 fi
20411 fi
20412 ac_prog_cc_stdc=no
20413 if test x$ac_prog_cc_stdc = xno
20414 then :
20415 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
20416 printf %s "checking for $CC option to enable C23 features... " >&6; }
20417 if test ${ac_cv_prog_cc_c23+y}
20418 then :
20419 printf %s "(cached) " >&6
20420 else case e in #(
20421 e) ac_cv_prog_cc_c23=no
20422 ac_save_CC=$CC
20423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20424 /* end confdefs.h. */
20425 $ac_c_conftest_c23_program
20426 _ACEOF
20427 for ac_arg in '' -std=gnu23
20428 do
20429 CC="$ac_save_CC $ac_arg"
20430 if ac_fn_c_try_compile "$LINENO"
20431 then :
20432 ac_cv_prog_cc_c23=$ac_arg
20433 fi
20434 rm -f core conftest.err conftest.$ac_objext conftest.beam
20435 test "x$ac_cv_prog_cc_c23" != "xno" && break
20436 done
20437 rm -f conftest.$ac_ext
20438 CC=$ac_save_CC ;;
20439 esac
20440 fi
20441
20442 if test "x$ac_cv_prog_cc_c23" = xno
20443 then :
20444 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
20445 printf '%s\n' "unsupported" >&6; }
20446 else case e in #(
20447 e) if test "x$ac_cv_prog_cc_c23" = x
20448 then :
20449 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
20450 printf '%s\n' "none needed" >&6; }
20451 else case e in #(
20452 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
20453 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
20454 CC="$CC $ac_cv_prog_cc_c23" ;;
20455 esac
20456 fi
20457 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
20458 ac_prog_cc_stdc=c23 ;;
20459 esac
20460 fi
20461 fi
20462 if test x$ac_prog_cc_stdc = xno
20463 then :
20464 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
20465 printf %s "checking for $CC option to enable C11 features... " >&6; }
20466 if test ${ac_cv_prog_cc_c11+y}
20467 then :
20468 printf %s "(cached) " >&6
20469 else case e in #(
20470 e) ac_cv_prog_cc_c11=no
20471 ac_save_CC=$CC
20472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20473 /* end confdefs.h. */
20474 $ac_c_conftest_c11_program
20475 _ACEOF
20476 for ac_arg in '' -std=gnu11 -std:c11
20477 do
20478 CC="$ac_save_CC $ac_arg"
20479 if ac_fn_c_try_compile "$LINENO"
20480 then :
20481 ac_cv_prog_cc_c11=$ac_arg
20482 fi
20483 rm -f core conftest.err conftest.$ac_objext conftest.beam
20484 test "x$ac_cv_prog_cc_c11" != "xno" && break
20485 done
20486 rm -f conftest.$ac_ext
20487 CC=$ac_save_CC ;;
20488 esac
20489 fi
20490
20491 if test "x$ac_cv_prog_cc_c11" = xno
20492 then :
20493 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
20494 printf '%s\n' "unsupported" >&6; }
20495 else case e in #(
20496 e) if test "x$ac_cv_prog_cc_c11" = x
20497 then :
20498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
20499 printf '%s\n' "none needed" >&6; }
20500 else case e in #(
20501 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
20502 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
20503 CC="$CC $ac_cv_prog_cc_c11" ;;
20504 esac
20505 fi
20506 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
20507 ac_prog_cc_stdc=c11 ;;
20508 esac
20509 fi
20510 fi
20511 if test x$ac_prog_cc_stdc = xno
20512 then :
20513 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
20514 printf %s "checking for $CC option to enable C99 features... " >&6; }
20515 if test ${ac_cv_prog_cc_c99+y}
20516 then :
20517 printf %s "(cached) " >&6
20518 else case e in #(
20519 e) ac_cv_prog_cc_c99=no
20520 ac_save_CC=$CC
20521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h. */
20523 $ac_c_conftest_c99_program
20524 _ACEOF
20525 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
20526 do
20527 CC="$ac_save_CC $ac_arg"
20528 if ac_fn_c_try_compile "$LINENO"
20529 then :
20530 ac_cv_prog_cc_c99=$ac_arg
20531 fi
20532 rm -f core conftest.err conftest.$ac_objext conftest.beam
20533 test "x$ac_cv_prog_cc_c99" != "xno" && break
20534 done
20535 rm -f conftest.$ac_ext
20536 CC=$ac_save_CC ;;
20537 esac
20538 fi
20539
20540 if test "x$ac_cv_prog_cc_c99" = xno
20541 then :
20542 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
20543 printf '%s\n' "unsupported" >&6; }
20544 else case e in #(
20545 e) if test "x$ac_cv_prog_cc_c99" = x
20546 then :
20547 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
20548 printf '%s\n' "none needed" >&6; }
20549 else case e in #(
20550 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
20551 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
20552 CC="$CC $ac_cv_prog_cc_c99" ;;
20553 esac
20554 fi
20555 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
20556 ac_prog_cc_stdc=c99 ;;
20557 esac
20558 fi
20559 fi
20560 if test x$ac_prog_cc_stdc = xno
20561 then :
20562 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
20563 printf %s "checking for $CC option to enable C89 features... " >&6; }
20564 if test ${ac_cv_prog_cc_c89+y}
20565 then :
20566 printf %s "(cached) " >&6
20567 else case e in #(
20568 e) ac_cv_prog_cc_c89=no
20569 ac_save_CC=$CC
20570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20571 /* end confdefs.h. */
20572 $ac_c_conftest_c89_program
20573 _ACEOF
20574 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20575 do
20576 CC="$ac_save_CC $ac_arg"
20577 if ac_fn_c_try_compile "$LINENO"
20578 then :
20579 ac_cv_prog_cc_c89=$ac_arg
20580 fi
20581 rm -f core conftest.err conftest.$ac_objext conftest.beam
20582 test "x$ac_cv_prog_cc_c89" != "xno" && break
20583 done
20584 rm -f conftest.$ac_ext
20585 CC=$ac_save_CC ;;
20586 esac
20587 fi
20588
20589 if test "x$ac_cv_prog_cc_c89" = xno
20590 then :
20591 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
20592 printf '%s\n' "unsupported" >&6; }
20593 else case e in #(
20594 e) if test "x$ac_cv_prog_cc_c89" = x
20595 then :
20596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
20597 printf '%s\n' "none needed" >&6; }
20598 else case e in #(
20599 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
20600 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
20601 CC="$CC $ac_cv_prog_cc_c89" ;;
20602 esac
20603 fi
20604 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
20605 ac_prog_cc_stdc=c89 ;;
20606 esac
20607 fi
20608 fi
20609
20610 ac_ext=c
20611 ac_cpp='$CPP $CPPFLAGS'
20612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20615
20616
20617 ac_ext=c
20618 ac_cpp='$CPP $CPPFLAGS'
20619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20622 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
20623 printf %s "checking whether $CC understands -c and -o together... " >&6; }
20624 if test ${am_cv_prog_cc_c_o+y}
20625 then :
20626 printf %s "(cached) " >&6
20627 else case e in #(
20628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20629 /* end confdefs.h. */
20630
20631 int
20632 main (void)
20633 {
20634
20635 ;
20636 return 0;
20637 }
20638 _ACEOF
20639 # Make sure it works both with $CC and with simple cc.
20640 # Following AC_PROG_CC_C_O, we do the test twice because some
20641 # compilers refuse to overwrite an existing .o file with -o,
20642 # though they will create one.
20643 am_cv_prog_cc_c_o=yes
20644 for am_i in 1 2; do
20645 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
20646 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } \
20650 && test -f conftest2.$ac_objext; then
20651 : OK
20652 else
20653 am_cv_prog_cc_c_o=no
20654 break
20655 fi
20656 done
20657 # aligned with autoconf, so not including core; see bug#72225.
20658 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
20659 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
20660 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
20661 unset am_i ;;
20662 esac
20663 fi
20664 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
20665 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
20666 if test "$am_cv_prog_cc_c_o" != yes; then
20667 # Losing compiler, so override with the script.
20668 # FIXME: It is wrong to rewrite CC.
20669 # But if we don't then we get into trouble of one sort or another.
20670 # A longer-term fix would be to have automake use am__CC in this case,
20671 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20672 CC="$am_aux_dir/compile $CC"
20673 fi
20674 ac_ext=c
20675 ac_cpp='$CPP $CPPFLAGS'
20676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20679
20680
20681 depcc="$CC" am_compiler_list=
20682
20683 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
20684 printf %s "checking dependency style of $depcc... " >&6; }
20685 if test ${am_cv_CC_dependencies_compiler_type+y}
20686 then :
20687 printf %s "(cached) " >&6
20688 else case e in #(
20689 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20690 # We make a subdir and do the tests there. Otherwise we can end up
20691 # making bogus files that we don't know about and never remove. For
20692 # instance it was reported that on HP-UX the gcc test will end up
20693 # making a dummy file named 'D' -- because '-MD' means "put the output
20694 # in D".
20695 rm -rf conftest.dir
20696 mkdir conftest.dir
20697 # Copy depcomp to subdir because otherwise we won't find it if we're
20698 # using a relative directory.
20699 cp "$am_depcomp" conftest.dir
20700 cd conftest.dir
20701 # We will build objects and dependencies in a subdirectory because
20702 # it helps to detect inapplicable dependency modes. For instance
20703 # both Tru64's cc and ICC support -MD to output dependencies as a
20704 # side effect of compilation, but ICC will put the dependencies in
20705 # the current directory while Tru64 will put them in the object
20706 # directory.
20707 mkdir sub
20708
20709 am_cv_CC_dependencies_compiler_type=none
20710 if test "$am_compiler_list" = ""; then
20711 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20712 fi
20713 am__universal=false
20714 case " $depcc " in #(
20715 *\ -arch\ *\ -arch\ *) am__universal=true ;;
20716 esac
20717
20718 for depmode in $am_compiler_list; do
20719 # Setup a source with many dependencies, because some compilers
20720 # like to wrap large dependency lists on column 80 (with \), and
20721 # we should not choose a depcomp mode which is confused by this.
20722 #
20723 # We need to recreate these files for each test, as the compiler may
20724 # overwrite some of them when testing with obscure command lines.
20725 # This happens at least with the AIX C compiler.
20726 : > sub/conftest.c
20727 for i in 1 2 3 4 5 6; do
20728 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20729 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
20730 # Solaris 10 /bin/sh.
20731 echo '/* dummy */' > sub/conftst$i.h
20732 done
20733 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20734
20735 # We check with '-c' and '-o' for the sake of the "dashmstdout"
20736 # mode. It turns out that the SunPro C++ compiler does not properly
20737 # handle '-M -o', and we need to detect this. Also, some Intel
20738 # versions had trouble with output in subdirs.
20739 am__obj=sub/conftest.${OBJEXT-o}
20740 am__minus_obj="-o $am__obj"
20741 case $depmode in
20742 gcc)
20743 # This depmode causes a compiler race in universal mode.
20744 test "$am__universal" = false || continue
20745 ;;
20746 nosideeffect)
20747 # After this tag, mechanisms are not by side-effect, so they'll
20748 # only be used when explicitly requested.
20749 if test "x$enable_dependency_tracking" = xyes; then
20750 continue
20751 else
20752 break
20753 fi
20754 ;;
20755 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
20756 # This compiler won't grok '-c -o', but also, the minuso test has
20757 # not run yet. These depmodes are late enough in the game, and
20758 # so weak that their functioning should not be impacted.
20759 am__obj=conftest.${OBJEXT-o}
20760 am__minus_obj=
20761 ;;
20762 none) break ;;
20763 esac
20764 if depmode=$depmode \
20765 source=sub/conftest.c object=$am__obj \
20766 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20767 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20768 >/dev/null 2>conftest.err &&
20769 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20770 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20771 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20772 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20773 # icc doesn't choke on unknown options, it will just issue warnings
20774 # or remarks (even with -Werror). So we grep stderr for any message
20775 # that says an option was ignored or not supported.
20776 # When given -MP, icc 7.0 and 7.1 complain thus:
20777 # icc: Command line warning: ignoring option '-M'; no argument required
20778 # The diagnosis changed in icc 8.0:
20779 # icc: Command line remark: option '-MP' not supported
20780 if (grep 'ignoring option' conftest.err ||
20781 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20782 am_cv_CC_dependencies_compiler_type=$depmode
20783 break
20784 fi
20785 fi
20786 done
20787
20788 cd ..
20789 rm -rf conftest.dir
20790 else
20791 am_cv_CC_dependencies_compiler_type=none
20792 fi
20793 ;;
20794 esac
20795 fi
20796 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
20797 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
20798 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20799
20800 if
20801 test "x$enable_dependency_tracking" != xno \
20802 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20803 am__fastdepCC_TRUE=
20804 am__fastdepCC_FALSE='#'
20805 else
20806 am__fastdepCC_TRUE='#'
20807 am__fastdepCC_FALSE=
20808 fi
20809
20810
20811
20812 # AC_PROG_CC_C99 obsolete, detected inside AC_PROG_CC, since autoconf 2.70
20813
20814 CFLAGS=$CFLAGS_save
20815
20816 ####################################################################
20817 # CLI arguments
20818 ####################################################################
20819
20820 # Define hwloc's configure arguments
20821
20822 # Embedded mode, or standalone?
20823 # Check whether --enable-embedded-mode was given.
20824 if test ${enable_embedded_mode+y}
20825 then :
20826 enableval=$enable_embedded_mode;
20827 fi
20828
20829
20830 # Change the symbol prefix?
20831
20832 # Check whether --with-hwloc-symbol-prefix was given.
20833 if test ${with_hwloc_symbol_prefix+y}
20834 then :
20835 withval=$with_hwloc_symbol_prefix; if test "x$withval" = xyes -o "x$withval" = x
20836 then :
20837 as_fn_error $? "--with-hwloc-symbol-prefix=<prefix> missing the prefix string" "$LINENO" 5
20838 fi
20839
20840 fi
20841
20842
20843 # For the windows build
20844
20845
20846 # Debug mode?
20847 # Check whether --enable-debug was given.
20848 if test ${enable_debug+y}
20849 then :
20850 enableval=$enable_debug;
20851 fi
20852
20853
20854 # Doxygen?
20855 # Check whether --enable-doxygen was given.
20856 if test ${enable_doxygen+y}
20857 then :
20858 enableval=$enable_doxygen;
20859 fi
20860
20861
20862 # Building the README
20863 # Check whether --enable-readme was given.
20864 if test ${enable_readme+y}
20865 then :
20866 enableval=$enable_readme;
20867 fi
20868
20869
20870 # Picky?
20871 # Check whether --enable-picky was given.
20872 if test ${enable_picky+y}
20873 then :
20874 enableval=$enable_picky;
20875 fi
20876
20877
20878 # Cairo?
20879 # Check whether --enable-cairo was given.
20880 if test ${enable_cairo+y}
20881 then :
20882 enableval=$enable_cairo;
20883 fi
20884
20885
20886 # CPUID
20887 # Check whether --enable-cpuid was given.
20888 if test ${enable_cpuid+y}
20889 then :
20890 enableval=$enable_cpuid;
20891 fi
20892
20893
20894 # XML using libxml2?
20895 # Check whether --enable-libxml2 was given.
20896 if test ${enable_libxml2+y}
20897 then :
20898 enableval=$enable_libxml2;
20899 fi
20900
20901
20902 # I/O?
20903 # Check whether --enable-io was given.
20904 if test ${enable_io+y}
20905 then :
20906 enableval=$enable_io;
20907 fi
20908
20909
20910 # PCI?
20911 # Check whether --enable-pci was given.
20912 if test ${enable_pci+y}
20913 then :
20914 enableval=$enable_pci;
20915 fi
20916
20917 # 32bits_pci_domain?
20918 # Check whether --enable-32bits-pci-domain was given.
20919 if test ${enable_32bits_pci_domain+y}
20920 then :
20921 enableval=$enable_32bits_pci_domain;
20922 fi
20923
20924
20925 # OpenCL?
20926 # Check whether --enable-opencl was given.
20927 if test ${enable_opencl+y}
20928 then :
20929 enableval=$enable_opencl;
20930 fi
20931
20932
20933 # CUDA?
20934 # Check whether --enable-cuda was given.
20935 if test ${enable_cuda+y}
20936 then :
20937 enableval=$enable_cuda;
20938 fi
20939
20940
20941 # NVML?
20942 # Check whether --enable-nvml was given.
20943 if test ${enable_nvml+y}
20944 then :
20945 enableval=$enable_nvml;
20946 fi
20947
20948
20949 # CUDA version (for using its pkg-config cuda-x.y.pc)
20950
20951 # Check whether --with-cuda-version was given.
20952 if test ${with_cuda_version+y}
20953 then :
20954 withval=$with_cuda_version; if test "x$withval" = xyes -o "x$withval" = x
20955 then :
20956 as_fn_error $? "--with-cuda-version=<version> missing the version value" "$LINENO" 5
20957 fi
20958
20959 fi
20960
20961
20962 # CUDA install path (and NVML and OpenCL)
20963
20964 # Check whether --with-cuda was given.
20965 if test ${with_cuda+y}
20966 then :
20967 withval=$with_cuda; if test "x$withval" = xyes -o "x$withval" = x
20968 then :
20969 as_fn_error $? "--with-cuda=<dir> missing the installation directory" "$LINENO" 5
20970 fi
20971
20972 fi
20973
20974
20975 # RSMI?
20976 # Check whether --enable-rsmi was given.
20977 if test ${enable_rsmi+y}
20978 then :
20979 enableval=$enable_rsmi;
20980 fi
20981
20982 # Check whether --enable-rsmi-rocm was given.
20983 if test ${enable_rsmi_rocm+y}
20984 then :
20985 enableval=$enable_rsmi_rocm;
20986 fi
20987
20988 # Check whether --enable-rsmi-amd was given.
20989 if test ${enable_rsmi_amd+y}
20990 then :
20991 enableval=$enable_rsmi_amd;
20992 fi
20993
20994 # ROCm version (for selecting /opt/rocm-x.y/)
20995
20996 # Check whether --with-rocm-version was given.
20997 if test ${with_rocm_version+y}
20998 then :
20999 withval=$with_rocm_version; if test "x$withval" = xyes -o "x$withval" = x
21000 then :
21001 as_fn_error $? "--with-rocm-version=<version> missing the version value" "$LINENO" 5
21002 fi
21003
21004 fi
21005
21006
21007 # ROCm install path
21008
21009 # Check whether --with-rocm was given.
21010 if test ${with_rocm+y}
21011 then :
21012 withval=$with_rocm; if test "x$withval" = xyes -o "x$withval" = x
21013 then :
21014 as_fn_error $? "--with-rocm=<dir> missing the installation directory" "$LINENO" 5
21015 fi
21016
21017 fi
21018
21019 # AMDGPU install path
21020
21021 # Check whether --with-amdgpu was given.
21022 if test ${with_amdgpu+y}
21023 then :
21024 withval=$with_amdgpu; if test "x$withval" = xyes -o "x$withval" = x
21025 then :
21026 as_fn_error $? "--with-amdgpu=<dir> missing the installation directory" "$LINENO" 5
21027 fi
21028
21029 fi
21030
21031
21032 # OpenCL
21033 # Check whether --enable-opencl was given.
21034 if test ${enable_opencl+y}
21035 then :
21036 enableval=$enable_opencl;
21037 fi
21038
21039
21040 # Check whether --with-opencl was given.
21041 if test ${with_opencl+y}
21042 then :
21043 withval=$with_opencl; if test "x$withval" = xyes -o "x$withval" = x
21044 then :
21045 as_fn_error $? "--with-opencl=<dir> missing the installation directory" "$LINENO" 5
21046 fi
21047
21048 fi
21049
21050
21051 # LevelZero
21052 # Check whether --enable-levelzero was given.
21053 if test ${enable_levelzero+y}
21054 then :
21055 enableval=$enable_levelzero;
21056 fi
21057
21058
21059 # GL/Display
21060 # Check whether --enable-gl was given.
21061 if test ${enable_gl+y}
21062 then :
21063 enableval=$enable_gl;
21064 fi
21065
21066
21067 # LibUdev
21068 # Check whether --enable-libudev was given.
21069 if test ${enable_libudev+y}
21070 then :
21071 enableval=$enable_libudev;
21072 fi
21073
21074
21075 # Plugins
21076 # Check whether --enable-plugins was given.
21077 if test ${enable_plugins+y}
21078 then :
21079 enableval=$enable_plugins;
21080 fi
21081
21082
21083
21084 # Check whether --with-hwloc-plugins-path was given.
21085 if test ${with_hwloc_plugins_path+y}
21086 then :
21087 withval=$with_hwloc_plugins_path; if test "x$withval" = xyes -o "x$withval" = x
21088 then :
21089 as_fn_error $? "--with-hwloc-plugins-path=<dir:...> missing the plugin directories" "$LINENO" 5
21090 fi
21091 HWLOC_PLUGINS_PATH="$with_hwloc_plugins_path"
21092 else case e in #(
21093 e) HWLOC_PLUGINS_PATH="\$(libdir)/hwloc" ;;
21094 esac
21095 fi
21096
21097
21098 # Look for dlopen
21099 # Not --disable-dlopen because $enable_dlopen is already used/set
21100 # Check whether --enable-plugin-dlopen was given.
21101 if test ${enable_plugin_dlopen+y}
21102 then :
21103 enableval=$enable_plugin_dlopen;
21104 fi
21105
21106 # Look for ltdl
21107 # Not --disable-ltdl for consistency wrt dlopen above
21108 # Check whether --enable-plugin-ltdl was given.
21109 if test ${enable_plugin_ltdl+y}
21110 then :
21111 enableval=$enable_plugin_ltdl;
21112 fi
21113
21114
21115
21116
21117 # If debug mode, add -g
21118 if test "$hwloc_debug" = "1"
21119 then :
21120 CFLAGS="$CFLAGS -g"
21121 fi
21122
21123 # If the user didn't specifically ask for embedding mode, default to
21124 # standalone mode
21125 if test "$enable_embedded_mode" != "yes"
21126 then :
21127 if test ! -d "$srcdir/doc"
21128 then :
21129 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: The hwloc source tree looks incomplete for a standalone" >&5
21130 printf '%s\n' "$as_me: WARNING: The hwloc source tree looks incomplete for a standalone" >&2;}
21131 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: build. Perhaps this hwloc tree is intended for an embedded" >&5
21132 printf '%s\n' "$as_me: WARNING: build. Perhaps this hwloc tree is intended for an embedded" >&2;}
21133 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: build? Try using the --enable-embedded-mode switch." >&5
21134 printf '%s\n' "$as_me: WARNING: build? Try using the --enable-embedded-mode switch." >&2;}
21135 as_fn_error $? "Cannot build standalone hwloc" "$LINENO" 5
21136 else case e in #(
21137 e)
21138 hwloc_mode=standalone
21139 ;;
21140 esac
21141 fi
21142 fi
21143
21144 ####################################################################
21145 # Setup for the hwloc API
21146 ####################################################################
21147
21148
21149
21150
21151 # Setup the hwloc core
21152 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5
21153 printf %s "checking for $CC options to detect undeclared functions... " >&6; }
21154 if test ${ac_cv_c_undeclared_builtin_options+y}
21155 then :
21156 printf %s "(cached) " >&6
21157 else case e in #(
21158 e) ac_save_CFLAGS=$CFLAGS
21159 ac_cv_c_undeclared_builtin_options='cannot detect'
21160 for ac_arg in '' -fno-builtin; do
21161 CFLAGS="$ac_save_CFLAGS $ac_arg"
21162 # This test program should *not* compile successfully.
21163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21164 /* end confdefs.h. */
21165
21166 int
21167 main (void)
21168 {
21169 (void) strchr;
21170 ;
21171 return 0;
21172 }
21173 _ACEOF
21174 if ac_fn_c_try_compile "$LINENO"
21175 then :
21176
21177 else case e in #(
21178 e) # This test program should compile successfully.
21179 # No library function is consistently available on
21180 # freestanding implementations, so test against a dummy
21181 # declaration. Include always-available headers on the
21182 # off chance that they somehow elicit warnings.
21183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21184 /* end confdefs.h. */
21185 #include <float.h>
21186 #include <limits.h>
21187 #include <stdarg.h>
21188 #include <stddef.h>
21189 extern void ac_decl (int, char *);
21190
21191 int
21192 main (void)
21193 {
21194 (void) ac_decl (0, (char *) 0);
21195 (void) ac_decl;
21196
21197 ;
21198 return 0;
21199 }
21200 _ACEOF
21201 if ac_fn_c_try_compile "$LINENO"
21202 then :
21203 if test x"$ac_arg" = x
21204 then :
21205 ac_cv_c_undeclared_builtin_options='none needed'
21206 else case e in #(
21207 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
21208 esac
21209 fi
21210 break
21211 fi
21212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21213 esac
21214 fi
21215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21216 done
21217 CFLAGS=$ac_save_CFLAGS
21218 ;;
21219 esac
21220 fi
21221 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
21222 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; }
21223 case $ac_cv_c_undeclared_builtin_options in #(
21224 'cannot detect') :
21225 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21226 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
21227 as_fn_error $? "cannot make $CC report undeclared builtins
21228 See 'config.log' for more details" "$LINENO" 5; } ;; #(
21229 'none needed') :
21230 ac_c_undeclared_builtin_options='' ;; #(
21231 *) :
21232 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
21233 esac
21234
21235 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5
21236 printf %s "checking for $CC options to ignore future-version functions... " >&6; }
21237 if test ${ac_cv_c_future_darwin_options+y}
21238 then :
21239 printf %s "(cached) " >&6
21240 else case e in #(
21241 e) ac_compile_saved="$ac_compile"
21242 ac_compile="$ac_compile -Werror=unguarded-availability-new"
21243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21244 /* end confdefs.h. */
21245 #if ! (defined __APPLE__ && defined __MACH__)
21246 #error "-Werror=unguarded-availability-new not needed here"
21247 #endif
21248
21249 int
21250 main (void)
21251 {
21252
21253 ;
21254 return 0;
21255 }
21256 _ACEOF
21257 if ac_fn_c_try_compile "$LINENO"
21258 then :
21259 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new'
21260 else case e in #(
21261 e) ac_cv_c_future_darwin_options='none needed' ;;
21262 esac
21263 fi
21264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21265 ac_compile="$ac_compile_saved"
21266 ;;
21267 esac
21268 fi
21269 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5
21270 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; }
21271 case $ac_cv_c_future_darwin_options in #(
21272 'none needed') :
21273 ac_c_future_darwin_options='' ;; #(
21274 *) :
21275 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;;
21276 esac
21277
21278
21279
21280
21281 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21282 if test -n "$ac_tool_prefix"; then
21283 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21284 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21285 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21286 printf %s "checking for $ac_word... " >&6; }
21287 if test ${ac_cv_path_PKG_CONFIG+y}
21288 then :
21289 printf %s "(cached) " >&6
21290 else case e in #(
21291 e) case $PKG_CONFIG in
21292 [\\/]* | ?:[\\/]*)
21293 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21294 ;;
21295 *)
21296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21297 for as_dir in $PATH
21298 do
21299 IFS=$as_save_IFS
21300 case $as_dir in #(((
21301 '') as_dir=./ ;;
21302 */) ;;
21303 *) as_dir=$as_dir/ ;;
21304 esac
21305 for ac_exec_ext in '' $ac_executable_extensions; do
21306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21307 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21308 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21309 break 2
21310 fi
21311 done
21312 done
21313 IFS=$as_save_IFS
21314
21315 ;;
21316 esac ;;
21317 esac
21318 fi
21319 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21320 if test -n "$PKG_CONFIG"; then
21321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21322 printf '%s\n' "$PKG_CONFIG" >&6; }
21323 else
21324 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
21325 printf '%s\n' "no" >&6; }
21326 fi
21327
21328
21329 fi
21330 if test -z "$ac_cv_path_PKG_CONFIG"; then
21331 ac_pt_PKG_CONFIG=$PKG_CONFIG
21332 # Extract the first word of "pkg-config", so it can be a program name with args.
21333 set dummy pkg-config; ac_word=$2
21334 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21335 printf %s "checking for $ac_word... " >&6; }
21336 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21337 then :
21338 printf %s "(cached) " >&6
21339 else case e in #(
21340 e) case $ac_pt_PKG_CONFIG in
21341 [\\/]* | ?:[\\/]*)
21342 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21343 ;;
21344 *)
21345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21346 for as_dir in $PATH
21347 do
21348 IFS=$as_save_IFS
21349 case $as_dir in #(((
21350 '') as_dir=./ ;;
21351 */) ;;
21352 *) as_dir=$as_dir/ ;;
21353 esac
21354 for ac_exec_ext in '' $ac_executable_extensions; do
21355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21356 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21357 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21358 break 2
21359 fi
21360 done
21361 done
21362 IFS=$as_save_IFS
21363
21364 ;;
21365 esac ;;
21366 esac
21367 fi
21368 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21369 if test -n "$ac_pt_PKG_CONFIG"; then
21370 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21371 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
21372 else
21373 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
21374 printf '%s\n' "no" >&6; }
21375 fi
21376
21377 if test "x$ac_pt_PKG_CONFIG" = x; then
21378 PKG_CONFIG=""
21379 else
21380 case $cross_compiling:$ac_tool_warned in
21381 yes:)
21382 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21383 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21384 ac_tool_warned=yes ;;
21385 esac
21386 PKG_CONFIG=$ac_pt_PKG_CONFIG
21387 fi
21388 else
21389 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21390 fi
21391
21392 fi
21393 if test -n "$PKG_CONFIG"; then
21394 HWLOC_pkg_min_version=0.9.0
21395 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $HWLOC_pkg_min_version" >&5
21396 printf %s "checking pkg-config is at least version $HWLOC_pkg_min_version... " >&6; }
21397 if $PKG_CONFIG --atleast-pkgconfig-version $HWLOC_pkg_min_version; then
21398 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21399 printf '%s\n' "yes" >&6; }
21400 else
21401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
21402 printf '%s\n' "no" >&6; }
21403 PKG_CONFIG=""
21404 fi
21405
21406 fi
21407 ac_ext=c
21408 ac_cpp='$CPP $CPPFLAGS'
21409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21412 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
21413 printf %s "checking how to run the C preprocessor... " >&6; }
21414 # On Suns, sometimes $CPP names a directory.
21415 if test -n "$CPP" && test -d "$CPP"; then
21416 CPP=
21417 fi
21418 if test -z "$CPP"; then
21419 if test ${ac_cv_prog_CPP+y}
21420 then :
21421 printf %s "(cached) " >&6
21422 else case e in #(
21423 e) # Double quotes because $CC needs to be expanded
21424 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
21425 do
21426 ac_preproc_ok=false
21427 for ac_c_preproc_warn_flag in '' yes
21428 do
21429 # Use a header file that comes with gcc, so configuring glibc
21430 # with a fresh cross-compiler works.
21431 # On the NeXT, cc -E runs the code through the compiler's parser,
21432 # not just through cpp. "Syntax error" is here to catch this case.
21433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21434 /* end confdefs.h. */
21435 #include <limits.h>
21436 Syntax error
21437 _ACEOF
21438 if ac_fn_c_try_cpp "$LINENO"
21439 then :
21440
21441 else case e in #(
21442 e) # Broken: fails on valid input.
21443 continue ;;
21444 esac
21445 fi
21446 rm -f conftest.err conftest.i conftest.$ac_ext
21447
21448 # OK, works on sane cases. Now check whether nonexistent headers
21449 # can be detected and how.
21450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21451 /* end confdefs.h. */
21452 #include <ac_nonexistent.h>
21453 _ACEOF
21454 if ac_fn_c_try_cpp "$LINENO"
21455 then :
21456 # Broken: success on invalid input.
21457 continue
21458 else case e in #(
21459 e) # Passes both tests.
21460 ac_preproc_ok=:
21461 break ;;
21462 esac
21463 fi
21464 rm -f conftest.err conftest.i conftest.$ac_ext
21465
21466 done
21467 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21468 rm -f conftest.i conftest.err conftest.$ac_ext
21469 if $ac_preproc_ok
21470 then :
21471 break
21472 fi
21473
21474 done
21475 ac_cv_prog_CPP=$CPP
21476 ;;
21477 esac
21478 fi
21479 CPP=$ac_cv_prog_CPP
21480 else
21481 ac_cv_prog_CPP=$CPP
21482 fi
21483 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
21484 printf '%s\n' "$CPP" >&6; }
21485 ac_preproc_ok=false
21486 for ac_c_preproc_warn_flag in '' yes
21487 do
21488 # Use a header file that comes with gcc, so configuring glibc
21489 # with a fresh cross-compiler works.
21490 # On the NeXT, cc -E runs the code through the compiler's parser,
21491 # not just through cpp. "Syntax error" is here to catch this case.
21492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21493 /* end confdefs.h. */
21494 #include <limits.h>
21495 Syntax error
21496 _ACEOF
21497 if ac_fn_c_try_cpp "$LINENO"
21498 then :
21499
21500 else case e in #(
21501 e) # Broken: fails on valid input.
21502 continue ;;
21503 esac
21504 fi
21505 rm -f conftest.err conftest.i conftest.$ac_ext
21506
21507 # OK, works on sane cases. Now check whether nonexistent headers
21508 # can be detected and how.
21509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21510 /* end confdefs.h. */
21511 #include <ac_nonexistent.h>
21512 _ACEOF
21513 if ac_fn_c_try_cpp "$LINENO"
21514 then :
21515 # Broken: success on invalid input.
21516 continue
21517 else case e in #(
21518 e) # Passes both tests.
21519 ac_preproc_ok=:
21520 break ;;
21521 esac
21522 fi
21523 rm -f conftest.err conftest.i conftest.$ac_ext
21524
21525 done
21526 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21527 rm -f conftest.i conftest.err conftest.$ac_ext
21528 if $ac_preproc_ok
21529 then :
21530
21531 else case e in #(
21532 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21533 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
21534 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
21535 See 'config.log' for more details" "$LINENO" 5; } ;;
21536 esac
21537 fi
21538
21539 ac_ext=c
21540 ac_cpp='$CPP $CPPFLAGS'
21541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21544
21545
21546 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for X" >&5
21547 printf %s "checking for X... " >&6; }
21548
21549
21550 # Check whether --with-x was given.
21551 if test ${with_x+y}
21552 then :
21553 withval=$with_x;
21554 fi
21555
21556 # $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know.
21557 if test "x$with_x" = xno; then
21558 # The user explicitly disabled X.
21559 have_x=disabled
21560 else
21561 case $x_includes,$x_libraries in #(
21562 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
21563 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
21564 then :
21565 printf %s "(cached) " >&6
21566 else case e in #(
21567 e) # One or both of the vars are not set, and there is no cached value.
21568 ac_x_includes=no
21569 ac_x_libraries=no
21570 # Do we need to do anything special at all?
21571 ac_save_LIBS=$LIBS
21572 LIBS="-lX11 $LIBS"
21573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21574 /* end confdefs.h. */
21575 #include <X11/Xlib.h>
21576 int
21577 main (void)
21578 {
21579 XrmInitialize ()
21580 ;
21581 return 0;
21582 }
21583 _ACEOF
21584 if ac_fn_c_try_link "$LINENO"
21585 then :
21586 # We can compile and link X programs with no special options.
21587 ac_x_includes=
21588 ac_x_libraries=
21589 fi
21590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21591 conftest$ac_exeext conftest.$ac_ext
21592 LIBS="$ac_save_LIBS"
21593 # If that didn't work, only try xmkmf and file system searches
21594 # for native compilation.
21595 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
21596 then :
21597 rm -f -r conftest.dir
21598 if mkdir conftest.dir; then
21599 cd conftest.dir
21600 cat >Imakefile <<'_ACEOF'
21601 incroot:
21602 @printf '%s\n' incroot='${INCROOT}'
21603 usrlibdir:
21604 @printf '%s\n' usrlibdir='${USRLIBDIR}'
21605 libdir:
21606 @printf '%s\n' libdir='${LIBDIR}'
21607 _ACEOF
21608 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
21609 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
21610 for ac_var in incroot usrlibdir libdir; do
21611 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
21612 done
21613 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21614 for ac_extension in a so sl dylib la dll; do
21615 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
21616 test -f "$ac_im_libdir/libX11.$ac_extension"; then
21617 ac_im_usrlibdir=$ac_im_libdir; break
21618 fi
21619 done
21620 # Screen out bogus values from the imake configuration. They are
21621 # bogus both because they are the default anyway, and because
21622 # using them would break gcc on systems where it needs fixed includes.
21623 case $ac_im_incroot in
21624 /usr/include) ac_x_includes= ;;
21625 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21626 esac
21627 case $ac_im_usrlibdir in
21628 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
21629 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21630 esac
21631 fi
21632 cd ..
21633 rm -f -r conftest.dir
21634 fi
21635
21636 # Standard set of common directories for X headers.
21637 # Check X11 before X11Rn because it is often a symlink to the current release.
21638 ac_x_header_dirs='
21639 /usr/X11/include
21640 /usr/X11R7/include
21641 /usr/X11R6/include
21642 /usr/X11R5/include
21643 /usr/X11R4/include
21644
21645 /usr/include/X11
21646 /usr/include/X11R7
21647 /usr/include/X11R6
21648 /usr/include/X11R5
21649 /usr/include/X11R4
21650
21651 /usr/local/X11/include
21652 /usr/local/X11R7/include
21653 /usr/local/X11R6/include
21654 /usr/local/X11R5/include
21655 /usr/local/X11R4/include
21656
21657 /usr/local/include/X11
21658 /usr/local/include/X11R7
21659 /usr/local/include/X11R6
21660 /usr/local/include/X11R5
21661 /usr/local/include/X11R4
21662
21663 /opt/X11/include
21664
21665 /usr/X386/include
21666 /usr/x386/include
21667 /usr/XFree86/include/X11
21668
21669 /usr/include
21670 /usr/local/include
21671 /usr/unsupported/include
21672 /usr/athena/include
21673 /usr/local/x11r5/include
21674 /usr/lpp/Xamples/include
21675
21676 /usr/openwin/include
21677 /usr/openwin/share/include'
21678
21679 if test "$ac_x_includes" = no; then
21680 # Guess where to find include files, by looking for Xlib.h.
21681 # First, try using that file with no special directory specified.
21682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21683 /* end confdefs.h. */
21684 #include <X11/Xlib.h>
21685 _ACEOF
21686 if ac_fn_c_try_cpp "$LINENO"
21687 then :
21688 # We can compile using X headers with no special include directory.
21689 ac_x_includes=
21690 else case e in #(
21691 e) for ac_dir in $ac_x_header_dirs; do
21692 if test -r "$ac_dir/X11/Xlib.h"; then
21693 ac_x_includes=$ac_dir
21694 break
21695 fi
21696 done ;;
21697 esac
21698 fi
21699 rm -f conftest.err conftest.i conftest.$ac_ext
21700 fi # $ac_x_includes = no
21701
21702 if test "$ac_x_libraries" = no; then
21703 # Check for the libraries.
21704 # See if we find them without any special options.
21705 # Don't add to $LIBS permanently.
21706 ac_save_LIBS=$LIBS
21707 LIBS="-lX11 $LIBS"
21708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21709 /* end confdefs.h. */
21710 #include <X11/Xlib.h>
21711 int
21712 main (void)
21713 {
21714 XrmInitialize ()
21715 ;
21716 return 0;
21717 }
21718 _ACEOF
21719 if ac_fn_c_try_link "$LINENO"
21720 then :
21721 LIBS=$ac_save_LIBS
21722 # We can link X programs with no special library path.
21723 ac_x_libraries=
21724 else case e in #(
21725 e) LIBS=$ac_save_LIBS
21726 for ac_dir in `printf '%s\n' "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21727 do
21728 # Don't even attempt the hair of trying to link an X program!
21729 for ac_extension in a so sl dylib la dll; do
21730 if test -r "$ac_dir/libX11.$ac_extension"; then
21731 ac_x_libraries=$ac_dir
21732 break 2
21733 fi
21734 done
21735 done ;;
21736 esac
21737 fi
21738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21739 conftest$ac_exeext conftest.$ac_ext
21740 fi # $ac_x_libraries = no
21741
21742 fi
21743 # Record the results.
21744 case $ac_x_includes,$ac_x_libraries in #(
21745 no,* | *,no | *\'*) :
21746 # Didn't find X, or a directory has "'" in its name.
21747 ac_cv_have_x="have_x=no" ;; #(
21748 *) :
21749 # Record where we found X for the cache.
21750 ac_cv_have_x="have_x=yes\
21751 ac_x_includes='$ac_x_includes'\
21752 ac_x_libraries='$ac_x_libraries'" ;;
21753 esac ;;
21754 esac
21755 fi
21756 ;; #(
21757 *) have_x=yes;;
21758 esac
21759 eval "$ac_cv_have_x"
21760 fi # $with_x != no
21761
21762 if test "$have_x" != yes; then
21763 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
21764 printf '%s\n' "$have_x" >&6; }
21765 no_x=yes
21766 else
21767 # If each of the values was on the command line, it overrides each guess.
21768 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21769 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21770 # Update the cache value to reflect the command line values.
21771 ac_cv_have_x="have_x=yes\
21772 ac_x_includes='$x_includes'\
21773 ac_x_libraries='$x_libraries'"
21774 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
21775 printf '%s\n' "libraries $x_libraries, headers $x_includes" >&6; }
21776 fi
21777
21778
21779
21780
21781
21782
21783 if test "x1" != "x"
21784 then :
21785 cat <<EOF
21786
21787 ###
21788 ### Configuring hwloc core
21789 ###
21790 EOF
21791 fi
21792
21793 # If no prefix was defined, set a good value
21794
21795
21796 # Unless previously set to "standalone" mode, default to embedded
21797 # mode
21798 if test "$hwloc_mode" = ""
21799 then :
21800 hwloc_mode=embedded
21801 fi
21802 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking hwloc building mode" >&5
21803 printf %s "checking hwloc building mode... " >&6; }
21804 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hwloc_mode" >&5
21805 printf '%s\n' "$hwloc_mode" >&6; }
21806
21807 # Get hwloc's absolute top builddir (which may not be the same as
21808 # the real $top_builddir, because we may be building in embedded
21809 # mode).
21810 HWLOC_startdir=`pwd`
21811 if test x"" != "x" -a ! -d ""; then
21812 mkdir -p ""
21813 fi
21814 if test x"" != "x"; then
21815 cd ""
21816 fi
21817 HWLOC_top_builddir=`pwd`
21818
21819
21820 # Get hwloc's absolute top srcdir (which may not be the same as
21821 # the real $top_srcdir, because we may be building in embedded
21822 # mode). First, go back to the startdir incase the $srcdir is
21823 # relative.
21824
21825 cd "$HWLOC_startdir"
21826 cd "$srcdir"/
21827 HWLOC_top_srcdir="`pwd`"
21828
21829
21830 # Go back to where we started
21831 cd "$HWLOC_startdir"
21832
21833 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: hwloc builddir: $HWLOC_top_builddir" >&5
21834 printf '%s\n' "$as_me: hwloc builddir: $HWLOC_top_builddir" >&6;}
21835 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: hwloc srcdir: $HWLOC_top_srcdir" >&5
21836 printf '%s\n' "$as_me: hwloc srcdir: $HWLOC_top_srcdir" >&6;}
21837 if test "$HWLOC_top_builddir" != "$HWLOC_top_srcdir"; then
21838 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5
21839 printf '%s\n' "$as_me: Detected VPATH build" >&6;}
21840 fi
21841
21842 # Get the version of hwloc that we are installing
21843 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for hwloc version" >&5
21844 printf %s "checking for hwloc version... " >&6; }
21845 HWLOC_VERSION=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION"`
21846 if test "$?" != "0"; then
21847 as_fn_error $? "Cannot continue" "$LINENO" 5
21848 fi
21849 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $HWLOC_VERSION" >&5
21850 printf '%s\n' "$HWLOC_VERSION" >&6; }
21851
21852
21853 printf '%s\n' "#define HWLOC_VERSION \"$HWLOC_VERSION\"" >>confdefs.h
21854
21855
21856 HWLOC_VERSION_MAJOR=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --major`
21857
21858 printf '%s\n' "#define HWLOC_VERSION_MAJOR $HWLOC_VERSION_MAJOR" >>confdefs.h
21859
21860 HWLOC_VERSION_MINOR=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --minor`
21861
21862 printf '%s\n' "#define HWLOC_VERSION_MINOR $HWLOC_VERSION_MINOR" >>confdefs.h
21863
21864 HWLOC_VERSION_RELEASE=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --release`
21865
21866 printf '%s\n' "#define HWLOC_VERSION_RELEASE $HWLOC_VERSION_RELEASE" >>confdefs.h
21867
21868 HWLOC_VERSION_GREEK=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --greek`
21869
21870 printf '%s\n' "#define HWLOC_VERSION_GREEK \"$HWLOC_VERSION_GREEK\"" >>confdefs.h
21871
21872
21873 HWLOC_RELEASE_DATE=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --release-date`
21874
21875
21876 # Debug mode?
21877 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if want hwloc maintainer support" >&5
21878 printf %s "checking if want hwloc maintainer support... " >&6; }
21879 hwloc_debug=
21880
21881 # Unconditionally disable debug mode in embedded mode; if someone
21882 # asks, we can add a configure-time option for it. Disable it
21883 # now, however, because --enable-debug is not even added as an
21884 # option when configuring in embedded mode, and we wouldn't want
21885 # to hijack the enclosing application's --enable-debug configure
21886 # switch.
21887 if test "$hwloc_mode" = "embedded"
21888 then :
21889 hwloc_debug=0
21890 hwloc_debug_msg="disabled (embedded mode)"
21891 fi
21892 if test "$hwloc_debug" = "" -a "$enable_debug" = "yes"
21893 then :
21894 hwloc_debug=1
21895 hwloc_debug_msg="enabled"
21896 fi
21897 if test "$hwloc_debug" = ""
21898 then :
21899 hwloc_debug=0
21900 hwloc_debug_msg="disabled"
21901 fi
21902 # Grr; we use #ifndef for HWLOC_DEBUG! :-(
21903
21904 if test "$hwloc_debug" = "1"
21905 then :
21906 printf '%s\n' "#define HWLOC_DEBUG 1" >>confdefs.h
21907
21908 fi
21909 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hwloc_debug_msg" >&5
21910 printf '%s\n' "$hwloc_debug_msg" >&6; }
21911
21912 # We need to set a path for header, etc files depending on whether
21913 # we're standalone or embedded. this is taken care of by HWLOC_EMBEDDED.
21914
21915 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for hwloc directory prefix" >&5
21916 printf %s "checking for hwloc directory prefix... " >&6; }
21917 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
21918 printf '%s\n' "(none)" >&6; }
21919
21920 # Note that private/config.h *MUST* be listed first so that it
21921 # becomes the "main" config header file. Any AC-CONFIG-HEADERS
21922 # after that (hwloc/config.h) will only have selective #defines
21923 # replaced, not the entire file.
21924 ac_config_headers="$ac_config_headers include/private/autogen/config.h"
21925
21926 ac_config_headers="$ac_config_headers include/hwloc/autogen/config.h"
21927
21928
21929 # What prefix are we using?
21930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for hwloc symbol prefix" >&5
21931 printf %s "checking for hwloc symbol prefix... " >&6; }
21932 if test "$hwloc_symbol_prefix_value" = ""
21933 then :
21934 if test "$with_hwloc_symbol_prefix" = ""
21935 then :
21936 hwloc_symbol_prefix_value=hwloc_
21937 else case e in #(
21938 e) hwloc_symbol_prefix_value=$with_hwloc_symbol_prefix ;;
21939 esac
21940 fi
21941 fi
21942
21943 printf '%s\n' "#define HWLOC_SYM_PREFIX $hwloc_symbol_prefix_value" >>confdefs.h
21944
21945 # Ensure to [] escape the whole next line so that we can get the
21946 # proper tr tokens
21947 hwloc_symbol_prefix_value_caps="`echo $hwloc_symbol_prefix_value | tr '[:lower:]' '[:upper:]'`"
21948
21949 printf '%s\n' "#define HWLOC_SYM_PREFIX_CAPS $hwloc_symbol_prefix_value_caps" >>confdefs.h
21950
21951 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hwloc_symbol_prefix_value" >&5
21952 printf '%s\n' "$hwloc_symbol_prefix_value" >&6; }
21953
21954 # Give an easy #define to know if we need to transform all the
21955 # hwloc names
21956
21957 if test "$hwloc_symbol_prefix_value" = "hwloc_"
21958 then :
21959 printf '%s\n' "#define HWLOC_SYM_TRANSFORM 0" >>confdefs.h
21960
21961 else case e in #(
21962 e) printf '%s\n' "#define HWLOC_SYM_TRANSFORM 1" >>confdefs.h
21963 ;;
21964 esac
21965 fi
21966
21967 # hwloc 2.0+ requires a C99 compliant compiler
21968 # AC_PROG_CC_C99 obsolete, detected inside AC_PROG_CC, since autoconf 2.70
21969
21970 # The C99 result of AC_PROG_CC>=2.70 or AC_PROG_CC_C99 is stored in ac_cv_prog_cc_c99
21971 if test "x$ac_cv_prog_cc_c99" = xno ; then
21972 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: hwloc requires a C99 compiler" >&5
21973 printf '%s\n' "$as_me: WARNING: hwloc requires a C99 compiler" >&2;}
21974 as_fn_error $? "Aborting." "$LINENO" 5
21975 fi
21976
21977 # GCC specifics.
21978
21979
21980
21981 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for the C compiler vendor" >&5
21982 printf %s "checking for the C compiler vendor... " >&6; }
21983 if test ${hwloc_cv_c_compiler_vendor+y}
21984 then :
21985 printf %s "(cached) " >&6
21986 else case e in #(
21987 e) ac_ext=c
21988 ac_cpp='$CPP $CPPFLAGS'
21989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21992
21993
21994 hwloc_check_compiler_vendor_result="unknown"
21995
21996 # GNU is probably the most common, so check that one as soon as
21997 # possible. Intel and Android pretend to be GNU, so need to
21998 # check Intel and Android before checking for GNU.
21999
22000 # Android
22001 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22002 then :
22003
22004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22005 /* end confdefs.h. */
22006
22007 #ifndef __ANDROID__
22008 #error "symbol __ANDROID__ not defined"
22009 choke me
22010 #endif
22011 _ACEOF
22012 if ac_fn_c_try_compile "$LINENO"
22013 then :
22014 hwloc_check_compiler_vendor_result="android"
22015 fi
22016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22017 fi
22018
22019 # Intel
22020 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22021 then :
22022
22023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22024 /* end confdefs.h. */
22025
22026 #if !( defined(__INTEL_COMPILER) || defined(__ICC) )
22027 #error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met"
22028 choke me
22029 #endif
22030 _ACEOF
22031 if ac_fn_c_try_compile "$LINENO"
22032 then :
22033 hwloc_check_compiler_vendor_result="intel"
22034 fi
22035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22036 fi
22037
22038 # Portland Group
22039 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22040 then :
22041
22042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22043 /* end confdefs.h. */
22044
22045 #ifndef __PGI
22046 #error "symbol __PGI not defined"
22047 choke me
22048 #endif
22049 _ACEOF
22050 if ac_fn_c_try_compile "$LINENO"
22051 then :
22052 hwloc_check_compiler_vendor_result="portland group"
22053 fi
22054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22055 fi
22056
22057 # Borland Turbo C
22058 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22059 then :
22060
22061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22062 /* end confdefs.h. */
22063
22064 #ifndef __TURBOC__
22065 #error "symbol __TURBOC__ not defined"
22066 choke me
22067 #endif
22068 _ACEOF
22069 if ac_fn_c_try_compile "$LINENO"
22070 then :
22071 hwloc_check_compiler_vendor_result="borland"
22072 fi
22073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22074 fi
22075
22076 # Borland C++
22077 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22078 then :
22079
22080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22081 /* end confdefs.h. */
22082
22083 #ifndef __BORLANDC__
22084 #error "symbol __BORLANDC__ not defined"
22085 choke me
22086 #endif
22087 _ACEOF
22088 if ac_fn_c_try_compile "$LINENO"
22089 then :
22090 hwloc_check_compiler_vendor_result="borland"
22091 fi
22092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22093 fi
22094
22095 # Comeau C++
22096 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22097 then :
22098
22099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22100 /* end confdefs.h. */
22101
22102 #ifndef __COMO__
22103 #error "symbol __COMO__ not defined"
22104 choke me
22105 #endif
22106 _ACEOF
22107 if ac_fn_c_try_compile "$LINENO"
22108 then :
22109 hwloc_check_compiler_vendor_result="comeau"
22110 fi
22111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22112 fi
22113
22114 # Compaq C/C++
22115 # OSF part actually not needed anymore but doesn't hurt
22116 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22117 then :
22118
22119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22120 /* end confdefs.h. */
22121
22122 #if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) )
22123 #error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met"
22124 choke me
22125 #endif
22126 _ACEOF
22127 if ac_fn_c_try_compile "$LINENO"
22128 then :
22129 hwloc_check_compiler_vendor_result="compaq"
22130 else case e in #(
22131 e)
22132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22133 /* end confdefs.h. */
22134
22135 #if !( defined(__osf__) && defined(__LANGUAGE_C__) )
22136 #error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met"
22137 choke me
22138 #endif
22139 _ACEOF
22140 if ac_fn_c_try_compile "$LINENO"
22141 then :
22142 hwloc_check_compiler_vendor_result="compaq"
22143 else case e in #(
22144 e)
22145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22146 /* end confdefs.h. */
22147
22148 #ifndef __DECCXX
22149 #error "symbol __DECCXX not defined"
22150 choke me
22151 #endif
22152 _ACEOF
22153 if ac_fn_c_try_compile "$LINENO"
22154 then :
22155 hwloc_check_compiler_vendor_result="compaq"
22156 fi
22157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22158 esac
22159 fi
22160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22161 esac
22162 fi
22163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22164 fi
22165
22166 # Cray C/C++
22167 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22168 then :
22169
22170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22171 /* end confdefs.h. */
22172
22173 #ifndef _CRAYC
22174 #error "symbol _CRAYC not defined"
22175 choke me
22176 #endif
22177 _ACEOF
22178 if ac_fn_c_try_compile "$LINENO"
22179 then :
22180 hwloc_check_compiler_vendor_result="cray"
22181 fi
22182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22183 fi
22184
22185 # Diab C/C++
22186 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22187 then :
22188
22189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22190 /* end confdefs.h. */
22191
22192 #ifndef __DCC__
22193 #error "symbol __DCC__ not defined"
22194 choke me
22195 #endif
22196 _ACEOF
22197 if ac_fn_c_try_compile "$LINENO"
22198 then :
22199 hwloc_check_compiler_vendor_result="diab"
22200 fi
22201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22202 fi
22203
22204 # Digital Mars
22205 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22206 then :
22207
22208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22209 /* end confdefs.h. */
22210
22211 #if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) )
22212 #error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met"
22213 choke me
22214 #endif
22215 _ACEOF
22216 if ac_fn_c_try_compile "$LINENO"
22217 then :
22218 hwloc_check_compiler_vendor_result="digital mars"
22219 fi
22220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22221 fi
22222
22223 # HP ANSI C / aC++
22224 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22225 then :
22226
22227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22228 /* end confdefs.h. */
22229
22230 #if !( defined(__HP_cc) || defined(__HP_aCC) )
22231 #error "condition defined(__HP_cc) || defined(__HP_aCC) not met"
22232 choke me
22233 #endif
22234 _ACEOF
22235 if ac_fn_c_try_compile "$LINENO"
22236 then :
22237 hwloc_check_compiler_vendor_result="hp"
22238 fi
22239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22240 fi
22241
22242 # IBM XL C/C++
22243 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22244 then :
22245
22246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22247 /* end confdefs.h. */
22248
22249 #if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__ibmxl__) )
22250 #error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__ibmxl__) not met"
22251 choke me
22252 #endif
22253 _ACEOF
22254 if ac_fn_c_try_compile "$LINENO"
22255 then :
22256 hwloc_check_compiler_vendor_result="ibm"
22257 else case e in #(
22258 e)
22259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22260 /* end confdefs.h. */
22261
22262 #if !( defined(_AIX) && !defined(__GNUC__) )
22263 #error "condition defined(_AIX) && !defined(__GNUC__) not met"
22264 choke me
22265 #endif
22266 _ACEOF
22267 if ac_fn_c_try_compile "$LINENO"
22268 then :
22269 hwloc_check_compiler_vendor_result="ibm"
22270 fi
22271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22272 esac
22273 fi
22274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22275 fi
22276
22277 # KAI C++ (rest in peace)
22278 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22279 then :
22280
22281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22282 /* end confdefs.h. */
22283
22284 #ifndef __KCC
22285 #error "symbol __KCC not defined"
22286 choke me
22287 #endif
22288 _ACEOF
22289 if ac_fn_c_try_compile "$LINENO"
22290 then :
22291 hwloc_check_compiler_vendor_result="kai"
22292 fi
22293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22294 fi
22295
22296 # LCC
22297 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22298 then :
22299
22300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22301 /* end confdefs.h. */
22302
22303 #ifndef __LCC__
22304 #error "symbol __LCC__ not defined"
22305 choke me
22306 #endif
22307 _ACEOF
22308 if ac_fn_c_try_compile "$LINENO"
22309 then :
22310 hwloc_check_compiler_vendor_result="lcc"
22311 fi
22312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22313 fi
22314
22315 # MetaWare High C/C++
22316 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22317 then :
22318
22319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22320 /* end confdefs.h. */
22321
22322 #ifndef __HIGHC__
22323 #error "symbol __HIGHC__ not defined"
22324 choke me
22325 #endif
22326 _ACEOF
22327 if ac_fn_c_try_compile "$LINENO"
22328 then :
22329 hwloc_check_compiler_vendor_result="metaware high"
22330 fi
22331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22332 fi
22333
22334 # Metrowerks Codewarrior
22335 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22336 then :
22337
22338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22339 /* end confdefs.h. */
22340
22341 #ifndef __MWERKS__
22342 #error "symbol __MWERKS__ not defined"
22343 choke me
22344 #endif
22345 _ACEOF
22346 if ac_fn_c_try_compile "$LINENO"
22347 then :
22348 hwloc_check_compiler_vendor_result="metrowerks"
22349 fi
22350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22351 fi
22352
22353 # MIPSpro (SGI)
22354 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22355 then :
22356
22357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22358 /* end confdefs.h. */
22359
22360 #if !( defined(sgi) || defined(__sgi) )
22361 #error "condition defined(sgi) || defined(__sgi) not met"
22362 choke me
22363 #endif
22364 _ACEOF
22365 if ac_fn_c_try_compile "$LINENO"
22366 then :
22367 hwloc_check_compiler_vendor_result="sgi"
22368 fi
22369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22370 fi
22371
22372 # MPW C++
22373 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22374 then :
22375
22376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377 /* end confdefs.h. */
22378
22379 #if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) )
22380 #error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met"
22381 choke me
22382 #endif
22383 _ACEOF
22384 if ac_fn_c_try_compile "$LINENO"
22385 then :
22386 hwloc_check_compiler_vendor_result="mpw"
22387 fi
22388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22389 fi
22390
22391 # Microsoft
22392 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22393 then :
22394 # Always use C compiler when checking for Microsoft, as
22395 # Visual C++ doesn't recognize .cc as a C++ file.
22396 ac_ext=c
22397 ac_cpp='$CPP $CPPFLAGS'
22398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22401
22402
22403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22404 /* end confdefs.h. */
22405
22406 #if !( defined(_MSC_VER) || defined(__MSC_VER) )
22407 #error "condition defined(_MSC_VER) || defined(__MSC_VER) not met"
22408 choke me
22409 #endif
22410 _ACEOF
22411 if ac_fn_c_try_compile "$LINENO"
22412 then :
22413 hwloc_check_compiler_vendor_result="microsoft"
22414 fi
22415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22416 ac_ext=c
22417 ac_cpp='$CPP $CPPFLAGS'
22418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22421
22422 fi
22423
22424 # Norcroft C
22425 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22426 then :
22427
22428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22429 /* end confdefs.h. */
22430
22431 #ifndef __CC_NORCROFT
22432 #error "symbol __CC_NORCROFT not defined"
22433 choke me
22434 #endif
22435 _ACEOF
22436 if ac_fn_c_try_compile "$LINENO"
22437 then :
22438 hwloc_check_compiler_vendor_result="norcroft"
22439 fi
22440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22441 fi
22442
22443 # Pelles C
22444 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22445 then :
22446
22447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22448 /* end confdefs.h. */
22449
22450 #ifndef __POCC__
22451 #error "symbol __POCC__ not defined"
22452 choke me
22453 #endif
22454 _ACEOF
22455 if ac_fn_c_try_compile "$LINENO"
22456 then :
22457 hwloc_check_compiler_vendor_result="pelles"
22458 fi
22459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22460 fi
22461
22462 # SAS/C
22463 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22464 then :
22465
22466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22467 /* end confdefs.h. */
22468
22469 #if !( defined(SASC) || defined(__SASC) || defined(__SASC__) )
22470 #error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met"
22471 choke me
22472 #endif
22473 _ACEOF
22474 if ac_fn_c_try_compile "$LINENO"
22475 then :
22476 hwloc_check_compiler_vendor_result="sas"
22477 fi
22478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22479 fi
22480
22481 # Sun Workshop C/C++
22482 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22483 then :
22484
22485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22486 /* end confdefs.h. */
22487
22488 #if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) )
22489 #error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met"
22490 choke me
22491 #endif
22492 _ACEOF
22493 if ac_fn_c_try_compile "$LINENO"
22494 then :
22495 hwloc_check_compiler_vendor_result="sun"
22496 fi
22497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22498 fi
22499
22500 # TenDRA C/C++
22501 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22502 then :
22503
22504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22505 /* end confdefs.h. */
22506
22507 #ifndef __TenDRA__
22508 #error "symbol __TenDRA__ not defined"
22509 choke me
22510 #endif
22511 _ACEOF
22512 if ac_fn_c_try_compile "$LINENO"
22513 then :
22514 hwloc_check_compiler_vendor_result="tendra"
22515 fi
22516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22517 fi
22518
22519 # Tiny C
22520 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22521 then :
22522
22523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22524 /* end confdefs.h. */
22525
22526 #ifndef __TINYC__
22527 #error "symbol __TINYC__ not defined"
22528 choke me
22529 #endif
22530 _ACEOF
22531 if ac_fn_c_try_compile "$LINENO"
22532 then :
22533 hwloc_check_compiler_vendor_result="tiny"
22534 fi
22535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22536 fi
22537
22538 # USL C
22539 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22540 then :
22541
22542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22543 /* end confdefs.h. */
22544
22545 #ifndef __USLC__
22546 #error "symbol __USLC__ not defined"
22547 choke me
22548 #endif
22549 _ACEOF
22550 if ac_fn_c_try_compile "$LINENO"
22551 then :
22552 hwloc_check_compiler_vendor_result="usl"
22553 fi
22554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22555 fi
22556
22557 # Watcom C++
22558 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22559 then :
22560
22561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22562 /* end confdefs.h. */
22563
22564 #ifndef __WATCOMC__
22565 #error "symbol __WATCOMC__ not defined"
22566 choke me
22567 #endif
22568 _ACEOF
22569 if ac_fn_c_try_compile "$LINENO"
22570 then :
22571 hwloc_check_compiler_vendor_result="watcom"
22572 fi
22573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22574 fi
22575
22576 # GNU
22577 if test "$hwloc_check_compiler_vendor_result" = "unknown"
22578 then :
22579
22580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22581 /* end confdefs.h. */
22582
22583 #ifndef __GNUC__
22584 #error "symbol __GNUC__ not defined"
22585 choke me
22586 #endif
22587 _ACEOF
22588 if ac_fn_c_try_compile "$LINENO"
22589 then :
22590 hwloc_check_compiler_vendor_result="gnu"
22591 fi
22592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22593 fi
22594
22595 hwloc_cv_c_compiler_vendor="$hwloc_check_compiler_vendor_result"
22596 unset hwloc_check_compiler_vendor_result
22597
22598 ac_ext=c
22599 ac_cpp='$CPP $CPPFLAGS'
22600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22603 ;;
22604 esac
22605 fi
22606 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hwloc_cv_c_compiler_vendor" >&5
22607 printf '%s\n' "$hwloc_cv_c_compiler_vendor" >&6; }
22608
22609 hwloc_c_vendor="$hwloc_cv_c_compiler_vendor"
22610
22611 if test "$hwloc_c_vendor" = "gnu"; then
22612 HWLOC_GCC_CFLAGS="-Wall -Wmissing-prototypes -Wundef"
22613 HWLOC_GCC_CFLAGS="$HWLOC_GCC_CFLAGS -Wpointer-arith -Wcast-align"
22614 fi
22615
22616 # Enample system extensions for O_DIRECTORY, fdopen, fssl, etc.
22617
22618
22619 printf '%s\n' "#define _HPUX_SOURCE 1" >>confdefs.h
22620
22621
22622 ac_ext=c
22623 ac_cpp='$CPP $CPPFLAGS'
22624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22627
22628
22629 # Check to see if we're producing a 32 or 64 bit executable by
22630 # checking the sizeof void*. Note that AC CHECK_SIZEOF even works
22631 # when cross compiling (!), according to the AC 2.64 docs. This
22632 # check is needed because on some systems, you can instruct the
22633 # compiler to specifically build 32 or 64 bit executables -- even
22634 # though the $target may indicate something different.
22635 # The cast to long int works around a bug in the HP C Compiler
22636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22637 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
22638 # This bug is HP SR number 8606223364.
22639 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
22640 printf %s "checking size of void *... " >&6; }
22641 if test ${ac_cv_sizeof_void_p+y}
22642 then :
22643 printf %s "(cached) " >&6
22644 else case e in #(
22645 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
22646 then :
22647
22648 else case e in #(
22649 e) ac_cv_sizeof_void_p=0 ;;
22650 esac
22651 fi
22652 ;;
22653 esac
22654 fi
22655 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
22656 printf '%s\n' "$ac_cv_sizeof_void_p" >&6; }
22657
22658
22659
22660 printf '%s\n' "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
22661
22662
22663
22664 #
22665 # List of components to be built, either statically or dynamically.
22666 # To be enlarged below.
22667 #
22668 hwloc_components="noos xml synthetic xml_nolibxml"
22669
22670 #
22671 # Check OS support
22672 #
22673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which OS support to include" >&5
22674 printf %s "checking which OS support to include... " >&6; }
22675 case ${target} in
22676 powerpc64-bgq-linux*) # must be before Linux
22677
22678 printf '%s\n' "#define HWLOC_BGQ_SYS 1" >>confdefs.h
22679
22680 hwloc_bgq=yes
22681 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: bgq" >&5
22682 printf '%s\n' "bgq" >&6; }
22683 hwloc_components="$hwloc_components bgq"
22684 ;;
22685 *-*-linux*)
22686
22687 printf '%s\n' "#define HWLOC_LINUX_SYS 1" >>confdefs.h
22688
22689 HWLOC_HAVE_LINUX=1
22690
22691 hwloc_linux=yes
22692 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
22693 printf '%s\n' "Linux" >&6; }
22694 hwloc_components="$hwloc_components linux"
22695 if test "x$enable_io" != xno; then
22696
22697 printf '%s\n' "#define HWLOC_HAVE_LINUXIO 1" >>confdefs.h
22698
22699 hwloc_linuxio_happy=yes
22700 if test x$enable_pci != xno; then
22701
22702 printf '%s\n' "#define HWLOC_HAVE_LINUXPCI 1" >>confdefs.h
22703
22704 hwloc_linuxpci_happy=yes
22705 fi
22706 fi
22707 ;;
22708 *-*-irix*)
22709
22710 printf '%s\n' "#define HWLOC_IRIX_SYS 1" >>confdefs.h
22711
22712 hwloc_irix=yes
22713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: IRIX" >&5
22714 printf '%s\n' "IRIX" >&6; }
22715 # no irix component yet
22716 ;;
22717 *-*-darwin*)
22718
22719 printf '%s\n' "#define HWLOC_DARWIN_SYS 1" >>confdefs.h
22720
22721 hwloc_darwin=yes
22722 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
22723 printf '%s\n' "Darwin" >&6; }
22724 hwloc_components="$hwloc_components darwin"
22725 ;;
22726 *-*-solaris*)
22727
22728 printf '%s\n' "#define HWLOC_SOLARIS_SYS 1" >>confdefs.h
22729
22730 hwloc_solaris=yes
22731 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
22732 printf '%s\n' "Solaris" >&6; }
22733 hwloc_components="$hwloc_components solaris"
22734 ;;
22735 *-*-aix*)
22736
22737 printf '%s\n' "#define HWLOC_AIX_SYS 1" >>confdefs.h
22738
22739 hwloc_aix=yes
22740 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: AIX" >&5
22741 printf '%s\n' "AIX" >&6; }
22742 hwloc_components="$hwloc_components aix"
22743 ;;
22744 *-*-hpux*)
22745
22746 printf '%s\n' "#define HWLOC_HPUX_SYS 1" >>confdefs.h
22747
22748 hwloc_hpux=yes
22749 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: HP-UX" >&5
22750 printf '%s\n' "HP-UX" >&6; }
22751 hwloc_components="$hwloc_components hpux"
22752 ;;
22753 *-*-mingw*|*-*-cygwin*)
22754
22755 printf '%s\n' "#define HWLOC_WIN_SYS 1" >>confdefs.h
22756
22757 hwloc_windows=yes
22758 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
22759 printf '%s\n' "Windows" >&6; }
22760 hwloc_components="$hwloc_components windows"
22761 ;;
22762 *-*-*freebsd*)
22763
22764 printf '%s\n' "#define HWLOC_FREEBSD_SYS 1" >>confdefs.h
22765
22766 hwloc_freebsd=yes
22767 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
22768 printf '%s\n' "FreeBSD" >&6; }
22769 hwloc_components="$hwloc_components freebsd"
22770 ;;
22771 *-*-*netbsd*)
22772
22773 printf '%s\n' "#define HWLOC_NETBSD_SYS 1" >>confdefs.h
22774
22775 hwloc_netbsd=yes
22776 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: NetBSD" >&5
22777 printf '%s\n' "NetBSD" >&6; }
22778 hwloc_components="$hwloc_components netbsd"
22779 ;;
22780 *)
22781 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: Unsupported! ($target)" >&5
22782 printf '%s\n' "Unsupported! ($target)" >&6; }
22783
22784 printf '%s\n' "#define HWLOC_UNSUPPORTED_SYS 1" >>confdefs.h
22785
22786 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ***********************************************************" >&5
22787 printf '%s\n' "$as_me: WARNING: ***********************************************************" >&2;}
22788 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc does not support this system." >&5
22789 printf '%s\n' "$as_me: WARNING: *** hwloc does not support this system." >&2;}
22790 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc will *attempt* to build (but it may not work)." >&5
22791 printf '%s\n' "$as_me: WARNING: *** hwloc will *attempt* to build (but it may not work)." >&2;}
22792 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc run-time results may be reduced to showing just one processor," >&5
22793 printf '%s\n' "$as_me: WARNING: *** hwloc run-time results may be reduced to showing just one processor," >&2;}
22794 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: *** and binding will not be supported." >&5
22795 printf '%s\n' "$as_me: WARNING: *** and binding will not be supported." >&2;}
22796 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: *** You have been warned." >&5
22797 printf '%s\n' "$as_me: WARNING: *** You have been warned." >&2;}
22798 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: *** Pausing to give you time to read this message..." >&5
22799 printf '%s\n' "$as_me: WARNING: *** Pausing to give you time to read this message..." >&2;}
22800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ***********************************************************" >&5
22801 printf '%s\n' "$as_me: WARNING: ***********************************************************" >&2;}
22802 sleep 10
22803 ;;
22804 esac
22805
22806 #
22807 # Check CPU support
22808 #
22809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which CPU support to include" >&5
22810 printf %s "checking which CPU support to include... " >&6; }
22811 case ${target} in
22812 i*86-*-*|x86_64-*-*|amd64-*-*)
22813 case ${ac_cv_sizeof_void_p} in
22814 4)
22815
22816 printf '%s\n' "#define HWLOC_X86_32_ARCH 1" >>confdefs.h
22817
22818 hwloc_x86_32=yes
22819 HWLOC_MS_LIB_ARCH=X86
22820 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: x86_32" >&5
22821 printf '%s\n' "x86_32" >&6; }
22822 ;;
22823 8)
22824
22825 printf '%s\n' "#define HWLOC_X86_64_ARCH 1" >>confdefs.h
22826
22827 hwloc_x86_64=yes
22828 HWLOC_MS_LIB_ARCH=X64
22829 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: x86_64" >&5
22830 printf '%s\n' "x86_64" >&6; }
22831 ;;
22832 *)
22833
22834 printf '%s\n' "#define HWLOC_X86_64_ARCH 1" >>confdefs.h
22835
22836 hwloc_x86_64=yes
22837 HWLOC_MS_LIB_ARCH=X64
22838 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unknown -- assuming x86_64" >&5
22839 printf '%s\n' "unknown -- assuming x86_64" >&6; }
22840 ;;
22841 esac
22842 ;;
22843 *)
22844 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
22845 printf '%s\n' "unknown" >&6; }
22846 ;;
22847 esac
22848
22849
22850 # The cast to long int works around a bug in the HP C Compiler
22851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22852 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
22853 # This bug is HP SR number 8606223364.
22854 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
22855 printf %s "checking size of unsigned long... " >&6; }
22856 if test ${ac_cv_sizeof_unsigned_long+y}
22857 then :
22858 printf %s "(cached) " >&6
22859 else case e in #(
22860 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"
22861 then :
22862
22863 else case e in #(
22864 e) ac_cv_sizeof_unsigned_long=0 ;;
22865 esac
22866 fi
22867 ;;
22868 esac
22869 fi
22870 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
22871 printf '%s\n' "$ac_cv_sizeof_unsigned_long" >&6; }
22872
22873
22874
22875 printf '%s\n' "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
22876
22877
22878
22879 printf '%s\n' "#define HWLOC_SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
22880
22881 # The cast to long int works around a bug in the HP C Compiler
22882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22883 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
22884 # This bug is HP SR number 8606223364.
22885 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
22886 printf %s "checking size of unsigned int... " >&6; }
22887 if test ${ac_cv_sizeof_unsigned_int+y}
22888 then :
22889 printf %s "(cached) " >&6
22890 else case e in #(
22891 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
22892 then :
22893
22894 else case e in #(
22895 e) ac_cv_sizeof_unsigned_int=0 ;;
22896 esac
22897 fi
22898 ;;
22899 esac
22900 fi
22901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
22902 printf '%s\n' "$ac_cv_sizeof_unsigned_int" >&6; }
22903
22904
22905
22906 printf '%s\n' "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
22907
22908
22909
22910 printf '%s\n' "#define HWLOC_SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
22911
22912
22913 #
22914 # Check for compiler attributes and visibility
22915 #
22916
22917 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
22918 printf %s "checking for __attribute__... " >&6; }
22919
22920 if test ${hwloc_cv___attribute__+y}
22921 then :
22922 printf %s "(cached) " >&6
22923 else case e in #(
22924 e)
22925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22926 /* end confdefs.h. */
22927
22928 #include <stdlib.h>
22929
22930 int
22931 main (void)
22932 {
22933
22934 /* Check for the longest available __attribute__ (since gcc-2.3) */
22935 struct foo {
22936 char a;
22937 int x2 __attribute__ ((__packed__));
22938 };
22939
22940 ;
22941 return 0;
22942 }
22943 _ACEOF
22944 if ac_fn_c_try_compile "$LINENO"
22945 then :
22946
22947 else case e in #(
22948 e) hwloc_cv___attribute__=1 ;;
22949 esac
22950 fi
22951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22952
22953 if test "$hwloc_cv___attribute__" = "1" ; then
22954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22955 /* end confdefs.h. */
22956
22957 #include <stdlib.h>
22958
22959 int
22960 main (void)
22961 {
22962
22963 /* Check for the longest available __attribute__ (since gcc-2.3) */
22964 struct foo {
22965 char a;
22966 int x2 __attribute__ ((__packed__));
22967 };
22968
22969 ;
22970 return 0;
22971 }
22972 _ACEOF
22973 if ac_fn_c_try_compile "$LINENO"
22974 then :
22975
22976 else case e in #(
22977 e) hwloc_cv___attribute__=1 ;;
22978 esac
22979 fi
22980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22981 fi
22982 ;;
22983 esac
22984 fi
22985
22986
22987 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE $hwloc_cv___attribute__" >>confdefs.h
22988
22989
22990 #
22991 # Now that we know the compiler support __attribute__ let's check which kind of
22992 # attributed are supported.
22993 #
22994 if test "$hwloc_cv___attribute__" = "0" ; then
22995 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
22996 printf '%s\n' "no" >&6; }
22997 hwloc_cv___attribute__aligned=0
22998 hwloc_cv___attribute__always_inline=0
22999 hwloc_cv___attribute__cold=0
23000 hwloc_cv___attribute__const=0
23001 hwloc_cv___attribute__deprecated=0
23002 hwloc_cv___attribute__constructor=0
23003 hwloc_cv___attribute__format=0
23004 hwloc_cv___attribute__hot=0
23005 hwloc_cv___attribute__malloc=0
23006 hwloc_cv___attribute__may_alias=0
23007 hwloc_cv___attribute__no_instrument_function=0
23008 hwloc_cv___attribute__nonnull=0
23009 hwloc_cv___attribute__noreturn=0
23010 hwloc_cv___attribute__packed=0
23011 hwloc_cv___attribute__pure=0
23012 hwloc_cv___attribute__sentinel=0
23013 hwloc_cv___attribute__unused=0
23014 hwloc_cv___attribute__warn_unused_result=0
23015 hwloc_cv___attribute__weak_alias=0
23016 else
23017 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23018 printf '%s\n' "yes" >&6; }
23019
23020
23021 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(aligned)" >&5
23022 printf %s "checking for __attribute__(aligned)... " >&6; }
23023 if test ${hwloc_cv___attribute__aligned+y}
23024 then :
23025 printf %s "(cached) " >&6
23026 else case e in #(
23027 e)
23028 #
23029 # Try to compile using the C compiler
23030 #
23031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23032 /* end confdefs.h. */
23033 struct foo { char text4; } __attribute__ ((__aligned__(8)));
23034 int
23035 main (void)
23036 {
23037
23038 ;
23039 return 0;
23040 }
23041 _ACEOF
23042 if ac_fn_c_try_compile "$LINENO"
23043 then :
23044
23045 #
23046 # In case we did succeed: Fine, but was this due to the
23047 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23048 # and if found, reset the hwloc_cv__attribute__var=0
23049 #
23050 hwloc_cv___attribute__aligned=1
23051
23052 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23053
23054
23055 if test -s conftest.err ; then
23056 for i in ignore skip ; do
23057 $GREP -iq $i conftest.err
23058 if test "$?" = "0" ; then
23059 hwloc_cv___attribute__aligned=0
23060 break;
23061 fi
23062 done
23063 fi
23064
23065
23066 else case e in #(
23067 e) hwloc_cv___attribute__aligned=0 ;;
23068 esac
23069 fi
23070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23071
23072 #
23073 # If the attribute is supported by both compilers,
23074 # try to recompile a *cross-check*, IFF defined.
23075 #
23076 if test '(' "$hwloc_cv___attribute__aligned" = "1" -a "" != "" ')' ; then
23077 ac_c_werror_flag_safe=$ac_c_werror_flag
23078 ac_c_werror_flag="yes"
23079 CFLAGS_safe=$CFLAGS
23080 CFLAGS="$CFLAGS "
23081
23082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h. */
23084
23085 int
23086 main (void)
23087 {
23088
23089 int i=4711;
23090 i=usage(&i);
23091
23092 ;
23093 return 0;
23094 }
23095
23096 _ACEOF
23097 if ac_fn_c_try_compile "$LINENO"
23098 then :
23099 hwloc_cv___attribute__aligned=0
23100 else case e in #(
23101 e)
23102 #
23103 # In case we did NOT succeed: Fine, but was this due to the
23104 # attribute being ignored? Grep for IgNoRe in conftest.err
23105 # and if found, reset the hwloc_cv__attribute__var=0
23106 #
23107 hwloc_cv___attribute__aligned=1
23108
23109 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23110
23111
23112 if test -s conftest.err ; then
23113 for i in ignore skip ; do
23114 $GREP -iq $i conftest.err
23115 if test "$?" = "0" ; then
23116 hwloc_cv___attribute__aligned=0
23117 break;
23118 fi
23119 done
23120 fi
23121
23122 ;;
23123 esac
23124 fi
23125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23126
23127 ac_c_werror_flag=$ac_c_werror_flag_safe
23128 CFLAGS=$CFLAGS_safe
23129 fi
23130 ;;
23131 esac
23132 fi
23133
23134
23135 if test "$hwloc_cv___attribute__aligned" = "1" ; then
23136 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23137 printf '%s\n' "yes" >&6; }
23138 else
23139 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
23140 printf '%s\n' "no" >&6; }
23141 fi
23142
23143
23144 #
23145 # Ignored by PGI-6.2.5; -- recognized by output-parser
23146 #
23147
23148 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(always_inline)" >&5
23149 printf %s "checking for __attribute__(always_inline)... " >&6; }
23150 if test ${hwloc_cv___attribute__always_inline+y}
23151 then :
23152 printf %s "(cached) " >&6
23153 else case e in #(
23154 e)
23155 #
23156 # Try to compile using the C compiler
23157 #
23158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23159 /* end confdefs.h. */
23160 int foo (int arg) __attribute__ ((__always_inline__));
23161 int
23162 main (void)
23163 {
23164
23165 ;
23166 return 0;
23167 }
23168 _ACEOF
23169 if ac_fn_c_try_compile "$LINENO"
23170 then :
23171
23172 #
23173 # In case we did succeed: Fine, but was this due to the
23174 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23175 # and if found, reset the hwloc_cv__attribute__var=0
23176 #
23177 hwloc_cv___attribute__always_inline=1
23178
23179 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23180
23181
23182 if test -s conftest.err ; then
23183 for i in ignore skip ; do
23184 $GREP -iq $i conftest.err
23185 if test "$?" = "0" ; then
23186 hwloc_cv___attribute__always_inline=0
23187 break;
23188 fi
23189 done
23190 fi
23191
23192
23193 else case e in #(
23194 e) hwloc_cv___attribute__always_inline=0 ;;
23195 esac
23196 fi
23197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23198
23199 #
23200 # If the attribute is supported by both compilers,
23201 # try to recompile a *cross-check*, IFF defined.
23202 #
23203 if test '(' "$hwloc_cv___attribute__always_inline" = "1" -a "" != "" ')' ; then
23204 ac_c_werror_flag_safe=$ac_c_werror_flag
23205 ac_c_werror_flag="yes"
23206 CFLAGS_safe=$CFLAGS
23207 CFLAGS="$CFLAGS "
23208
23209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23210 /* end confdefs.h. */
23211
23212 int
23213 main (void)
23214 {
23215
23216 int i=4711;
23217 i=usage(&i);
23218
23219 ;
23220 return 0;
23221 }
23222
23223 _ACEOF
23224 if ac_fn_c_try_compile "$LINENO"
23225 then :
23226 hwloc_cv___attribute__always_inline=0
23227 else case e in #(
23228 e)
23229 #
23230 # In case we did NOT succeed: Fine, but was this due to the
23231 # attribute being ignored? Grep for IgNoRe in conftest.err
23232 # and if found, reset the hwloc_cv__attribute__var=0
23233 #
23234 hwloc_cv___attribute__always_inline=1
23235
23236 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23237
23238
23239 if test -s conftest.err ; then
23240 for i in ignore skip ; do
23241 $GREP -iq $i conftest.err
23242 if test "$?" = "0" ; then
23243 hwloc_cv___attribute__always_inline=0
23244 break;
23245 fi
23246 done
23247 fi
23248
23249 ;;
23250 esac
23251 fi
23252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23253
23254 ac_c_werror_flag=$ac_c_werror_flag_safe
23255 CFLAGS=$CFLAGS_safe
23256 fi
23257 ;;
23258 esac
23259 fi
23260
23261
23262 if test "$hwloc_cv___attribute__always_inline" = "1" ; then
23263 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23264 printf '%s\n' "yes" >&6; }
23265 else
23266 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
23267 printf '%s\n' "no" >&6; }
23268 fi
23269
23270
23271
23272 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(cold)" >&5
23273 printf %s "checking for __attribute__(cold)... " >&6; }
23274 if test ${hwloc_cv___attribute__cold+y}
23275 then :
23276 printf %s "(cached) " >&6
23277 else case e in #(
23278 e)
23279 #
23280 # Try to compile using the C compiler
23281 #
23282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23283 /* end confdefs.h. */
23284
23285 int foo(int arg1, int arg2) __attribute__ ((__cold__));
23286 int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
23287
23288 int
23289 main (void)
23290 {
23291
23292 ;
23293 return 0;
23294 }
23295 _ACEOF
23296 if ac_fn_c_try_compile "$LINENO"
23297 then :
23298
23299 #
23300 # In case we did succeed: Fine, but was this due to the
23301 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23302 # and if found, reset the hwloc_cv__attribute__var=0
23303 #
23304 hwloc_cv___attribute__cold=1
23305
23306 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23307
23308
23309 if test -s conftest.err ; then
23310 for i in ignore skip ; do
23311 $GREP -iq $i conftest.err
23312 if test "$?" = "0" ; then
23313 hwloc_cv___attribute__cold=0
23314 break;
23315 fi
23316 done
23317 fi
23318
23319
23320 else case e in #(
23321 e) hwloc_cv___attribute__cold=0 ;;
23322 esac
23323 fi
23324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23325
23326 #
23327 # If the attribute is supported by both compilers,
23328 # try to recompile a *cross-check*, IFF defined.
23329 #
23330 if test '(' "$hwloc_cv___attribute__cold" = "1" -a "" != "" ')' ; then
23331 ac_c_werror_flag_safe=$ac_c_werror_flag
23332 ac_c_werror_flag="yes"
23333 CFLAGS_safe=$CFLAGS
23334 CFLAGS="$CFLAGS "
23335
23336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23337 /* end confdefs.h. */
23338
23339 int
23340 main (void)
23341 {
23342
23343 int i=4711;
23344 i=usage(&i);
23345
23346 ;
23347 return 0;
23348 }
23349
23350 _ACEOF
23351 if ac_fn_c_try_compile "$LINENO"
23352 then :
23353 hwloc_cv___attribute__cold=0
23354 else case e in #(
23355 e)
23356 #
23357 # In case we did NOT succeed: Fine, but was this due to the
23358 # attribute being ignored? Grep for IgNoRe in conftest.err
23359 # and if found, reset the hwloc_cv__attribute__var=0
23360 #
23361 hwloc_cv___attribute__cold=1
23362
23363 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23364
23365
23366 if test -s conftest.err ; then
23367 for i in ignore skip ; do
23368 $GREP -iq $i conftest.err
23369 if test "$?" = "0" ; then
23370 hwloc_cv___attribute__cold=0
23371 break;
23372 fi
23373 done
23374 fi
23375
23376 ;;
23377 esac
23378 fi
23379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23380
23381 ac_c_werror_flag=$ac_c_werror_flag_safe
23382 CFLAGS=$CFLAGS_safe
23383 fi
23384 ;;
23385 esac
23386 fi
23387
23388
23389 if test "$hwloc_cv___attribute__cold" = "1" ; then
23390 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23391 printf '%s\n' "yes" >&6; }
23392 else
23393 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
23394 printf '%s\n' "no" >&6; }
23395 fi
23396
23397
23398
23399 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(const)" >&5
23400 printf %s "checking for __attribute__(const)... " >&6; }
23401 if test ${hwloc_cv___attribute__const+y}
23402 then :
23403 printf %s "(cached) " >&6
23404 else case e in #(
23405 e)
23406 #
23407 # Try to compile using the C compiler
23408 #
23409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23410 /* end confdefs.h. */
23411
23412 int foo(int arg1, int arg2) __attribute__ ((__const__));
23413 int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
23414
23415 int
23416 main (void)
23417 {
23418
23419 ;
23420 return 0;
23421 }
23422 _ACEOF
23423 if ac_fn_c_try_compile "$LINENO"
23424 then :
23425
23426 #
23427 # In case we did succeed: Fine, but was this due to the
23428 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23429 # and if found, reset the hwloc_cv__attribute__var=0
23430 #
23431 hwloc_cv___attribute__const=1
23432
23433 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23434
23435
23436 if test -s conftest.err ; then
23437 for i in ignore skip ; do
23438 $GREP -iq $i conftest.err
23439 if test "$?" = "0" ; then
23440 hwloc_cv___attribute__const=0
23441 break;
23442 fi
23443 done
23444 fi
23445
23446
23447 else case e in #(
23448 e) hwloc_cv___attribute__const=0 ;;
23449 esac
23450 fi
23451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23452
23453 #
23454 # If the attribute is supported by both compilers,
23455 # try to recompile a *cross-check*, IFF defined.
23456 #
23457 if test '(' "$hwloc_cv___attribute__const" = "1" -a "" != "" ')' ; then
23458 ac_c_werror_flag_safe=$ac_c_werror_flag
23459 ac_c_werror_flag="yes"
23460 CFLAGS_safe=$CFLAGS
23461 CFLAGS="$CFLAGS "
23462
23463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23464 /* end confdefs.h. */
23465
23466 int
23467 main (void)
23468 {
23469
23470 int i=4711;
23471 i=usage(&i);
23472
23473 ;
23474 return 0;
23475 }
23476
23477 _ACEOF
23478 if ac_fn_c_try_compile "$LINENO"
23479 then :
23480 hwloc_cv___attribute__const=0
23481 else case e in #(
23482 e)
23483 #
23484 # In case we did NOT succeed: Fine, but was this due to the
23485 # attribute being ignored? Grep for IgNoRe in conftest.err
23486 # and if found, reset the hwloc_cv__attribute__var=0
23487 #
23488 hwloc_cv___attribute__const=1
23489
23490 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23491
23492
23493 if test -s conftest.err ; then
23494 for i in ignore skip ; do
23495 $GREP -iq $i conftest.err
23496 if test "$?" = "0" ; then
23497 hwloc_cv___attribute__const=0
23498 break;
23499 fi
23500 done
23501 fi
23502
23503 ;;
23504 esac
23505 fi
23506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23507
23508 ac_c_werror_flag=$ac_c_werror_flag_safe
23509 CFLAGS=$CFLAGS_safe
23510 fi
23511 ;;
23512 esac
23513 fi
23514
23515
23516 if test "$hwloc_cv___attribute__const" = "1" ; then
23517 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23518 printf '%s\n' "yes" >&6; }
23519 else
23520 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
23521 printf '%s\n' "no" >&6; }
23522 fi
23523
23524
23525
23526
23527 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(deprecated)" >&5
23528 printf %s "checking for __attribute__(deprecated)... " >&6; }
23529 if test ${hwloc_cv___attribute__deprecated+y}
23530 then :
23531 printf %s "(cached) " >&6
23532 else case e in #(
23533 e)
23534 #
23535 # Try to compile using the C compiler
23536 #
23537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23538 /* end confdefs.h. */
23539
23540 int foo(int arg1, int arg2) __attribute__ ((__deprecated__));
23541 int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
23542
23543 int
23544 main (void)
23545 {
23546
23547 ;
23548 return 0;
23549 }
23550 _ACEOF
23551 if ac_fn_c_try_compile "$LINENO"
23552 then :
23553
23554 #
23555 # In case we did succeed: Fine, but was this due to the
23556 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23557 # and if found, reset the hwloc_cv__attribute__var=0
23558 #
23559 hwloc_cv___attribute__deprecated=1
23560
23561 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23562
23563
23564 if test -s conftest.err ; then
23565 for i in ignore skip ; do
23566 $GREP -iq $i conftest.err
23567 if test "$?" = "0" ; then
23568 hwloc_cv___attribute__deprecated=0
23569 break;
23570 fi
23571 done
23572 fi
23573
23574
23575 else case e in #(
23576 e) hwloc_cv___attribute__deprecated=0 ;;
23577 esac
23578 fi
23579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23580
23581 #
23582 # If the attribute is supported by both compilers,
23583 # try to recompile a *cross-check*, IFF defined.
23584 #
23585 if test '(' "$hwloc_cv___attribute__deprecated" = "1" -a "" != "" ')' ; then
23586 ac_c_werror_flag_safe=$ac_c_werror_flag
23587 ac_c_werror_flag="yes"
23588 CFLAGS_safe=$CFLAGS
23589 CFLAGS="$CFLAGS "
23590
23591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23592 /* end confdefs.h. */
23593
23594 int
23595 main (void)
23596 {
23597
23598 int i=4711;
23599 i=usage(&i);
23600
23601 ;
23602 return 0;
23603 }
23604
23605 _ACEOF
23606 if ac_fn_c_try_compile "$LINENO"
23607 then :
23608 hwloc_cv___attribute__deprecated=0
23609 else case e in #(
23610 e)
23611 #
23612 # In case we did NOT succeed: Fine, but was this due to the
23613 # attribute being ignored? Grep for IgNoRe in conftest.err
23614 # and if found, reset the hwloc_cv__attribute__var=0
23615 #
23616 hwloc_cv___attribute__deprecated=1
23617
23618 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23619
23620
23621 if test -s conftest.err ; then
23622 for i in ignore skip ; do
23623 $GREP -iq $i conftest.err
23624 if test "$?" = "0" ; then
23625 hwloc_cv___attribute__deprecated=0
23626 break;
23627 fi
23628 done
23629 fi
23630
23631 ;;
23632 esac
23633 fi
23634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23635
23636 ac_c_werror_flag=$ac_c_werror_flag_safe
23637 CFLAGS=$CFLAGS_safe
23638 fi
23639 ;;
23640 esac
23641 fi
23642
23643
23644 if test "$hwloc_cv___attribute__deprecated" = "1" ; then
23645 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23646 printf '%s\n' "yes" >&6; }
23647 else
23648 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
23649 printf '%s\n' "no" >&6; }
23650 fi
23651
23652
23653
23654 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(constructor)" >&5
23655 printf %s "checking for __attribute__(constructor)... " >&6; }
23656 if test ${hwloc_cv___attribute__constructor+y}
23657 then :
23658 printf %s "(cached) " >&6
23659 else case e in #(
23660 e)
23661 #
23662 # Try to compile using the C compiler
23663 #
23664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23665 /* end confdefs.h. */
23666
23667 void foo(void) __attribute__ ((__constructor__));
23668 void foo(void) { return; }
23669
23670 int
23671 main (void)
23672 {
23673
23674 ;
23675 return 0;
23676 }
23677 _ACEOF
23678 if ac_fn_c_try_compile "$LINENO"
23679 then :
23680
23681 #
23682 # In case we did succeed: Fine, but was this due to the
23683 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23684 # and if found, reset the hwloc_cv__attribute__var=0
23685 #
23686 hwloc_cv___attribute__constructor=1
23687
23688 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23689
23690
23691 if test -s conftest.err ; then
23692 for i in ignore skip ; do
23693 $GREP -iq $i conftest.err
23694 if test "$?" = "0" ; then
23695 hwloc_cv___attribute__constructor=0
23696 break;
23697 fi
23698 done
23699 fi
23700
23701
23702 else case e in #(
23703 e) hwloc_cv___attribute__constructor=0 ;;
23704 esac
23705 fi
23706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23707
23708 #
23709 # If the attribute is supported by both compilers,
23710 # try to recompile a *cross-check*, IFF defined.
23711 #
23712 if test '(' "$hwloc_cv___attribute__constructor" = "1" -a "" != "" ')' ; then
23713 ac_c_werror_flag_safe=$ac_c_werror_flag
23714 ac_c_werror_flag="yes"
23715 CFLAGS_safe=$CFLAGS
23716 CFLAGS="$CFLAGS "
23717
23718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23719 /* end confdefs.h. */
23720
23721 int
23722 main (void)
23723 {
23724
23725 int i=4711;
23726 i=usage(&i);
23727
23728 ;
23729 return 0;
23730 }
23731
23732 _ACEOF
23733 if ac_fn_c_try_compile "$LINENO"
23734 then :
23735 hwloc_cv___attribute__constructor=0
23736 else case e in #(
23737 e)
23738 #
23739 # In case we did NOT succeed: Fine, but was this due to the
23740 # attribute being ignored? Grep for IgNoRe in conftest.err
23741 # and if found, reset the hwloc_cv__attribute__var=0
23742 #
23743 hwloc_cv___attribute__constructor=1
23744
23745 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23746
23747
23748 if test -s conftest.err ; then
23749 for i in ignore skip ; do
23750 $GREP -iq $i conftest.err
23751 if test "$?" = "0" ; then
23752 hwloc_cv___attribute__constructor=0
23753 break;
23754 fi
23755 done
23756 fi
23757
23758 ;;
23759 esac
23760 fi
23761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23762
23763 ac_c_werror_flag=$ac_c_werror_flag_safe
23764 CFLAGS=$CFLAGS_safe
23765 fi
23766 ;;
23767 esac
23768 fi
23769
23770
23771 if test "$hwloc_cv___attribute__constructor" = "1" ; then
23772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23773 printf '%s\n' "yes" >&6; }
23774 else
23775 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
23776 printf '%s\n' "no" >&6; }
23777 fi
23778
23779
23780
23781 HWLOC_ATTRIBUTE_CFLAGS=
23782 case "$hwloc_c_vendor" in
23783 gnu)
23784 HWLOC_ATTRIBUTE_CFLAGS="-Wall"
23785 ;;
23786 intel)
23787 # we want specifically the warning on format string conversion
23788 HWLOC_ATTRIBUTE_CFLAGS="-we181"
23789 ;;
23790 esac
23791
23792 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(format)" >&5
23793 printf %s "checking for __attribute__(format)... " >&6; }
23794 if test ${hwloc_cv___attribute__format+y}
23795 then :
23796 printf %s "(cached) " >&6
23797 else case e in #(
23798 e)
23799 #
23800 # Try to compile using the C compiler
23801 #
23802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23803 /* end confdefs.h. */
23804
23805 int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
23806
23807 int
23808 main (void)
23809 {
23810
23811 ;
23812 return 0;
23813 }
23814 _ACEOF
23815 if ac_fn_c_try_compile "$LINENO"
23816 then :
23817
23818 #
23819 # In case we did succeed: Fine, but was this due to the
23820 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23821 # and if found, reset the hwloc_cv__attribute__var=0
23822 #
23823 hwloc_cv___attribute__format=1
23824
23825 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23826
23827
23828 if test -s conftest.err ; then
23829 for i in ignore skip ; do
23830 $GREP -iq $i conftest.err
23831 if test "$?" = "0" ; then
23832 hwloc_cv___attribute__format=0
23833 break;
23834 fi
23835 done
23836 fi
23837
23838
23839 else case e in #(
23840 e) hwloc_cv___attribute__format=0 ;;
23841 esac
23842 fi
23843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23844
23845 #
23846 # If the attribute is supported by both compilers,
23847 # try to recompile a *cross-check*, IFF defined.
23848 #
23849 if test '(' "$hwloc_cv___attribute__format" = "1" -a "
23850 static int usage (int * argument);
23851 extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
23852
23853 static int usage (int * argument) {
23854 return this_printf (*argument, "%d", argument); /* This should produce a format warning */
23855 }
23856 /* The autoconf-generated main-function is int main(), which produces a warning by itself */
23857 int main(void);
23858 " != "" ')' ; then
23859 ac_c_werror_flag_safe=$ac_c_werror_flag
23860 ac_c_werror_flag="yes"
23861 CFLAGS_safe=$CFLAGS
23862 CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"
23863
23864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23865 /* end confdefs.h. */
23866
23867 static int usage (int * argument);
23868 extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
23869
23870 static int usage (int * argument) {
23871 return this_printf (*argument, "%d", argument); /* This should produce a format warning */
23872 }
23873 /* The autoconf-generated main-function is int main(), which produces a warning by itself */
23874 int main(void);
23875
23876 int
23877 main (void)
23878 {
23879
23880 int i=4711;
23881 i=usage(&i);
23882
23883 ;
23884 return 0;
23885 }
23886
23887 _ACEOF
23888 if ac_fn_c_try_compile "$LINENO"
23889 then :
23890 hwloc_cv___attribute__format=0
23891 else case e in #(
23892 e)
23893 #
23894 # In case we did NOT succeed: Fine, but was this due to the
23895 # attribute being ignored? Grep for IgNoRe in conftest.err
23896 # and if found, reset the hwloc_cv__attribute__var=0
23897 #
23898 hwloc_cv___attribute__format=1
23899
23900 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23901
23902
23903 if test -s conftest.err ; then
23904 for i in ignore skip ; do
23905 $GREP -iq $i conftest.err
23906 if test "$?" = "0" ; then
23907 hwloc_cv___attribute__format=0
23908 break;
23909 fi
23910 done
23911 fi
23912
23913 ;;
23914 esac
23915 fi
23916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23917
23918 ac_c_werror_flag=$ac_c_werror_flag_safe
23919 CFLAGS=$CFLAGS_safe
23920 fi
23921 ;;
23922 esac
23923 fi
23924
23925
23926 if test "$hwloc_cv___attribute__format" = "1" ; then
23927 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23928 printf '%s\n' "yes" >&6; }
23929 else
23930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
23931 printf '%s\n' "no" >&6; }
23932 fi
23933
23934
23935
23936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(hot)" >&5
23937 printf %s "checking for __attribute__(hot)... " >&6; }
23938 if test ${hwloc_cv___attribute__hot+y}
23939 then :
23940 printf %s "(cached) " >&6
23941 else case e in #(
23942 e)
23943 #
23944 # Try to compile using the C compiler
23945 #
23946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23947 /* end confdefs.h. */
23948
23949 int foo(int arg1, int arg2) __attribute__ ((__hot__));
23950 int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
23951
23952 int
23953 main (void)
23954 {
23955
23956 ;
23957 return 0;
23958 }
23959 _ACEOF
23960 if ac_fn_c_try_compile "$LINENO"
23961 then :
23962
23963 #
23964 # In case we did succeed: Fine, but was this due to the
23965 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23966 # and if found, reset the hwloc_cv__attribute__var=0
23967 #
23968 hwloc_cv___attribute__hot=1
23969
23970 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23971
23972
23973 if test -s conftest.err ; then
23974 for i in ignore skip ; do
23975 $GREP -iq $i conftest.err
23976 if test "$?" = "0" ; then
23977 hwloc_cv___attribute__hot=0
23978 break;
23979 fi
23980 done
23981 fi
23982
23983
23984 else case e in #(
23985 e) hwloc_cv___attribute__hot=0 ;;
23986 esac
23987 fi
23988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23989
23990 #
23991 # If the attribute is supported by both compilers,
23992 # try to recompile a *cross-check*, IFF defined.
23993 #
23994 if test '(' "$hwloc_cv___attribute__hot" = "1" -a "" != "" ')' ; then
23995 ac_c_werror_flag_safe=$ac_c_werror_flag
23996 ac_c_werror_flag="yes"
23997 CFLAGS_safe=$CFLAGS
23998 CFLAGS="$CFLAGS "
23999
24000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24001 /* end confdefs.h. */
24002
24003 int
24004 main (void)
24005 {
24006
24007 int i=4711;
24008 i=usage(&i);
24009
24010 ;
24011 return 0;
24012 }
24013
24014 _ACEOF
24015 if ac_fn_c_try_compile "$LINENO"
24016 then :
24017 hwloc_cv___attribute__hot=0
24018 else case e in #(
24019 e)
24020 #
24021 # In case we did NOT succeed: Fine, but was this due to the
24022 # attribute being ignored? Grep for IgNoRe in conftest.err
24023 # and if found, reset the hwloc_cv__attribute__var=0
24024 #
24025 hwloc_cv___attribute__hot=1
24026
24027 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24028
24029
24030 if test -s conftest.err ; then
24031 for i in ignore skip ; do
24032 $GREP -iq $i conftest.err
24033 if test "$?" = "0" ; then
24034 hwloc_cv___attribute__hot=0
24035 break;
24036 fi
24037 done
24038 fi
24039
24040 ;;
24041 esac
24042 fi
24043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24044
24045 ac_c_werror_flag=$ac_c_werror_flag_safe
24046 CFLAGS=$CFLAGS_safe
24047 fi
24048 ;;
24049 esac
24050 fi
24051
24052
24053 if test "$hwloc_cv___attribute__hot" = "1" ; then
24054 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24055 printf '%s\n' "yes" >&6; }
24056 else
24057 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
24058 printf '%s\n' "no" >&6; }
24059 fi
24060
24061
24062
24063 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(malloc)" >&5
24064 printf %s "checking for __attribute__(malloc)... " >&6; }
24065 if test ${hwloc_cv___attribute__malloc+y}
24066 then :
24067 printf %s "(cached) " >&6
24068 else case e in #(
24069 e)
24070 #
24071 # Try to compile using the C compiler
24072 #
24073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24074 /* end confdefs.h. */
24075
24076 #ifdef HAVE_STDLIB_H
24077 # include <stdlib.h>
24078 #endif
24079 int * foo(int arg1) __attribute__ ((__malloc__));
24080 int * foo(int arg1) { return (int*) malloc(arg1); }
24081
24082 int
24083 main (void)
24084 {
24085
24086 ;
24087 return 0;
24088 }
24089 _ACEOF
24090 if ac_fn_c_try_compile "$LINENO"
24091 then :
24092
24093 #
24094 # In case we did succeed: Fine, but was this due to the
24095 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
24096 # and if found, reset the hwloc_cv__attribute__var=0
24097 #
24098 hwloc_cv___attribute__malloc=1
24099
24100 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24101
24102
24103 if test -s conftest.err ; then
24104 for i in ignore skip ; do
24105 $GREP -iq $i conftest.err
24106 if test "$?" = "0" ; then
24107 hwloc_cv___attribute__malloc=0
24108 break;
24109 fi
24110 done
24111 fi
24112
24113
24114 else case e in #(
24115 e) hwloc_cv___attribute__malloc=0 ;;
24116 esac
24117 fi
24118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24119
24120 #
24121 # If the attribute is supported by both compilers,
24122 # try to recompile a *cross-check*, IFF defined.
24123 #
24124 if test '(' "$hwloc_cv___attribute__malloc" = "1" -a "" != "" ')' ; then
24125 ac_c_werror_flag_safe=$ac_c_werror_flag
24126 ac_c_werror_flag="yes"
24127 CFLAGS_safe=$CFLAGS
24128 CFLAGS="$CFLAGS "
24129
24130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24131 /* end confdefs.h. */
24132
24133 int
24134 main (void)
24135 {
24136
24137 int i=4711;
24138 i=usage(&i);
24139
24140 ;
24141 return 0;
24142 }
24143
24144 _ACEOF
24145 if ac_fn_c_try_compile "$LINENO"
24146 then :
24147 hwloc_cv___attribute__malloc=0
24148 else case e in #(
24149 e)
24150 #
24151 # In case we did NOT succeed: Fine, but was this due to the
24152 # attribute being ignored? Grep for IgNoRe in conftest.err
24153 # and if found, reset the hwloc_cv__attribute__var=0
24154 #
24155 hwloc_cv___attribute__malloc=1
24156
24157 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24158
24159
24160 if test -s conftest.err ; then
24161 for i in ignore skip ; do
24162 $GREP -iq $i conftest.err
24163 if test "$?" = "0" ; then
24164 hwloc_cv___attribute__malloc=0
24165 break;
24166 fi
24167 done
24168 fi
24169
24170 ;;
24171 esac
24172 fi
24173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24174
24175 ac_c_werror_flag=$ac_c_werror_flag_safe
24176 CFLAGS=$CFLAGS_safe
24177 fi
24178 ;;
24179 esac
24180 fi
24181
24182
24183 if test "$hwloc_cv___attribute__malloc" = "1" ; then
24184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24185 printf '%s\n' "yes" >&6; }
24186 else
24187 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
24188 printf '%s\n' "no" >&6; }
24189 fi
24190
24191
24192
24193 #
24194 # Attribute may_alias: No suitable cross-check available, that works for non-supporting compilers
24195 # Ignored by intel-9.1.045 -- turn off with -wd1292
24196 # Ignored by PGI-6.2.5; ignore not detected due to missing cross-check
24197 # The test case is chosen to match our only use in topology-xml-*.c, and reproduces an xlc-13.1.0 bug.
24198 #
24199
24200 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(may_alias)" >&5
24201 printf %s "checking for __attribute__(may_alias)... " >&6; }
24202 if test ${hwloc_cv___attribute__may_alias+y}
24203 then :
24204 printf %s "(cached) " >&6
24205 else case e in #(
24206 e)
24207 #
24208 # Try to compile using the C compiler
24209 #
24210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24211 /* end confdefs.h. */
24212 struct { int i; } __attribute__ ((__may_alias__)) * p_value;
24213 int
24214 main (void)
24215 {
24216
24217 ;
24218 return 0;
24219 }
24220 _ACEOF
24221 if ac_fn_c_try_compile "$LINENO"
24222 then :
24223
24224 #
24225 # In case we did succeed: Fine, but was this due to the
24226 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
24227 # and if found, reset the hwloc_cv__attribute__var=0
24228 #
24229 hwloc_cv___attribute__may_alias=1
24230
24231 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24232
24233
24234 if test -s conftest.err ; then
24235 for i in ignore skip ; do
24236 $GREP -iq $i conftest.err
24237 if test "$?" = "0" ; then
24238 hwloc_cv___attribute__may_alias=0
24239 break;
24240 fi
24241 done
24242 fi
24243
24244
24245 else case e in #(
24246 e) hwloc_cv___attribute__may_alias=0 ;;
24247 esac
24248 fi
24249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24250
24251 #
24252 # If the attribute is supported by both compilers,
24253 # try to recompile a *cross-check*, IFF defined.
24254 #
24255 if test '(' "$hwloc_cv___attribute__may_alias" = "1" -a "" != "" ')' ; then
24256 ac_c_werror_flag_safe=$ac_c_werror_flag
24257 ac_c_werror_flag="yes"
24258 CFLAGS_safe=$CFLAGS
24259 CFLAGS="$CFLAGS "
24260
24261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24262 /* end confdefs.h. */
24263
24264 int
24265 main (void)
24266 {
24267
24268 int i=4711;
24269 i=usage(&i);
24270
24271 ;
24272 return 0;
24273 }
24274
24275 _ACEOF
24276 if ac_fn_c_try_compile "$LINENO"
24277 then :
24278 hwloc_cv___attribute__may_alias=0
24279 else case e in #(
24280 e)
24281 #
24282 # In case we did NOT succeed: Fine, but was this due to the
24283 # attribute being ignored? Grep for IgNoRe in conftest.err
24284 # and if found, reset the hwloc_cv__attribute__var=0
24285 #
24286 hwloc_cv___attribute__may_alias=1
24287
24288 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24289
24290
24291 if test -s conftest.err ; then
24292 for i in ignore skip ; do
24293 $GREP -iq $i conftest.err
24294 if test "$?" = "0" ; then
24295 hwloc_cv___attribute__may_alias=0
24296 break;
24297 fi
24298 done
24299 fi
24300
24301 ;;
24302 esac
24303 fi
24304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24305
24306 ac_c_werror_flag=$ac_c_werror_flag_safe
24307 CFLAGS=$CFLAGS_safe
24308 fi
24309 ;;
24310 esac
24311 fi
24312
24313
24314 if test "$hwloc_cv___attribute__may_alias" = "1" ; then
24315 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24316 printf '%s\n' "yes" >&6; }
24317 else
24318 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
24319 printf '%s\n' "no" >&6; }
24320 fi
24321
24322
24323
24324
24325 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(no_instrument_function)" >&5
24326 printf %s "checking for __attribute__(no_instrument_function)... " >&6; }
24327 if test ${hwloc_cv___attribute__no_instrument_function+y}
24328 then :
24329 printf %s "(cached) " >&6
24330 else case e in #(
24331 e)
24332 #
24333 # Try to compile using the C compiler
24334 #
24335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24336 /* end confdefs.h. */
24337 int * foo(int arg1) __attribute__ ((__no_instrument_function__));
24338 int
24339 main (void)
24340 {
24341
24342 ;
24343 return 0;
24344 }
24345 _ACEOF
24346 if ac_fn_c_try_compile "$LINENO"
24347 then :
24348
24349 #
24350 # In case we did succeed: Fine, but was this due to the
24351 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
24352 # and if found, reset the hwloc_cv__attribute__var=0
24353 #
24354 hwloc_cv___attribute__no_instrument_function=1
24355
24356 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24357
24358
24359 if test -s conftest.err ; then
24360 for i in ignore skip ; do
24361 $GREP -iq $i conftest.err
24362 if test "$?" = "0" ; then
24363 hwloc_cv___attribute__no_instrument_function=0
24364 break;
24365 fi
24366 done
24367 fi
24368
24369
24370 else case e in #(
24371 e) hwloc_cv___attribute__no_instrument_function=0 ;;
24372 esac
24373 fi
24374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24375
24376 #
24377 # If the attribute is supported by both compilers,
24378 # try to recompile a *cross-check*, IFF defined.
24379 #
24380 if test '(' "$hwloc_cv___attribute__no_instrument_function" = "1" -a "" != "" ')' ; then
24381 ac_c_werror_flag_safe=$ac_c_werror_flag
24382 ac_c_werror_flag="yes"
24383 CFLAGS_safe=$CFLAGS
24384 CFLAGS="$CFLAGS "
24385
24386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24387 /* end confdefs.h. */
24388
24389 int
24390 main (void)
24391 {
24392
24393 int i=4711;
24394 i=usage(&i);
24395
24396 ;
24397 return 0;
24398 }
24399
24400 _ACEOF
24401 if ac_fn_c_try_compile "$LINENO"
24402 then :
24403 hwloc_cv___attribute__no_instrument_function=0
24404 else case e in #(
24405 e)
24406 #
24407 # In case we did NOT succeed: Fine, but was this due to the
24408 # attribute being ignored? Grep for IgNoRe in conftest.err
24409 # and if found, reset the hwloc_cv__attribute__var=0
24410 #
24411 hwloc_cv___attribute__no_instrument_function=1
24412
24413 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24414
24415
24416 if test -s conftest.err ; then
24417 for i in ignore skip ; do
24418 $GREP -iq $i conftest.err
24419 if test "$?" = "0" ; then
24420 hwloc_cv___attribute__no_instrument_function=0
24421 break;
24422 fi
24423 done
24424 fi
24425
24426 ;;
24427 esac
24428 fi
24429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24430
24431 ac_c_werror_flag=$ac_c_werror_flag_safe
24432 CFLAGS=$CFLAGS_safe
24433 fi
24434 ;;
24435 esac
24436 fi
24437
24438
24439 if test "$hwloc_cv___attribute__no_instrument_function" = "1" ; then
24440 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24441 printf '%s\n' "yes" >&6; }
24442 else
24443 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
24444 printf '%s\n' "no" >&6; }
24445 fi
24446
24447
24448
24449 #
24450 # Attribute nonnull:
24451 # Ignored by intel-compiler 9.1.045 -- recognized by cross-check
24452 # Ignored by PGI-6.2.5 (pgCC) -- recognized by cross-check
24453 #
24454 HWLOC_ATTRIBUTE_CFLAGS=
24455 case "$hwloc_c_vendor" in
24456 gnu)
24457 HWLOC_ATTRIBUTE_CFLAGS="-Wall"
24458 ;;
24459 intel)
24460 # we do not want to get ignored attributes warnings, but rather real warnings
24461 HWLOC_ATTRIBUTE_CFLAGS="-wd1292"
24462 ;;
24463 esac
24464
24465 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(nonnull)" >&5
24466 printf %s "checking for __attribute__(nonnull)... " >&6; }
24467 if test ${hwloc_cv___attribute__nonnull+y}
24468 then :
24469 printf %s "(cached) " >&6
24470 else case e in #(
24471 e)
24472 #
24473 # Try to compile using the C compiler
24474 #
24475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24476 /* end confdefs.h. */
24477
24478 int square(int *arg) __attribute__ ((__nonnull__));
24479 int square(int *arg) { return *arg; }
24480
24481 int
24482 main (void)
24483 {
24484
24485 ;
24486 return 0;
24487 }
24488 _ACEOF
24489 if ac_fn_c_try_compile "$LINENO"
24490 then :
24491
24492 #
24493 # In case we did succeed: Fine, but was this due to the
24494 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
24495 # and if found, reset the hwloc_cv__attribute__var=0
24496 #
24497 hwloc_cv___attribute__nonnull=1
24498
24499 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24500
24501
24502 if test -s conftest.err ; then
24503 for i in ignore skip ; do
24504 $GREP -iq $i conftest.err
24505 if test "$?" = "0" ; then
24506 hwloc_cv___attribute__nonnull=0
24507 break;
24508 fi
24509 done
24510 fi
24511
24512
24513 else case e in #(
24514 e) hwloc_cv___attribute__nonnull=0 ;;
24515 esac
24516 fi
24517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24518
24519 #
24520 # If the attribute is supported by both compilers,
24521 # try to recompile a *cross-check*, IFF defined.
24522 #
24523 if test '(' "$hwloc_cv___attribute__nonnull" = "1" -a "
24524 static int usage(int * argument);
24525 int square(int * argument) __attribute__ ((__nonnull__));
24526 int square(int * argument) { return (*argument) * (*argument); }
24527
24528 static int usage(int * argument) {
24529 return square( ((void*)0) ); /* This should produce an argument must be nonnull warning */
24530 }
24531 /* The autoconf-generated main-function is int main(), which produces a warning by itself */
24532 int main(void);
24533 " != "" ')' ; then
24534 ac_c_werror_flag_safe=$ac_c_werror_flag
24535 ac_c_werror_flag="yes"
24536 CFLAGS_safe=$CFLAGS
24537 CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"
24538
24539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24540 /* end confdefs.h. */
24541
24542 static int usage(int * argument);
24543 int square(int * argument) __attribute__ ((__nonnull__));
24544 int square(int * argument) { return (*argument) * (*argument); }
24545
24546 static int usage(int * argument) {
24547 return square( ((void*)0) ); /* This should produce an argument must be nonnull warning */
24548 }
24549 /* The autoconf-generated main-function is int main(), which produces a warning by itself */
24550 int main(void);
24551
24552 int
24553 main (void)
24554 {
24555
24556 int i=4711;
24557 i=usage(&i);
24558
24559 ;
24560 return 0;
24561 }
24562
24563 _ACEOF
24564 if ac_fn_c_try_compile "$LINENO"
24565 then :
24566 hwloc_cv___attribute__nonnull=0
24567 else case e in #(
24568 e)
24569 #
24570 # In case we did NOT succeed: Fine, but was this due to the
24571 # attribute being ignored? Grep for IgNoRe in conftest.err
24572 # and if found, reset the hwloc_cv__attribute__var=0
24573 #
24574 hwloc_cv___attribute__nonnull=1
24575
24576 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24577
24578
24579 if test -s conftest.err ; then
24580 for i in ignore skip ; do
24581 $GREP -iq $i conftest.err
24582 if test "$?" = "0" ; then
24583 hwloc_cv___attribute__nonnull=0
24584 break;
24585 fi
24586 done
24587 fi
24588
24589 ;;
24590 esac
24591 fi
24592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24593
24594 ac_c_werror_flag=$ac_c_werror_flag_safe
24595 CFLAGS=$CFLAGS_safe
24596 fi
24597 ;;
24598 esac
24599 fi
24600
24601
24602 if test "$hwloc_cv___attribute__nonnull" = "1" ; then
24603 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24604 printf '%s\n' "yes" >&6; }
24605 else
24606 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
24607 printf '%s\n' "no" >&6; }
24608 fi
24609
24610
24611
24612
24613 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(noreturn)" >&5
24614 printf %s "checking for __attribute__(noreturn)... " >&6; }
24615 if test ${hwloc_cv___attribute__noreturn+y}
24616 then :
24617 printf %s "(cached) " >&6
24618 else case e in #(
24619 e)
24620 #
24621 # Try to compile using the C compiler
24622 #
24623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24624 /* end confdefs.h. */
24625
24626 #ifdef HAVE_UNISTD_H
24627 # include <unistd.h>
24628 #endif
24629 #ifdef HAVE_STDLIB_H
24630 # include <stdlib.h>
24631 #endif
24632 void fatal(int arg1) __attribute__ ((__noreturn__));
24633 void fatal(int arg1) { exit(arg1); }
24634
24635 int
24636 main (void)
24637 {
24638
24639 ;
24640 return 0;
24641 }
24642 _ACEOF
24643 if ac_fn_c_try_compile "$LINENO"
24644 then :
24645
24646 #
24647 # In case we did succeed: Fine, but was this due to the
24648 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
24649 # and if found, reset the hwloc_cv__attribute__var=0
24650 #
24651 hwloc_cv___attribute__noreturn=1
24652
24653 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24654
24655
24656 if test -s conftest.err ; then
24657 for i in ignore skip ; do
24658 $GREP -iq $i conftest.err
24659 if test "$?" = "0" ; then
24660 hwloc_cv___attribute__noreturn=0
24661 break;
24662 fi
24663 done
24664 fi
24665
24666
24667 else case e in #(
24668 e) hwloc_cv___attribute__noreturn=0 ;;
24669 esac
24670 fi
24671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24672
24673 #
24674 # If the attribute is supported by both compilers,
24675 # try to recompile a *cross-check*, IFF defined.
24676 #
24677 if test '(' "$hwloc_cv___attribute__noreturn" = "1" -a "" != "" ')' ; then
24678 ac_c_werror_flag_safe=$ac_c_werror_flag
24679 ac_c_werror_flag="yes"
24680 CFLAGS_safe=$CFLAGS
24681 CFLAGS="$CFLAGS "
24682
24683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24684 /* end confdefs.h. */
24685
24686 int
24687 main (void)
24688 {
24689
24690 int i=4711;
24691 i=usage(&i);
24692
24693 ;
24694 return 0;
24695 }
24696
24697 _ACEOF
24698 if ac_fn_c_try_compile "$LINENO"
24699 then :
24700 hwloc_cv___attribute__noreturn=0
24701 else case e in #(
24702 e)
24703 #
24704 # In case we did NOT succeed: Fine, but was this due to the
24705 # attribute being ignored? Grep for IgNoRe in conftest.err
24706 # and if found, reset the hwloc_cv__attribute__var=0
24707 #
24708 hwloc_cv___attribute__noreturn=1
24709
24710 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24711
24712
24713 if test -s conftest.err ; then
24714 for i in ignore skip ; do
24715 $GREP -iq $i conftest.err
24716 if test "$?" = "0" ; then
24717 hwloc_cv___attribute__noreturn=0
24718 break;
24719 fi
24720 done
24721 fi
24722
24723 ;;
24724 esac
24725 fi
24726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24727
24728 ac_c_werror_flag=$ac_c_werror_flag_safe
24729 CFLAGS=$CFLAGS_safe
24730 fi
24731 ;;
24732 esac
24733 fi
24734
24735
24736 if test "$hwloc_cv___attribute__noreturn" = "1" ; then
24737 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24738 printf '%s\n' "yes" >&6; }
24739 else
24740 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
24741 printf '%s\n' "no" >&6; }
24742 fi
24743
24744
24745
24746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(packed)" >&5
24747 printf %s "checking for __attribute__(packed)... " >&6; }
24748 if test ${hwloc_cv___attribute__packed+y}
24749 then :
24750 printf %s "(cached) " >&6
24751 else case e in #(
24752 e)
24753 #
24754 # Try to compile using the C compiler
24755 #
24756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757 /* end confdefs.h. */
24758
24759 struct foo {
24760 char a;
24761 int x2 __attribute__ ((__packed__));
24762 };
24763
24764 int
24765 main (void)
24766 {
24767
24768 ;
24769 return 0;
24770 }
24771 _ACEOF
24772 if ac_fn_c_try_compile "$LINENO"
24773 then :
24774
24775 #
24776 # In case we did succeed: Fine, but was this due to the
24777 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
24778 # and if found, reset the hwloc_cv__attribute__var=0
24779 #
24780 hwloc_cv___attribute__packed=1
24781
24782 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24783
24784
24785 if test -s conftest.err ; then
24786 for i in ignore skip ; do
24787 $GREP -iq $i conftest.err
24788 if test "$?" = "0" ; then
24789 hwloc_cv___attribute__packed=0
24790 break;
24791 fi
24792 done
24793 fi
24794
24795
24796 else case e in #(
24797 e) hwloc_cv___attribute__packed=0 ;;
24798 esac
24799 fi
24800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24801
24802 #
24803 # If the attribute is supported by both compilers,
24804 # try to recompile a *cross-check*, IFF defined.
24805 #
24806 if test '(' "$hwloc_cv___attribute__packed" = "1" -a "" != "" ')' ; then
24807 ac_c_werror_flag_safe=$ac_c_werror_flag
24808 ac_c_werror_flag="yes"
24809 CFLAGS_safe=$CFLAGS
24810 CFLAGS="$CFLAGS "
24811
24812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24813 /* end confdefs.h. */
24814
24815 int
24816 main (void)
24817 {
24818
24819 int i=4711;
24820 i=usage(&i);
24821
24822 ;
24823 return 0;
24824 }
24825
24826 _ACEOF
24827 if ac_fn_c_try_compile "$LINENO"
24828 then :
24829 hwloc_cv___attribute__packed=0
24830 else case e in #(
24831 e)
24832 #
24833 # In case we did NOT succeed: Fine, but was this due to the
24834 # attribute being ignored? Grep for IgNoRe in conftest.err
24835 # and if found, reset the hwloc_cv__attribute__var=0
24836 #
24837 hwloc_cv___attribute__packed=1
24838
24839 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24840
24841
24842 if test -s conftest.err ; then
24843 for i in ignore skip ; do
24844 $GREP -iq $i conftest.err
24845 if test "$?" = "0" ; then
24846 hwloc_cv___attribute__packed=0
24847 break;
24848 fi
24849 done
24850 fi
24851
24852 ;;
24853 esac
24854 fi
24855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24856
24857 ac_c_werror_flag=$ac_c_werror_flag_safe
24858 CFLAGS=$CFLAGS_safe
24859 fi
24860 ;;
24861 esac
24862 fi
24863
24864
24865 if test "$hwloc_cv___attribute__packed" = "1" ; then
24866 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24867 printf '%s\n' "yes" >&6; }
24868 else
24869 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
24870 printf '%s\n' "no" >&6; }
24871 fi
24872
24873
24874
24875 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(pure)" >&5
24876 printf %s "checking for __attribute__(pure)... " >&6; }
24877 if test ${hwloc_cv___attribute__pure+y}
24878 then :
24879 printf %s "(cached) " >&6
24880 else case e in #(
24881 e)
24882 #
24883 # Try to compile using the C compiler
24884 #
24885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24886 /* end confdefs.h. */
24887
24888 int square(int arg) __attribute__ ((__pure__));
24889 int square(int arg) { return arg * arg; }
24890
24891 int
24892 main (void)
24893 {
24894
24895 ;
24896 return 0;
24897 }
24898 _ACEOF
24899 if ac_fn_c_try_compile "$LINENO"
24900 then :
24901
24902 #
24903 # In case we did succeed: Fine, but was this due to the
24904 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
24905 # and if found, reset the hwloc_cv__attribute__var=0
24906 #
24907 hwloc_cv___attribute__pure=1
24908
24909 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24910
24911
24912 if test -s conftest.err ; then
24913 for i in ignore skip ; do
24914 $GREP -iq $i conftest.err
24915 if test "$?" = "0" ; then
24916 hwloc_cv___attribute__pure=0
24917 break;
24918 fi
24919 done
24920 fi
24921
24922
24923 else case e in #(
24924 e) hwloc_cv___attribute__pure=0 ;;
24925 esac
24926 fi
24927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24928
24929 #
24930 # If the attribute is supported by both compilers,
24931 # try to recompile a *cross-check*, IFF defined.
24932 #
24933 if test '(' "$hwloc_cv___attribute__pure" = "1" -a "" != "" ')' ; then
24934 ac_c_werror_flag_safe=$ac_c_werror_flag
24935 ac_c_werror_flag="yes"
24936 CFLAGS_safe=$CFLAGS
24937 CFLAGS="$CFLAGS "
24938
24939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24940 /* end confdefs.h. */
24941
24942 int
24943 main (void)
24944 {
24945
24946 int i=4711;
24947 i=usage(&i);
24948
24949 ;
24950 return 0;
24951 }
24952
24953 _ACEOF
24954 if ac_fn_c_try_compile "$LINENO"
24955 then :
24956 hwloc_cv___attribute__pure=0
24957 else case e in #(
24958 e)
24959 #
24960 # In case we did NOT succeed: Fine, but was this due to the
24961 # attribute being ignored? Grep for IgNoRe in conftest.err
24962 # and if found, reset the hwloc_cv__attribute__var=0
24963 #
24964 hwloc_cv___attribute__pure=1
24965
24966 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
24967
24968
24969 if test -s conftest.err ; then
24970 for i in ignore skip ; do
24971 $GREP -iq $i conftest.err
24972 if test "$?" = "0" ; then
24973 hwloc_cv___attribute__pure=0
24974 break;
24975 fi
24976 done
24977 fi
24978
24979 ;;
24980 esac
24981 fi
24982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24983
24984 ac_c_werror_flag=$ac_c_werror_flag_safe
24985 CFLAGS=$CFLAGS_safe
24986 fi
24987 ;;
24988 esac
24989 fi
24990
24991
24992 if test "$hwloc_cv___attribute__pure" = "1" ; then
24993 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24994 printf '%s\n' "yes" >&6; }
24995 else
24996 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
24997 printf '%s\n' "no" >&6; }
24998 fi
24999
25000
25001 #
25002 # Attribute sentinel:
25003 # Ignored by the intel-9.1.045 -- recognized by cross-check
25004 # intel-10.0beta works fine
25005 # Ignored by PGI-6.2.5 (pgCC) -- recognized by output-parser and cross-check
25006 # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore)
25007 #
25008 HWLOC_ATTRIBUTE_CFLAGS=
25009 case "$hwloc_c_vendor" in
25010 gnu)
25011 HWLOC_ATTRIBUTE_CFLAGS="-Wall"
25012 ;;
25013 intel)
25014 # we do not want to get ignored attributes warnings
25015 HWLOC_ATTRIBUTE_CFLAGS="-wd1292"
25016 ;;
25017 esac
25018
25019 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(sentinel)" >&5
25020 printf %s "checking for __attribute__(sentinel)... " >&6; }
25021 if test ${hwloc_cv___attribute__sentinel+y}
25022 then :
25023 printf %s "(cached) " >&6
25024 else case e in #(
25025 e)
25026 #
25027 # Try to compile using the C compiler
25028 #
25029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25030 /* end confdefs.h. */
25031
25032 int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));
25033
25034 int
25035 main (void)
25036 {
25037
25038 ;
25039 return 0;
25040 }
25041 _ACEOF
25042 if ac_fn_c_try_compile "$LINENO"
25043 then :
25044
25045 #
25046 # In case we did succeed: Fine, but was this due to the
25047 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
25048 # and if found, reset the hwloc_cv__attribute__var=0
25049 #
25050 hwloc_cv___attribute__sentinel=1
25051
25052 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
25053
25054
25055 if test -s conftest.err ; then
25056 for i in ignore skip ; do
25057 $GREP -iq $i conftest.err
25058 if test "$?" = "0" ; then
25059 hwloc_cv___attribute__sentinel=0
25060 break;
25061 fi
25062 done
25063 fi
25064
25065
25066 else case e in #(
25067 e) hwloc_cv___attribute__sentinel=0 ;;
25068 esac
25069 fi
25070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25071
25072 #
25073 # If the attribute is supported by both compilers,
25074 # try to recompile a *cross-check*, IFF defined.
25075 #
25076 if test '(' "$hwloc_cv___attribute__sentinel" = "1" -a "
25077 static int usage(int * argument);
25078 int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));
25079
25080 static int usage(int * argument) {
25081 void * last_arg_should_be_null = argument;
25082 return my_execlp ("lala", "/home/there", last_arg_should_be_null); /* This should produce a warning */
25083 }
25084 /* The autoconf-generated main-function is int main(), which produces a warning by itself */
25085 int main(void);
25086 " != "" ')' ; then
25087 ac_c_werror_flag_safe=$ac_c_werror_flag
25088 ac_c_werror_flag="yes"
25089 CFLAGS_safe=$CFLAGS
25090 CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"
25091
25092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25093 /* end confdefs.h. */
25094
25095 static int usage(int * argument);
25096 int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));
25097
25098 static int usage(int * argument) {
25099 void * last_arg_should_be_null = argument;
25100 return my_execlp ("lala", "/home/there", last_arg_should_be_null); /* This should produce a warning */
25101 }
25102 /* The autoconf-generated main-function is int main(), which produces a warning by itself */
25103 int main(void);
25104
25105 int
25106 main (void)
25107 {
25108
25109 int i=4711;
25110 i=usage(&i);
25111
25112 ;
25113 return 0;
25114 }
25115
25116 _ACEOF
25117 if ac_fn_c_try_compile "$LINENO"
25118 then :
25119 hwloc_cv___attribute__sentinel=0
25120 else case e in #(
25121 e)
25122 #
25123 # In case we did NOT succeed: Fine, but was this due to the
25124 # attribute being ignored? Grep for IgNoRe in conftest.err
25125 # and if found, reset the hwloc_cv__attribute__var=0
25126 #
25127 hwloc_cv___attribute__sentinel=1
25128
25129 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
25130
25131
25132 if test -s conftest.err ; then
25133 for i in ignore skip ; do
25134 $GREP -iq $i conftest.err
25135 if test "$?" = "0" ; then
25136 hwloc_cv___attribute__sentinel=0
25137 break;
25138 fi
25139 done
25140 fi
25141
25142 ;;
25143 esac
25144 fi
25145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25146
25147 ac_c_werror_flag=$ac_c_werror_flag_safe
25148 CFLAGS=$CFLAGS_safe
25149 fi
25150 ;;
25151 esac
25152 fi
25153
25154
25155 if test "$hwloc_cv___attribute__sentinel" = "1" ; then
25156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25157 printf '%s\n' "yes" >&6; }
25158 else
25159 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
25160 printf '%s\n' "no" >&6; }
25161 fi
25162
25163
25164
25165 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(unused)" >&5
25166 printf %s "checking for __attribute__(unused)... " >&6; }
25167 if test ${hwloc_cv___attribute__unused+y}
25168 then :
25169 printf %s "(cached) " >&6
25170 else case e in #(
25171 e)
25172 #
25173 # Try to compile using the C compiler
25174 #
25175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25176 /* end confdefs.h. */
25177
25178 int square(int arg1 __attribute__ ((__unused__)), int arg2);
25179 int square(int arg1, int arg2) { return arg2; }
25180
25181 int
25182 main (void)
25183 {
25184
25185 ;
25186 return 0;
25187 }
25188 _ACEOF
25189 if ac_fn_c_try_compile "$LINENO"
25190 then :
25191
25192 #
25193 # In case we did succeed: Fine, but was this due to the
25194 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
25195 # and if found, reset the hwloc_cv__attribute__var=0
25196 #
25197 hwloc_cv___attribute__unused=1
25198
25199 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
25200
25201
25202 if test -s conftest.err ; then
25203 for i in ignore skip ; do
25204 $GREP -iq $i conftest.err
25205 if test "$?" = "0" ; then
25206 hwloc_cv___attribute__unused=0
25207 break;
25208 fi
25209 done
25210 fi
25211
25212
25213 else case e in #(
25214 e) hwloc_cv___attribute__unused=0 ;;
25215 esac
25216 fi
25217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25218
25219 #
25220 # If the attribute is supported by both compilers,
25221 # try to recompile a *cross-check*, IFF defined.
25222 #
25223 if test '(' "$hwloc_cv___attribute__unused" = "1" -a "" != "" ')' ; then
25224 ac_c_werror_flag_safe=$ac_c_werror_flag
25225 ac_c_werror_flag="yes"
25226 CFLAGS_safe=$CFLAGS
25227 CFLAGS="$CFLAGS "
25228
25229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25230 /* end confdefs.h. */
25231
25232 int
25233 main (void)
25234 {
25235
25236 int i=4711;
25237 i=usage(&i);
25238
25239 ;
25240 return 0;
25241 }
25242
25243 _ACEOF
25244 if ac_fn_c_try_compile "$LINENO"
25245 then :
25246 hwloc_cv___attribute__unused=0
25247 else case e in #(
25248 e)
25249 #
25250 # In case we did NOT succeed: Fine, but was this due to the
25251 # attribute being ignored? Grep for IgNoRe in conftest.err
25252 # and if found, reset the hwloc_cv__attribute__var=0
25253 #
25254 hwloc_cv___attribute__unused=1
25255
25256 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
25257
25258
25259 if test -s conftest.err ; then
25260 for i in ignore skip ; do
25261 $GREP -iq $i conftest.err
25262 if test "$?" = "0" ; then
25263 hwloc_cv___attribute__unused=0
25264 break;
25265 fi
25266 done
25267 fi
25268
25269 ;;
25270 esac
25271 fi
25272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25273
25274 ac_c_werror_flag=$ac_c_werror_flag_safe
25275 CFLAGS=$CFLAGS_safe
25276 fi
25277 ;;
25278 esac
25279 fi
25280
25281
25282 if test "$hwloc_cv___attribute__unused" = "1" ; then
25283 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25284 printf '%s\n' "yes" >&6; }
25285 else
25286 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
25287 printf '%s\n' "no" >&6; }
25288 fi
25289
25290
25291
25292 #
25293 # Attribute warn_unused_result:
25294 # Ignored by the intel-compiler 9.1.045 -- recognized by cross-check
25295 # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore)
25296 #
25297 HWLOC_ATTRIBUTE_CFLAGS=
25298 case "$hwloc_c_vendor" in
25299 gnu)
25300 HWLOC_ATTRIBUTE_CFLAGS="-Wall"
25301 ;;
25302 intel)
25303 # we do not want to get ignored attributes warnings
25304 HWLOC_ATTRIBUTE_CFLAGS="-wd1292"
25305 ;;
25306 esac
25307
25308 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(warn_unused_result)" >&5
25309 printf %s "checking for __attribute__(warn_unused_result)... " >&6; }
25310 if test ${hwloc_cv___attribute__warn_unused_result+y}
25311 then :
25312 printf %s "(cached) " >&6
25313 else case e in #(
25314 e)
25315 #
25316 # Try to compile using the C compiler
25317 #
25318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25319 /* end confdefs.h. */
25320
25321 int foo(int arg) __attribute__ ((__warn_unused_result__));
25322 int foo(int arg) { return arg + 3; }
25323
25324 int
25325 main (void)
25326 {
25327
25328 ;
25329 return 0;
25330 }
25331 _ACEOF
25332 if ac_fn_c_try_compile "$LINENO"
25333 then :
25334
25335 #
25336 # In case we did succeed: Fine, but was this due to the
25337 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
25338 # and if found, reset the hwloc_cv__attribute__var=0
25339 #
25340 hwloc_cv___attribute__warn_unused_result=1
25341
25342 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
25343
25344
25345 if test -s conftest.err ; then
25346 for i in ignore skip ; do
25347 $GREP -iq $i conftest.err
25348 if test "$?" = "0" ; then
25349 hwloc_cv___attribute__warn_unused_result=0
25350 break;
25351 fi
25352 done
25353 fi
25354
25355
25356 else case e in #(
25357 e) hwloc_cv___attribute__warn_unused_result=0 ;;
25358 esac
25359 fi
25360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25361
25362 #
25363 # If the attribute is supported by both compilers,
25364 # try to recompile a *cross-check*, IFF defined.
25365 #
25366 if test '(' "$hwloc_cv___attribute__warn_unused_result" = "1" -a "
25367 static int usage(int * argument);
25368 int foo(int arg) __attribute__ ((__warn_unused_result__));
25369
25370 int foo(int arg) { return arg + 3; }
25371 static int usage(int * argument) {
25372 foo (*argument); /* Should produce an unused result warning */
25373 return 0;
25374 }
25375
25376 /* The autoconf-generated main-function is int main(), which produces a warning by itself */
25377 int main(void);
25378 " != "" ')' ; then
25379 ac_c_werror_flag_safe=$ac_c_werror_flag
25380 ac_c_werror_flag="yes"
25381 CFLAGS_safe=$CFLAGS
25382 CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"
25383
25384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25385 /* end confdefs.h. */
25386
25387 static int usage(int * argument);
25388 int foo(int arg) __attribute__ ((__warn_unused_result__));
25389
25390 int foo(int arg) { return arg + 3; }
25391 static int usage(int * argument) {
25392 foo (*argument); /* Should produce an unused result warning */
25393 return 0;
25394 }
25395
25396 /* The autoconf-generated main-function is int main(), which produces a warning by itself */
25397 int main(void);
25398
25399 int
25400 main (void)
25401 {
25402
25403 int i=4711;
25404 i=usage(&i);
25405
25406 ;
25407 return 0;
25408 }
25409
25410 _ACEOF
25411 if ac_fn_c_try_compile "$LINENO"
25412 then :
25413 hwloc_cv___attribute__warn_unused_result=0
25414 else case e in #(
25415 e)
25416 #
25417 # In case we did NOT succeed: Fine, but was this due to the
25418 # attribute being ignored? Grep for IgNoRe in conftest.err
25419 # and if found, reset the hwloc_cv__attribute__var=0
25420 #
25421 hwloc_cv___attribute__warn_unused_result=1
25422
25423 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
25424
25425
25426 if test -s conftest.err ; then
25427 for i in ignore skip ; do
25428 $GREP -iq $i conftest.err
25429 if test "$?" = "0" ; then
25430 hwloc_cv___attribute__warn_unused_result=0
25431 break;
25432 fi
25433 done
25434 fi
25435
25436 ;;
25437 esac
25438 fi
25439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25440
25441 ac_c_werror_flag=$ac_c_werror_flag_safe
25442 CFLAGS=$CFLAGS_safe
25443 fi
25444 ;;
25445 esac
25446 fi
25447
25448
25449 if test "$hwloc_cv___attribute__warn_unused_result" = "1" ; then
25450 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25451 printf '%s\n' "yes" >&6; }
25452 else
25453 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
25454 printf '%s\n' "no" >&6; }
25455 fi
25456
25457
25458
25459
25460 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __attribute__(weak_alias)" >&5
25461 printf %s "checking for __attribute__(weak_alias)... " >&6; }
25462 if test ${hwloc_cv___attribute__weak_alias+y}
25463 then :
25464 printf %s "(cached) " >&6
25465 else case e in #(
25466 e)
25467 #
25468 # Try to compile using the C compiler
25469 #
25470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25471 /* end confdefs.h. */
25472
25473 int foo(int arg);
25474 int foo(int arg) { return arg + 3; }
25475 int foo2(int arg) __attribute__ ((__weak__, __alias__("foo")));
25476
25477 int
25478 main (void)
25479 {
25480
25481 ;
25482 return 0;
25483 }
25484 _ACEOF
25485 if ac_fn_c_try_compile "$LINENO"
25486 then :
25487
25488 #
25489 # In case we did succeed: Fine, but was this due to the
25490 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
25491 # and if found, reset the hwloc_cv__attribute__var=0
25492 #
25493 hwloc_cv___attribute__weak_alias=1
25494
25495 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
25496
25497
25498 if test -s conftest.err ; then
25499 for i in ignore skip ; do
25500 $GREP -iq $i conftest.err
25501 if test "$?" = "0" ; then
25502 hwloc_cv___attribute__weak_alias=0
25503 break;
25504 fi
25505 done
25506 fi
25507
25508
25509 else case e in #(
25510 e) hwloc_cv___attribute__weak_alias=0 ;;
25511 esac
25512 fi
25513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25514
25515 #
25516 # If the attribute is supported by both compilers,
25517 # try to recompile a *cross-check*, IFF defined.
25518 #
25519 if test '(' "$hwloc_cv___attribute__weak_alias" = "1" -a "" != "" ')' ; then
25520 ac_c_werror_flag_safe=$ac_c_werror_flag
25521 ac_c_werror_flag="yes"
25522 CFLAGS_safe=$CFLAGS
25523 CFLAGS="$CFLAGS "
25524
25525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25526 /* end confdefs.h. */
25527
25528 int
25529 main (void)
25530 {
25531
25532 int i=4711;
25533 i=usage(&i);
25534
25535 ;
25536 return 0;
25537 }
25538
25539 _ACEOF
25540 if ac_fn_c_try_compile "$LINENO"
25541 then :
25542 hwloc_cv___attribute__weak_alias=0
25543 else case e in #(
25544 e)
25545 #
25546 # In case we did NOT succeed: Fine, but was this due to the
25547 # attribute being ignored? Grep for IgNoRe in conftest.err
25548 # and if found, reset the hwloc_cv__attribute__var=0
25549 #
25550 hwloc_cv___attribute__weak_alias=1
25551
25552 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
25553
25554
25555 if test -s conftest.err ; then
25556 for i in ignore skip ; do
25557 $GREP -iq $i conftest.err
25558 if test "$?" = "0" ; then
25559 hwloc_cv___attribute__weak_alias=0
25560 break;
25561 fi
25562 done
25563 fi
25564
25565 ;;
25566 esac
25567 fi
25568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25569
25570 ac_c_werror_flag=$ac_c_werror_flag_safe
25571 CFLAGS=$CFLAGS_safe
25572 fi
25573 ;;
25574 esac
25575 fi
25576
25577
25578 if test "$hwloc_cv___attribute__weak_alias" = "1" ; then
25579 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25580 printf '%s\n' "yes" >&6; }
25581 else
25582 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
25583 printf '%s\n' "no" >&6; }
25584 fi
25585
25586
25587 fi
25588
25589 # Now that all the values are set, define them
25590
25591
25592 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_ALIGNED $hwloc_cv___attribute__aligned" >>confdefs.h
25593
25594
25595 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_ALWAYS_INLINE $hwloc_cv___attribute__always_inline" >>confdefs.h
25596
25597
25598 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_COLD $hwloc_cv___attribute__cold" >>confdefs.h
25599
25600
25601 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_CONST $hwloc_cv___attribute__const" >>confdefs.h
25602
25603
25604 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_DEPRECATED $hwloc_cv___attribute__deprecated" >>confdefs.h
25605
25606
25607 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_CONSTRUCTOR $hwloc_cv___attribute__constructor" >>confdefs.h
25608
25609
25610 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_FORMAT $hwloc_cv___attribute__format" >>confdefs.h
25611
25612
25613 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_HOT $hwloc_cv___attribute__hot" >>confdefs.h
25614
25615
25616 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_MALLOC $hwloc_cv___attribute__malloc" >>confdefs.h
25617
25618
25619 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS $hwloc_cv___attribute__may_alias" >>confdefs.h
25620
25621
25622 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION $hwloc_cv___attribute__no_instrument_function" >>confdefs.h
25623
25624
25625 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_NONNULL $hwloc_cv___attribute__nonnull" >>confdefs.h
25626
25627
25628 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_NORETURN $hwloc_cv___attribute__noreturn" >>confdefs.h
25629
25630
25631 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_PACKED $hwloc_cv___attribute__packed" >>confdefs.h
25632
25633
25634 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_PURE $hwloc_cv___attribute__pure" >>confdefs.h
25635
25636
25637 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_SENTINEL $hwloc_cv___attribute__sentinel" >>confdefs.h
25638
25639
25640 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_UNUSED $hwloc_cv___attribute__unused" >>confdefs.h
25641
25642
25643 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT $hwloc_cv___attribute__warn_unused_result" >>confdefs.h
25644
25645
25646 printf '%s\n' "#define HWLOC_HAVE_ATTRIBUTE_WEAK_ALIAS $hwloc_cv___attribute__weak_alias" >>confdefs.h
25647
25648
25649
25650 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
25651
25652
25653 # Check if the compiler has support for visibility, like some
25654 # versions of gcc, icc, Sun Studio cc.
25655 # Check whether --enable-visibility was given.
25656 if test ${enable_visibility+y}
25657 then :
25658 enableval=$enable_visibility;
25659 fi
25660
25661
25662 case ${target} in
25663 *-*-aix*|*-*-mingw*|*-*-cygwin*|*-*-hpux*)
25664 enable_visibility=no
25665 ;;
25666 esac
25667
25668 hwloc_visibility_define=0
25669 hwloc_msg="whether to enable symbol visibility"
25670 if test "$enable_visibility" = "no"; then
25671 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5
25672 printf %s "checking $hwloc_msg... " >&6; }
25673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no (disabled)" >&5
25674 printf '%s\n' "no (disabled)" >&6; }
25675 else
25676 CFLAGS_orig=$CFLAGS
25677
25678 hwloc_add=
25679 case "$hwloc_c_vendor" in
25680 sun)
25681 # Check using Sun Studio -xldscope=hidden flag
25682 hwloc_add=-xldscope=hidden
25683 CFLAGS="$CFLAGS_orig $hwloc_add -errwarn=%all"
25684 ;;
25685
25686 *)
25687 # Check using -fvisibility=hidden
25688 hwloc_add=-fvisibility=hidden
25689 CFLAGS="$CFLAGS_orig $hwloc_add -Werror"
25690 ;;
25691 esac
25692
25693 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports $hwloc_add" >&5
25694 printf %s "checking if $CC supports $hwloc_add... " >&6; }
25695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25696 /* end confdefs.h. */
25697
25698 #include <stdio.h>
25699 __attribute__((visibility("default"))) int foo;
25700
25701 int
25702 main (void)
25703 {
25704 fprintf(stderr, "Hello, world\n");
25705 ;
25706 return 0;
25707 }
25708 _ACEOF
25709 if ac_fn_c_try_link "$LINENO"
25710 then :
25711 if test -s conftest.err
25712 then :
25713 $GREP -iq visibility conftest.err
25714 # If we find "visibility" in the stderr, then
25715 # assume it doesn't work
25716 if test "$?" = "0"
25717 then :
25718 hwloc_add=
25719 fi
25720 fi
25721
25722 else case e in #(
25723 e) hwloc_add= ;;
25724 esac
25725 fi
25726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25727 conftest$ac_exeext conftest.$ac_ext
25728 if test "$hwloc_add" = ""
25729 then :
25730 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
25731 printf '%s\n' "no" >&6; }
25732 else case e in #(
25733 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25734 printf '%s\n' "yes" >&6; } ;;
25735 esac
25736 fi
25737
25738 CFLAGS=$CFLAGS_orig
25739 HWLOC_VISIBILITY_CFLAGS=$hwloc_add
25740
25741 if test "$hwloc_add" != "" ; then
25742 hwloc_visibility_define=1
25743 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5
25744 printf %s "checking $hwloc_msg... " >&6; }
25745 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes (via $hwloc_add)" >&5
25746 printf '%s\n' "yes (via $hwloc_add)" >&6; }
25747 elif test "$enable_visibility" = "yes"; then
25748 as_fn_error $? "Symbol visibility support requested but compiler does not seem to support it. Aborting" "$LINENO" 5
25749 else
25750 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5
25751 printf %s "checking $hwloc_msg... " >&6; }
25752 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no (unsupported)" >&5
25753 printf '%s\n' "no (unsupported)" >&6; }
25754 fi
25755 unset hwloc_add
25756 fi
25757
25758
25759 printf '%s\n' "#define HWLOC_C_HAVE_VISIBILITY $hwloc_visibility_define" >>confdefs.h
25760
25761
25762 HWLOC_CFLAGS="$HWLOC_FLAGS $HWLOC_VISIBILITY_CFLAGS"
25763 if test "$HWLOC_VISIBILITY_CFLAGS" != ""
25764 then :
25765 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: \"$HWLOC_VISIBILITY_CFLAGS\" has been added to the hwloc CFLAGS" >&5
25766 printf '%s\n' "$as_me: WARNING: \"$HWLOC_VISIBILITY_CFLAGS\" has been added to the hwloc CFLAGS" >&2;}
25767 fi
25768
25769 # Make sure the compiler returns an error code when function arg
25770 # count is wrong, otherwise sched_setaffinity checks may fail.
25771 HWLOC_STRICT_ARGS_CFLAGS=
25772 hwloc_args_check=0
25773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler rejects function calls with too many arguments" >&5
25774 printf %s "checking whether the C compiler rejects function calls with too many arguments... " >&6; }
25775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25776 /* end confdefs.h. */
25777
25778 extern int one_arg(int x);
25779 int foo(void) { return one_arg(1, 2); }
25780
25781 int
25782 main (void)
25783 {
25784
25785 ;
25786 return 0;
25787 }
25788 _ACEOF
25789 if ac_fn_c_try_compile "$LINENO"
25790 then :
25791 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
25792 printf '%s\n' "no" >&6; }
25793 else case e in #(
25794 e) hwloc_args_check=1
25795 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25796 printf '%s\n' "yes" >&6; } ;;
25797 esac
25798 fi
25799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler rejects function calls with too few arguments" >&5
25801 printf %s "checking whether the C compiler rejects function calls with too few arguments... " >&6; }
25802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25803 /* end confdefs.h. */
25804
25805 extern int two_arg(int x, int y);
25806 int foo(void) { return two_arg(3); }
25807
25808 int
25809 main (void)
25810 {
25811
25812 ;
25813 return 0;
25814 }
25815 _ACEOF
25816 if ac_fn_c_try_compile "$LINENO"
25817 then :
25818 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
25819 printf '%s\n' "no" >&6; }
25820 else case e in #(
25821 e) hwloc_args_check=`expr $hwloc_args_check + 1`
25822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25823 printf '%s\n' "yes" >&6; } ;;
25824 esac
25825 fi
25826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25827 if test "$hwloc_args_check" != "2"
25828 then :
25829
25830 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Your C compiler does not consider incorrect argument counts to be a fatal error." >&5
25831 printf '%s\n' "$as_me: WARNING: Your C compiler does not consider incorrect argument counts to be a fatal error." >&2;}
25832 case "$hwloc_c_vendor" in
25833 ibm)
25834 HWLOC_STRICT_ARGS_CFLAGS="-qhalt=e"
25835 ;;
25836 intel)
25837 HWLOC_STRICT_ARGS_CFLAGS="-we140"
25838 ;;
25839 *)
25840 HWLOC_STRICT_ARGS_CFLAGS=FAIL
25841 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Please report this warning and configure using a different C compiler if possible." >&5
25842 printf '%s\n' "$as_me: WARNING: Please report this warning and configure using a different C compiler if possible." >&2;}
25843 ;;
25844 esac
25845 if test "$HWLOC_STRICT_ARGS_CFLAGS" != "FAIL"
25846 then :
25847
25848 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Configure will append '$HWLOC_STRICT_ARGS_CFLAGS' to the value of CFLAGS when needed." >&5
25849 printf '%s\n' "$as_me: WARNING: Configure will append '$HWLOC_STRICT_ARGS_CFLAGS' to the value of CFLAGS when needed." >&2;}
25850 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Alternatively you may configure with a different compiler." >&5
25851 printf '%s\n' "$as_me: WARNING: Alternatively you may configure with a different compiler." >&2;}
25852
25853 fi
25854
25855 fi
25856
25857 if test "$hwloc_mode" = "standalone"
25858 then :
25859
25860 # For the common developer case, if we're in a developer checkout and
25861 # using the GNU compilers, turn on maximum warnings unless
25862 # specifically disabled by the user.
25863 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to enable \"picky\" compiler mode" >&5
25864 printf %s "checking whether to enable \"picky\" compiler mode... " >&6; }
25865 hwloc_want_picky=0
25866 if test "$hwloc_c_vendor" = "gnu"
25867 then :
25868 if test -e "$srcdir/.git"
25869 then :
25870 hwloc_want_picky=1
25871 fi
25872 fi
25873 if test "$enable_picky" = "yes"; then
25874 if test "$hwloc_c_vendor" = "gnu"; then
25875 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25876 printf '%s\n' "yes" >&6; }
25877 hwloc_want_picky=1
25878 else
25879 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
25880 printf '%s\n' "no" >&6; }
25881 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Warning: --enable-picky used, but is currently only defined for the GCC compiler set -- automatically disabled" >&5
25882 printf '%s\n' "$as_me: WARNING: Warning: --enable-picky used, but is currently only defined for the GCC compiler set -- automatically disabled" >&2;}
25883 hwloc_want_picky=0
25884 fi
25885 elif test "$enable_picky" = "no"; then
25886 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
25887 printf '%s\n' "no" >&6; }
25888 hwloc_want_picky=0
25889 else
25890 if test "$hwloc_want_picky" = 1; then
25891 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
25892 printf '%s\n' "yes (default)" >&6; }
25893 else
25894 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
25895 printf '%s\n' "no (default)" >&6; }
25896 fi
25897 fi
25898 if test "$hwloc_want_picky" = 1; then
25899 add="-Wall -Wextra -Wunused-parameter -Wundef -Wno-long-long -Wsign-compare"
25900 add="$add -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes"
25901 add="$add -Wcomment -pedantic -Wshadow -Wwrite-strings -Wnested-externs"
25902 add="$add -Wpointer-arith -Wbad-function-cast -Wold-style-definition"
25903 add="$add -Werror-implicit-function-declaration"
25904
25905
25906 tmp_save_CFLAGS="$CFLAGS"
25907 CFLAGS="-Wdiscarded-qualifiers -Werror"
25908 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdiscarded-qualifiers" >&5
25909 printf %s "checking if gcc supports -Wdiscarded-qualifiers... " >&6; }
25910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25911 /* end confdefs.h. */
25912 int i;
25913 int
25914 main (void)
25915 {
25916
25917 ;
25918 return 0;
25919 }
25920 _ACEOF
25921 if ac_fn_c_try_compile "$LINENO"
25922 then :
25923 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25924 printf '%s\n' "yes" >&6; }
25925 add="$add -Wdiscarded-qualifiers"
25926
25927 else case e in #(
25928 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
25929 printf '%s\n' "no" >&6; } ;;
25930 esac
25931 fi
25932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25933 CFLAGS="$tmp_save_CFLAGS"
25934
25935
25936 tmp_save_CFLAGS="$CFLAGS"
25937 CFLAGS="-Wvariadic-macros -Werror"
25938 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvariadic-macros" >&5
25939 printf %s "checking if gcc supports -Wvariadic-macros... " >&6; }
25940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25941 /* end confdefs.h. */
25942 int i;
25943 int
25944 main (void)
25945 {
25946
25947 ;
25948 return 0;
25949 }
25950 _ACEOF
25951 if ac_fn_c_try_compile "$LINENO"
25952 then :
25953 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25954 printf '%s\n' "yes" >&6; }
25955 add="$add -Wvariadic-macros"
25956
25957 else case e in #(
25958 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
25959 printf '%s\n' "no" >&6; } ;;
25960 esac
25961 fi
25962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25963 CFLAGS="$tmp_save_CFLAGS"
25964
25965
25966 tmp_save_CFLAGS="$CFLAGS"
25967 CFLAGS="-Wtype-limits -Werror"
25968 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wtype-limits" >&5
25969 printf %s "checking if gcc supports -Wtype-limits... " >&6; }
25970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25971 /* end confdefs.h. */
25972 int i;
25973 int
25974 main (void)
25975 {
25976
25977 ;
25978 return 0;
25979 }
25980 _ACEOF
25981 if ac_fn_c_try_compile "$LINENO"
25982 then :
25983 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25984 printf '%s\n' "yes" >&6; }
25985 add="$add -Wtype-limits"
25986
25987 else case e in #(
25988 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
25989 printf '%s\n' "no" >&6; } ;;
25990 esac
25991 fi
25992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25993 CFLAGS="$tmp_save_CFLAGS"
25994
25995
25996 tmp_save_CFLAGS="$CFLAGS"
25997 CFLAGS="-Wstack-usage=262144 -Werror"
25998 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wstack-usage=262144" >&5
25999 printf %s "checking if gcc supports -Wstack-usage=262144... " >&6; }
26000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26001 /* end confdefs.h. */
26002 int i;
26003 int
26004 main (void)
26005 {
26006
26007 ;
26008 return 0;
26009 }
26010 _ACEOF
26011 if ac_fn_c_try_compile "$LINENO"
26012 then :
26013 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26014 printf '%s\n' "yes" >&6; }
26015 add="$add -Wstack-usage=262144"
26016
26017 else case e in #(
26018 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
26019 printf '%s\n' "no" >&6; } ;;
26020 esac
26021 fi
26022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26023 CFLAGS="$tmp_save_CFLAGS"
26024
26025
26026 # -Wextra enables some -Wfoo that we want to disable it at some place
26027
26028 tmp_save_CFLAGS="$CFLAGS"
26029 CFLAGS="-Wmissing-field-initializers -Werror"
26030 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wmissing-field-initializers" >&5
26031 printf %s "checking if gcc supports -Wmissing-field-initializers... " >&6; }
26032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26033 /* end confdefs.h. */
26034 int i;
26035 int
26036 main (void)
26037 {
26038
26039 ;
26040 return 0;
26041 }
26042 _ACEOF
26043 if ac_fn_c_try_compile "$LINENO"
26044 then :
26045 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26046 printf '%s\n' "yes" >&6; }
26047 add="$add -Wmissing-field-initializers"
26048
26049 printf '%s\n' "#define HWLOC_HAVE_GCC_W_MISSING_FIELD_INITIALIZERS 1" >>confdefs.h
26050
26051 else case e in #(
26052 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
26053 printf '%s\n' "no" >&6; } ;;
26054 esac
26055 fi
26056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26057 CFLAGS="$tmp_save_CFLAGS"
26058
26059
26060 tmp_save_CFLAGS="$CFLAGS"
26061 CFLAGS="-Wcast-function-type -Werror"
26062 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wcast-function-type" >&5
26063 printf %s "checking if gcc supports -Wcast-function-type... " >&6; }
26064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26065 /* end confdefs.h. */
26066 int i;
26067 int
26068 main (void)
26069 {
26070
26071 ;
26072 return 0;
26073 }
26074 _ACEOF
26075 if ac_fn_c_try_compile "$LINENO"
26076 then :
26077 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26078 printf '%s\n' "yes" >&6; }
26079 add="$add -Wcast-function-type"
26080
26081 printf '%s\n' "#define HWLOC_HAVE_GCC_W_CAST_FUNCTION_TYPE 1" >>confdefs.h
26082
26083 else case e in #(
26084 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
26085 printf '%s\n' "no" >&6; } ;;
26086 esac
26087 fi
26088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26089 CFLAGS="$tmp_save_CFLAGS"
26090
26091
26092 HWLOC_CFLAGS="$HWLOC_CFLAGS $add"
26093 fi
26094
26095 fi
26096
26097 #
26098 # Now detect support
26099 #
26100
26101 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
26102 if test "x$ac_cv_header_unistd_h" = xyes
26103 then :
26104 printf '%s\n' "#define HAVE_UNISTD_H 1" >>confdefs.h
26105
26106 fi
26107
26108 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
26109 if test "x$ac_cv_header_dirent_h" = xyes
26110 then :
26111 printf '%s\n' "#define HAVE_DIRENT_H 1" >>confdefs.h
26112
26113 fi
26114
26115 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
26116 if test "x$ac_cv_header_strings_h" = xyes
26117 then :
26118 printf '%s\n' "#define HAVE_STRINGS_H 1" >>confdefs.h
26119
26120 fi
26121
26122 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
26123 if test "x$ac_cv_header_ctype_h" = xyes
26124 then :
26125 printf '%s\n' "#define HAVE_CTYPE_H 1" >>confdefs.h
26126
26127 fi
26128
26129 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
26130 if test "x$ac_cv_header_sys_wait_h" = xyes
26131 then :
26132 printf '%s\n' "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26133
26134 fi
26135
26136
26137
26138 for ac_func in strcasecmp
26139 do :
26140 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
26141 if test "x$ac_cv_func_strcasecmp" = xyes
26142 then :
26143 printf '%s\n' "#define HAVE_STRCASECMP 1" >>confdefs.h
26144
26145
26146 ac_fn_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
26147 if test "x$ac_cv_have_decl_strcasecmp" = xyes
26148 then :
26149
26150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether function strcasecmp has a complete prototype" >&5
26151 printf %s "checking whether function strcasecmp has a complete prototype... " >&6; }
26152
26153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26154 /* end confdefs.h. */
26155 $ac_includes_default
26156 int
26157 main (void)
26158 {
26159 strcasecmp(1,2,3,4,5,6,7,8,9,10);
26160
26161 ;
26162 return 0;
26163 }
26164 _ACEOF
26165 if ac_fn_c_try_compile "$LINENO"
26166 then :
26167 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
26168 printf '%s\n' "no" >&6; }
26169
26170 else case e in #(
26171 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26172 printf '%s\n' "yes" >&6; }
26173
26174
26175 printf '%s\n' "#define HWLOC_HAVE_DECL_STRCASECMP 1" >>confdefs.h
26176
26177
26178 ;;
26179 esac
26180 fi
26181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26182 fi
26183
26184
26185 fi
26186
26187 done
26188
26189 for ac_func in strncasecmp
26190 do :
26191 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
26192 if test "x$ac_cv_func_strncasecmp" = xyes
26193 then :
26194 printf '%s\n' "#define HAVE_STRNCASECMP 1" >>confdefs.h
26195
26196
26197 ac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
26198 if test "x$ac_cv_have_decl_strncasecmp" = xyes
26199 then :
26200
26201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether function strncasecmp has a complete prototype" >&5
26202 printf %s "checking whether function strncasecmp has a complete prototype... " >&6; }
26203
26204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26205 /* end confdefs.h. */
26206 $ac_includes_default
26207 int
26208 main (void)
26209 {
26210 strncasecmp(1,2,3,4,5,6,7,8,9,10);
26211
26212 ;
26213 return 0;
26214 }
26215 _ACEOF
26216 if ac_fn_c_try_compile "$LINENO"
26217 then :
26218 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
26219 printf '%s\n' "no" >&6; }
26220
26221 else case e in #(
26222 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26223 printf '%s\n' "yes" >&6; }
26224
26225
26226 printf '%s\n' "#define HWLOC_HAVE_DECL_STRNCASECMP 1" >>confdefs.h
26227
26228
26229 ;;
26230 esac
26231 fi
26232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26233 fi
26234
26235
26236 fi
26237
26238 done
26239
26240 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
26241 if test "x$ac_cv_func_strftime" = xyes
26242 then :
26243 printf '%s\n' "#define HAVE_STRFTIME 1" >>confdefs.h
26244
26245 fi
26246
26247 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
26248 if test "x$ac_cv_func_setlocale" = xyes
26249 then :
26250 printf '%s\n' "#define HAVE_SETLOCALE 1" >>confdefs.h
26251
26252 fi
26253
26254
26255 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
26256 if test "x$ac_cv_header_stdint_h" = xyes
26257 then :
26258
26259
26260 printf '%s\n' "#define HWLOC_HAVE_STDINT_H 1" >>confdefs.h
26261
26262
26263 fi
26264
26265 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
26266 if test "x$ac_cv_header_sys_mman_h" = xyes
26267 then :
26268 printf '%s\n' "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
26269
26270 fi
26271
26272
26273 if test x$hwloc_freebsd = xyes; then
26274 echo
26275 echo "**** FreeBSD-specific checks"
26276
26277 ac_fn_c_check_header_compile "$LINENO" "sys/domainset.h" "ac_cv_header_sys_domainset_h" "$ac_includes_default"
26278 if test "x$ac_cv_header_sys_domainset_h" = xyes
26279 then :
26280 printf '%s\n' "#define HAVE_SYS_DOMAINSET_H 1" >>confdefs.h
26281
26282 fi
26283
26284 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "$ac_includes_default"
26285 if test "x$ac_cv_header_sys_thr_h" = xyes
26286 then :
26287 printf '%s\n' "#define HAVE_SYS_THR_H 1" >>confdefs.h
26288
26289 fi
26290
26291 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default"
26292 if test "x$ac_cv_header_pthread_np_h" = xyes
26293 then :
26294 printf '%s\n' "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
26295
26296 fi
26297
26298 ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "#include <sys/param.h>
26299 "
26300 if test "x$ac_cv_header_sys_cpuset_h" = xyes
26301 then :
26302 printf '%s\n' "#define HAVE_SYS_CPUSET_H 1" >>confdefs.h
26303
26304 fi
26305
26306 ac_fn_c_check_func "$LINENO" "cpuset_setaffinity" "ac_cv_func_cpuset_setaffinity"
26307 if test "x$ac_cv_func_cpuset_setaffinity" = xyes
26308 then :
26309 printf '%s\n' "#define HAVE_CPUSET_SETAFFINITY 1" >>confdefs.h
26310
26311 fi
26312
26313 ac_fn_c_check_func "$LINENO" "cpuset_setid" "ac_cv_func_cpuset_setid"
26314 if test "x$ac_cv_func_cpuset_setid" = xyes
26315 then :
26316 printf '%s\n' "#define HAVE_CPUSET_SETID 1" >>confdefs.h
26317
26318 fi
26319
26320
26321 echo "**** end of FreeBSD-specific checks"
26322 echo
26323 fi
26324
26325 if test x$hwloc_windows = xyes; then
26326 echo
26327 echo "**** Windows-specific checks"
26328
26329 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
26330 if test "x$ac_cv_header_windows_h" = xyes
26331 then :
26332
26333
26334 printf '%s\n' "#define HWLOC_HAVE_WINDOWS_H 1" >>confdefs.h
26335
26336
26337 fi
26338
26339
26340 old_CPPFLAGS="$CPPFLAGS"
26341 CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0601"
26342 ac_fn_c_check_type "$LINENO" "KAFFINITY" "ac_cv_type_KAFFINITY" "#include <windows.h>
26343 "
26344 if test "x$ac_cv_type_KAFFINITY" = xyes
26345 then :
26346
26347 printf '%s\n' "#define HAVE_KAFFINITY 1" >>confdefs.h
26348
26349
26350 fi
26351 ac_fn_c_check_type "$LINENO" "PROCESSOR_CACHE_TYPE" "ac_cv_type_PROCESSOR_CACHE_TYPE" "#include <windows.h>
26352 "
26353 if test "x$ac_cv_type_PROCESSOR_CACHE_TYPE" = xyes
26354 then :
26355
26356 printf '%s\n' "#define HAVE_PROCESSOR_CACHE_TYPE 1" >>confdefs.h
26357
26358
26359 fi
26360 ac_fn_c_check_type "$LINENO" "CACHE_DESCRIPTOR" "ac_cv_type_CACHE_DESCRIPTOR" "#include <windows.h>
26361 "
26362 if test "x$ac_cv_type_CACHE_DESCRIPTOR" = xyes
26363 then :
26364
26365 printf '%s\n' "#define HAVE_CACHE_DESCRIPTOR 1" >>confdefs.h
26366
26367
26368 fi
26369 ac_fn_c_check_type "$LINENO" "LOGICAL_PROCESSOR_RELATIONSHIP" "ac_cv_type_LOGICAL_PROCESSOR_RELATIONSHIP" "#include <windows.h>
26370 "
26371 if test "x$ac_cv_type_LOGICAL_PROCESSOR_RELATIONSHIP" = xyes
26372 then :
26373
26374 printf '%s\n' "#define HAVE_LOGICAL_PROCESSOR_RELATIONSHIP 1" >>confdefs.h
26375
26376
26377 fi
26378 ac_fn_c_check_type "$LINENO" "RelationProcessorPackage" "ac_cv_type_RelationProcessorPackage" "#include <windows.h>
26379 "
26380 if test "x$ac_cv_type_RelationProcessorPackage" = xyes
26381 then :
26382
26383 printf '%s\n' "#define HAVE_RELATIONPROCESSORPACKAGE 1" >>confdefs.h
26384
26385
26386 fi
26387 ac_fn_c_check_type "$LINENO" "RelationProcessorDie" "ac_cv_type_RelationProcessorDie" "#include <windows.h>
26388 "
26389 if test "x$ac_cv_type_RelationProcessorDie" = xyes
26390 then :
26391
26392 printf '%s\n' "#define HAVE_RELATIONPROCESSORDIE 1" >>confdefs.h
26393
26394
26395 fi
26396 ac_fn_c_check_type "$LINENO" "GROUP_AFFINITY" "ac_cv_type_GROUP_AFFINITY" "#include <windows.h>
26397 "
26398 if test "x$ac_cv_type_GROUP_AFFINITY" = xyes
26399 then :
26400
26401 printf '%s\n' "#define HAVE_GROUP_AFFINITY 1" >>confdefs.h
26402
26403
26404 fi
26405 ac_fn_c_check_type "$LINENO" "PROCESSOR_RELATIONSHIP" "ac_cv_type_PROCESSOR_RELATIONSHIP" "#include <windows.h>
26406 "
26407 if test "x$ac_cv_type_PROCESSOR_RELATIONSHIP" = xyes
26408 then :
26409
26410 printf '%s\n' "#define HAVE_PROCESSOR_RELATIONSHIP 1" >>confdefs.h
26411
26412
26413 fi
26414 ac_fn_c_check_type "$LINENO" "NUMA_NODE_RELATIONSHIP" "ac_cv_type_NUMA_NODE_RELATIONSHIP" "#include <windows.h>
26415 "
26416 if test "x$ac_cv_type_NUMA_NODE_RELATIONSHIP" = xyes
26417 then :
26418
26419 printf '%s\n' "#define HAVE_NUMA_NODE_RELATIONSHIP 1" >>confdefs.h
26420
26421
26422 fi
26423 ac_fn_c_check_type "$LINENO" "CACHE_RELATIONSHIP" "ac_cv_type_CACHE_RELATIONSHIP" "#include <windows.h>
26424 "
26425 if test "x$ac_cv_type_CACHE_RELATIONSHIP" = xyes
26426 then :
26427
26428 printf '%s\n' "#define HAVE_CACHE_RELATIONSHIP 1" >>confdefs.h
26429
26430
26431 fi
26432 ac_fn_c_check_type "$LINENO" "PROCESSOR_GROUP_INFO" "ac_cv_type_PROCESSOR_GROUP_INFO" "#include <windows.h>
26433 "
26434 if test "x$ac_cv_type_PROCESSOR_GROUP_INFO" = xyes
26435 then :
26436
26437 printf '%s\n' "#define HAVE_PROCESSOR_GROUP_INFO 1" >>confdefs.h
26438
26439
26440 fi
26441 ac_fn_c_check_type "$LINENO" "GROUP_RELATIONSHIP" "ac_cv_type_GROUP_RELATIONSHIP" "#include <windows.h>
26442 "
26443 if test "x$ac_cv_type_GROUP_RELATIONSHIP" = xyes
26444 then :
26445
26446 printf '%s\n' "#define HAVE_GROUP_RELATIONSHIP 1" >>confdefs.h
26447
26448
26449 fi
26450 ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" "#include <windows.h>
26451 "
26452 if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" = xyes
26453 then :
26454
26455 printf '%s\n' "#define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX 1" >>confdefs.h
26456
26457
26458 fi
26459 ac_fn_c_check_type "$LINENO" "PSAPI_WORKING_SET_EX_BLOCK" "ac_cv_type_PSAPI_WORKING_SET_EX_BLOCK" "#include <windows.h>
26460 "
26461 if test "x$ac_cv_type_PSAPI_WORKING_SET_EX_BLOCK" = xyes
26462 then :
26463
26464 printf '%s\n' "#define HAVE_PSAPI_WORKING_SET_EX_BLOCK 1" >>confdefs.h
26465
26466
26467 fi
26468 ac_fn_c_check_type "$LINENO" "PSAPI_WORKING_SET_EX_INFORMATION" "ac_cv_type_PSAPI_WORKING_SET_EX_INFORMATION" "#include <windows.h>
26469 "
26470 if test "x$ac_cv_type_PSAPI_WORKING_SET_EX_INFORMATION" = xyes
26471 then :
26472
26473 printf '%s\n' "#define HAVE_PSAPI_WORKING_SET_EX_INFORMATION 1" >>confdefs.h
26474
26475
26476 fi
26477 ac_fn_c_check_type "$LINENO" "PROCESSOR_NUMBER" "ac_cv_type_PROCESSOR_NUMBER" "#include <windows.h>
26478 "
26479 if test "x$ac_cv_type_PROCESSOR_NUMBER" = xyes
26480 then :
26481
26482 printf '%s\n' "#define HAVE_PROCESSOR_NUMBER 1" >>confdefs.h
26483
26484
26485 fi
26486
26487 CPPFLAGS="$old_CPPFLAGS"
26488
26489 ac_fn_check_decl "$LINENO" "GetModuleFileName" "ac_cv_have_decl_GetModuleFileName" "#include <windows.h>
26490 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
26491 if test "x$ac_cv_have_decl_GetModuleFileName" = xyes
26492 then :
26493 ac_have_decl=1
26494 else case e in #(
26495 e) ac_have_decl=0 ;;
26496 esac
26497 fi
26498 printf '%s\n' "#define HAVE_DECL_GETMODULEFILENAME $ac_have_decl" >>confdefs.h
26499
26500
26501 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5
26502 printf %s "checking for main in -lgdi32... " >&6; }
26503 if test ${ac_cv_lib_gdi32_main+y}
26504 then :
26505 printf %s "(cached) " >&6
26506 else case e in #(
26507 e) ac_check_lib_save_LIBS=$LIBS
26508 LIBS="-lgdi32 $LIBS"
26509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26510 /* end confdefs.h. */
26511
26512
26513 int
26514 main (void)
26515 {
26516 return main ();
26517 ;
26518 return 0;
26519 }
26520 _ACEOF
26521 if ac_fn_c_try_link "$LINENO"
26522 then :
26523 ac_cv_lib_gdi32_main=yes
26524 else case e in #(
26525 e) ac_cv_lib_gdi32_main=no ;;
26526 esac
26527 fi
26528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26529 conftest$ac_exeext conftest.$ac_ext
26530 LIBS=$ac_check_lib_save_LIBS ;;
26531 esac
26532 fi
26533 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5
26534 printf '%s\n' "$ac_cv_lib_gdi32_main" >&6; }
26535 if test "x$ac_cv_lib_gdi32_main" = xyes
26536 then :
26537 HWLOC_LIBS="-lgdi32 $HWLOC_LIBS"
26538
26539 printf '%s\n' "#define HAVE_LIBGDI32 1" >>confdefs.h
26540
26541 fi
26542
26543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for PostQuitMessage in -luser32" >&5
26544 printf %s "checking for PostQuitMessage in -luser32... " >&6; }
26545 if test ${ac_cv_lib_user32_PostQuitMessage+y}
26546 then :
26547 printf %s "(cached) " >&6
26548 else case e in #(
26549 e) ac_check_lib_save_LIBS=$LIBS
26550 LIBS="-luser32 $LIBS"
26551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26552 /* end confdefs.h. */
26553
26554 /* Override any GCC internal prototype to avoid an error.
26555 Use char because int might match the return type of a GCC
26556 builtin and then its argument prototype would still apply.
26557 The 'extern "C"' is for builds by C++ compilers;
26558 although this is not generally supported in C code supporting it here
26559 has little cost and some practical benefit (sr 110532). */
26560 #ifdef __cplusplus
26561 extern "C"
26562 #endif
26563 char PostQuitMessage (void);
26564 int
26565 main (void)
26566 {
26567 return PostQuitMessage ();
26568 ;
26569 return 0;
26570 }
26571 _ACEOF
26572 if ac_fn_c_try_link "$LINENO"
26573 then :
26574 ac_cv_lib_user32_PostQuitMessage=yes
26575 else case e in #(
26576 e) ac_cv_lib_user32_PostQuitMessage=no ;;
26577 esac
26578 fi
26579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26580 conftest$ac_exeext conftest.$ac_ext
26581 LIBS=$ac_check_lib_save_LIBS ;;
26582 esac
26583 fi
26584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_user32_PostQuitMessage" >&5
26585 printf '%s\n' "$ac_cv_lib_user32_PostQuitMessage" >&6; }
26586 if test "x$ac_cv_lib_user32_PostQuitMessage" = xyes
26587 then :
26588 hwloc_have_user32="yes"
26589 fi
26590
26591
26592 for ac_prog in lib
26593 do
26594 # Extract the first word of "$ac_prog", so it can be a program name with args.
26595 set dummy $ac_prog; ac_word=$2
26596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26597 printf %s "checking for $ac_word... " >&6; }
26598 if test ${ac_cv_path_HWLOC_MS_LIB+y}
26599 then :
26600 printf %s "(cached) " >&6
26601 else case e in #(
26602 e) case $HWLOC_MS_LIB in
26603 [\\/]* | ?:[\\/]*)
26604 ac_cv_path_HWLOC_MS_LIB="$HWLOC_MS_LIB" # Let the user override the test with a path.
26605 ;;
26606 *)
26607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26608 for as_dir in $PATH
26609 do
26610 IFS=$as_save_IFS
26611 case $as_dir in #(((
26612 '') as_dir=./ ;;
26613 */) ;;
26614 *) as_dir=$as_dir/ ;;
26615 esac
26616 for ac_exec_ext in '' $ac_executable_extensions; do
26617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26618 ac_cv_path_HWLOC_MS_LIB="$as_dir$ac_word$ac_exec_ext"
26619 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26620 break 2
26621 fi
26622 done
26623 done
26624 IFS=$as_save_IFS
26625
26626 ;;
26627 esac ;;
26628 esac
26629 fi
26630 HWLOC_MS_LIB=$ac_cv_path_HWLOC_MS_LIB
26631 if test -n "$HWLOC_MS_LIB"; then
26632 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $HWLOC_MS_LIB" >&5
26633 printf '%s\n' "$HWLOC_MS_LIB" >&6; }
26634 else
26635 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
26636 printf '%s\n' "no" >&6; }
26637 fi
26638
26639
26640 test -n "$HWLOC_MS_LIB" && break
26641 done
26642
26643
26644 echo "**** end of Windows-specific checks"
26645 echo
26646 fi
26647
26648 if test x$hwloc_solaris = xyes; then
26649 echo
26650 echo "**** Solaris-specific checks"
26651
26652 for ac_header in sys/lgrp_user.h
26653 do :
26654 ac_fn_c_check_header_compile "$LINENO" "sys/lgrp_user.h" "ac_cv_header_sys_lgrp_user_h" "$ac_includes_default"
26655 if test "x$ac_cv_header_sys_lgrp_user_h" = xyes
26656 then :
26657 printf '%s\n' "#define HAVE_SYS_LGRP_USER_H 1" >>confdefs.h
26658
26659 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for lgrp_init in -llgrp" >&5
26660 printf %s "checking for lgrp_init in -llgrp... " >&6; }
26661 if test ${ac_cv_lib_lgrp_lgrp_init+y}
26662 then :
26663 printf %s "(cached) " >&6
26664 else case e in #(
26665 e) ac_check_lib_save_LIBS=$LIBS
26666 LIBS="-llgrp $LIBS"
26667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26668 /* end confdefs.h. */
26669
26670 /* Override any GCC internal prototype to avoid an error.
26671 Use char because int might match the return type of a GCC
26672 builtin and then its argument prototype would still apply.
26673 The 'extern "C"' is for builds by C++ compilers;
26674 although this is not generally supported in C code supporting it here
26675 has little cost and some practical benefit (sr 110532). */
26676 #ifdef __cplusplus
26677 extern "C"
26678 #endif
26679 char lgrp_init (void);
26680 int
26681 main (void)
26682 {
26683 return lgrp_init ();
26684 ;
26685 return 0;
26686 }
26687 _ACEOF
26688 if ac_fn_c_try_link "$LINENO"
26689 then :
26690 ac_cv_lib_lgrp_lgrp_init=yes
26691 else case e in #(
26692 e) ac_cv_lib_lgrp_lgrp_init=no ;;
26693 esac
26694 fi
26695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26696 conftest$ac_exeext conftest.$ac_ext
26697 LIBS=$ac_check_lib_save_LIBS ;;
26698 esac
26699 fi
26700 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lgrp_lgrp_init" >&5
26701 printf '%s\n' "$ac_cv_lib_lgrp_lgrp_init" >&6; }
26702 if test "x$ac_cv_lib_lgrp_lgrp_init" = xyes
26703 then :
26704 HWLOC_LIBS="-llgrp $HWLOC_LIBS"
26705
26706 printf '%s\n' "#define HAVE_LIBLGRP 1" >>confdefs.h
26707
26708 ac_fn_check_decl "$LINENO" "lgrp_latency_cookie" "ac_cv_have_decl_lgrp_latency_cookie" "#include <sys/lgrp_user.h>
26709 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
26710 if test "x$ac_cv_have_decl_lgrp_latency_cookie" = xyes
26711 then :
26712 ac_have_decl=1
26713 else case e in #(
26714 e) ac_have_decl=0 ;;
26715 esac
26716 fi
26717 printf '%s\n' "#define HAVE_DECL_LGRP_LATENCY_COOKIE $ac_have_decl" >>confdefs.h
26718
26719
26720 fi
26721
26722
26723 fi
26724
26725 done
26726 for ac_header in kstat.h
26727 do :
26728 ac_fn_c_check_header_compile "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default"
26729 if test "x$ac_cv_header_kstat_h" = xyes
26730 then :
26731 printf '%s\n' "#define HAVE_KSTAT_H 1" >>confdefs.h
26732
26733 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for main in -lkstat" >&5
26734 printf %s "checking for main in -lkstat... " >&6; }
26735 if test ${ac_cv_lib_kstat_main+y}
26736 then :
26737 printf %s "(cached) " >&6
26738 else case e in #(
26739 e) ac_check_lib_save_LIBS=$LIBS
26740 LIBS="-lkstat $LIBS"
26741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26742 /* end confdefs.h. */
26743
26744
26745 int
26746 main (void)
26747 {
26748 return main ();
26749 ;
26750 return 0;
26751 }
26752 _ACEOF
26753 if ac_fn_c_try_link "$LINENO"
26754 then :
26755 ac_cv_lib_kstat_main=yes
26756 else case e in #(
26757 e) ac_cv_lib_kstat_main=no ;;
26758 esac
26759 fi
26760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26761 conftest$ac_exeext conftest.$ac_ext
26762 LIBS=$ac_check_lib_save_LIBS ;;
26763 esac
26764 fi
26765 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_main" >&5
26766 printf '%s\n' "$ac_cv_lib_kstat_main" >&6; }
26767 if test "x$ac_cv_lib_kstat_main" = xyes
26768 then :
26769 HWLOC_LIBS="-lkstat $HWLOC_LIBS"
26770
26771 printf '%s\n' "#define HAVE_LIBKSTAT 1" >>confdefs.h
26772
26773 fi
26774
26775
26776 fi
26777
26778 done
26779
26780 for ac_header in picl.h
26781 do :
26782 ac_fn_c_check_header_compile "$LINENO" "picl.h" "ac_cv_header_picl_h" "$ac_includes_default"
26783 if test "x$ac_cv_header_picl_h" = xyes
26784 then :
26785 printf '%s\n' "#define HAVE_PICL_H 1" >>confdefs.h
26786
26787 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for picl_initialize in -lpicl" >&5
26788 printf %s "checking for picl_initialize in -lpicl... " >&6; }
26789 if test ${ac_cv_lib_picl_picl_initialize+y}
26790 then :
26791 printf %s "(cached) " >&6
26792 else case e in #(
26793 e) ac_check_lib_save_LIBS=$LIBS
26794 LIBS="-lpicl $LIBS"
26795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26796 /* end confdefs.h. */
26797
26798 /* Override any GCC internal prototype to avoid an error.
26799 Use char because int might match the return type of a GCC
26800 builtin and then its argument prototype would still apply.
26801 The 'extern "C"' is for builds by C++ compilers;
26802 although this is not generally supported in C code supporting it here
26803 has little cost and some practical benefit (sr 110532). */
26804 #ifdef __cplusplus
26805 extern "C"
26806 #endif
26807 char picl_initialize (void);
26808 int
26809 main (void)
26810 {
26811 return picl_initialize ();
26812 ;
26813 return 0;
26814 }
26815 _ACEOF
26816 if ac_fn_c_try_link "$LINENO"
26817 then :
26818 ac_cv_lib_picl_picl_initialize=yes
26819 else case e in #(
26820 e) ac_cv_lib_picl_picl_initialize=no ;;
26821 esac
26822 fi
26823 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26824 conftest$ac_exeext conftest.$ac_ext
26825 LIBS=$ac_check_lib_save_LIBS ;;
26826 esac
26827 fi
26828 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_picl_picl_initialize" >&5
26829 printf '%s\n' "$ac_cv_lib_picl_picl_initialize" >&6; }
26830 if test "x$ac_cv_lib_picl_picl_initialize" = xyes
26831 then :
26832 HWLOC_LIBS="-lpicl $HWLOC_LIBS"
26833 fi
26834
26835 fi
26836
26837 done
26838
26839 echo "**** end of Solaris-specific checks"
26840 echo
26841 fi
26842
26843 if test x$hwloc_aix = xyes; then
26844 echo
26845 echo "**** AIX-specific checks"
26846
26847 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getthrds_np" >&5
26848 printf %s "checking for library containing pthread_getthrds_np... " >&6; }
26849 if test ${ac_cv_search_pthread_getthrds_np+y}
26850 then :
26851 printf %s "(cached) " >&6
26852 else case e in #(
26853 e) ac_func_search_save_LIBS=$LIBS
26854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26855 /* end confdefs.h. */
26856
26857 /* Override any GCC internal prototype to avoid an error.
26858 Use char because int might match the return type of a GCC
26859 builtin and then its argument prototype would still apply.
26860 The 'extern "C"' is for builds by C++ compilers;
26861 although this is not generally supported in C code supporting it here
26862 has little cost and some practical benefit (sr 110532). */
26863 #ifdef __cplusplus
26864 extern "C"
26865 #endif
26866 char pthread_getthrds_np (void);
26867 int
26868 main (void)
26869 {
26870 return pthread_getthrds_np ();
26871 ;
26872 return 0;
26873 }
26874 _ACEOF
26875 for ac_lib in '' pthread
26876 do
26877 if test -z "$ac_lib"; then
26878 ac_res="none required"
26879 else
26880 ac_res=-l$ac_lib
26881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26882 fi
26883 if ac_fn_c_try_link "$LINENO"
26884 then :
26885 ac_cv_search_pthread_getthrds_np=$ac_res
26886 fi
26887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26888 conftest$ac_exeext
26889 if test ${ac_cv_search_pthread_getthrds_np+y}
26890 then :
26891 break
26892 fi
26893 done
26894 if test ${ac_cv_search_pthread_getthrds_np+y}
26895 then :
26896
26897 else case e in #(
26898 e) ac_cv_search_pthread_getthrds_np=no ;;
26899 esac
26900 fi
26901 rm conftest.$ac_ext
26902 LIBS=$ac_func_search_save_LIBS ;;
26903 esac
26904 fi
26905 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getthrds_np" >&5
26906 printf '%s\n' "$ac_cv_search_pthread_getthrds_np" >&6; }
26907 ac_res=$ac_cv_search_pthread_getthrds_np
26908 if test "$ac_res" != no
26909 then :
26910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26911
26912
26913 printf '%s\n' "#define HWLOC_HAVE_PTHREAD_GETTHRDS_NP 1" >>confdefs.h
26914
26915
26916 fi
26917
26918
26919 echo "**** end of AIX-specific checks"
26920 echo
26921 fi
26922
26923 if test x$hwloc_darwin = xyes; then
26924 echo
26925 echo "**** Darwin-specific checks"
26926
26927 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for the Foundation framework" >&5
26928 printf %s "checking for the Foundation framework... " >&6; }
26929 tmp_save_LDFLAGS="$LDFLAGS"
26930 LDFLAGS="$LDFLAGS -framework Foundation"
26931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26932 /* end confdefs.h. */
26933
26934
26935 #include <CoreFoundation/CoreFoundation.h>
26936
26937 int
26938 main (void)
26939 {
26940
26941 return CFDictionaryGetTypeID();
26942
26943 ;
26944 return 0;
26945 }
26946 _ACEOF
26947 if ac_fn_c_try_link "$LINENO"
26948 then :
26949 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26950 printf '%s\n' "yes" >&6; }
26951 HWLOC_DARWIN_LDFLAGS="$HWLOC_DARWIN_LDFLAGS -framework Foundation"
26952
26953 printf '%s\n' "#define HWLOC_HAVE_DARWIN_FOUNDATION 1" >>confdefs.h
26954
26955 else case e in #(
26956 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
26957 printf '%s\n' "no" >&6; } ;;
26958 esac
26959 fi
26960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26961 conftest$ac_exeext conftest.$ac_ext
26962 LDFLAGS="$tmp_save_LDFLAGS"
26963
26964 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for the IOKit framework" >&5
26965 printf %s "checking for the IOKit framework... " >&6; }
26966 tmp_save_LDFLAGS="$LDFLAGS"
26967 LDFLAGS="$LDFLAGS -framework IOKit"
26968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26969 /* end confdefs.h. */
26970
26971
26972 #include <IOKit/IOKitLib.h>
26973
26974 int
26975 main (void)
26976 {
26977
26978 io_registry_entry_t service = IORegistryGetRootEntry(kIOMasterPortDefault);
26979
26980 ;
26981 return 0;
26982 }
26983 _ACEOF
26984 if ac_fn_c_try_link "$LINENO"
26985 then :
26986 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26987 printf '%s\n' "yes" >&6; }
26988 HWLOC_DARWIN_LDFLAGS="$HWLOC_DARWIN_LDFLAGS -framework IOKit"
26989
26990 printf '%s\n' "#define HWLOC_HAVE_DARWIN_IOKIT 1" >>confdefs.h
26991
26992 else case e in #(
26993 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
26994 printf '%s\n' "no" >&6; } ;;
26995 esac
26996 fi
26997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26998 conftest$ac_exeext conftest.$ac_ext
26999 LDFLAGS="$tmp_save_LDFLAGS"
27000
27001
27002
27003 echo "**** end of Darwin-specific checks"
27004 echo
27005 fi
27006
27007 if test x$hwloc_linux = xyes; then
27008 echo
27009 echo "**** Linux-specific checks"
27010
27011 ac_fn_check_decl "$LINENO" "sched_getcpu" "ac_cv_have_decl_sched_getcpu" "
27012 #ifndef _GNU_SOURCE
27013 # define _GNU_SOURCE
27014 #endif
27015 #include <sched.h>
27016
27017 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27018 if test "x$ac_cv_have_decl_sched_getcpu" = xyes
27019 then :
27020 ac_have_decl=1
27021 else case e in #(
27022 e) ac_have_decl=0 ;;
27023 esac
27024 fi
27025 printf '%s\n' "#define HAVE_DECL_SCHED_GETCPU $ac_have_decl" >>confdefs.h
27026 if test $ac_have_decl = 1
27027 then :
27028
27029 else case e in #(
27030 e) : ;;
27031 esac
27032 fi
27033
27034
27035
27036 ac_fn_check_decl "$LINENO" "sched_setaffinity" "ac_cv_have_decl_sched_setaffinity" "
27037 #ifndef _GNU_SOURCE
27038 # define _GNU_SOURCE
27039 #endif
27040 #include <sched.h>
27041
27042
27043 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27044 if test "x$ac_cv_have_decl_sched_setaffinity" = xyes
27045 then :
27046
27047 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether function sched_setaffinity has a complete prototype" >&5
27048 printf %s "checking whether function sched_setaffinity has a complete prototype... " >&6; }
27049
27050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27051 /* end confdefs.h. */
27052
27053 #ifndef _GNU_SOURCE
27054 # define _GNU_SOURCE
27055 #endif
27056 #include <sched.h>
27057
27058
27059 int
27060 main (void)
27061 {
27062 sched_setaffinity(1,2,3,4,5,6,7,8,9,10);
27063
27064 ;
27065 return 0;
27066 }
27067 _ACEOF
27068 if ac_fn_c_try_compile "$LINENO"
27069 then :
27070 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
27071 printf '%s\n' "no" >&6; }
27072
27073 else case e in #(
27074 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27075 printf '%s\n' "yes" >&6; }
27076
27077 hwloc_have_sched_setaffinity=yes
27078
27079 printf '%s\n' "#define HWLOC_HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
27080
27081 if test "$HWLOC_STRICT_ARGS_CFLAGS" = "FAIL"
27082 then :
27083
27084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Support for sched_setaffinity() requires a C compiler which" >&5
27085 printf '%s\n' "$as_me: WARNING: Support for sched_setaffinity() requires a C compiler which" >&2;}
27086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: considers incorrect argument counts to be a fatal error." >&5
27087 printf '%s\n' "$as_me: WARNING: considers incorrect argument counts to be a fatal error." >&2;}
27088 as_fn_error $? "Cannot continue." "$LINENO" 5
27089
27090 fi
27091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for old prototype of sched_setaffinity" >&5
27092 printf %s "checking for old prototype of sched_setaffinity... " >&6; }
27093 hwloc_save_CFLAGS=$CFLAGS
27094 CFLAGS="$CFLAGS $HWLOC_STRICT_ARGS_CFLAGS"
27095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27096 /* end confdefs.h. */
27097
27098
27099 #ifndef _GNU_SOURCE
27100 # define _GNU_SOURCE
27101 #endif
27102 #include <sched.h>
27103 static unsigned long mask;
27104
27105 int
27106 main (void)
27107 {
27108 sched_setaffinity(0, (void*) &mask);
27109 ;
27110 return 0;
27111 }
27112 _ACEOF
27113 if ac_fn_c_try_compile "$LINENO"
27114 then :
27115
27116 printf '%s\n' "#define HWLOC_HAVE_OLD_SCHED_SETAFFINITY 1" >>confdefs.h
27117
27118 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27119 printf '%s\n' "yes" >&6; }
27120 else case e in #(
27121 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
27122 printf '%s\n' "no" >&6; } ;;
27123 esac
27124 fi
27125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27126 CFLAGS=$hwloc_save_CFLAGS
27127
27128 ;;
27129 esac
27130 fi
27131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27132 fi
27133
27134
27135 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for working CPU_SET" >&5
27136 printf %s "checking for working CPU_SET... " >&6; }
27137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27138 /* end confdefs.h. */
27139
27140
27141 #include <sched.h>
27142 cpu_set_t set;
27143
27144 int
27145 main (void)
27146 {
27147 CPU_ZERO(&set); CPU_SET(0, &set);
27148 ;
27149 return 0;
27150 }
27151 _ACEOF
27152 if ac_fn_c_try_link "$LINENO"
27153 then :
27154
27155 printf '%s\n' "#define HWLOC_HAVE_CPU_SET 1" >>confdefs.h
27156
27157 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27158 printf '%s\n' "yes" >&6; }
27159 else case e in #(
27160 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
27161 printf '%s\n' "no" >&6; } ;;
27162 esac
27163 fi
27164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27165 conftest$ac_exeext conftest.$ac_ext
27166
27167 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for working CPU_SET_S" >&5
27168 printf %s "checking for working CPU_SET_S... " >&6; }
27169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h. */
27171
27172
27173 #include <sched.h>
27174 cpu_set_t *set;
27175
27176 int
27177 main (void)
27178 {
27179
27180 set = CPU_ALLOC(1024);
27181 CPU_ZERO_S(CPU_ALLOC_SIZE(1024), set);
27182 CPU_SET_S(CPU_ALLOC_SIZE(1024), 0, set);
27183 CPU_FREE(set);
27184
27185 ;
27186 return 0;
27187 }
27188 _ACEOF
27189 if ac_fn_c_try_link "$LINENO"
27190 then :
27191
27192 printf '%s\n' "#define HWLOC_HAVE_CPU_SET_S 1" >>confdefs.h
27193
27194 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27195 printf '%s\n' "yes" >&6; }
27196 else case e in #(
27197 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
27198 printf '%s\n' "no" >&6; } ;;
27199 esac
27200 fi
27201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27202 conftest$ac_exeext conftest.$ac_ext
27203
27204 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for working syscall with 6 parameters" >&5
27205 printf %s "checking for working syscall with 6 parameters... " >&6; }
27206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27207 /* end confdefs.h. */
27208
27209
27210 #include <unistd.h>
27211 #include <sys/syscall.h>
27212
27213 int
27214 main (void)
27215 {
27216 syscall(0, 1, 2, 3, 4, 5, 6);
27217 ;
27218 return 0;
27219 }
27220 _ACEOF
27221 if ac_fn_c_try_link "$LINENO"
27222 then :
27223
27224 printf '%s\n' "#define HWLOC_HAVE_SYSCALL 1" >>confdefs.h
27225
27226 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27227 printf '%s\n' "yes" >&6; }
27228 else case e in #(
27229 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
27230 printf '%s\n' "no" >&6; } ;;
27231 esac
27232 fi
27233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27234 conftest$ac_exeext conftest.$ac_ext
27235
27236 # Linux libudev support
27237 if test "x$enable_libudev" != xno; then
27238 for ac_header in libudev.h
27239 do :
27240 ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
27241 if test "x$ac_cv_header_libudev_h" = xyes
27242 then :
27243 printf '%s\n' "#define HAVE_LIBUDEV_H 1" >>confdefs.h
27244
27245 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for udev_device_new_from_subsystem_sysname in -ludev" >&5
27246 printf %s "checking for udev_device_new_from_subsystem_sysname in -ludev... " >&6; }
27247 if test ${ac_cv_lib_udev_udev_device_new_from_subsystem_sysname+y}
27248 then :
27249 printf %s "(cached) " >&6
27250 else case e in #(
27251 e) ac_check_lib_save_LIBS=$LIBS
27252 LIBS="-ludev $LIBS"
27253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27254 /* end confdefs.h. */
27255
27256 /* Override any GCC internal prototype to avoid an error.
27257 Use char because int might match the return type of a GCC
27258 builtin and then its argument prototype would still apply.
27259 The 'extern "C"' is for builds by C++ compilers;
27260 although this is not generally supported in C code supporting it here
27261 has little cost and some practical benefit (sr 110532). */
27262 #ifdef __cplusplus
27263 extern "C"
27264 #endif
27265 char udev_device_new_from_subsystem_sysname (void);
27266 int
27267 main (void)
27268 {
27269 return udev_device_new_from_subsystem_sysname ();
27270 ;
27271 return 0;
27272 }
27273 _ACEOF
27274 if ac_fn_c_try_link "$LINENO"
27275 then :
27276 ac_cv_lib_udev_udev_device_new_from_subsystem_sysname=yes
27277 else case e in #(
27278 e) ac_cv_lib_udev_udev_device_new_from_subsystem_sysname=no ;;
27279 esac
27280 fi
27281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27282 conftest$ac_exeext conftest.$ac_ext
27283 LIBS=$ac_check_lib_save_LIBS ;;
27284 esac
27285 fi
27286 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" >&5
27287 printf '%s\n' "$ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" >&6; }
27288 if test "x$ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" = xyes
27289 then :
27290
27291 HWLOC_LIBS="$HWLOC_LIBS -ludev"
27292
27293 printf '%s\n' "#define HWLOC_HAVE_LIBUDEV 1" >>confdefs.h
27294
27295
27296 fi
27297
27298
27299 fi
27300
27301 done
27302 fi
27303
27304 echo "**** end of Linux-specific checks"
27305 echo
27306 fi
27307
27308 if test "x$hwloc_linux" != "xyes" ; then
27309 # Don't look for sys/sysctl.h on Linux because it's deprecated and
27310 # generates a warning in GCC10. Also it's unneeded.
27311 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
27312 if test "x$ac_cv_header_sys_param_h" = xyes
27313 then :
27314 printf '%s\n' "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
27315
27316 fi
27317
27318 for ac_header in sys/sysctl.h
27319 do :
27320 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
27321 $ac_includes_default
27322 #if HAVE_SYS_PARAM_H
27323 #include <sys/param.h>
27324 #endif
27325
27326 "
27327 if test "x$ac_cv_header_sys_sysctl_h" = xyes
27328 then :
27329 printf '%s\n' "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
27330
27331 ac_fn_check_decl "$LINENO" "CTL_HW" "ac_cv_have_decl_CTL_HW" "
27332 #if HAVE_SYS_PARAM_H
27333 #include <sys/param.h>
27334 #endif
27335 #include <sys/sysctl.h>
27336
27337 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27338 if test "x$ac_cv_have_decl_CTL_HW" = xyes
27339 then :
27340 ac_have_decl=1
27341 else case e in #(
27342 e) ac_have_decl=0 ;;
27343 esac
27344 fi
27345 printf '%s\n' "#define HAVE_DECL_CTL_HW $ac_have_decl" >>confdefs.h
27346 ac_fn_check_decl "$LINENO" "HW_NCPU" "ac_cv_have_decl_HW_NCPU" "
27347 #if HAVE_SYS_PARAM_H
27348 #include <sys/param.h>
27349 #endif
27350 #include <sys/sysctl.h>
27351
27352 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27353 if test "x$ac_cv_have_decl_HW_NCPU" = xyes
27354 then :
27355 ac_have_decl=1
27356 else case e in #(
27357 e) ac_have_decl=0 ;;
27358 esac
27359 fi
27360 printf '%s\n' "#define HAVE_DECL_HW_NCPU $ac_have_decl" >>confdefs.h
27361 ac_fn_check_decl "$LINENO" "HW_REALMEM64" "ac_cv_have_decl_HW_REALMEM64" "
27362 #if HAVE_SYS_PARAM_H
27363 #include <sys/param.h>
27364 #endif
27365 #include <sys/sysctl.h>
27366
27367 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27368 if test "x$ac_cv_have_decl_HW_REALMEM64" = xyes
27369 then :
27370 ac_have_decl=1
27371 else case e in #(
27372 e) ac_have_decl=0 ;;
27373 esac
27374 fi
27375 printf '%s\n' "#define HAVE_DECL_HW_REALMEM64 $ac_have_decl" >>confdefs.h
27376 ac_fn_check_decl "$LINENO" "HW_MEMSIZE64" "ac_cv_have_decl_HW_MEMSIZE64" "
27377 #if HAVE_SYS_PARAM_H
27378 #include <sys/param.h>
27379 #endif
27380 #include <sys/sysctl.h>
27381
27382 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27383 if test "x$ac_cv_have_decl_HW_MEMSIZE64" = xyes
27384 then :
27385 ac_have_decl=1
27386 else case e in #(
27387 e) ac_have_decl=0 ;;
27388 esac
27389 fi
27390 printf '%s\n' "#define HAVE_DECL_HW_MEMSIZE64 $ac_have_decl" >>confdefs.h
27391 ac_fn_check_decl "$LINENO" "HW_PHYSMEM64" "ac_cv_have_decl_HW_PHYSMEM64" "
27392 #if HAVE_SYS_PARAM_H
27393 #include <sys/param.h>
27394 #endif
27395 #include <sys/sysctl.h>
27396
27397 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27398 if test "x$ac_cv_have_decl_HW_PHYSMEM64" = xyes
27399 then :
27400 ac_have_decl=1
27401 else case e in #(
27402 e) ac_have_decl=0 ;;
27403 esac
27404 fi
27405 printf '%s\n' "#define HAVE_DECL_HW_PHYSMEM64 $ac_have_decl" >>confdefs.h
27406 ac_fn_check_decl "$LINENO" "HW_USERMEM64" "ac_cv_have_decl_HW_USERMEM64" "
27407 #if HAVE_SYS_PARAM_H
27408 #include <sys/param.h>
27409 #endif
27410 #include <sys/sysctl.h>
27411
27412 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27413 if test "x$ac_cv_have_decl_HW_USERMEM64" = xyes
27414 then :
27415 ac_have_decl=1
27416 else case e in #(
27417 e) ac_have_decl=0 ;;
27418 esac
27419 fi
27420 printf '%s\n' "#define HAVE_DECL_HW_USERMEM64 $ac_have_decl" >>confdefs.h
27421 ac_fn_check_decl "$LINENO" "HW_REALMEM" "ac_cv_have_decl_HW_REALMEM" "
27422 #if HAVE_SYS_PARAM_H
27423 #include <sys/param.h>
27424 #endif
27425 #include <sys/sysctl.h>
27426
27427 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27428 if test "x$ac_cv_have_decl_HW_REALMEM" = xyes
27429 then :
27430 ac_have_decl=1
27431 else case e in #(
27432 e) ac_have_decl=0 ;;
27433 esac
27434 fi
27435 printf '%s\n' "#define HAVE_DECL_HW_REALMEM $ac_have_decl" >>confdefs.h
27436 ac_fn_check_decl "$LINENO" "HW_MEMSIZE" "ac_cv_have_decl_HW_MEMSIZE" "
27437 #if HAVE_SYS_PARAM_H
27438 #include <sys/param.h>
27439 #endif
27440 #include <sys/sysctl.h>
27441
27442 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27443 if test "x$ac_cv_have_decl_HW_MEMSIZE" = xyes
27444 then :
27445 ac_have_decl=1
27446 else case e in #(
27447 e) ac_have_decl=0 ;;
27448 esac
27449 fi
27450 printf '%s\n' "#define HAVE_DECL_HW_MEMSIZE $ac_have_decl" >>confdefs.h
27451 ac_fn_check_decl "$LINENO" "HW_PHYSMEM" "ac_cv_have_decl_HW_PHYSMEM" "
27452 #if HAVE_SYS_PARAM_H
27453 #include <sys/param.h>
27454 #endif
27455 #include <sys/sysctl.h>
27456
27457 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27458 if test "x$ac_cv_have_decl_HW_PHYSMEM" = xyes
27459 then :
27460 ac_have_decl=1
27461 else case e in #(
27462 e) ac_have_decl=0 ;;
27463 esac
27464 fi
27465 printf '%s\n' "#define HAVE_DECL_HW_PHYSMEM $ac_have_decl" >>confdefs.h
27466 ac_fn_check_decl "$LINENO" "HW_USERMEM" "ac_cv_have_decl_HW_USERMEM" "
27467 #if HAVE_SYS_PARAM_H
27468 #include <sys/param.h>
27469 #endif
27470 #include <sys/sysctl.h>
27471
27472 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27473 if test "x$ac_cv_have_decl_HW_USERMEM" = xyes
27474 then :
27475 ac_have_decl=1
27476 else case e in #(
27477 e) ac_have_decl=0 ;;
27478 esac
27479 fi
27480 printf '%s\n' "#define HAVE_DECL_HW_USERMEM $ac_have_decl" >>confdefs.h
27481
27482
27483 fi
27484
27485 done
27486
27487 # Don't detect sysctl* on Linux because its sysctl() syscall is
27488 # long deprecated and unneeded. Some libc still expose the symbol
27489 # and raise a big warning at link time.
27490
27491 # Do a full link test instead of just using AC_CHECK_FUNCS, which
27492 # just checks to see if the symbol exists or not. For example,
27493 # the prototype of sysctl uses u_int, which on some platforms
27494 # (such as FreeBSD) is only defined under __BSD_VISIBLE, __USE_BSD
27495 # or other similar definitions. So while the symbols "sysctl" and
27496 # "sysctlbyname" might still be available in libc (which autoconf
27497 # checks for), they might not be actually usable.
27498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
27499 printf %s "checking for sysctl... " >&6; }
27500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27501 /* end confdefs.h. */
27502
27503
27504 #include <stdio.h>
27505 #include <sys/types.h>
27506 #include <sys/sysctl.h>
27507
27508 int
27509 main (void)
27510 {
27511
27512 return sysctl(NULL,0,NULL,NULL,NULL,0);
27513
27514 ;
27515 return 0;
27516 }
27517 _ACEOF
27518 if ac_fn_c_try_link "$LINENO"
27519 then :
27520
27521 printf '%s\n' "#define HAVE_SYSCTL 1" >>confdefs.h
27522
27523 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27524 printf '%s\n' "yes" >&6; }
27525 else case e in #(
27526 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
27527 printf '%s\n' "no" >&6; } ;;
27528 esac
27529 fi
27530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27531 conftest$ac_exeext conftest.$ac_ext
27532 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for sysctlbyname" >&5
27533 printf %s "checking for sysctlbyname... " >&6; }
27534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27535 /* end confdefs.h. */
27536
27537
27538 #include <stdio.h>
27539 #include <sys/types.h>
27540 #include <sys/sysctl.h>
27541
27542 int
27543 main (void)
27544 {
27545
27546 return sysctlbyname(NULL,NULL,NULL,NULL,0);
27547
27548 ;
27549 return 0;
27550 }
27551 _ACEOF
27552 if ac_fn_c_try_link "$LINENO"
27553 then :
27554
27555 printf '%s\n' "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
27556
27557 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27558 printf '%s\n' "yes" >&6; }
27559 else case e in #(
27560 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
27561 printf '%s\n' "no" >&6; } ;;
27562 esac
27563 fi
27564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27565 conftest$ac_exeext conftest.$ac_ext
27566 fi
27567
27568 ac_fn_check_decl "$LINENO" "pthread_setaffinity_np" "ac_cv_have_decl_pthread_setaffinity_np" "
27569 #include <pthread.h>
27570 #ifdef HAVE_PTHREAD_NP_H
27571 # include <pthread_np.h>
27572 #endif
27573
27574 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27575 if test "x$ac_cv_have_decl_pthread_setaffinity_np" = xyes
27576 then :
27577 ac_have_decl=1
27578 else case e in #(
27579 e) ac_have_decl=0 ;;
27580 esac
27581 fi
27582 printf '%s\n' "#define HAVE_DECL_PTHREAD_SETAFFINITY_NP $ac_have_decl" >>confdefs.h
27583 if test $ac_have_decl = 1
27584 then :
27585
27586 else case e in #(
27587 e) : ;;
27588 esac
27589 fi
27590
27591 ac_fn_check_decl "$LINENO" "pthread_getaffinity_np" "ac_cv_have_decl_pthread_getaffinity_np" "
27592 #include <pthread.h>
27593 #ifdef HAVE_PTHREAD_NP_H
27594 # include <pthread_np.h>
27595 #endif
27596
27597 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27598 if test "x$ac_cv_have_decl_pthread_getaffinity_np" = xyes
27599 then :
27600 ac_have_decl=1
27601 else case e in #(
27602 e) ac_have_decl=0 ;;
27603 esac
27604 fi
27605 printf '%s\n' "#define HAVE_DECL_PTHREAD_GETAFFINITY_NP $ac_have_decl" >>confdefs.h
27606 if test $ac_have_decl = 1
27607 then :
27608
27609 else case e in #(
27610 e) : ;;
27611 esac
27612 fi
27613
27614
27615 ac_fn_check_decl "$LINENO" "fabsf" "ac_cv_have_decl_fabsf" "#include <math.h>
27616 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27617 if test "x$ac_cv_have_decl_fabsf" = xyes
27618 then :
27619 ac_have_decl=1
27620 else case e in #(
27621 e) ac_have_decl=0 ;;
27622 esac
27623 fi
27624 printf '%s\n' "#define HAVE_DECL_FABSF $ac_have_decl" >>confdefs.h
27625 if test $ac_have_decl = 1
27626 then :
27627
27628 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for fabsf in -lm" >&5
27629 printf %s "checking for fabsf in -lm... " >&6; }
27630 if test ${ac_cv_lib_m_fabsf+y}
27631 then :
27632 printf %s "(cached) " >&6
27633 else case e in #(
27634 e) ac_check_lib_save_LIBS=$LIBS
27635 LIBS="-lm $LIBS"
27636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27637 /* end confdefs.h. */
27638
27639 /* Override any GCC internal prototype to avoid an error.
27640 Use char because int might match the return type of a GCC
27641 builtin and then its argument prototype would still apply.
27642 The 'extern "C"' is for builds by C++ compilers;
27643 although this is not generally supported in C code supporting it here
27644 has little cost and some practical benefit (sr 110532). */
27645 #ifdef __cplusplus
27646 extern "C"
27647 #endif
27648 char fabsf (void);
27649 int
27650 main (void)
27651 {
27652 return fabsf ();
27653 ;
27654 return 0;
27655 }
27656 _ACEOF
27657 if ac_fn_c_try_link "$LINENO"
27658 then :
27659 ac_cv_lib_m_fabsf=yes
27660 else case e in #(
27661 e) ac_cv_lib_m_fabsf=no ;;
27662 esac
27663 fi
27664 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27665 conftest$ac_exeext conftest.$ac_ext
27666 LIBS=$ac_check_lib_save_LIBS ;;
27667 esac
27668 fi
27669 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsf" >&5
27670 printf '%s\n' "$ac_cv_lib_m_fabsf" >&6; }
27671 if test "x$ac_cv_lib_m_fabsf" = xyes
27672 then :
27673 need_libm=yes
27674 fi
27675
27676
27677 fi
27678
27679 ac_fn_check_decl "$LINENO" "modff" "ac_cv_have_decl_modff" "#include <math.h>
27680 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27681 if test "x$ac_cv_have_decl_modff" = xyes
27682 then :
27683 ac_have_decl=1
27684 else case e in #(
27685 e) ac_have_decl=0 ;;
27686 esac
27687 fi
27688 printf '%s\n' "#define HAVE_DECL_MODFF $ac_have_decl" >>confdefs.h
27689 if test $ac_have_decl = 1
27690 then :
27691
27692 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for modff in -lm" >&5
27693 printf %s "checking for modff in -lm... " >&6; }
27694 if test ${ac_cv_lib_m_modff+y}
27695 then :
27696 printf %s "(cached) " >&6
27697 else case e in #(
27698 e) ac_check_lib_save_LIBS=$LIBS
27699 LIBS="-lm $LIBS"
27700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27701 /* end confdefs.h. */
27702
27703 /* Override any GCC internal prototype to avoid an error.
27704 Use char because int might match the return type of a GCC
27705 builtin and then its argument prototype would still apply.
27706 The 'extern "C"' is for builds by C++ compilers;
27707 although this is not generally supported in C code supporting it here
27708 has little cost and some practical benefit (sr 110532). */
27709 #ifdef __cplusplus
27710 extern "C"
27711 #endif
27712 char modff (void);
27713 int
27714 main (void)
27715 {
27716 return modff ();
27717 ;
27718 return 0;
27719 }
27720 _ACEOF
27721 if ac_fn_c_try_link "$LINENO"
27722 then :
27723 ac_cv_lib_m_modff=yes
27724 else case e in #(
27725 e) ac_cv_lib_m_modff=no ;;
27726 esac
27727 fi
27728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27729 conftest$ac_exeext conftest.$ac_ext
27730 LIBS=$ac_check_lib_save_LIBS ;;
27731 esac
27732 fi
27733 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_modff" >&5
27734 printf '%s\n' "$ac_cv_lib_m_modff" >&6; }
27735 if test "x$ac_cv_lib_m_modff" = xyes
27736 then :
27737 need_libm=yes
27738 fi
27739
27740
27741 fi
27742
27743 if test x$need_libm = xyes; then
27744 HWLOC_LIBS="-lm $HWLOC_LIBS"
27745 fi
27746
27747 ac_fn_check_decl "$LINENO" "_SC_NPROCESSORS_ONLN" "ac_cv_have_decl__SC_NPROCESSORS_ONLN" "#include <unistd.h>
27748 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27749 if test "x$ac_cv_have_decl__SC_NPROCESSORS_ONLN" = xyes
27750 then :
27751 ac_have_decl=1
27752 else case e in #(
27753 e) ac_have_decl=0 ;;
27754 esac
27755 fi
27756 printf '%s\n' "#define HAVE_DECL__SC_NPROCESSORS_ONLN $ac_have_decl" >>confdefs.h
27757 if test $ac_have_decl = 1
27758 then :
27759
27760 else case e in #(
27761 e) : ;;
27762 esac
27763 fi
27764 ac_fn_check_decl "$LINENO" "_SC_NPROCESSORS_CONF" "ac_cv_have_decl__SC_NPROCESSORS_CONF" "#include <unistd.h>
27765 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27766 if test "x$ac_cv_have_decl__SC_NPROCESSORS_CONF" = xyes
27767 then :
27768 ac_have_decl=1
27769 else case e in #(
27770 e) ac_have_decl=0 ;;
27771 esac
27772 fi
27773 printf '%s\n' "#define HAVE_DECL__SC_NPROCESSORS_CONF $ac_have_decl" >>confdefs.h
27774 if test $ac_have_decl = 1
27775 then :
27776
27777 else case e in #(
27778 e) : ;;
27779 esac
27780 fi
27781 ac_fn_check_decl "$LINENO" "_SC_NPROC_ONLN" "ac_cv_have_decl__SC_NPROC_ONLN" "#include <unistd.h>
27782 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27783 if test "x$ac_cv_have_decl__SC_NPROC_ONLN" = xyes
27784 then :
27785 ac_have_decl=1
27786 else case e in #(
27787 e) ac_have_decl=0 ;;
27788 esac
27789 fi
27790 printf '%s\n' "#define HAVE_DECL__SC_NPROC_ONLN $ac_have_decl" >>confdefs.h
27791 if test $ac_have_decl = 1
27792 then :
27793
27794 else case e in #(
27795 e) : ;;
27796 esac
27797 fi
27798 ac_fn_check_decl "$LINENO" "_SC_NPROC_CONF" "ac_cv_have_decl__SC_NPROC_CONF" "#include <unistd.h>
27799 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27800 if test "x$ac_cv_have_decl__SC_NPROC_CONF" = xyes
27801 then :
27802 ac_have_decl=1
27803 else case e in #(
27804 e) ac_have_decl=0 ;;
27805 esac
27806 fi
27807 printf '%s\n' "#define HAVE_DECL__SC_NPROC_CONF $ac_have_decl" >>confdefs.h
27808 if test $ac_have_decl = 1
27809 then :
27810
27811 else case e in #(
27812 e) : ;;
27813 esac
27814 fi
27815 ac_fn_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "#include <unistd.h>
27816 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27817 if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes
27818 then :
27819 ac_have_decl=1
27820 else case e in #(
27821 e) ac_have_decl=0 ;;
27822 esac
27823 fi
27824 printf '%s\n' "#define HAVE_DECL__SC_PAGESIZE $ac_have_decl" >>confdefs.h
27825 if test $ac_have_decl = 1
27826 then :
27827
27828 else case e in #(
27829 e) : ;;
27830 esac
27831 fi
27832 ac_fn_check_decl "$LINENO" "_SC_PAGE_SIZE" "ac_cv_have_decl__SC_PAGE_SIZE" "#include <unistd.h>
27833 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27834 if test "x$ac_cv_have_decl__SC_PAGE_SIZE" = xyes
27835 then :
27836 ac_have_decl=1
27837 else case e in #(
27838 e) ac_have_decl=0 ;;
27839 esac
27840 fi
27841 printf '%s\n' "#define HAVE_DECL__SC_PAGE_SIZE $ac_have_decl" >>confdefs.h
27842 if test $ac_have_decl = 1
27843 then :
27844
27845 else case e in #(
27846 e) : ;;
27847 esac
27848 fi
27849 ac_fn_check_decl "$LINENO" "_SC_LARGE_PAGESIZE" "ac_cv_have_decl__SC_LARGE_PAGESIZE" "#include <unistd.h>
27850 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27851 if test "x$ac_cv_have_decl__SC_LARGE_PAGESIZE" = xyes
27852 then :
27853 ac_have_decl=1
27854 else case e in #(
27855 e) ac_have_decl=0 ;;
27856 esac
27857 fi
27858 printf '%s\n' "#define HAVE_DECL__SC_LARGE_PAGESIZE $ac_have_decl" >>confdefs.h
27859 if test $ac_have_decl = 1
27860 then :
27861
27862 else case e in #(
27863 e) : ;;
27864 esac
27865 fi
27866
27867
27868 ac_fn_c_check_header_compile "$LINENO" "mach/mach_init.h" "ac_cv_header_mach_mach_init_h" "$ac_includes_default"
27869 if test "x$ac_cv_header_mach_mach_init_h" = xyes
27870 then :
27871 printf '%s\n' "#define HAVE_MACH_MACH_INIT_H 1" >>confdefs.h
27872
27873 fi
27874
27875 ac_fn_c_check_header_compile "$LINENO" "mach_init.h" "ac_cv_header_mach_init_h" "$ac_includes_default"
27876 if test "x$ac_cv_header_mach_init_h" = xyes
27877 then :
27878 printf '%s\n' "#define HAVE_MACH_INIT_H 1" >>confdefs.h
27879
27880 fi
27881
27882 for ac_header in mach/mach_host.h
27883 do :
27884 ac_fn_c_check_header_compile "$LINENO" "mach/mach_host.h" "ac_cv_header_mach_mach_host_h" "$ac_includes_default"
27885 if test "x$ac_cv_header_mach_mach_host_h" = xyes
27886 then :
27887 printf '%s\n' "#define HAVE_MACH_MACH_HOST_H 1" >>confdefs.h
27888
27889 ac_fn_c_check_func "$LINENO" "host_info" "ac_cv_func_host_info"
27890 if test "x$ac_cv_func_host_info" = xyes
27891 then :
27892 printf '%s\n' "#define HAVE_HOST_INFO 1" >>confdefs.h
27893
27894 fi
27895
27896
27897 fi
27898
27899 done
27900
27901 ac_fn_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default
27902 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27903 if test "x$ac_cv_have_decl_strtoull" = xyes
27904 then :
27905 ac_have_decl=1
27906 else case e in #(
27907 e) ac_have_decl=0 ;;
27908 esac
27909 fi
27910 printf '%s\n' "#define HAVE_DECL_STRTOULL $ac_have_decl" >>confdefs.h
27911 if test $ac_have_decl = 1
27912 then :
27913
27914 else case e in #(
27915 e) ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
27916 if test "x$ac_cv_func_strtoull" = xyes
27917 then :
27918 printf '%s\n' "#define HAVE_STRTOULL 1" >>confdefs.h
27919
27920 fi
27921 ;;
27922 esac
27923 fi
27924
27925
27926 # Needed for Windows in private/misc.h
27927 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27928 if test "x$ac_cv_type_ssize_t" = xyes
27929 then :
27930
27931 printf '%s\n' "#define HAVE_SSIZE_T 1" >>confdefs.h
27932
27933
27934 fi
27935
27936 ac_fn_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default
27937 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27938 if test "x$ac_cv_have_decl_snprintf" = xyes
27939 then :
27940 ac_have_decl=1
27941 else case e in #(
27942 e) ac_have_decl=0 ;;
27943 esac
27944 fi
27945 printf '%s\n' "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h
27946
27947 # strdup and putenv are declared in windows headers but marked deprecated
27948 ac_fn_check_decl "$LINENO" "_strdup" "ac_cv_have_decl__strdup" "$ac_includes_default
27949 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27950 if test "x$ac_cv_have_decl__strdup" = xyes
27951 then :
27952 ac_have_decl=1
27953 else case e in #(
27954 e) ac_have_decl=0 ;;
27955 esac
27956 fi
27957 printf '%s\n' "#define HAVE_DECL__STRDUP $ac_have_decl" >>confdefs.h
27958
27959 ac_fn_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default
27960 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
27961 if test "x$ac_cv_have_decl__putenv" = xyes
27962 then :
27963 ac_have_decl=1
27964 else case e in #(
27965 e) ac_have_decl=0 ;;
27966 esac
27967 fi
27968 printf '%s\n' "#define HAVE_DECL__PUTENV $ac_have_decl" >>confdefs.h
27969
27970 # Could add mkdir and access for hwloc-gather-cpuid.c on Windows
27971
27972 broken_snprintf=no
27973 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether snprintf is correct" >&5
27974 printf %s "checking whether snprintf is correct... " >&6; }
27975 if test "$cross_compiling" = yes
27976 then :
27977
27978 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: don't know (cross-compiling)" >&5
27979 printf '%s\n' "don't know (cross-compiling)" >&6; }
27980 broken_snprintf=maybe
27981
27982 else case e in #(
27983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27984 /* end confdefs.h. */
27985
27986
27987 #include <stdio.h>
27988 #include <string.h>
27989 #include <assert.h>
27990
27991 int
27992 main (void)
27993 {
27994
27995 char buf[7];
27996 assert(snprintf(buf, 7, "abcdef") == 6);
27997 assert(snprintf(buf, 6, "abcdef") == 6);
27998 assert(snprintf(buf, 5, "abcdef") == 6);
27999 assert(snprintf(buf, 0, "abcdef") == 6);
28000 assert(snprintf(NULL, 0, "abcdef") == 6);
28001 return 0;
28002
28003 ;
28004 return 0;
28005 }
28006 _ACEOF
28007 if ac_fn_c_try_run "$LINENO"
28008 then :
28009 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28010 printf '%s\n' "yes" >&6; }
28011 else case e in #(
28012 e)
28013 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
28014 printf '%s\n' "no" >&6; }
28015 broken_snprintf=yes
28016 ;;
28017 esac
28018 fi
28019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28020 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28021 esac
28022 fi
28023
28024
28025 if test x$broken_snprintf = xno; then
28026
28027 printf '%s\n' "#define HWLOC_HAVE_CORRECT_SNPRINTF 1" >>confdefs.h
28028
28029 fi
28030
28031 ac_fn_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "$ac_includes_default
28032 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
28033 if test "x$ac_cv_have_decl_getprogname" = xyes
28034 then :
28035 ac_have_decl=1
28036 else case e in #(
28037 e) ac_have_decl=0 ;;
28038 esac
28039 fi
28040 printf '%s\n' "#define HAVE_DECL_GETPROGNAME $ac_have_decl" >>confdefs.h
28041
28042 ac_fn_check_decl "$LINENO" "getexecname" "ac_cv_have_decl_getexecname" "$ac_includes_default
28043 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
28044 if test "x$ac_cv_have_decl_getexecname" = xyes
28045 then :
28046 ac_have_decl=1
28047 else case e in #(
28048 e) ac_have_decl=0 ;;
28049 esac
28050 fi
28051 printf '%s\n' "#define HAVE_DECL_GETEXECNAME $ac_have_decl" >>confdefs.h
28052
28053 # program_invocation_name and __progname may be available but not exported in headers
28054 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for program_invocation_name" >&5
28055 printf %s "checking for program_invocation_name... " >&6; }
28056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28057 /* end confdefs.h. */
28058
28059
28060 #ifndef _GNU_SOURCE
28061 # define _GNU_SOURCE
28062 #endif
28063 #include <errno.h>
28064 #include <stdio.h>
28065 extern char *program_invocation_name;
28066
28067 int
28068 main (void)
28069 {
28070
28071 return printf("%s\n", program_invocation_name);
28072
28073 ;
28074 return 0;
28075 }
28076 _ACEOF
28077 if ac_fn_c_try_link "$LINENO"
28078 then :
28079
28080 printf '%s\n' "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
28081
28082 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28083 printf '%s\n' "yes" >&6; }
28084
28085 else case e in #(
28086 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
28087 printf '%s\n' "no" >&6; } ;;
28088 esac
28089 fi
28090 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28091 conftest$ac_exeext conftest.$ac_ext
28092 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
28093 printf %s "checking for __progname... " >&6; }
28094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28095 /* end confdefs.h. */
28096
28097
28098 #include <stdio.h>
28099 extern char *__progname;
28100
28101 int
28102 main (void)
28103 {
28104
28105 return printf("%s\n", __progname);
28106
28107 ;
28108 return 0;
28109 }
28110 _ACEOF
28111 if ac_fn_c_try_link "$LINENO"
28112 then :
28113
28114 printf '%s\n' "#define HAVE___PROGNAME 1" >>confdefs.h
28115
28116 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28117 printf '%s\n' "yes" >&6; }
28118
28119 else case e in #(
28120 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
28121 printf '%s\n' "no" >&6; } ;;
28122 esac
28123 fi
28124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28125 conftest$ac_exeext conftest.$ac_ext
28126
28127 case ${target} in
28128 *-*-mingw*|*-*-cygwin*)
28129 hwloc_pid_t=HANDLE
28130 hwloc_thread_t=HANDLE
28131 ;;
28132 *)
28133 hwloc_pid_t=pid_t
28134 ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "#include <pthread.h>
28135 "
28136 if test "x$ac_cv_type_pthread_t" = xyes
28137 then :
28138
28139 printf '%s\n' "#define HAVE_PTHREAD_T 1" >>confdefs.h
28140
28141 hwloc_thread_t=pthread_t
28142 else case e in #(
28143 e) : ;;
28144 esac
28145 fi
28146
28147 ;;
28148 esac
28149
28150 printf '%s\n' "#define hwloc_pid_t $hwloc_pid_t" >>confdefs.h
28151
28152 if test "x$hwloc_thread_t" != "x" ; then
28153
28154 printf '%s\n' "#define hwloc_thread_t $hwloc_thread_t" >>confdefs.h
28155
28156 fi
28157
28158
28159 for ac_func in ffs
28160 do :
28161 ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
28162 if test "x$ac_cv_func_ffs" = xyes
28163 then :
28164 printf '%s\n' "#define HAVE_FFS 1" >>confdefs.h
28165
28166
28167 ac_fn_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
28168 if test "x$ac_cv_have_decl_ffs" = xyes
28169 then :
28170
28171 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether function ffs has a complete prototype" >&5
28172 printf %s "checking whether function ffs has a complete prototype... " >&6; }
28173
28174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28175 /* end confdefs.h. */
28176 $ac_includes_default
28177 int
28178 main (void)
28179 {
28180 ffs(1,2,3,4,5,6,7,8,9,10);
28181
28182 ;
28183 return 0;
28184 }
28185 _ACEOF
28186 if ac_fn_c_try_compile "$LINENO"
28187 then :
28188 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
28189 printf '%s\n' "no" >&6; }
28190
28191 else case e in #(
28192 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28193 printf '%s\n' "yes" >&6; }
28194
28195
28196 printf '%s\n' "#define HWLOC_HAVE_DECL_FFS 1" >>confdefs.h
28197
28198
28199 ;;
28200 esac
28201 fi
28202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28203 fi
28204
28205
28206 printf '%s\n' "#define HWLOC_HAVE_FFS 1" >>confdefs.h
28207
28208 if ( $CC --version | grep gccfss ) >/dev/null 2>&1 ; then
28209
28210 printf '%s\n' "#define HWLOC_HAVE_BROKEN_FFS 1" >>confdefs.h
28211
28212 fi
28213
28214 fi
28215
28216 done
28217
28218 for ac_func in ffsl
28219 do :
28220 ac_fn_c_check_func "$LINENO" "ffsl" "ac_cv_func_ffsl"
28221 if test "x$ac_cv_func_ffsl" = xyes
28222 then :
28223 printf '%s\n' "#define HAVE_FFSL 1" >>confdefs.h
28224
28225
28226 ac_fn_check_decl "$LINENO" "ffsl" "ac_cv_have_decl_ffsl" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
28227 if test "x$ac_cv_have_decl_ffsl" = xyes
28228 then :
28229
28230 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether function ffsl has a complete prototype" >&5
28231 printf %s "checking whether function ffsl has a complete prototype... " >&6; }
28232
28233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28234 /* end confdefs.h. */
28235 $ac_includes_default
28236 int
28237 main (void)
28238 {
28239 ffsl(1,2,3,4,5,6,7,8,9,10);
28240
28241 ;
28242 return 0;
28243 }
28244 _ACEOF
28245 if ac_fn_c_try_compile "$LINENO"
28246 then :
28247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
28248 printf '%s\n' "no" >&6; }
28249
28250 else case e in #(
28251 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28252 printf '%s\n' "yes" >&6; }
28253
28254
28255 printf '%s\n' "#define HWLOC_HAVE_DECL_FFSL 1" >>confdefs.h
28256
28257
28258 ;;
28259 esac
28260 fi
28261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28262 fi
28263
28264
28265 printf '%s\n' "#define HWLOC_HAVE_FFSL 1" >>confdefs.h
28266
28267
28268 fi
28269
28270 done
28271
28272
28273 for ac_func in fls
28274 do :
28275 ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
28276 if test "x$ac_cv_func_fls" = xyes
28277 then :
28278 printf '%s\n' "#define HAVE_FLS 1" >>confdefs.h
28279
28280
28281 ac_fn_check_decl "$LINENO" "fls" "ac_cv_have_decl_fls" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
28282 if test "x$ac_cv_have_decl_fls" = xyes
28283 then :
28284
28285 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether function fls has a complete prototype" >&5
28286 printf %s "checking whether function fls has a complete prototype... " >&6; }
28287
28288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28289 /* end confdefs.h. */
28290 $ac_includes_default
28291 int
28292 main (void)
28293 {
28294 fls(1,2,3,4,5,6,7,8,9,10);
28295
28296 ;
28297 return 0;
28298 }
28299 _ACEOF
28300 if ac_fn_c_try_compile "$LINENO"
28301 then :
28302 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
28303 printf '%s\n' "no" >&6; }
28304
28305 else case e in #(
28306 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28307 printf '%s\n' "yes" >&6; }
28308
28309
28310 printf '%s\n' "#define HWLOC_HAVE_DECL_FLS 1" >>confdefs.h
28311
28312
28313 ;;
28314 esac
28315 fi
28316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28317 fi
28318
28319
28320 printf '%s\n' "#define HWLOC_HAVE_FLS 1" >>confdefs.h
28321
28322
28323 fi
28324
28325 done
28326
28327 for ac_func in flsl
28328 do :
28329 ac_fn_c_check_func "$LINENO" "flsl" "ac_cv_func_flsl"
28330 if test "x$ac_cv_func_flsl" = xyes
28331 then :
28332 printf '%s\n' "#define HAVE_FLSL 1" >>confdefs.h
28333
28334
28335 ac_fn_check_decl "$LINENO" "flsl" "ac_cv_have_decl_flsl" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
28336 if test "x$ac_cv_have_decl_flsl" = xyes
28337 then :
28338
28339 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether function flsl has a complete prototype" >&5
28340 printf %s "checking whether function flsl has a complete prototype... " >&6; }
28341
28342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28343 /* end confdefs.h. */
28344 $ac_includes_default
28345 int
28346 main (void)
28347 {
28348 flsl(1,2,3,4,5,6,7,8,9,10);
28349
28350 ;
28351 return 0;
28352 }
28353 _ACEOF
28354 if ac_fn_c_try_compile "$LINENO"
28355 then :
28356 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
28357 printf '%s\n' "no" >&6; }
28358
28359 else case e in #(
28360 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28361 printf '%s\n' "yes" >&6; }
28362
28363
28364 printf '%s\n' "#define HWLOC_HAVE_DECL_FLSL 1" >>confdefs.h
28365
28366
28367 ;;
28368 esac
28369 fi
28370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28371 fi
28372
28373
28374 printf '%s\n' "#define HWLOC_HAVE_FLSL 1" >>confdefs.h
28375
28376
28377 fi
28378
28379 done
28380
28381
28382 for ac_func in clz
28383 do :
28384 ac_fn_c_check_func "$LINENO" "clz" "ac_cv_func_clz"
28385 if test "x$ac_cv_func_clz" = xyes
28386 then :
28387 printf '%s\n' "#define HAVE_CLZ 1" >>confdefs.h
28388
28389
28390 ac_fn_check_decl "$LINENO" "clz" "ac_cv_have_decl_clz" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
28391 if test "x$ac_cv_have_decl_clz" = xyes
28392 then :
28393
28394 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether function clz has a complete prototype" >&5
28395 printf %s "checking whether function clz has a complete prototype... " >&6; }
28396
28397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28398 /* end confdefs.h. */
28399 $ac_includes_default
28400 int
28401 main (void)
28402 {
28403 clz(1,2,3,4,5,6,7,8,9,10);
28404
28405 ;
28406 return 0;
28407 }
28408 _ACEOF
28409 if ac_fn_c_try_compile "$LINENO"
28410 then :
28411 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
28412 printf '%s\n' "no" >&6; }
28413
28414 else case e in #(
28415 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28416 printf '%s\n' "yes" >&6; }
28417
28418
28419 printf '%s\n' "#define HWLOC_HAVE_DECL_CLZ 1" >>confdefs.h
28420
28421
28422 ;;
28423 esac
28424 fi
28425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28426 fi
28427
28428
28429 printf '%s\n' "#define HWLOC_HAVE_CLZ 1" >>confdefs.h
28430
28431
28432 fi
28433
28434 done
28435
28436 for ac_func in clzl
28437 do :
28438 ac_fn_c_check_func "$LINENO" "clzl" "ac_cv_func_clzl"
28439 if test "x$ac_cv_func_clzl" = xyes
28440 then :
28441 printf '%s\n' "#define HAVE_CLZL 1" >>confdefs.h
28442
28443
28444 ac_fn_check_decl "$LINENO" "clzl" "ac_cv_have_decl_clzl" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
28445 if test "x$ac_cv_have_decl_clzl" = xyes
28446 then :
28447
28448 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether function clzl has a complete prototype" >&5
28449 printf %s "checking whether function clzl has a complete prototype... " >&6; }
28450
28451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28452 /* end confdefs.h. */
28453 $ac_includes_default
28454 int
28455 main (void)
28456 {
28457 clzl(1,2,3,4,5,6,7,8,9,10);
28458
28459 ;
28460 return 0;
28461 }
28462 _ACEOF
28463 if ac_fn_c_try_compile "$LINENO"
28464 then :
28465 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
28466 printf '%s\n' "no" >&6; }
28467
28468 else case e in #(
28469 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28470 printf '%s\n' "yes" >&6; }
28471
28472
28473 printf '%s\n' "#define HWLOC_HAVE_DECL_CLZL 1" >>confdefs.h
28474
28475
28476 ;;
28477 esac
28478 fi
28479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28480 fi
28481
28482
28483 printf '%s\n' "#define HWLOC_HAVE_CLZL 1" >>confdefs.h
28484
28485
28486 fi
28487
28488 done
28489
28490 if test "$hwloc_c_vendor" != "android"
28491 then :
28492
28493 for ac_func in openat
28494 do :
28495 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
28496 if test "x$ac_cv_func_openat" = xyes
28497 then :
28498 printf '%s\n' "#define HAVE_OPENAT 1" >>confdefs.h
28499 hwloc_have_openat=yes
28500 fi
28501
28502 done
28503 fi
28504
28505 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
28506 if test "x$ac_cv_header_malloc_h" = xyes
28507 then :
28508 printf '%s\n' "#define HAVE_MALLOC_H 1" >>confdefs.h
28509
28510 fi
28511
28512 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28513 if test "x$ac_cv_func_getpagesize" = xyes
28514 then :
28515 printf '%s\n' "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28516
28517 fi
28518 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
28519 if test "x$ac_cv_func_memalign" = xyes
28520 then :
28521 printf '%s\n' "#define HAVE_MEMALIGN 1" >>confdefs.h
28522
28523 fi
28524 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
28525 if test "x$ac_cv_func_posix_memalign" = xyes
28526 then :
28527 printf '%s\n' "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
28528
28529 fi
28530
28531
28532 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
28533 if test "x$ac_cv_header_sys_utsname_h" = xyes
28534 then :
28535 printf '%s\n' "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
28536
28537 fi
28538
28539 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
28540 if test "x$ac_cv_func_uname" = xyes
28541 then :
28542 printf '%s\n' "#define HAVE_UNAME 1" >>confdefs.h
28543
28544 fi
28545
28546
28547 # Components and pciaccess require pthread_mutex, see if it needs -lpthread
28548 hwloc_pthread_mutex_happy=no
28549 # Try without explicit -lpthread first
28550 ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
28551 if test "x$ac_cv_func_pthread_mutex_lock" = xyes
28552 then :
28553 hwloc_pthread_mutex_happy=yes
28554 HWLOC_LIBS_PRIVATE="$HWLOC_LIBS_PRIVATE -lpthread"
28555
28556 else case e in #(
28557 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying again with -lpthread ..." >&5
28558 printf '%s\n' "$as_me: trying again with -lpthread ..." >&6;}
28559 # Try again with explicit -lpthread
28560 $as_unset ac_cv_func_pthread_mutex_lock
28561 tmp_save_LIBS=$LIBS
28562 LIBS="$LIBS -lpthread"
28563 ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
28564 if test "x$ac_cv_func_pthread_mutex_lock" = xyes
28565 then :
28566 hwloc_pthread_mutex_happy=yes
28567 HWLOC_LIBS="$HWLOC_LIBS -lpthread"
28568
28569 fi
28570
28571 LIBS="$tmp_save_LIBS"
28572 ;;
28573 esac
28574 fi
28575
28576 if test "x$hwloc_pthread_mutex_happy" = "xyes"
28577 then :
28578
28579 printf '%s\n' "#define HWLOC_HAVE_PTHREAD_MUTEX 1" >>confdefs.h
28580
28581 fi
28582
28583 if test "x$hwloc_pthread_mutex_happy" != xyes -a "x$hwloc_windows" != xyes
28584 then :
28585 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: pthread_mutex_lock not available, required for thread-safe initialization on non-Windows platforms." >&5
28586 printf '%s\n' "$as_me: WARNING: pthread_mutex_lock not available, required for thread-safe initialization on non-Windows platforms." >&2;}
28587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Please report this to the hwloc-users mailing list or at https://github.com/open-mpi/hwloc" >&5
28588 printf '%s\n' "$as_me: WARNING: Please report this to the hwloc-users mailing list or at https://github.com/open-mpi/hwloc" >&2;}
28589 as_fn_error $? "Cannot continue" "$LINENO" 5
28590 fi
28591
28592 if test "$hwloc_mode" != "embedded"
28593 then :
28594 ac_fn_c_check_header_compile "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
28595 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes
28596 then :
28597 printf '%s\n' "#define HAVE_VALGRIND_VALGRIND_H 1" >>confdefs.h
28598
28599 fi
28600
28601 ac_fn_check_decl "$LINENO" "RUNNING_ON_VALGRIND" "ac_cv_have_decl_RUNNING_ON_VALGRIND" "#include <valgrind/valgrind.h>
28602 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
28603 if test "x$ac_cv_have_decl_RUNNING_ON_VALGRIND" = xyes
28604 then :
28605 ac_have_decl=1
28606 else case e in #(
28607 e) ac_have_decl=0 ;;
28608 esac
28609 fi
28610 printf '%s\n' "#define HAVE_DECL_RUNNING_ON_VALGRIND $ac_have_decl" >>confdefs.h
28611 if test $ac_have_decl = 1
28612 then :
28613
28614 else case e in #(
28615 e) : ;;
28616 esac
28617 fi
28618
28619
28620 else case e in #(
28621 e)
28622
28623 printf '%s\n' "#define HAVE_DECL_RUNNING_ON_VALGRIND 0" >>confdefs.h
28624
28625 ;;
28626 esac
28627 fi
28628
28629 if test "x$enable_32bits_pci_domain" = "xyes"
28630 then :
28631
28632
28633 printf '%s\n' "#define HWLOC_HAVE_32BITS_PCI_DOMAIN 1" >>confdefs.h
28634
28635
28636 fi
28637
28638 # PCI support via libpciaccess. NOTE: we do not support
28639 # libpci/pciutils because that library is GPL and is incompatible
28640 # with our BSD license.
28641 hwloc_pciaccess_happy=no
28642 if test "x$enable_io" != xno && test "x$enable_pci" != xno; then
28643 echo
28644 echo "**** pciaccess configuration"
28645
28646 hwloc_pciaccess_happy=yes
28647
28648
28649 HWLOC_pkg_failed=no
28650 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
28651 printf %s "checking for PCIACCESS... " >&6; }
28652
28653 if test -n "$PKG_CONFIG"; then
28654 if test -n "$HWLOC_PCIACCESS_CFLAGS"; then
28655 HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS="$HWLOC_PCIACCESS_CFLAGS"
28656 else
28657 if test -n "$PKG_CONFIG" && \
28658 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"pciaccess\""; } >&5
28659 ($PKG_CONFIG --exists --silence-errors "pciaccess") 2>&5
28660 ac_status=$?
28661 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28662 test $ac_status = 0; }; then
28663 HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess" 2>/dev/null`
28664 else
28665 HWLOC_pkg_failed=yes
28666 fi
28667 fi
28668 else
28669 HWLOC_pkg_failed=untried
28670 fi
28671
28672 if test -n "$PKG_CONFIG"; then
28673 if test -n "$HWLOC_PCIACCESS_LIBS"; then
28674 HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS="$HWLOC_PCIACCESS_LIBS"
28675 else
28676 if test -n "$PKG_CONFIG" && \
28677 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"pciaccess\""; } >&5
28678 ($PKG_CONFIG --exists --silence-errors "pciaccess") 2>&5
28679 ac_status=$?
28680 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28681 test $ac_status = 0; }; then
28682 HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess" 2>/dev/null`
28683 else
28684 HWLOC_pkg_failed=yes
28685 fi
28686 fi
28687 else
28688 HWLOC_pkg_failed=untried
28689 fi
28690
28691
28692
28693
28694 # Check for failure of pkg-config
28695 if test $HWLOC_pkg_failed = yes; then
28696
28697 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28698 HWLOC_pkg_short_errors_supported=yes
28699 else
28700 HWLOC_pkg_short_errors_supported=no
28701 fi
28702 if test $HWLOC_pkg_short_errors_supported = yes; then
28703 HWLOC_PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess" 2>&1`
28704 else
28705 HWLOC_PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess" 2>&1`
28706 fi
28707 # Put the nasty error message in config.log where it belongs
28708 echo "$HWLOC_PCIACCESS_PKG_ERRORS" >&5
28709
28710 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
28711 printf '%s\n' "no" >&6; }
28712 hwloc_pciaccess_happy=no
28713 elif test $HWLOC_pkg_failed = untried; then
28714 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5
28715 printf '%s\n' "cannot check without pkg-config" >&6; }
28716 hwloc_pciaccess_happy=no
28717 else
28718 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28719 printf '%s\n' "yes" >&6; }
28720
28721 # If we got good results from pkg-config, check that they
28722 # actually work (i.e., that we can link against the resulting
28723 # $LIBS). The canonical example why we do this is if
28724 # pkg-config returns 64 bit libraries but ./configure was run
28725 # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid
28726 # results, but we'll fail if we try to link. So detect that
28727 # failure now.
28728 # There are also cases on Mac where pkg-config returns paths
28729 # that do not actually exists until some magic is applied.
28730 # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
28731 # So check whether we find the header as well.
28732 hwloc_cflags_save=$CFLAGS
28733 hwloc_cppflags_save=$CPPFLAGS
28734 hwloc_libs_save=$LIBS
28735 CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS"
28736 CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS"
28737 LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS"
28738 ac_fn_c_check_header_compile "$LINENO" "pciaccess.h" "ac_cv_header_pciaccess_h" "$ac_includes_default"
28739 if test "x$ac_cv_header_pciaccess_h" = xyes
28740 then :
28741
28742 ac_fn_c_check_func "$LINENO" "pci_slot_match_iterator_create" "ac_cv_func_pci_slot_match_iterator_create"
28743 if test "x$ac_cv_func_pci_slot_match_iterator_create" = xyes
28744 then :
28745 hwloc_result=yes
28746 else case e in #(
28747 e) hwloc_result=no ;;
28748 esac
28749 fi
28750
28751
28752 else case e in #(
28753 e) hwloc_result=no ;;
28754 esac
28755 fi
28756
28757 CFLAGS=$hwloc_cflags_save
28758 CPPFLAGS=$hwloc_cppflags_save
28759 LIBS=$hwloc_libs_save
28760
28761 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for final PCIACCESS support" >&5
28762 printf %s "checking for final PCIACCESS support... " >&6; }
28763 if test "$hwloc_result" = "yes"
28764 then :
28765 HWLOC_PCIACCESS_CFLAGS=$HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS
28766 HWLOC_PCIACCESS_LIBS=$HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS
28767 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28768 printf '%s\n' "yes" >&6; }
28769 :
28770 else case e in #(
28771 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
28772 printf '%s\n' "no" >&6; }
28773 hwloc_pciaccess_happy=no ;;
28774 esac
28775 fi
28776 fi
28777
28778 # Only add the REQUIRES if we got pciaccess through pkg-config.
28779 # Otherwise we don't know if pciaccess.pc is installed
28780 if test "$hwloc_pciaccess_happy" = "yes"
28781 then :
28782 HWLOC_PCIACCESS_REQUIRES=pciaccess
28783 fi
28784
28785 # Just for giggles, if we didn't find a pciaccess pkg-config,
28786 # just try looking for its header file and library.
28787 if test "$hwloc_pciaccess_happy" != "yes"
28788 then :
28789 ac_fn_c_check_header_compile "$LINENO" "pciaccess.h" "ac_cv_header_pciaccess_h" "$ac_includes_default"
28790 if test "x$ac_cv_header_pciaccess_h" = xyes
28791 then :
28792 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for pci_slot_match_iterator_create in -lpciaccess" >&5
28793 printf %s "checking for pci_slot_match_iterator_create in -lpciaccess... " >&6; }
28794 if test ${ac_cv_lib_pciaccess_pci_slot_match_iterator_create+y}
28795 then :
28796 printf %s "(cached) " >&6
28797 else case e in #(
28798 e) ac_check_lib_save_LIBS=$LIBS
28799 LIBS="-lpciaccess $LIBS"
28800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28801 /* end confdefs.h. */
28802
28803 /* Override any GCC internal prototype to avoid an error.
28804 Use char because int might match the return type of a GCC
28805 builtin and then its argument prototype would still apply.
28806 The 'extern "C"' is for builds by C++ compilers;
28807 although this is not generally supported in C code supporting it here
28808 has little cost and some practical benefit (sr 110532). */
28809 #ifdef __cplusplus
28810 extern "C"
28811 #endif
28812 char pci_slot_match_iterator_create (void);
28813 int
28814 main (void)
28815 {
28816 return pci_slot_match_iterator_create ();
28817 ;
28818 return 0;
28819 }
28820 _ACEOF
28821 if ac_fn_c_try_link "$LINENO"
28822 then :
28823 ac_cv_lib_pciaccess_pci_slot_match_iterator_create=yes
28824 else case e in #(
28825 e) ac_cv_lib_pciaccess_pci_slot_match_iterator_create=no ;;
28826 esac
28827 fi
28828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28829 conftest$ac_exeext conftest.$ac_ext
28830 LIBS=$ac_check_lib_save_LIBS ;;
28831 esac
28832 fi
28833 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_slot_match_iterator_create" >&5
28834 printf '%s\n' "$ac_cv_lib_pciaccess_pci_slot_match_iterator_create" >&6; }
28835 if test "x$ac_cv_lib_pciaccess_pci_slot_match_iterator_create" = xyes
28836 then :
28837 hwloc_pciaccess_happy=yes
28838 HWLOC_PCIACCESS_LIBS="-lpciaccess"
28839
28840
28841 fi
28842
28843
28844 fi
28845
28846
28847 fi
28848
28849 if test "$hwloc_pciaccess_happy" = "yes"
28850 then :
28851 hwloc_components="$hwloc_components pci"
28852 hwloc_pci_component_maybeplugin=1
28853 fi
28854
28855 echo "**** end of pciaccess configuration"
28856 fi
28857 # If we asked for pci support but couldn't deliver, fail
28858 if test "$enable_pci" = "yes" -a "$hwloc_pciaccess_happy" = "no"
28859 then :
28860 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-pci switch, but could not" >&5
28861 printf '%s\n' "$as_me: WARNING: Specified --enable-pci switch, but could not" >&2;}
28862 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
28863 printf '%s\n' "$as_me: WARNING: find appropriate support" >&2;}
28864 as_fn_error $? "Cannot continue" "$LINENO" 5
28865 fi
28866 # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
28867
28868 if test "x$enable_io" != xno && test "x$enable_opencl" != xno -o "x$enable_cuda" != xno -o "x$enable_nvml" != xno; then
28869 echo
28870 echo "**** NVIDIA-common configuration"
28871
28872 # Try to find CUDA pkg-config using a specific CUDA version
28873 # Use --with-cuda-version first, or $CUDA_VERSION
28874 cuda_version=$CUDA_VERSION
28875 if test "x$with_cuda_version" != xno -a "x$with_cuda_version" != x; then
28876 cuda_version=$with_cuda_version
28877 fi
28878 if test x$cuda_version != x; then
28879 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if cuda-$cuda_version.pc exists" >&5
28880 printf %s "checking if cuda-$cuda_version.pc exists... " >&6; }
28881 if test -n "$PKG_CONFIG" && \
28882 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"cuda-\$cuda_version\""; } >&5
28883 ($PKG_CONFIG --exists --silence-errors "cuda-$cuda_version") 2>&5
28884 ac_status=$?
28885 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28886 test $ac_status = 0; }; then
28887
28888 cudapc=cuda-$cuda_version
28889 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28890 printf '%s\n' "yes" >&6; }
28891 if test -n "$PKG_CONFIG"; then
28892 if test -n "$cuda_includedir"; then
28893 HWLOC_pkg_cv_cuda_includedir="$cuda_includedir"
28894 else
28895 if test -n "$PKG_CONFIG" && \
28896 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"\$cudapc\""; } >&5
28897 ($PKG_CONFIG --exists --silence-errors "$cudapc") 2>&5
28898 ac_status=$?
28899 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28900 test $ac_status = 0; }; then
28901 HWLOC_pkg_cv_cuda_includedir=`$PKG_CONFIG --variable=includedir "$cudapc" 2>/dev/null`
28902 else
28903 HWLOC_pkg_failed=yes
28904 fi
28905 fi
28906 else
28907 HWLOC_pkg_failed=untried
28908 fi
28909
28910 if test -n "$PKG_CONFIG"; then
28911 if test -n "$cuda_libdir"; then
28912 HWLOC_pkg_cv_cuda_libdir="$cuda_libdir"
28913 else
28914 if test -n "$PKG_CONFIG" && \
28915 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"\$cudapc\""; } >&5
28916 ($PKG_CONFIG --exists --silence-errors "$cudapc") 2>&5
28917 ac_status=$?
28918 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28919 test $ac_status = 0; }; then
28920 HWLOC_pkg_cv_cuda_libdir=`$PKG_CONFIG --variable=libdir "$cudapc" 2>/dev/null`
28921 else
28922 HWLOC_pkg_failed=yes
28923 fi
28924 fi
28925 else
28926 HWLOC_pkg_failed=untried
28927 fi
28928
28929
28930 else
28931 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
28932 printf '%s\n' "no" >&6; }
28933 fi
28934 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if cudart-$cuda_version.pc exists" >&5
28935 printf %s "checking if cudart-$cuda_version.pc exists... " >&6; }
28936 if test -n "$PKG_CONFIG" && \
28937 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"cudart-\$cuda_version\""; } >&5
28938 ($PKG_CONFIG --exists --silence-errors "cudart-$cuda_version") 2>&5
28939 ac_status=$?
28940 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28941 test $ac_status = 0; }; then
28942
28943 cudartpc=cudart-$cuda_version
28944 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28945 printf '%s\n' "yes" >&6; }
28946
28947 else
28948 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
28949 printf '%s\n' "no" >&6; }
28950 fi
28951 fi
28952
28953 # OpenCL/NVML/CUDA may use CUDA directories, define common directories
28954 # libnvidia-ml.so (and libcuda.so for tests) is under stubs
28955 # when the driver isn't installed on the build machine.
28956 # hwloc programs will fail to link if libnvidia-ml.so.1 is not available there too.
28957 if test "x$with_cuda" != xno -a "x$with_cuda" != x; then
28958 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: using custom CUDA install path $with_cuda ..." >&5
28959 printf '%s\n' "$as_me: using custom CUDA install path $with_cuda ..." >&6;}
28960 if test "x${ac_cv_sizeof_void_p}" = x4; then
28961 HWLOC_CUDA_COMMON_LDFLAGS="-L$with_cuda/lib/ -L$with_cuda/lib/stubs/"
28962 else
28963 HWLOC_CUDA_COMMON_LDFLAGS="-L$with_cuda/lib64/ -L$with_cuda/lib64/stubs/"
28964 fi
28965 HWLOC_CUDA_COMMON_CPPFLAGS="-I$with_cuda/include/"
28966
28967 else if test x$HWLOC_pkg_cv_cuda_includedir != x -a x$HWLOC_pkg_cv_cuda_libdir != x; then
28968 # or use cuda libdir/includedir from cuda.pc above
28969 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: using CUDA libdir and includedir from ${cudapc}.pc ..." >&5
28970 printf '%s\n' "$as_me: using CUDA libdir and includedir from ${cudapc}.pc ..." >&6;}
28971 HWLOC_CUDA_COMMON_LDFLAGS="-L$HWLOC_pkg_cv_cuda_libdir -L$HWLOC_pkg_cv_cuda_libdir/stubs/"
28972 HWLOC_CUDA_COMMON_CPPFLAGS="-I$HWLOC_pkg_cv_cuda_includedir"
28973
28974 else if test -f /usr/local/cuda/include/cuda.h; then
28975 # or try the default /usr/local/cuda
28976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: using default CUDA install path /usr/local/cuda ..." >&5
28977 printf '%s\n' "$as_me: using default CUDA install path /usr/local/cuda ..." >&6;}
28978 HWLOC_CUDA_COMMON_LDFLAGS="-L/usr/local/cuda/lib64/ -L/usr/local/cuda/lib64/stubs/"
28979 HWLOC_CUDA_COMMON_CPPFLAGS="-I/usr/local/cuda/include/"
28980 fi
28981 fi
28982 fi
28983
28984 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: common CUDA/OpenCL/NVML CPPFLAGS: $HWLOC_CUDA_COMMON_CPPFLAGS" >&5
28985 printf '%s\n' "$as_me: common CUDA/OpenCL/NVML CPPFLAGS: $HWLOC_CUDA_COMMON_CPPFLAGS" >&6;}
28986 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: common CUDA/OpenCL/NVML LDFLAGS: $HWLOC_CUDA_COMMON_LDFLAGS" >&5
28987 printf '%s\n' "$as_me: common CUDA/OpenCL/NVML LDFLAGS: $HWLOC_CUDA_COMMON_LDFLAGS" >&6;}
28988
28989 echo "**** end of NVIDIA-common configuration"
28990 fi
28991
28992 # CUDA support
28993 hwloc_have_cuda=no
28994 hwloc_have_cudart=no
28995 if test "x$enable_io" != xno && test "x$enable_cuda" != "xno"; then
28996 echo
28997 echo "**** CUDA configuration"
28998
28999 # Look for CUDA first, for our test only
29000 if test "x$cudapc" != x; then
29001
29002
29003 HWLOC_pkg_failed=no
29004 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
29005 printf %s "checking for CUDA... " >&6; }
29006
29007 if test -n "$PKG_CONFIG"; then
29008 if test -n "$HWLOC_CUDA_CFLAGS"; then
29009 HWLOC_pkg_cv_HWLOC_CUDA_CFLAGS="$HWLOC_CUDA_CFLAGS"
29010 else
29011 if test -n "$PKG_CONFIG" && \
29012 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"\$cudapc\""; } >&5
29013 ($PKG_CONFIG --exists --silence-errors "$cudapc") 2>&5
29014 ac_status=$?
29015 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29016 test $ac_status = 0; }; then
29017 HWLOC_pkg_cv_HWLOC_CUDA_CFLAGS=`$PKG_CONFIG --cflags "$cudapc" 2>/dev/null`
29018 else
29019 HWLOC_pkg_failed=yes
29020 fi
29021 fi
29022 else
29023 HWLOC_pkg_failed=untried
29024 fi
29025
29026 if test -n "$PKG_CONFIG"; then
29027 if test -n "$HWLOC_CUDA_LIBS"; then
29028 HWLOC_pkg_cv_HWLOC_CUDA_LIBS="$HWLOC_CUDA_LIBS"
29029 else
29030 if test -n "$PKG_CONFIG" && \
29031 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"\$cudapc\""; } >&5
29032 ($PKG_CONFIG --exists --silence-errors "$cudapc") 2>&5
29033 ac_status=$?
29034 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29035 test $ac_status = 0; }; then
29036 HWLOC_pkg_cv_HWLOC_CUDA_LIBS=`$PKG_CONFIG --libs "$cudapc" 2>/dev/null`
29037 else
29038 HWLOC_pkg_failed=yes
29039 fi
29040 fi
29041 else
29042 HWLOC_pkg_failed=untried
29043 fi
29044
29045
29046
29047
29048 # Check for failure of pkg-config
29049 if test $HWLOC_pkg_failed = yes; then
29050
29051 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29052 HWLOC_pkg_short_errors_supported=yes
29053 else
29054 HWLOC_pkg_short_errors_supported=no
29055 fi
29056 if test $HWLOC_pkg_short_errors_supported = yes; then
29057 HWLOC_CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$cudapc" 2>&1`
29058 else
29059 HWLOC_CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$cudapc" 2>&1`
29060 fi
29061 # Put the nasty error message in config.log where it belongs
29062 echo "$HWLOC_CUDA_PKG_ERRORS" >&5
29063
29064 as_fn_error $? "Package requirements ($cudapc) were not met:
29065
29066 $HWLOC_CUDA_PKG_ERRORS
29067
29068 Consider adjusting the PKG_CONFIG_PATH environment variable if you
29069 installed software in a non-standard prefix.
29070
29071 Alternatively, you may set the environment variables HWLOC_CUDA_CFLAGS
29072 and HWLOC_CUDA_LIBS to avoid the need to call pkg-config.
29073 See the pkg-config man page for more details.
29074 " "$LINENO" 5
29075 elif test $HWLOC_pkg_failed = untried; then
29076 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
29077 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
29078 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
29079 is in your PATH or set the PKG_CONFIG environment variable to the full
29080 path to pkg-config.
29081
29082 Alternatively, you may set the environment variables HWLOC_CUDA_CFLAGS
29083 and HWLOC_CUDA_LIBS to avoid the need to call pkg-config.
29084 See the pkg-config man page for more details.
29085
29086 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29087 See 'config.log' for more details" "$LINENO" 5; }
29088 else
29089 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29090 printf '%s\n' "yes" >&6; }
29091
29092 # If we got good results from pkg-config, check that they
29093 # actually work (i.e., that we can link against the resulting
29094 # $LIBS). The canonical example why we do this is if
29095 # pkg-config returns 64 bit libraries but ./configure was run
29096 # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid
29097 # results, but we'll fail if we try to link. So detect that
29098 # failure now.
29099 # There are also cases on Mac where pkg-config returns paths
29100 # that do not actually exists until some magic is applied.
29101 # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
29102 # So check whether we find the header as well.
29103 hwloc_cflags_save=$CFLAGS
29104 hwloc_cppflags_save=$CPPFLAGS
29105 hwloc_libs_save=$LIBS
29106 CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_CUDA_CFLAGS"
29107 CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_CUDA_CFLAGS"
29108 LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_CUDA_LIBS"
29109 ac_fn_c_check_header_compile "$LINENO" "cuda.h" "ac_cv_header_cuda_h" "$ac_includes_default"
29110 if test "x$ac_cv_header_cuda_h" = xyes
29111 then :
29112
29113 ac_fn_c_check_func "$LINENO" "cuInit" "ac_cv_func_cuInit"
29114 if test "x$ac_cv_func_cuInit" = xyes
29115 then :
29116 hwloc_result=yes
29117 else case e in #(
29118 e) hwloc_result=no ;;
29119 esac
29120 fi
29121
29122
29123 else case e in #(
29124 e) hwloc_result=no ;;
29125 esac
29126 fi
29127
29128 CFLAGS=$hwloc_cflags_save
29129 CPPFLAGS=$hwloc_cppflags_save
29130 LIBS=$hwloc_libs_save
29131
29132 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for final CUDA support" >&5
29133 printf %s "checking for final CUDA support... " >&6; }
29134 if test "$hwloc_result" = "yes"
29135 then :
29136 HWLOC_CUDA_CFLAGS=$HWLOC_pkg_cv_HWLOC_CUDA_CFLAGS
29137 HWLOC_CUDA_LIBS=$HWLOC_pkg_cv_HWLOC_CUDA_LIBS
29138 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29139 printf '%s\n' "yes" >&6; }
29140 hwloc_have_cuda=yes
29141 else case e in #(
29142 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
29143 printf '%s\n' "no" >&6; }
29144 : ;;
29145 esac
29146 fi
29147 fi
29148 else
29149 HWLOC_CUDA_CPPFLAGS="$HWLOC_CUDA_COMMON_CPPFLAGS"
29150 HWLOC_CUDA_LDFLAGS="$HWLOC_CUDA_COMMON_LDFLAGS"
29151 tmp_save_CPPFLAGS="$CPPFLAGS"
29152 CPPFLAGS="$CPPFLAGS $HWLOC_CUDA_CPPFLAGS"
29153 tmp_save_LDFLAGS="$LDFLAGS"
29154 LDFLAGS="$LDFLAGS $HWLOC_CUDA_LDFLAGS"
29155 for ac_header in cuda.h
29156 do :
29157 ac_fn_c_check_header_compile "$LINENO" "cuda.h" "ac_cv_header_cuda_h" "$ac_includes_default"
29158 if test "x$ac_cv_header_cuda_h" = xyes
29159 then :
29160 printf '%s\n' "#define HAVE_CUDA_H 1" >>confdefs.h
29161
29162 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if CUDA_VERSION >= 3020" >&5
29163 printf %s "checking if CUDA_VERSION >= 3020... " >&6; }
29164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29165 /* end confdefs.h. */
29166
29167 #include <cuda.h>
29168 #ifndef CUDA_VERSION
29169 #error CUDA_VERSION undefined
29170 #elif CUDA_VERSION < 3020
29171 #error CUDA_VERSION too old
29172 #endif
29173 int
29174 main (void)
29175 {
29176 int i = 3;
29177 ;
29178 return 0;
29179 }
29180 _ACEOF
29181 if ac_fn_c_try_compile "$LINENO"
29182 then :
29183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29184 printf '%s\n' "yes" >&6; }
29185 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for cuInit in -lcuda" >&5
29186 printf %s "checking for cuInit in -lcuda... " >&6; }
29187 if test ${ac_cv_lib_cuda_cuInit+y}
29188 then :
29189 printf %s "(cached) " >&6
29190 else case e in #(
29191 e) ac_check_lib_save_LIBS=$LIBS
29192 LIBS="-lcuda $LIBS"
29193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29194 /* end confdefs.h. */
29195
29196 /* Override any GCC internal prototype to avoid an error.
29197 Use char because int might match the return type of a GCC
29198 builtin and then its argument prototype would still apply.
29199 The 'extern "C"' is for builds by C++ compilers;
29200 although this is not generally supported in C code supporting it here
29201 has little cost and some practical benefit (sr 110532). */
29202 #ifdef __cplusplus
29203 extern "C"
29204 #endif
29205 char cuInit (void);
29206 int
29207 main (void)
29208 {
29209 return cuInit ();
29210 ;
29211 return 0;
29212 }
29213 _ACEOF
29214 if ac_fn_c_try_link "$LINENO"
29215 then :
29216 ac_cv_lib_cuda_cuInit=yes
29217 else case e in #(
29218 e) ac_cv_lib_cuda_cuInit=no ;;
29219 esac
29220 fi
29221 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29222 conftest$ac_exeext conftest.$ac_ext
29223 LIBS=$ac_check_lib_save_LIBS ;;
29224 esac
29225 fi
29226 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cuda_cuInit" >&5
29227 printf '%s\n' "$ac_cv_lib_cuda_cuInit" >&6; }
29228 if test "x$ac_cv_lib_cuda_cuInit" = xyes
29229 then :
29230
29231 HWLOC_CUDA_LIBS="-lcuda"
29232 hwloc_have_cuda=yes
29233
29234 fi
29235
29236
29237 else case e in #(
29238 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
29239 printf '%s\n' "no" >&6; } ;;
29240 esac
29241 fi
29242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29243 fi
29244
29245 done
29246 CPPFLAGS="$tmp_save_CPPFLAGS"
29247 LDFLAGS="$tmp_save_LDFLAGS"
29248 fi
29249 if test x$hwloc_have_cuda = xyes; then
29250
29251
29252
29253
29254
29255 printf '%s\n' "#define HAVE_CUDA 1" >>confdefs.h
29256
29257 fi
29258
29259 # Look for CUDART now, for library and tests
29260 if test "x$cudartpc" != x; then
29261
29262
29263 HWLOC_pkg_failed=no
29264 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for CUDART" >&5
29265 printf %s "checking for CUDART... " >&6; }
29266
29267 if test -n "$PKG_CONFIG"; then
29268 if test -n "$HWLOC_CUDART_CFLAGS"; then
29269 HWLOC_pkg_cv_HWLOC_CUDART_CFLAGS="$HWLOC_CUDART_CFLAGS"
29270 else
29271 if test -n "$PKG_CONFIG" && \
29272 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"\$cudartpc\""; } >&5
29273 ($PKG_CONFIG --exists --silence-errors "$cudartpc") 2>&5
29274 ac_status=$?
29275 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29276 test $ac_status = 0; }; then
29277 HWLOC_pkg_cv_HWLOC_CUDART_CFLAGS=`$PKG_CONFIG --cflags "$cudartpc" 2>/dev/null`
29278 else
29279 HWLOC_pkg_failed=yes
29280 fi
29281 fi
29282 else
29283 HWLOC_pkg_failed=untried
29284 fi
29285
29286 if test -n "$PKG_CONFIG"; then
29287 if test -n "$HWLOC_CUDART_LIBS"; then
29288 HWLOC_pkg_cv_HWLOC_CUDART_LIBS="$HWLOC_CUDART_LIBS"
29289 else
29290 if test -n "$PKG_CONFIG" && \
29291 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"\$cudartpc\""; } >&5
29292 ($PKG_CONFIG --exists --silence-errors "$cudartpc") 2>&5
29293 ac_status=$?
29294 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29295 test $ac_status = 0; }; then
29296 HWLOC_pkg_cv_HWLOC_CUDART_LIBS=`$PKG_CONFIG --libs "$cudartpc" 2>/dev/null`
29297 else
29298 HWLOC_pkg_failed=yes
29299 fi
29300 fi
29301 else
29302 HWLOC_pkg_failed=untried
29303 fi
29304
29305
29306
29307
29308 # Check for failure of pkg-config
29309 if test $HWLOC_pkg_failed = yes; then
29310
29311 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29312 HWLOC_pkg_short_errors_supported=yes
29313 else
29314 HWLOC_pkg_short_errors_supported=no
29315 fi
29316 if test $HWLOC_pkg_short_errors_supported = yes; then
29317 HWLOC_CUDART_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$cudartpc" 2>&1`
29318 else
29319 HWLOC_CUDART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$cudartpc" 2>&1`
29320 fi
29321 # Put the nasty error message in config.log where it belongs
29322 echo "$HWLOC_CUDART_PKG_ERRORS" >&5
29323
29324 as_fn_error $? "Package requirements ($cudartpc) were not met:
29325
29326 $HWLOC_CUDART_PKG_ERRORS
29327
29328 Consider adjusting the PKG_CONFIG_PATH environment variable if you
29329 installed software in a non-standard prefix.
29330
29331 Alternatively, you may set the environment variables HWLOC_CUDART_CFLAGS
29332 and HWLOC_CUDART_LIBS to avoid the need to call pkg-config.
29333 See the pkg-config man page for more details.
29334 " "$LINENO" 5
29335 elif test $HWLOC_pkg_failed = untried; then
29336 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
29337 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
29338 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
29339 is in your PATH or set the PKG_CONFIG environment variable to the full
29340 path to pkg-config.
29341
29342 Alternatively, you may set the environment variables HWLOC_CUDART_CFLAGS
29343 and HWLOC_CUDART_LIBS to avoid the need to call pkg-config.
29344 See the pkg-config man page for more details.
29345
29346 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29347 See 'config.log' for more details" "$LINENO" 5; }
29348 else
29349 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29350 printf '%s\n' "yes" >&6; }
29351
29352 # If we got good results from pkg-config, check that they
29353 # actually work (i.e., that we can link against the resulting
29354 # $LIBS). The canonical example why we do this is if
29355 # pkg-config returns 64 bit libraries but ./configure was run
29356 # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid
29357 # results, but we'll fail if we try to link. So detect that
29358 # failure now.
29359 # There are also cases on Mac where pkg-config returns paths
29360 # that do not actually exists until some magic is applied.
29361 # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
29362 # So check whether we find the header as well.
29363 hwloc_cflags_save=$CFLAGS
29364 hwloc_cppflags_save=$CPPFLAGS
29365 hwloc_libs_save=$LIBS
29366 CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_CUDART_CFLAGS"
29367 CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_CUDART_CFLAGS"
29368 LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_CUDART_LIBS"
29369 ac_fn_c_check_header_compile "$LINENO" "cuda_runtime_api.h" "ac_cv_header_cuda_runtime_api_h" "$ac_includes_default"
29370 if test "x$ac_cv_header_cuda_runtime_api_h" = xyes
29371 then :
29372
29373 ac_fn_c_check_func "$LINENO" "cudaGetDeviceProperties" "ac_cv_func_cudaGetDeviceProperties"
29374 if test "x$ac_cv_func_cudaGetDeviceProperties" = xyes
29375 then :
29376 hwloc_result=yes
29377 else case e in #(
29378 e) hwloc_result=no ;;
29379 esac
29380 fi
29381
29382
29383 else case e in #(
29384 e) hwloc_result=no ;;
29385 esac
29386 fi
29387
29388 CFLAGS=$hwloc_cflags_save
29389 CPPFLAGS=$hwloc_cppflags_save
29390 LIBS=$hwloc_libs_save
29391
29392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for final CUDART support" >&5
29393 printf %s "checking for final CUDART support... " >&6; }
29394 if test "$hwloc_result" = "yes"
29395 then :
29396 HWLOC_CUDART_CFLAGS=$HWLOC_pkg_cv_HWLOC_CUDART_CFLAGS
29397 HWLOC_CUDART_LIBS=$HWLOC_pkg_cv_HWLOC_CUDART_LIBS
29398 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29399 printf '%s\n' "yes" >&6; }
29400
29401 hwloc_have_cudart=yes
29402 HWLOC_CUDART_REQUIRES=$cudartpc
29403
29404 else case e in #(
29405 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
29406 printf '%s\n' "no" >&6; }
29407 : ;;
29408 esac
29409 fi
29410 fi
29411 else
29412 HWLOC_CUDART_CPPFLAGS="$HWLOC_CUDA_COMMON_CPPFLAGS"
29413 HWLOC_CUDART_LDFLAGS="$HWLOC_CUDA_COMMON_LDFLAGS"
29414 tmp_save_CPPFLAGS="$CPPFLAGS"
29415 CPPFLAGS="$CPPFLAGS $HWLOC_CUDART_CPPFLAGS"
29416 tmp_save_LDFLAGS="$LDFLAGS"
29417 LDFLAGS="$LDFLAGS $HWLOC_CUDART_LDFLAGS"
29418 for ac_header in cuda_runtime_api.h
29419 do :
29420 ac_fn_c_check_header_compile "$LINENO" "cuda_runtime_api.h" "ac_cv_header_cuda_runtime_api_h" "$ac_includes_default"
29421 if test "x$ac_cv_header_cuda_runtime_api_h" = xyes
29422 then :
29423 printf '%s\n' "#define HAVE_CUDA_RUNTIME_API_H 1" >>confdefs.h
29424
29425 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if CUDART_VERSION >= 3020" >&5
29426 printf %s "checking if CUDART_VERSION >= 3020... " >&6; }
29427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29428 /* end confdefs.h. */
29429
29430 #include <cuda_runtime_api.h>
29431 #ifndef CUDART_VERSION
29432 #error CUDART_VERSION undefined
29433 #elif CUDART_VERSION < 3020
29434 #error CUDART_VERSION too old
29435 #endif
29436 int
29437 main (void)
29438 {
29439 int i = 3;
29440 ;
29441 return 0;
29442 }
29443 _ACEOF
29444 if ac_fn_c_try_compile "$LINENO"
29445 then :
29446 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29447 printf '%s\n' "yes" >&6; }
29448 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for cudaGetDeviceProperties in -lcudart" >&5
29449 printf %s "checking for cudaGetDeviceProperties in -lcudart... " >&6; }
29450 if test ${ac_cv_lib_cudart_cudaGetDeviceProperties+y}
29451 then :
29452 printf %s "(cached) " >&6
29453 else case e in #(
29454 e) ac_check_lib_save_LIBS=$LIBS
29455 LIBS="-lcudart $LIBS"
29456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29457 /* end confdefs.h. */
29458
29459 /* Override any GCC internal prototype to avoid an error.
29460 Use char because int might match the return type of a GCC
29461 builtin and then its argument prototype would still apply.
29462 The 'extern "C"' is for builds by C++ compilers;
29463 although this is not generally supported in C code supporting it here
29464 has little cost and some practical benefit (sr 110532). */
29465 #ifdef __cplusplus
29466 extern "C"
29467 #endif
29468 char cudaGetDeviceProperties (void);
29469 int
29470 main (void)
29471 {
29472 return cudaGetDeviceProperties ();
29473 ;
29474 return 0;
29475 }
29476 _ACEOF
29477 if ac_fn_c_try_link "$LINENO"
29478 then :
29479 ac_cv_lib_cudart_cudaGetDeviceProperties=yes
29480 else case e in #(
29481 e) ac_cv_lib_cudart_cudaGetDeviceProperties=no ;;
29482 esac
29483 fi
29484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29485 conftest$ac_exeext conftest.$ac_ext
29486 LIBS=$ac_check_lib_save_LIBS ;;
29487 esac
29488 fi
29489 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaGetDeviceProperties" >&5
29490 printf '%s\n' "$ac_cv_lib_cudart_cudaGetDeviceProperties" >&6; }
29491 if test "x$ac_cv_lib_cudart_cudaGetDeviceProperties" = xyes
29492 then :
29493
29494 HWLOC_CUDART_LIBS="-lcudart"
29495 hwloc_have_cudart=yes
29496
29497 fi
29498
29499
29500 fi
29501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29502
29503 fi
29504
29505 done
29506 CPPFLAGS="$tmp_save_CPPFLAGS"
29507 LDFLAGS="$tmp_save_LDFLAGS"
29508 fi
29509 if test x$hwloc_have_cudart = xyes; then
29510 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a program linked with -lcudart can run" >&5
29511 printf %s "checking whether a program linked with -lcudart can run... " >&6; }
29512 tmp_save_LDFLAGS="$LDFLAGS"
29513 LDFLAGS="$LDFLAGS $HWLOC_CUDART_LDFLAGS"
29514 tmp_save_LIBS="$LIBS"
29515 LIBS="$LIBS $HWLOC_CUDART_LIBS"
29516 if test "$cross_compiling" = yes
29517 then :
29518 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: don't know (cross-compiling)" >&5
29519 printf '%s\n' "don't know (cross-compiling)" >&6; }
29520 else case e in #(
29521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29522 /* end confdefs.h. */
29523
29524
29525 #include <stdio.h>
29526 int cudaGetDeviceCount(int *);
29527
29528 int
29529 main (void)
29530 {
29531
29532 int n;
29533 cudaGetDeviceCount(&n); /* may fail if using stubs, but we're looking for libcudart load error instead only */
29534 return 0;
29535
29536
29537 ;
29538 return 0;
29539 }
29540 _ACEOF
29541 if ac_fn_c_try_run "$LINENO"
29542 then :
29543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29544 printf '%s\n' "yes" >&6; }
29545 hwloc_cuda_warning=no
29546 else case e in #(
29547 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
29548 printf '%s\n' "no" >&6; }
29549 hwloc_cuda_warning=yes ;;
29550 esac
29551 fi
29552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29553 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29554 esac
29555 fi
29556
29557 LDFLAGS="$tmp_save_LDFLAGS"
29558 LIBS="$tmp_save_LIBS"
29559
29560
29561
29562
29563
29564 printf '%s\n' "#define HWLOC_HAVE_CUDART 1" >>confdefs.h
29565
29566 fi
29567
29568 if test "$enable_cuda" = "yes" -a "$hwloc_have_cudart" = "no"
29569 then :
29570 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-cuda switch, but could not" >&5
29571 printf '%s\n' "$as_me: WARNING: Specified --enable-cuda switch, but could not" >&2;}
29572 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
29573 printf '%s\n' "$as_me: WARNING: find appropriate support" >&2;}
29574 as_fn_error $? "Cannot continue" "$LINENO" 5
29575 fi
29576 if test "x$with_cuda_version" != x -a "$hwloc_have_cudart" = "no"
29577 then :
29578 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Specified --with-cuda-version switch, but could not" >&5
29579 printf '%s\n' "$as_me: WARNING: Specified --with-cuda-version switch, but could not" >&2;}
29580 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
29581 printf '%s\n' "$as_me: WARNING: find appropriate support" >&2;}
29582 as_fn_error $? "Cannot continue" "$LINENO" 5
29583 fi
29584
29585 if test "x$hwloc_have_cudart" = "xyes"; then
29586 hwloc_components="$hwloc_components cuda"
29587 hwloc_cuda_component_maybeplugin=1
29588 fi
29589
29590 echo "**** end of CUDA configuration"
29591 fi
29592 # don't add LIBS/CFLAGS yet, depends on plugins
29593
29594 # NVML support
29595 hwloc_nvml_happy=no
29596 hwloc_nvml_warning=no
29597 if test "x$enable_io" != xno && test "x$enable_nvml" != "xno"; then
29598 echo
29599 echo "**** NVML configuration"
29600
29601 hwloc_nvml_happy=yes
29602 HWLOC_NVML_CPPFLAGS="$HWLOC_CUDA_COMMON_CPPFLAGS"
29603 HWLOC_NVML_LDFLAGS="$HWLOC_CUDA_COMMON_LDFLAGS"
29604 tmp_save_CPPFLAGS="$CPPFLAGS"
29605 CPPFLAGS="$CPPFLAGS $HWLOC_NVML_CPPFLAGS"
29606 tmp_save_LDFLAGS="$LDFLAGS"
29607 LDFLAGS="$LDFLAGS $HWLOC_NVML_LDFLAGS"
29608 tmp_save_LIBS="$LIBS"
29609 for ac_header in nvml.h
29610 do :
29611 ac_fn_c_check_header_compile "$LINENO" "nvml.h" "ac_cv_header_nvml_h" "$ac_includes_default"
29612 if test "x$ac_cv_header_nvml_h" = xyes
29613 then :
29614 printf '%s\n' "#define HAVE_NVML_H 1" >>confdefs.h
29615
29616 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for nvmlInit in -lnvidia-ml" >&5
29617 printf %s "checking for nvmlInit in -lnvidia-ml... " >&6; }
29618 if test ${ac_cv_lib_nvidia_ml_nvmlInit+y}
29619 then :
29620 printf %s "(cached) " >&6
29621 else case e in #(
29622 e) ac_check_lib_save_LIBS=$LIBS
29623 LIBS="-lnvidia-ml $LIBS"
29624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29625 /* end confdefs.h. */
29626
29627 /* Override any GCC internal prototype to avoid an error.
29628 Use char because int might match the return type of a GCC
29629 builtin and then its argument prototype would still apply.
29630 The 'extern "C"' is for builds by C++ compilers;
29631 although this is not generally supported in C code supporting it here
29632 has little cost and some practical benefit (sr 110532). */
29633 #ifdef __cplusplus
29634 extern "C"
29635 #endif
29636 char nvmlInit (void);
29637 int
29638 main (void)
29639 {
29640 return nvmlInit ();
29641 ;
29642 return 0;
29643 }
29644 _ACEOF
29645 if ac_fn_c_try_link "$LINENO"
29646 then :
29647 ac_cv_lib_nvidia_ml_nvmlInit=yes
29648 else case e in #(
29649 e) ac_cv_lib_nvidia_ml_nvmlInit=no ;;
29650 esac
29651 fi
29652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29653 conftest$ac_exeext conftest.$ac_ext
29654 LIBS=$ac_check_lib_save_LIBS ;;
29655 esac
29656 fi
29657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvidia_ml_nvmlInit" >&5
29658 printf '%s\n' "$ac_cv_lib_nvidia_ml_nvmlInit" >&6; }
29659 if test "x$ac_cv_lib_nvidia_ml_nvmlInit" = xyes
29660 then :
29661 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a program linked with -lnvidia-ml can run" >&5
29662 printf %s "checking whether a program linked with -lnvidia-ml can run... " >&6; }
29663 HWLOC_NVML_LIBS="-lnvidia-ml"
29664 LIBS="$LIBS $HWLOC_NVML_LIBS"
29665 if test "$cross_compiling" = yes
29666 then :
29667 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: don't know (cross-compiling)" >&5
29668 printf '%s\n' "don't know (cross-compiling)" >&6; }
29669 hwloc_nvml_happy=maybe
29670 else case e in #(
29671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29672 /* end confdefs.h. */
29673
29674
29675 #include <stdio.h>
29676 char nvmlInit ();
29677
29678 int
29679 main (void)
29680 {
29681
29682 nvmlInit ();
29683 return 0;
29684
29685
29686 ;
29687 return 0;
29688 }
29689 _ACEOF
29690 if ac_fn_c_try_run "$LINENO"
29691 then :
29692 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29693 printf '%s\n' "yes" >&6; }
29694 hwloc_nvml_warning=no
29695 else case e in #(
29696 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
29697 printf '%s\n' "no" >&6; }
29698 hwloc_nvml_warning=yes ;;
29699 esac
29700 fi
29701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29702 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29703 esac
29704 fi
29705
29706 else case e in #(
29707 e) hwloc_nvml_happy=no ;;
29708 esac
29709 fi
29710
29711
29712 else case e in #(
29713 e) hwloc_nvml_happy=no ;;
29714 esac
29715 fi
29716
29717 done
29718 LIBS="$tmp_save_LIBS"
29719 CPPFLAGS="$tmp_save_CPPFLAGS"
29720 LDFLAGS="$tmp_save_LDFLAGS"
29721
29722 if test "x$hwloc_nvml_happy" = "xyes"; then
29723 tmp_save_CPPFLAGS="$CPPFLAGS"
29724 CPPFLAGS="$CPPFLAGS $HWLOC_NVML_CPPFLAGS"
29725 ac_fn_check_decl "$LINENO" "nvmlDeviceGetCurrPcieLinkGeneration" "ac_cv_have_decl_nvmlDeviceGetCurrPcieLinkGeneration" "#include <nvml.h>
29726 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
29727 if test "x$ac_cv_have_decl_nvmlDeviceGetCurrPcieLinkGeneration" = xyes
29728 then :
29729 ac_have_decl=1
29730 else case e in #(
29731 e) ac_have_decl=0 ;;
29732 esac
29733 fi
29734 printf '%s\n' "#define HAVE_DECL_NVMLDEVICEGETCURRPCIELINKGENERATION $ac_have_decl" >>confdefs.h
29735 if test $ac_have_decl = 1
29736 then :
29737
29738 else case e in #(
29739 e) : ;;
29740 esac
29741 fi
29742
29743 ac_fn_check_decl "$LINENO" "nvmlDeviceGetNvLinkRemoteDeviceType" "ac_cv_have_decl_nvmlDeviceGetNvLinkRemoteDeviceType" "#include <nvml.h>
29744 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
29745 if test "x$ac_cv_have_decl_nvmlDeviceGetNvLinkRemoteDeviceType" = xyes
29746 then :
29747 ac_have_decl=1
29748 else case e in #(
29749 e) ac_have_decl=0 ;;
29750 esac
29751 fi
29752 printf '%s\n' "#define HAVE_DECL_NVMLDEVICEGETNVLINKREMOTEDEVICETYPE $ac_have_decl" >>confdefs.h
29753 if test $ac_have_decl = 1
29754 then :
29755
29756 else case e in #(
29757 e) : ;;
29758 esac
29759 fi
29760
29761 CPPFLAGS="$tmp_save_CPPFLAGS"
29762 fi
29763
29764 echo "**** end of NVML configuration"
29765 fi
29766
29767
29768
29769 # If we asked for nvml support but couldn't deliver, fail
29770 if test "$enable_nvml" = "yes" -a "$hwloc_nvml_happy" = "no"
29771 then :
29772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-nvml switch, but could not" >&5
29773 printf '%s\n' "$as_me: WARNING: Specified --enable-nvml switch, but could not" >&2;}
29774 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
29775 printf '%s\n' "$as_me: WARNING: find appropriate support" >&2;}
29776 as_fn_error $? "Cannot continue" "$LINENO" 5
29777 fi
29778 if test "x$hwloc_nvml_happy" = "xyes"; then
29779
29780 printf '%s\n' "#define HWLOC_HAVE_NVML 1" >>confdefs.h
29781
29782 HWLOC_HAVE_NVML=1
29783
29784 hwloc_components="$hwloc_components nvml"
29785 hwloc_nvml_component_maybeplugin=1
29786 else
29787 HWLOC_HAVE_NVML=0
29788
29789 fi
29790 # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
29791
29792 # RSMI support, rocm_smi64 is just library name and not related to 32/64 bits
29793 hwloc_rsmi_happy=no
29794 if test "x$enable_io" != xno && test "x$enable_rsmi" != "xno"; then
29795 echo
29796 echo "**** RSMI configuration"
29797
29798 # Try to find the ROCm default path a specific ROCm version
29799 # Use --with-rocm-version first, or $ROCM_VERSION
29800 rocm_version=$ROCM_VERSION
29801 if test "x$with_rocm_version" != xno -a "x$with_rocm_version" != x; then
29802 rocm_version=$with_rocm_version
29803 fi
29804 if test "x$with_rocm" != x -a "x$with_rocm" != xyes; then
29805 rocm_dir=$with_rocm
29806 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: using custom ROCm install path $rocm_dir ..." >&5
29807 printf '%s\n' "$as_me: using custom ROCm install path $rocm_dir ..." >&6;}
29808 else if test "x$rocm_version" != x; then
29809 rocm_dir=/opt/rocm-${rocm_version}
29810 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: assuming ROCm $rocm_version is installed in $rocm_dir ..." >&5
29811 printf '%s\n' "$as_me: assuming ROCm $rocm_version is installed in $rocm_dir ..." >&6;}
29812 else if test -d /opt/rocm; then
29813 rocm_dir=/opt/rocm
29814 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: using standard ROCm install path $rocm_dir ..." >&5
29815 printf '%s\n' "$as_me: using standard ROCm install path $rocm_dir ..." >&6;}
29816 else
29817 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: assuming ROCm is installed in standard directories ..." >&5
29818 printf '%s\n' "$as_me: assuming ROCm is installed in standard directories ..." >&6;}
29819 fi
29820 fi
29821 fi
29822 if test "x$rocm_dir" != x; then
29823 # AMD SMI always in main ROCm include path, but ROCm SMI include changed
29824 HWLOC_RSMI_CPPFLAGS="-I$rocm_dir/include/"
29825 HWLOC_RSMI_LDFLAGS="-L$rocm_dir/lib/"
29826 if test -d "$rocm_dir/rcom_smi/include/rocm_smi"; then
29827 # ROCm <5.2 only used its own rocm_smi/{include,lib} directories
29828 HWLOC_RSMI_CPPFLAGS="$HWLOC_RSMI_CPPFLAGS -I$rocm_dir/rocm_smi/include/"
29829 HWLOC_RSMI_LDFLAGS="$HWLOC_RSMI_LDFLAGS -L$rocm_dir/lib/ -L$rocm_dir/rocm_smi/lib/"
29830 fi
29831 fi
29832
29833 # ROCM 6.4+ requires at least headers from /opt/amdgpu
29834 if test "x$with_amdgpu" != x -a "x$with_amdgpu" != xyes; then
29835 amdgpu_dir=$with_amdgpu
29836 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: using custom AMDGPU install path $amdgpu_dir ..." >&5
29837 printf '%s\n' "$as_me: using custom AMDGPU install path $amdgpu_dir ..." >&6;}
29838 else
29839 amdgpu_dir=/opt/amdgpu
29840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: using standard AMDGPU install path $amdgpu_dir ..." >&5
29841 printf '%s\n' "$as_me: using standard AMDGPU install path $amdgpu_dir ..." >&6;}
29842 fi
29843 if test "x$amdgpu_dir" -a -d "$amdgpu_dir/include"; then
29844 HWLOC_RSMI_CPPFLAGS="$HWLOC_RSMI_CPPFLAGS -I$amdgpu_dir/include/"
29845 HWLOC_RSMI_LDFLAGS="$HWLOC_RSMI_LDFLAGS -L$amdgpu_dir/lib/"
29846 fi
29847
29848 hwloc_rsmi_rocm_happy=no
29849 if test "x$enable_rsmi_rocm" != "xno"; then
29850 hwloc_rsmi_rocm_happy=yes
29851 CPPFLAGS_save="$CPPFLAGS"
29852 CPPFLAGS="$CPPFLAGS $HWLOC_RSMI_CPPFLAGS"
29853 for ac_header in rocm_smi/rocm_smi.h
29854 do :
29855 ac_fn_c_check_header_compile "$LINENO" "rocm_smi/rocm_smi.h" "ac_cv_header_rocm_smi_rocm_smi_h" "$ac_includes_default"
29856 if test "x$ac_cv_header_rocm_smi_rocm_smi_h" = xyes
29857 then :
29858 printf '%s\n' "#define HAVE_ROCM_SMI_ROCM_SMI_H 1" >>confdefs.h
29859
29860 LDFLAGS_save="$LDFLAGS"
29861 LDFLAGS="$LDFLAGS $HWLOC_RSMI_LDFLAGS"
29862 LIBS_save="$LIBS"
29863 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for rsmi_init in -lrocm_smi64" >&5
29864 printf %s "checking for rsmi_init in -lrocm_smi64... " >&6; }
29865 if test ${ac_cv_lib_rocm_smi64_rsmi_init+y}
29866 then :
29867 printf %s "(cached) " >&6
29868 else case e in #(
29869 e) ac_check_lib_save_LIBS=$LIBS
29870 LIBS="-lrocm_smi64 $LIBS"
29871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29872 /* end confdefs.h. */
29873
29874 /* Override any GCC internal prototype to avoid an error.
29875 Use char because int might match the return type of a GCC
29876 builtin and then its argument prototype would still apply.
29877 The 'extern "C"' is for builds by C++ compilers;
29878 although this is not generally supported in C code supporting it here
29879 has little cost and some practical benefit (sr 110532). */
29880 #ifdef __cplusplus
29881 extern "C"
29882 #endif
29883 char rsmi_init (void);
29884 int
29885 main (void)
29886 {
29887 return rsmi_init ();
29888 ;
29889 return 0;
29890 }
29891 _ACEOF
29892 if ac_fn_c_try_link "$LINENO"
29893 then :
29894 ac_cv_lib_rocm_smi64_rsmi_init=yes
29895 else case e in #(
29896 e) ac_cv_lib_rocm_smi64_rsmi_init=no ;;
29897 esac
29898 fi
29899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29900 conftest$ac_exeext conftest.$ac_ext
29901 LIBS=$ac_check_lib_save_LIBS ;;
29902 esac
29903 fi
29904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rocm_smi64_rsmi_init" >&5
29905 printf '%s\n' "$ac_cv_lib_rocm_smi64_rsmi_init" >&6; }
29906 if test "x$ac_cv_lib_rocm_smi64_rsmi_init" = xyes
29907 then :
29908 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a program linked with -lrocm_smi64 can run" >&5
29909 printf %s "checking whether a program linked with -lrocm_smi64 can run... " >&6; }
29910 HWLOC_ROCM_SMI_LIBS="-lrocm_smi64"
29911 LIBS="$LIBS $HWLOC_ROCM_SMI_LIBS"
29912 if test "$cross_compiling" = yes
29913 then :
29914 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: don't know (cross-compiling)" >&5
29915 printf '%s\n' "don't know (cross-compiling)" >&6; }
29916 else case e in #(
29917 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29918 /* end confdefs.h. */
29919
29920
29921 #include <stdio.h>
29922 char rsmi_init(int);
29923
29924 int
29925 main (void)
29926 {
29927
29928 rsmi_init(0); /* may fail if driver fails to find some GPUs */
29929 return 0;
29930
29931
29932 ;
29933 return 0;
29934 }
29935 _ACEOF
29936 if ac_fn_c_try_run "$LINENO"
29937 then :
29938 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29939 printf '%s\n' "yes" >&6; }
29940 hwloc_rsmi_warning=no
29941 else case e in #(
29942 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
29943 printf '%s\n' "no" >&6; }
29944 hwloc_rsmi_warning=yes ;;
29945 esac
29946 fi
29947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29948 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29949 esac
29950 fi
29951
29952 ac_fn_check_decl "$LINENO" "rsmi_dev_partition_id_get" "ac_cv_have_decl_rsmi_dev_partition_id_get" "#include <rocm_smi/rocm_smi.h>
29953 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
29954 if test "x$ac_cv_have_decl_rsmi_dev_partition_id_get" = xyes
29955 then :
29956 ac_have_decl=1
29957 else case e in #(
29958 e) ac_have_decl=0 ;;
29959 esac
29960 fi
29961 printf '%s\n' "#define HAVE_DECL_RSMI_DEV_PARTITION_ID_GET $ac_have_decl" >>confdefs.h
29962 if test $ac_have_decl = 1
29963 then :
29964
29965 else case e in #(
29966 e) : ;;
29967 esac
29968 fi
29969
29970
29971 else case e in #(
29972 e) hwloc_rsmi_rocm_happy=no ;;
29973 esac
29974 fi
29975
29976 LDFLAGS="$LDFLAGS_save"
29977 LIBS="$LIBS_save"
29978
29979 else case e in #(
29980 e) hwloc_rsmi_rocm_happy=no ;;
29981 esac
29982 fi
29983
29984 done
29985 CPPFLAGS="$CPPFLAGS_save"
29986 fi
29987
29988 hwloc_rsmi_amd_happy=no
29989 if test "x$enable_rsmi_amd" != "xno"; then
29990 hwloc_rsmi_amd_happy=yes
29991 CPPFLAGS_save="$CPPFLAGS"
29992 CPPFLAGS="$CPPFLAGS $HWLOC_RSMI_CPPFLAGS"
29993 for ac_header in amd_smi/amdsmi.h
29994 do :
29995 ac_fn_c_check_header_compile "$LINENO" "amd_smi/amdsmi.h" "ac_cv_header_amd_smi_amdsmi_h" "$ac_includes_default"
29996 if test "x$ac_cv_header_amd_smi_amdsmi_h" = xyes
29997 then :
29998 printf '%s\n' "#define HAVE_AMD_SMI_AMDSMI_H 1" >>confdefs.h
29999
30000 LDFLAGS_save="$LDFLAGS"
30001 LDFLAGS="$LDFLAGS $HWLOC_RSMI_LDFLAGS"
30002 LIBS_save="$LIBS"
30003 # amdsmi_get_gpu_enumeration_info is needed, added in ROCm 6.4.0
30004 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for amdsmi_get_gpu_enumeration_info in -lamd_smi" >&5
30005 printf %s "checking for amdsmi_get_gpu_enumeration_info in -lamd_smi... " >&6; }
30006 if test ${ac_cv_lib_amd_smi_amdsmi_get_gpu_enumeration_info+y}
30007 then :
30008 printf %s "(cached) " >&6
30009 else case e in #(
30010 e) ac_check_lib_save_LIBS=$LIBS
30011 LIBS="-lamd_smi $LIBS"
30012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30013 /* end confdefs.h. */
30014
30015 /* Override any GCC internal prototype to avoid an error.
30016 Use char because int might match the return type of a GCC
30017 builtin and then its argument prototype would still apply.
30018 The 'extern "C"' is for builds by C++ compilers;
30019 although this is not generally supported in C code supporting it here
30020 has little cost and some practical benefit (sr 110532). */
30021 #ifdef __cplusplus
30022 extern "C"
30023 #endif
30024 char amdsmi_get_gpu_enumeration_info (void);
30025 int
30026 main (void)
30027 {
30028 return amdsmi_get_gpu_enumeration_info ();
30029 ;
30030 return 0;
30031 }
30032 _ACEOF
30033 if ac_fn_c_try_link "$LINENO"
30034 then :
30035 ac_cv_lib_amd_smi_amdsmi_get_gpu_enumeration_info=yes
30036 else case e in #(
30037 e) ac_cv_lib_amd_smi_amdsmi_get_gpu_enumeration_info=no ;;
30038 esac
30039 fi
30040 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30041 conftest$ac_exeext conftest.$ac_ext
30042 LIBS=$ac_check_lib_save_LIBS ;;
30043 esac
30044 fi
30045 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_amd_smi_amdsmi_get_gpu_enumeration_info" >&5
30046 printf '%s\n' "$ac_cv_lib_amd_smi_amdsmi_get_gpu_enumeration_info" >&6; }
30047 if test "x$ac_cv_lib_amd_smi_amdsmi_get_gpu_enumeration_info" = xyes
30048 then :
30049 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a program linked with -lamd_smi can run" >&5
30050 printf %s "checking whether a program linked with -lamd_smi can run... " >&6; }
30051 HWLOC_AMD_SMI_LIBS="-lamd_smi"
30052 LIBS="$LIBS $HWLOC_AMD_SMI_LIBS"
30053 if test "$cross_compiling" = yes
30054 then :
30055 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: don't know (cross-compiling)" >&5
30056 printf '%s\n' "don't know (cross-compiling)" >&6; }
30057 else case e in #(
30058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30059 /* end confdefs.h. */
30060
30061
30062 #include <stdio.h>
30063 char amdsmi_init(int);
30064
30065 int
30066 main (void)
30067 {
30068
30069 amdsmi_init(0);
30070 return 0;
30071
30072
30073 ;
30074 return 0;
30075 }
30076 _ACEOF
30077 if ac_fn_c_try_run "$LINENO"
30078 then :
30079 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30080 printf '%s\n' "yes" >&6; }
30081 hwloc_amdsmi_warning=no
30082 else case e in #(
30083 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
30084 printf '%s\n' "no" >&6; }
30085 hwloc_amdsmi_warning=yes ;;
30086 esac
30087 fi
30088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30089 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
30090 esac
30091 fi
30092
30093
30094 else case e in #(
30095 e) hwloc_rsmi_amd_happy=no ;;
30096 esac
30097 fi
30098
30099 LDFLAGS="$LDFLAGS_save"
30100 LIBS="$LIBS_save"
30101
30102 else case e in #(
30103 e) hwloc_rsmi_amd_happy=no ;;
30104 esac
30105 fi
30106
30107 done
30108 CPPFLAGS="$CPPFLAGS_save"
30109 fi
30110
30111 # merge the result of AMDSMI and ROCm SMI lib checks
30112 if test "x$hwloc_rsmi_rocm_happy$hwloc_rsmi_amd_happy" = xyesyes; then
30113
30114 printf '%s\n' "#define HWLOC_RSMI_USE_ROCM_SMI 1" >>confdefs.h
30115
30116
30117 printf '%s\n' "#define HWLOC_RSMI_USE_AMD_SMI 1" >>confdefs.h
30118
30119 HWLOC_RSMI_LIBS="$HWLOC_ROCM_SMI_LIBS $HWLOC_AMD_SMI_LIBS"
30120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: Using both AMD SMI and ROCm SMI for RSMI backend" >&5
30121 printf '%s\n' "$as_me: Using both AMD SMI and ROCm SMI for RSMI backend" >&6;}
30122 hwloc_rsmi_happy=yes
30123 else if test "x$hwloc_rsmi_rocm_happy$hwloc_rsmi_amd_happy" = xyesno; then
30124
30125 printf '%s\n' "#define HWLOC_RSMI_USE_ROCM_SMI 1" >>confdefs.h
30126
30127 HWLOC_RSMI_LIBS="$HWLOC_ROCM_SMI_LIBS"
30128 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: Using only ROCm SMI for RSMI backend" >&5
30129 printf '%s\n' "$as_me: Using only ROCm SMI for RSMI backend" >&6;}
30130 hwloc_rsmi_happy=yes
30131 else if test "x$hwloc_rsmi_rocm_happy$hwloc_rsmi_amd_happy" = xnoyes; then
30132
30133 printf '%s\n' "#define HWLOC_RSMI_USE_AMD_SMI 1" >>confdefs.h
30134
30135 HWLOC_RSMI_LIBS="$HWLOC_AMD_SMI_LIBS"
30136 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: Using only AMD SMI for RSMI backend" >&5
30137 printf '%s\n' "$as_me: Using only AMD SMI for RSMI backend" >&6;}
30138 hwloc_rsmi_happy=yes
30139 else
30140 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: Neither AMD SMI nor ROCm SMI may be used for RSMI backend" >&5
30141 printf '%s\n' "$as_me: Neither AMD SMI nor ROCm SMI may be used for RSMI backend" >&6;}
30142 hwloc_rsmi_happy=no
30143 fi fi fi
30144
30145 echo "**** end of RSMI configuration"
30146 fi
30147
30148
30149
30150 # If we asked for rsmi support but couldn't deliver, fail
30151 if test "$enable_rsmi" = "yes" -a "$hwloc_rsmi_happy" = "no"
30152 then :
30153 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-rsmi switch, but could not" >&5
30154 printf '%s\n' "$as_me: WARNING: Specified --enable-rsmi switch, but could not" >&2;}
30155 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
30156 printf '%s\n' "$as_me: WARNING: find appropriate support" >&2;}
30157 as_fn_error $? "Cannot continue" "$LINENO" 5
30158 fi
30159 if test "x$hwloc_rsmi_happy" = "xyes"; then
30160
30161 printf '%s\n' "#define HWLOC_HAVE_RSMI 1" >>confdefs.h
30162
30163 HWLOC_HAVE_RSMI=1
30164
30165 hwloc_components="$hwloc_components rsmi"
30166 hwloc_rsmi_component_maybeplugin=1
30167 else
30168 HWLOC_HAVE_RSMI=0
30169
30170 fi
30171 # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
30172
30173 # OpenCL support
30174 hwloc_opencl_happy=no
30175 if test "x$enable_io" != xno && test "x$enable_opencl" != "xno"; then
30176 echo
30177 echo "**** OpenCL configuration"
30178
30179 hwloc_opencl_happy=yes
30180
30181 if test "x$with_opencl" != x -a "x$with_opencl" != xyes; then
30182 opencl_dir=$with_opencl
30183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: using custom OpenCL install path $opencl_dir ..." >&5
30184 printf '%s\n' "$as_me: using custom OpenCL install path $opencl_dir ..." >&6;}
30185 else
30186 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: assuming OpenCL is installed in standard directories ..." >&5
30187 printf '%s\n' "$as_me: assuming OpenCL is installed in standard directories ..." >&6;}
30188 fi
30189 if test "x$opencl_dir" != x; then
30190 HWLOC_OPENCL_CPPFLAGS="-I$opencl_dir/include/"
30191 HWLOC_OPENCL_LDFLAGS="-L$opencl_dir/lib/"
30192 fi
30193
30194 case ${target} in
30195 *-*-darwin*)
30196 # On Darwin, only use the OpenCL framework
30197 for ac_header in OpenCL/cl_ext.h
30198 do :
30199 ac_fn_c_check_header_compile "$LINENO" "OpenCL/cl_ext.h" "ac_cv_header_OpenCL_cl_ext_h" "$ac_includes_default"
30200 if test "x$ac_cv_header_OpenCL_cl_ext_h" = xyes
30201 then :
30202 printf '%s\n' "#define HAVE_OPENCL_CL_EXT_H 1" >>confdefs.h
30203
30204 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for the OpenCL framework" >&5
30205 printf %s "checking for the OpenCL framework... " >&6; }
30206 tmp_save_LDFLAGS="$LDFLAGS"
30207 LDFLAGS="$LDFLAGS -framework OpenCL"
30208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30209 /* end confdefs.h. */
30210
30211
30212 #include <OpenCL/opencl.h>
30213
30214 int
30215 main (void)
30216 {
30217
30218 return clGetDeviceIDs(0, 0, 0, NULL, NULL);
30219
30220 ;
30221 return 0;
30222 }
30223 _ACEOF
30224 if ac_fn_c_try_link "$LINENO"
30225 then :
30226 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30227 printf '%s\n' "yes" >&6; }
30228 HWLOC_OPENCL_LDFLAGS="-framework OpenCL"
30229 else case e in #(
30230 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
30231 printf '%s\n' "no" >&6; }
30232 hwloc_opencl_happy=no ;;
30233 esac
30234 fi
30235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30236 conftest$ac_exeext conftest.$ac_ext
30237 LDFLAGS="$tmp_save_LDFLAGS"
30238
30239 else case e in #(
30240 e) hwloc_opencl_happy=no ;;
30241 esac
30242 fi
30243
30244 done
30245 ;;
30246 *)
30247 # On Others, look for OpenCL at normal locations
30248 HWLOC_OPENCL_CPPFLAGS="$HWLOC_OPENCL_CPPFLAGS $HWLOC_CUDA_COMMON_CPPFLAGS"
30249 HWLOC_OPENCL_LDFLAGS="$HWLOC_OPENCL_LDFLAGS $HWLOC_CUDA_COMMON_LDFLAGS"
30250 if test "x$rocm_dir" != x; then
30251 if test -d "$rocm_dir/include/CL"; then
30252 HWLOC_OPENCL_CPPFLAGS="$HWLOC_OPENCL_CPPFLAGS -I$rocm_dir/include/"
30253 HWLOC_OPENCL_LDFLAGS="$HWLOC_OPENCL_LDFLAGS -L$rocm_dir/lib/"
30254 else
30255 # ROCm <5.2 only used its own opencl/{include,lib} directories
30256 HWLOC_OPENCL_CPPFLAGS="$HWLOC_OPENCL_CPPFLAGS -I$rocm_dir/opencl/include/"
30257 HWLOC_OPENCL_LDFLAGS="$HWLOC_OPENCL_LDFLAGS -L$rocm_dir/opencl/lib/"
30258 fi
30259 fi
30260 tmp_save_CPPFLAGS="$CPPFLAGS"
30261 CPPFLAGS="$CPPFLAGS $HWLOC_OPENCL_CPPFLAGS"
30262 tmp_save_LDFLAGS="$LDFLAGS"
30263 LDFLAGS="$LDFLAGS $HWLOC_OPENCL_LDFLAGS"
30264 for ac_header in CL/cl_ext.h
30265 do :
30266 ac_fn_c_check_header_compile "$LINENO" "CL/cl_ext.h" "ac_cv_header_CL_cl_ext_h" "$ac_includes_default"
30267 if test "x$ac_cv_header_CL_cl_ext_h" = xyes
30268 then :
30269 printf '%s\n' "#define HAVE_CL_CL_EXT_H 1" >>confdefs.h
30270
30271 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for clGetDeviceIDs in -lOpenCL" >&5
30272 printf %s "checking for clGetDeviceIDs in -lOpenCL... " >&6; }
30273 if test ${ac_cv_lib_OpenCL_clGetDeviceIDs+y}
30274 then :
30275 printf %s "(cached) " >&6
30276 else case e in #(
30277 e) ac_check_lib_save_LIBS=$LIBS
30278 LIBS="-lOpenCL $LIBS"
30279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30280 /* end confdefs.h. */
30281
30282 /* Override any GCC internal prototype to avoid an error.
30283 Use char because int might match the return type of a GCC
30284 builtin and then its argument prototype would still apply.
30285 The 'extern "C"' is for builds by C++ compilers;
30286 although this is not generally supported in C code supporting it here
30287 has little cost and some practical benefit (sr 110532). */
30288 #ifdef __cplusplus
30289 extern "C"
30290 #endif
30291 char clGetDeviceIDs (void);
30292 int
30293 main (void)
30294 {
30295 return clGetDeviceIDs ();
30296 ;
30297 return 0;
30298 }
30299 _ACEOF
30300 if ac_fn_c_try_link "$LINENO"
30301 then :
30302 ac_cv_lib_OpenCL_clGetDeviceIDs=yes
30303 else case e in #(
30304 e) ac_cv_lib_OpenCL_clGetDeviceIDs=no ;;
30305 esac
30306 fi
30307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30308 conftest$ac_exeext conftest.$ac_ext
30309 LIBS=$ac_check_lib_save_LIBS ;;
30310 esac
30311 fi
30312 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetDeviceIDs" >&5
30313 printf '%s\n' "$ac_cv_lib_OpenCL_clGetDeviceIDs" >&6; }
30314 if test "x$ac_cv_lib_OpenCL_clGetDeviceIDs" = xyes
30315 then :
30316 HWLOC_OPENCL_LIBS="-lOpenCL"
30317 else case e in #(
30318 e) hwloc_opencl_happy=no ;;
30319 esac
30320 fi
30321
30322
30323 else case e in #(
30324 e) hwloc_opencl_happy=no ;;
30325 esac
30326 fi
30327
30328 done
30329 CPPFLAGS="$tmp_save_CPPFLAGS"
30330 LDFLAGS="$tmp_save_LDFLAGS"
30331 ;;
30332 esac
30333
30334 echo "**** end of OpenCL configuration"
30335 fi
30336
30337
30338
30339 # If we asked for opencl support but couldn't deliver, fail
30340 if test "$enable_opencl" = "yes" -a "$hwloc_opencl_happy" = "no"
30341 then :
30342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-opencl switch, but could not" >&5
30343 printf '%s\n' "$as_me: WARNING: Specified --enable-opencl switch, but could not" >&2;}
30344 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
30345 printf '%s\n' "$as_me: WARNING: find appropriate support" >&2;}
30346 as_fn_error $? "Cannot continue" "$LINENO" 5
30347 fi
30348 if test "x$hwloc_opencl_happy" = "xyes"; then
30349
30350 printf '%s\n' "#define HWLOC_HAVE_OPENCL 1" >>confdefs.h
30351
30352 HWLOC_HAVE_OPENCL=1
30353
30354 hwloc_components="$hwloc_components opencl"
30355 hwloc_opencl_component_maybeplugin=1
30356 else
30357 HWLOC_HAVE_OPENCL=0
30358
30359 fi
30360 # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
30361
30362 # LevelZero support
30363 hwloc_levelzero_happy=no
30364 if test "x$enable_io" != xno && test "x$enable_levelzero" != "xno"; then
30365 echo
30366 echo "**** LevelZero configuration"
30367
30368
30369
30370 HWLOC_pkg_failed=no
30371 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for LEVELZERO" >&5
30372 printf %s "checking for LEVELZERO... " >&6; }
30373
30374 if test -n "$PKG_CONFIG"; then
30375 if test -n "$HWLOC_LEVELZERO_CFLAGS"; then
30376 HWLOC_pkg_cv_HWLOC_LEVELZERO_CFLAGS="$HWLOC_LEVELZERO_CFLAGS"
30377 else
30378 if test -n "$PKG_CONFIG" && \
30379 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libze_loader\""; } >&5
30380 ($PKG_CONFIG --exists --silence-errors "libze_loader") 2>&5
30381 ac_status=$?
30382 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30383 test $ac_status = 0; }; then
30384 HWLOC_pkg_cv_HWLOC_LEVELZERO_CFLAGS=`$PKG_CONFIG --cflags "libze_loader" 2>/dev/null`
30385 else
30386 HWLOC_pkg_failed=yes
30387 fi
30388 fi
30389 else
30390 HWLOC_pkg_failed=untried
30391 fi
30392
30393 if test -n "$PKG_CONFIG"; then
30394 if test -n "$HWLOC_LEVELZERO_LIBS"; then
30395 HWLOC_pkg_cv_HWLOC_LEVELZERO_LIBS="$HWLOC_LEVELZERO_LIBS"
30396 else
30397 if test -n "$PKG_CONFIG" && \
30398 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libze_loader\""; } >&5
30399 ($PKG_CONFIG --exists --silence-errors "libze_loader") 2>&5
30400 ac_status=$?
30401 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30402 test $ac_status = 0; }; then
30403 HWLOC_pkg_cv_HWLOC_LEVELZERO_LIBS=`$PKG_CONFIG --libs "libze_loader" 2>/dev/null`
30404 else
30405 HWLOC_pkg_failed=yes
30406 fi
30407 fi
30408 else
30409 HWLOC_pkg_failed=untried
30410 fi
30411
30412
30413
30414
30415 # Check for failure of pkg-config
30416 if test $HWLOC_pkg_failed = yes; then
30417
30418 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30419 HWLOC_pkg_short_errors_supported=yes
30420 else
30421 HWLOC_pkg_short_errors_supported=no
30422 fi
30423 if test $HWLOC_pkg_short_errors_supported = yes; then
30424 HWLOC_LEVELZERO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libze_loader" 2>&1`
30425 else
30426 HWLOC_LEVELZERO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libze_loader" 2>&1`
30427 fi
30428 # Put the nasty error message in config.log where it belongs
30429 echo "$HWLOC_LEVELZERO_PKG_ERRORS" >&5
30430
30431 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
30432 printf '%s\n' "no" >&6; }
30433 hwloc_levelzero_happy=no
30434 elif test $HWLOC_pkg_failed = untried; then
30435 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5
30436 printf '%s\n' "cannot check without pkg-config" >&6; }
30437 hwloc_levelzero_happy=no
30438 else
30439 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30440 printf '%s\n' "yes" >&6; }
30441
30442 # If we got good results from pkg-config, check that they
30443 # actually work (i.e., that we can link against the resulting
30444 # $LIBS). The canonical example why we do this is if
30445 # pkg-config returns 64 bit libraries but ./configure was run
30446 # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid
30447 # results, but we'll fail if we try to link. So detect that
30448 # failure now.
30449 # There are also cases on Mac where pkg-config returns paths
30450 # that do not actually exists until some magic is applied.
30451 # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
30452 # So check whether we find the header as well.
30453 hwloc_cflags_save=$CFLAGS
30454 hwloc_cppflags_save=$CPPFLAGS
30455 hwloc_libs_save=$LIBS
30456 CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_LEVELZERO_CFLAGS"
30457 CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_LEVELZERO_CFLAGS"
30458 LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_LEVELZERO_LIBS"
30459 ac_fn_c_check_header_compile "$LINENO" "level_zero/zes_api.h" "ac_cv_header_level_zero_zes_api_h" "$ac_includes_default"
30460 if test "x$ac_cv_header_level_zero_zes_api_h" = xyes
30461 then :
30462
30463 ac_fn_c_check_func "$LINENO" "zesDriverGetDeviceByUuidExp" "ac_cv_func_zesDriverGetDeviceByUuidExp"
30464 if test "x$ac_cv_func_zesDriverGetDeviceByUuidExp" = xyes
30465 then :
30466 hwloc_result=yes
30467 else case e in #(
30468 e) hwloc_result=no ;;
30469 esac
30470 fi
30471
30472
30473 else case e in #(
30474 e) hwloc_result=no ;;
30475 esac
30476 fi
30477
30478 CFLAGS=$hwloc_cflags_save
30479 CPPFLAGS=$hwloc_cppflags_save
30480 LIBS=$hwloc_libs_save
30481
30482 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for final LEVELZERO support" >&5
30483 printf %s "checking for final LEVELZERO support... " >&6; }
30484 if test "$hwloc_result" = "yes"
30485 then :
30486 HWLOC_LEVELZERO_CFLAGS=$HWLOC_pkg_cv_HWLOC_LEVELZERO_CFLAGS
30487 HWLOC_LEVELZERO_LIBS=$HWLOC_pkg_cv_HWLOC_LEVELZERO_LIBS
30488 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30489 printf '%s\n' "yes" >&6; }
30490 hwloc_levelzero_happy=yes
30491 HWLOC_LEVELZERO_REQUIRES=libze_loader
30492 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for zeDevicePciGetPropertiesExt in -lze_loader" >&5
30493 printf %s "checking for zeDevicePciGetPropertiesExt in -lze_loader... " >&6; }
30494 if test ${ac_cv_lib_ze_loader_zeDevicePciGetPropertiesExt+y}
30495 then :
30496 printf %s "(cached) " >&6
30497 else case e in #(
30498 e) ac_check_lib_save_LIBS=$LIBS
30499 LIBS="-lze_loader $LIBS"
30500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30501 /* end confdefs.h. */
30502
30503 /* Override any GCC internal prototype to avoid an error.
30504 Use char because int might match the return type of a GCC
30505 builtin and then its argument prototype would still apply.
30506 The 'extern "C"' is for builds by C++ compilers;
30507 although this is not generally supported in C code supporting it here
30508 has little cost and some practical benefit (sr 110532). */
30509 #ifdef __cplusplus
30510 extern "C"
30511 #endif
30512 char zeDevicePciGetPropertiesExt (void);
30513 int
30514 main (void)
30515 {
30516 return zeDevicePciGetPropertiesExt ();
30517 ;
30518 return 0;
30519 }
30520 _ACEOF
30521 if ac_fn_c_try_link "$LINENO"
30522 then :
30523 ac_cv_lib_ze_loader_zeDevicePciGetPropertiesExt=yes
30524 else case e in #(
30525 e) ac_cv_lib_ze_loader_zeDevicePciGetPropertiesExt=no ;;
30526 esac
30527 fi
30528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30529 conftest$ac_exeext conftest.$ac_ext
30530 LIBS=$ac_check_lib_save_LIBS ;;
30531 esac
30532 fi
30533 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ze_loader_zeDevicePciGetPropertiesExt" >&5
30534 printf '%s\n' "$ac_cv_lib_ze_loader_zeDevicePciGetPropertiesExt" >&6; }
30535 if test "x$ac_cv_lib_ze_loader_zeDevicePciGetPropertiesExt" = xyes
30536 then :
30537
30538 printf '%s\n' "#define HWLOC_HAVE_ZEDEVICEPCIGETPROPERTIESEXT 1" >>confdefs.h
30539
30540 fi
30541
30542
30543 else case e in #(
30544 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
30545 printf '%s\n' "no" >&6; }
30546 hwloc_levelzero_happy=no ;;
30547 esac
30548 fi
30549 fi
30550 if test x$hwloc_levelzero_happy = xno; then
30551 hwloc_levelzero_happy=yes
30552 for ac_header in level_zero/ze_api.h
30553 do :
30554 ac_fn_c_check_header_compile "$LINENO" "level_zero/ze_api.h" "ac_cv_header_level_zero_ze_api_h" "$ac_includes_default"
30555 if test "x$ac_cv_header_level_zero_ze_api_h" = xyes
30556 then :
30557 printf '%s\n' "#define HAVE_LEVEL_ZERO_ZE_API_H 1" >>confdefs.h
30558
30559 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for zeInit in -lze_loader" >&5
30560 printf %s "checking for zeInit in -lze_loader... " >&6; }
30561 if test ${ac_cv_lib_ze_loader_zeInit+y}
30562 then :
30563 printf %s "(cached) " >&6
30564 else case e in #(
30565 e) ac_check_lib_save_LIBS=$LIBS
30566 LIBS="-lze_loader $LIBS"
30567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30568 /* end confdefs.h. */
30569
30570 /* Override any GCC internal prototype to avoid an error.
30571 Use char because int might match the return type of a GCC
30572 builtin and then its argument prototype would still apply.
30573 The 'extern "C"' is for builds by C++ compilers;
30574 although this is not generally supported in C code supporting it here
30575 has little cost and some practical benefit (sr 110532). */
30576 #ifdef __cplusplus
30577 extern "C"
30578 #endif
30579 char zeInit (void);
30580 int
30581 main (void)
30582 {
30583 return zeInit ();
30584 ;
30585 return 0;
30586 }
30587 _ACEOF
30588 if ac_fn_c_try_link "$LINENO"
30589 then :
30590 ac_cv_lib_ze_loader_zeInit=yes
30591 else case e in #(
30592 e) ac_cv_lib_ze_loader_zeInit=no ;;
30593 esac
30594 fi
30595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30596 conftest$ac_exeext conftest.$ac_ext
30597 LIBS=$ac_check_lib_save_LIBS ;;
30598 esac
30599 fi
30600 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ze_loader_zeInit" >&5
30601 printf '%s\n' "$ac_cv_lib_ze_loader_zeInit" >&6; }
30602 if test "x$ac_cv_lib_ze_loader_zeInit" = xyes
30603 then :
30604
30605 for ac_header in level_zero/zes_api.h
30606 do :
30607 ac_fn_c_check_header_compile "$LINENO" "level_zero/zes_api.h" "ac_cv_header_level_zero_zes_api_h" "$ac_includes_default"
30608 if test "x$ac_cv_header_level_zero_zes_api_h" = xyes
30609 then :
30610 printf '%s\n' "#define HAVE_LEVEL_ZERO_ZES_API_H 1" >>confdefs.h
30611
30612 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for zesDriverGetDeviceByUuidExp in -lze_loader" >&5
30613 printf %s "checking for zesDriverGetDeviceByUuidExp in -lze_loader... " >&6; }
30614 if test ${ac_cv_lib_ze_loader_zesDriverGetDeviceByUuidExp+y}
30615 then :
30616 printf %s "(cached) " >&6
30617 else case e in #(
30618 e) ac_check_lib_save_LIBS=$LIBS
30619 LIBS="-lze_loader $LIBS"
30620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30621 /* end confdefs.h. */
30622
30623 /* Override any GCC internal prototype to avoid an error.
30624 Use char because int might match the return type of a GCC
30625 builtin and then its argument prototype would still apply.
30626 The 'extern "C"' is for builds by C++ compilers;
30627 although this is not generally supported in C code supporting it here
30628 has little cost and some practical benefit (sr 110532). */
30629 #ifdef __cplusplus
30630 extern "C"
30631 #endif
30632 char zesDriverGetDeviceByUuidExp (void);
30633 int
30634 main (void)
30635 {
30636 return zesDriverGetDeviceByUuidExp ();
30637 ;
30638 return 0;
30639 }
30640 _ACEOF
30641 if ac_fn_c_try_link "$LINENO"
30642 then :
30643 ac_cv_lib_ze_loader_zesDriverGetDeviceByUuidExp=yes
30644 else case e in #(
30645 e) ac_cv_lib_ze_loader_zesDriverGetDeviceByUuidExp=no ;;
30646 esac
30647 fi
30648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30649 conftest$ac_exeext conftest.$ac_ext
30650 LIBS=$ac_check_lib_save_LIBS ;;
30651 esac
30652 fi
30653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ze_loader_zesDriverGetDeviceByUuidExp" >&5
30654 printf '%s\n' "$ac_cv_lib_ze_loader_zesDriverGetDeviceByUuidExp" >&6; }
30655 if test "x$ac_cv_lib_ze_loader_zesDriverGetDeviceByUuidExp" = xyes
30656 then :
30657 HWLOC_LEVELZERO_LIBS="-lze_loader"
30658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for zeDevicePciGetPropertiesExt in -lze_loader" >&5
30659 printf %s "checking for zeDevicePciGetPropertiesExt in -lze_loader... " >&6; }
30660 if test ${ac_cv_lib_ze_loader_zeDevicePciGetPropertiesExt+y}
30661 then :
30662 printf %s "(cached) " >&6
30663 else case e in #(
30664 e) ac_check_lib_save_LIBS=$LIBS
30665 LIBS="-lze_loader $LIBS"
30666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30667 /* end confdefs.h. */
30668
30669 /* Override any GCC internal prototype to avoid an error.
30670 Use char because int might match the return type of a GCC
30671 builtin and then its argument prototype would still apply.
30672 The 'extern "C"' is for builds by C++ compilers;
30673 although this is not generally supported in C code supporting it here
30674 has little cost and some practical benefit (sr 110532). */
30675 #ifdef __cplusplus
30676 extern "C"
30677 #endif
30678 char zeDevicePciGetPropertiesExt (void);
30679 int
30680 main (void)
30681 {
30682 return zeDevicePciGetPropertiesExt ();
30683 ;
30684 return 0;
30685 }
30686 _ACEOF
30687 if ac_fn_c_try_link "$LINENO"
30688 then :
30689 ac_cv_lib_ze_loader_zeDevicePciGetPropertiesExt=yes
30690 else case e in #(
30691 e) ac_cv_lib_ze_loader_zeDevicePciGetPropertiesExt=no ;;
30692 esac
30693 fi
30694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30695 conftest$ac_exeext conftest.$ac_ext
30696 LIBS=$ac_check_lib_save_LIBS ;;
30697 esac
30698 fi
30699 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ze_loader_zeDevicePciGetPropertiesExt" >&5
30700 printf '%s\n' "$ac_cv_lib_ze_loader_zeDevicePciGetPropertiesExt" >&6; }
30701 if test "x$ac_cv_lib_ze_loader_zeDevicePciGetPropertiesExt" = xyes
30702 then :
30703
30704 printf '%s\n' "#define HWLOC_HAVE_ZEDEVICEPCIGETPROPERTIESEXT 1" >>confdefs.h
30705
30706 fi
30707
30708
30709 else case e in #(
30710 e) hwloc_levelzero_happy=no ;;
30711 esac
30712 fi
30713
30714
30715 else case e in #(
30716 e) hwloc_levelzero_happy=no ;;
30717 esac
30718 fi
30719
30720 done
30721
30722 else case e in #(
30723 e) hwloc_levelzero_happy=no ;;
30724 esac
30725 fi
30726
30727
30728 else case e in #(
30729 e) hwloc_levelzero_happy=no ;;
30730 esac
30731 fi
30732
30733 done
30734 fi
30735
30736 echo "**** end of LevelZero configuration"
30737 fi
30738
30739 # If we asked for LevelZero support but couldn't deliver, fail
30740 if test "$enable_levelzero" = "yes" -a "$hwloc_levelzero_happy" = "no"
30741 then :
30742 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-levelzero switch, but could not" >&5
30743 printf '%s\n' "$as_me: WARNING: Specified --enable-levelzero switch, but could not" >&2;}
30744 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
30745 printf '%s\n' "$as_me: WARNING: find appropriate support" >&2;}
30746 as_fn_error $? "Cannot continue" "$LINENO" 5
30747 fi
30748 if test "x$hwloc_levelzero_happy" = "xyes"; then
30749
30750 printf '%s\n' "#define HWLOC_HAVE_LEVELZERO 1" >>confdefs.h
30751
30752 HWLOC_HAVE_LEVELZERO=1
30753
30754 hwloc_components="$hwloc_components levelzero"
30755 hwloc_levelzero_component_maybeplugin=1
30756 else
30757 HWLOC_HAVE_LEVELZERO=0
30758
30759 fi
30760 # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
30761
30762 # GL Support
30763 hwloc_gl_happy=no
30764 if test "x$enable_io" != xno && test "x$enable_gl" != "xno"; then
30765 echo
30766 echo "**** NVIDIA GL configuration"
30767
30768 hwloc_gl_happy=yes
30769
30770 # some X11 support (less then lstopo in hwloc_internal.m4)
30771 if test "$no_x" = yes; then
30772 # Not all programs may use this symbol, but it does not hurt to define it.
30773
30774 printf '%s\n' "#define X_DISPLAY_MISSING 1" >>confdefs.h
30775
30776 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30777 else
30778 if test -n "$x_includes"; then
30779 X_CFLAGS="$X_CFLAGS -I$x_includes"
30780 fi
30781
30782 # It would also be nice to do this for all -L options, not just this one.
30783 if test -n "$x_libraries"; then
30784 X_LIBS="$X_LIBS -L$x_libraries"
30785 # For Solaris; some versions of Sun CC require a space after -R and
30786 # others require no space. Words are not sufficient . . . .
30787 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
30788 printf %s "checking whether -R must be followed by a space... " >&6; }
30789 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30790 ac_xsave_c_werror_flag=$ac_c_werror_flag
30791 ac_c_werror_flag=yes
30792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30793 /* end confdefs.h. */
30794
30795 int
30796 main (void)
30797 {
30798
30799 ;
30800 return 0;
30801 }
30802 _ACEOF
30803 if ac_fn_c_try_link "$LINENO"
30804 then :
30805 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
30806 printf '%s\n' "no" >&6; }
30807 X_LIBS="$X_LIBS -R$x_libraries"
30808 else case e in #(
30809 e) LIBS="$ac_xsave_LIBS -R $x_libraries"
30810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30811 /* end confdefs.h. */
30812
30813 int
30814 main (void)
30815 {
30816
30817 ;
30818 return 0;
30819 }
30820 _ACEOF
30821 if ac_fn_c_try_link "$LINENO"
30822 then :
30823 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30824 printf '%s\n' "yes" >&6; }
30825 X_LIBS="$X_LIBS -R $x_libraries"
30826 else case e in #(
30827 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
30828 printf '%s\n' "neither works" >&6; } ;;
30829 esac
30830 fi
30831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30832 conftest$ac_exeext conftest.$ac_ext ;;
30833 esac
30834 fi
30835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30836 conftest$ac_exeext conftest.$ac_ext
30837 ac_c_werror_flag=$ac_xsave_c_werror_flag
30838 LIBS=$ac_xsave_LIBS
30839 fi
30840
30841 # Check for system-dependent libraries X programs must link with.
30842 # Do this before checking for the system-independent R6 libraries
30843 # (-lICE), since we may need -lsocket or whatever for X linking.
30844
30845 if test "$ISC" = yes; then
30846 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30847 else
30848 # Martyn Johnson says this is needed for Ultrix, if the X
30849 # libraries were built with DECnet support. And Karl Berry says
30850 # the Alpha needs dnet_stub (dnet does not exist).
30851 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30853 /* end confdefs.h. */
30854
30855 /* Override any GCC internal prototype to avoid an error.
30856 Use char because int might match the return type of a GCC
30857 builtin and then its argument prototype would still apply.
30858 The 'extern "C"' is for builds by C++ compilers;
30859 although this is not generally supported in C code supporting it here
30860 has little cost and some practical benefit (sr 110532). */
30861 #ifdef __cplusplus
30862 extern "C"
30863 #endif
30864 char XOpenDisplay (void);
30865 int
30866 main (void)
30867 {
30868 return XOpenDisplay ();
30869 ;
30870 return 0;
30871 }
30872 _ACEOF
30873 if ac_fn_c_try_link "$LINENO"
30874 then :
30875
30876 else case e in #(
30877 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
30878 printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
30879 if test ${ac_cv_lib_dnet_dnet_ntoa+y}
30880 then :
30881 printf %s "(cached) " >&6
30882 else case e in #(
30883 e) ac_check_lib_save_LIBS=$LIBS
30884 LIBS="-ldnet $LIBS"
30885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30886 /* end confdefs.h. */
30887
30888 /* Override any GCC internal prototype to avoid an error.
30889 Use char because int might match the return type of a GCC
30890 builtin and then its argument prototype would still apply.
30891 The 'extern "C"' is for builds by C++ compilers;
30892 although this is not generally supported in C code supporting it here
30893 has little cost and some practical benefit (sr 110532). */
30894 #ifdef __cplusplus
30895 extern "C"
30896 #endif
30897 char dnet_ntoa (void);
30898 int
30899 main (void)
30900 {
30901 return dnet_ntoa ();
30902 ;
30903 return 0;
30904 }
30905 _ACEOF
30906 if ac_fn_c_try_link "$LINENO"
30907 then :
30908 ac_cv_lib_dnet_dnet_ntoa=yes
30909 else case e in #(
30910 e) ac_cv_lib_dnet_dnet_ntoa=no ;;
30911 esac
30912 fi
30913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30914 conftest$ac_exeext conftest.$ac_ext
30915 LIBS=$ac_check_lib_save_LIBS ;;
30916 esac
30917 fi
30918 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30919 printf '%s\n' "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30920 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
30921 then :
30922 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30923 fi
30924
30925 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30926 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
30927 printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30928 if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
30929 then :
30930 printf %s "(cached) " >&6
30931 else case e in #(
30932 e) ac_check_lib_save_LIBS=$LIBS
30933 LIBS="-ldnet_stub $LIBS"
30934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30935 /* end confdefs.h. */
30936
30937 /* Override any GCC internal prototype to avoid an error.
30938 Use char because int might match the return type of a GCC
30939 builtin and then its argument prototype would still apply.
30940 The 'extern "C"' is for builds by C++ compilers;
30941 although this is not generally supported in C code supporting it here
30942 has little cost and some practical benefit (sr 110532). */
30943 #ifdef __cplusplus
30944 extern "C"
30945 #endif
30946 char dnet_ntoa (void);
30947 int
30948 main (void)
30949 {
30950 return dnet_ntoa ();
30951 ;
30952 return 0;
30953 }
30954 _ACEOF
30955 if ac_fn_c_try_link "$LINENO"
30956 then :
30957 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30958 else case e in #(
30959 e) ac_cv_lib_dnet_stub_dnet_ntoa=no ;;
30960 esac
30961 fi
30962 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30963 conftest$ac_exeext conftest.$ac_ext
30964 LIBS=$ac_check_lib_save_LIBS ;;
30965 esac
30966 fi
30967 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30968 printf '%s\n' "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30969 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
30970 then :
30971 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30972 fi
30973
30974 fi ;;
30975 esac
30976 fi
30977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30978 conftest$ac_exeext conftest.$ac_ext
30979 LIBS="$ac_xsave_LIBS"
30980
30981 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
30982 # to get the SysV transport functions.
30983 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30984 # needs -lnsl.
30985 # The nsl library prevents programs from opening the X display
30986 # on Irix 5.2, according to T.E. Dickey.
30987 # The functions gethostbyname, getservbyname, and inet_addr are
30988 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30989 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
30990 if test "x$ac_cv_func_gethostbyname" = xyes
30991 then :
30992
30993 fi
30994
30995 if test $ac_cv_func_gethostbyname = no; then
30996 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
30997 printf %s "checking for gethostbyname in -lnsl... " >&6; }
30998 if test ${ac_cv_lib_nsl_gethostbyname+y}
30999 then :
31000 printf %s "(cached) " >&6
31001 else case e in #(
31002 e) ac_check_lib_save_LIBS=$LIBS
31003 LIBS="-lnsl $LIBS"
31004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31005 /* end confdefs.h. */
31006
31007 /* Override any GCC internal prototype to avoid an error.
31008 Use char because int might match the return type of a GCC
31009 builtin and then its argument prototype would still apply.
31010 The 'extern "C"' is for builds by C++ compilers;
31011 although this is not generally supported in C code supporting it here
31012 has little cost and some practical benefit (sr 110532). */
31013 #ifdef __cplusplus
31014 extern "C"
31015 #endif
31016 char gethostbyname (void);
31017 int
31018 main (void)
31019 {
31020 return gethostbyname ();
31021 ;
31022 return 0;
31023 }
31024 _ACEOF
31025 if ac_fn_c_try_link "$LINENO"
31026 then :
31027 ac_cv_lib_nsl_gethostbyname=yes
31028 else case e in #(
31029 e) ac_cv_lib_nsl_gethostbyname=no ;;
31030 esac
31031 fi
31032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31033 conftest$ac_exeext conftest.$ac_ext
31034 LIBS=$ac_check_lib_save_LIBS ;;
31035 esac
31036 fi
31037 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
31038 printf '%s\n' "$ac_cv_lib_nsl_gethostbyname" >&6; }
31039 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
31040 then :
31041 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
31042 fi
31043
31044 if test $ac_cv_lib_nsl_gethostbyname = no; then
31045 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
31046 printf %s "checking for gethostbyname in -lbsd... " >&6; }
31047 if test ${ac_cv_lib_bsd_gethostbyname+y}
31048 then :
31049 printf %s "(cached) " >&6
31050 else case e in #(
31051 e) ac_check_lib_save_LIBS=$LIBS
31052 LIBS="-lbsd $LIBS"
31053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31054 /* end confdefs.h. */
31055
31056 /* Override any GCC internal prototype to avoid an error.
31057 Use char because int might match the return type of a GCC
31058 builtin and then its argument prototype would still apply.
31059 The 'extern "C"' is for builds by C++ compilers;
31060 although this is not generally supported in C code supporting it here
31061 has little cost and some practical benefit (sr 110532). */
31062 #ifdef __cplusplus
31063 extern "C"
31064 #endif
31065 char gethostbyname (void);
31066 int
31067 main (void)
31068 {
31069 return gethostbyname ();
31070 ;
31071 return 0;
31072 }
31073 _ACEOF
31074 if ac_fn_c_try_link "$LINENO"
31075 then :
31076 ac_cv_lib_bsd_gethostbyname=yes
31077 else case e in #(
31078 e) ac_cv_lib_bsd_gethostbyname=no ;;
31079 esac
31080 fi
31081 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31082 conftest$ac_exeext conftest.$ac_ext
31083 LIBS=$ac_check_lib_save_LIBS ;;
31084 esac
31085 fi
31086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
31087 printf '%s\n' "$ac_cv_lib_bsd_gethostbyname" >&6; }
31088 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
31089 then :
31090 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
31091 fi
31092
31093 fi
31094 fi
31095
31096 # [email protected] says without -lsocket,
31097 # socket/setsockopt and other routines are undefined under SCO ODT
31098 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
31099 # on later versions), says Simon Leinen: it contains gethostby*
31100 # variants that don't use the name server (or something). -lsocket
31101 # must be given before -lnsl if both are needed. We assume that
31102 # if connect needs -lnsl, so does gethostbyname.
31103 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
31104 if test "x$ac_cv_func_connect" = xyes
31105 then :
31106
31107 fi
31108
31109 if test $ac_cv_func_connect = no; then
31110 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
31111 printf %s "checking for connect in -lsocket... " >&6; }
31112 if test ${ac_cv_lib_socket_connect+y}
31113 then :
31114 printf %s "(cached) " >&6
31115 else case e in #(
31116 e) ac_check_lib_save_LIBS=$LIBS
31117 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31119 /* end confdefs.h. */
31120
31121 /* Override any GCC internal prototype to avoid an error.
31122 Use char because int might match the return type of a GCC
31123 builtin and then its argument prototype would still apply.
31124 The 'extern "C"' is for builds by C++ compilers;
31125 although this is not generally supported in C code supporting it here
31126 has little cost and some practical benefit (sr 110532). */
31127 #ifdef __cplusplus
31128 extern "C"
31129 #endif
31130 char connect (void);
31131 int
31132 main (void)
31133 {
31134 return connect ();
31135 ;
31136 return 0;
31137 }
31138 _ACEOF
31139 if ac_fn_c_try_link "$LINENO"
31140 then :
31141 ac_cv_lib_socket_connect=yes
31142 else case e in #(
31143 e) ac_cv_lib_socket_connect=no ;;
31144 esac
31145 fi
31146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31147 conftest$ac_exeext conftest.$ac_ext
31148 LIBS=$ac_check_lib_save_LIBS ;;
31149 esac
31150 fi
31151 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
31152 printf '%s\n' "$ac_cv_lib_socket_connect" >&6; }
31153 if test "x$ac_cv_lib_socket_connect" = xyes
31154 then :
31155 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31156 fi
31157
31158 fi
31159
31160 # Guillermo Gomez says -lposix is necessary on A/UX.
31161 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
31162 if test "x$ac_cv_func_remove" = xyes
31163 then :
31164
31165 fi
31166
31167 if test $ac_cv_func_remove = no; then
31168 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
31169 printf %s "checking for remove in -lposix... " >&6; }
31170 if test ${ac_cv_lib_posix_remove+y}
31171 then :
31172 printf %s "(cached) " >&6
31173 else case e in #(
31174 e) ac_check_lib_save_LIBS=$LIBS
31175 LIBS="-lposix $LIBS"
31176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31177 /* end confdefs.h. */
31178
31179 /* Override any GCC internal prototype to avoid an error.
31180 Use char because int might match the return type of a GCC
31181 builtin and then its argument prototype would still apply.
31182 The 'extern "C"' is for builds by C++ compilers;
31183 although this is not generally supported in C code supporting it here
31184 has little cost and some practical benefit (sr 110532). */
31185 #ifdef __cplusplus
31186 extern "C"
31187 #endif
31188 char remove (void);
31189 int
31190 main (void)
31191 {
31192 return remove ();
31193 ;
31194 return 0;
31195 }
31196 _ACEOF
31197 if ac_fn_c_try_link "$LINENO"
31198 then :
31199 ac_cv_lib_posix_remove=yes
31200 else case e in #(
31201 e) ac_cv_lib_posix_remove=no ;;
31202 esac
31203 fi
31204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31205 conftest$ac_exeext conftest.$ac_ext
31206 LIBS=$ac_check_lib_save_LIBS ;;
31207 esac
31208 fi
31209 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
31210 printf '%s\n' "$ac_cv_lib_posix_remove" >&6; }
31211 if test "x$ac_cv_lib_posix_remove" = xyes
31212 then :
31213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31214 fi
31215
31216 fi
31217
31218 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31219 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
31220 if test "x$ac_cv_func_shmat" = xyes
31221 then :
31222
31223 fi
31224
31225 if test $ac_cv_func_shmat = no; then
31226 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
31227 printf %s "checking for shmat in -lipc... " >&6; }
31228 if test ${ac_cv_lib_ipc_shmat+y}
31229 then :
31230 printf %s "(cached) " >&6
31231 else case e in #(
31232 e) ac_check_lib_save_LIBS=$LIBS
31233 LIBS="-lipc $LIBS"
31234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31235 /* end confdefs.h. */
31236
31237 /* Override any GCC internal prototype to avoid an error.
31238 Use char because int might match the return type of a GCC
31239 builtin and then its argument prototype would still apply.
31240 The 'extern "C"' is for builds by C++ compilers;
31241 although this is not generally supported in C code supporting it here
31242 has little cost and some practical benefit (sr 110532). */
31243 #ifdef __cplusplus
31244 extern "C"
31245 #endif
31246 char shmat (void);
31247 int
31248 main (void)
31249 {
31250 return shmat ();
31251 ;
31252 return 0;
31253 }
31254 _ACEOF
31255 if ac_fn_c_try_link "$LINENO"
31256 then :
31257 ac_cv_lib_ipc_shmat=yes
31258 else case e in #(
31259 e) ac_cv_lib_ipc_shmat=no ;;
31260 esac
31261 fi
31262 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31263 conftest$ac_exeext conftest.$ac_ext
31264 LIBS=$ac_check_lib_save_LIBS ;;
31265 esac
31266 fi
31267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
31268 printf '%s\n' "$ac_cv_lib_ipc_shmat" >&6; }
31269 if test "x$ac_cv_lib_ipc_shmat" = xyes
31270 then :
31271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31272 fi
31273
31274 fi
31275 fi
31276
31277 # Check for libraries that X11R6 Xt/Xaw programs need.
31278 ac_save_LDFLAGS=$LDFLAGS
31279 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31280 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31281 # check for ICE first), but we must link in the order -lSM -lICE or
31282 # we get undefined symbols. So assume we have SM if we have ICE.
31283 # These have to be linked with before -lX11, unlike the other
31284 # libraries we check for below, so use a different variable.
31285 # John Interrante, Karl Berry
31286 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
31287 printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
31288 if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
31289 then :
31290 printf %s "(cached) " >&6
31291 else case e in #(
31292 e) ac_check_lib_save_LIBS=$LIBS
31293 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31295 /* end confdefs.h. */
31296
31297 /* Override any GCC internal prototype to avoid an error.
31298 Use char because int might match the return type of a GCC
31299 builtin and then its argument prototype would still apply.
31300 The 'extern "C"' is for builds by C++ compilers;
31301 although this is not generally supported in C code supporting it here
31302 has little cost and some practical benefit (sr 110532). */
31303 #ifdef __cplusplus
31304 extern "C"
31305 #endif
31306 char IceConnectionNumber (void);
31307 int
31308 main (void)
31309 {
31310 return IceConnectionNumber ();
31311 ;
31312 return 0;
31313 }
31314 _ACEOF
31315 if ac_fn_c_try_link "$LINENO"
31316 then :
31317 ac_cv_lib_ICE_IceConnectionNumber=yes
31318 else case e in #(
31319 e) ac_cv_lib_ICE_IceConnectionNumber=no ;;
31320 esac
31321 fi
31322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31323 conftest$ac_exeext conftest.$ac_ext
31324 LIBS=$ac_check_lib_save_LIBS ;;
31325 esac
31326 fi
31327 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31328 printf '%s\n' "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31329 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
31330 then :
31331 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31332 fi
31333
31334 LDFLAGS=$ac_save_LDFLAGS
31335
31336 fi
31337
31338
31339 CPPFLAGS_save=$CPPFLAGS
31340 LIBS_save=$LIBS
31341
31342 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
31343 LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
31344 for ac_header in X11/Xlib.h
31345 do :
31346 ac_fn_c_check_header_compile "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
31347 if test "x$ac_cv_header_X11_Xlib_h" = xyes
31348 then :
31349 printf '%s\n' "#define HAVE_X11_XLIB_H 1" >>confdefs.h
31350 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
31351 printf %s "checking for XOpenDisplay in -lX11... " >&6; }
31352 if test ${ac_cv_lib_X11_XOpenDisplay+y}
31353 then :
31354 printf %s "(cached) " >&6
31355 else case e in #(
31356 e) ac_check_lib_save_LIBS=$LIBS
31357 LIBS="-lX11 $LIBS"
31358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31359 /* end confdefs.h. */
31360
31361 /* Override any GCC internal prototype to avoid an error.
31362 Use char because int might match the return type of a GCC
31363 builtin and then its argument prototype would still apply.
31364 The 'extern "C"' is for builds by C++ compilers;
31365 although this is not generally supported in C code supporting it here
31366 has little cost and some practical benefit (sr 110532). */
31367 #ifdef __cplusplus
31368 extern "C"
31369 #endif
31370 char XOpenDisplay (void);
31371 int
31372 main (void)
31373 {
31374 return XOpenDisplay ();
31375 ;
31376 return 0;
31377 }
31378 _ACEOF
31379 if ac_fn_c_try_link "$LINENO"
31380 then :
31381 ac_cv_lib_X11_XOpenDisplay=yes
31382 else case e in #(
31383 e) ac_cv_lib_X11_XOpenDisplay=no ;;
31384 esac
31385 fi
31386 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31387 conftest$ac_exeext conftest.$ac_ext
31388 LIBS=$ac_check_lib_save_LIBS ;;
31389 esac
31390 fi
31391 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
31392 printf '%s\n' "$ac_cv_lib_X11_XOpenDisplay" >&6; }
31393 if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes
31394 then :
31395 hwloc_enable_X11=yes
31396 fi
31397
31398
31399 fi
31400
31401 done
31402 CPPFLAGS=$CPPFLAGS_save
31403 LIBS=$LIBS_save
31404
31405 if test "$hwloc_enable_X11" != "yes"
31406 then :
31407 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: X11 not found; GL disabled" >&5
31408 printf '%s\n' "$as_me: WARNING: X11 not found; GL disabled" >&2;}
31409 hwloc_gl_happy=no
31410 fi
31411
31412 for ac_header in NVCtrl/NVCtrl.h
31413 do :
31414 ac_fn_c_check_header_compile "$LINENO" "NVCtrl/NVCtrl.h" "ac_cv_header_NVCtrl_NVCtrl_h" "$ac_includes_default"
31415 if test "x$ac_cv_header_NVCtrl_NVCtrl_h" = xyes
31416 then :
31417 printf '%s\n' "#define HAVE_NVCTRL_NVCTRL_H 1" >>confdefs.h
31418
31419 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryTargetAttribute in -lXNVCtrl" >&5
31420 printf %s "checking for XNVCTRLQueryTargetAttribute in -lXNVCtrl... " >&6; }
31421 if test ${ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute+y}
31422 then :
31423 printf %s "(cached) " >&6
31424 else case e in #(
31425 e) ac_check_lib_save_LIBS=$LIBS
31426 LIBS="-lXNVCtrl -lXext $LIBS"
31427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31428 /* end confdefs.h. */
31429
31430 /* Override any GCC internal prototype to avoid an error.
31431 Use char because int might match the return type of a GCC
31432 builtin and then its argument prototype would still apply.
31433 The 'extern "C"' is for builds by C++ compilers;
31434 although this is not generally supported in C code supporting it here
31435 has little cost and some practical benefit (sr 110532). */
31436 #ifdef __cplusplus
31437 extern "C"
31438 #endif
31439 char XNVCTRLQueryTargetAttribute (void);
31440 int
31441 main (void)
31442 {
31443 return XNVCTRLQueryTargetAttribute ();
31444 ;
31445 return 0;
31446 }
31447 _ACEOF
31448 if ac_fn_c_try_link "$LINENO"
31449 then :
31450 ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute=yes
31451 else case e in #(
31452 e) ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute=no ;;
31453 esac
31454 fi
31455 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31456 conftest$ac_exeext conftest.$ac_ext
31457 LIBS=$ac_check_lib_save_LIBS ;;
31458 esac
31459 fi
31460 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" >&5
31461 printf '%s\n' "$ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" >&6; }
31462 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" = xyes
31463 then :
31464 :
31465 else case e in #(
31466 e) hwloc_gl_happy=no ;;
31467 esac
31468 fi
31469
31470
31471 else case e in #(
31472 e) hwloc_gl_happy=no ;;
31473 esac
31474 fi
31475
31476 done
31477
31478 if test "x$hwloc_gl_happy" = "xyes"; then
31479
31480 printf '%s\n' "#define HWLOC_HAVE_GL 1" >>confdefs.h
31481
31482 HWLOC_GL_LIBS="-lXNVCtrl -lXext -lX11"
31483
31484 # FIXME we actually don't know if xext.pc and x11.pc are installed
31485 # since we didn't look for Xext and X11 using pkg-config
31486 HWLOC_GL_REQUIRES="xext x11"
31487 hwloc_have_gl=yes
31488 hwloc_components="$hwloc_components gl"
31489 hwloc_gl_component_maybeplugin=1
31490 else
31491 if test "$enable_gl" = "yes"
31492 then :
31493
31494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-gl switch, but could not" >&5
31495 printf '%s\n' "$as_me: WARNING: Specified --enable-gl switch, but could not" >&2;}
31496 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
31497 printf '%s\n' "$as_me: WARNING: find appropriate support" >&2;}
31498 as_fn_error $? "Cannot continue" "$LINENO" 5
31499
31500 fi
31501 fi
31502
31503 echo "**** end of NVIDIA GL configuration"
31504 fi
31505 # don't add LIBS/CFLAGS yet, depends on plugins
31506
31507 # libxml2 support
31508 hwloc_libxml2_happy=
31509 if test "x$enable_libxml2" != "xno"; then
31510 echo
31511 echo "**** libxml2 configuration"
31512
31513
31514
31515 HWLOC_pkg_failed=no
31516 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
31517 printf %s "checking for LIBXML2... " >&6; }
31518
31519 if test -n "$PKG_CONFIG"; then
31520 if test -n "$HWLOC_LIBXML2_CFLAGS"; then
31521 HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS="$HWLOC_LIBXML2_CFLAGS"
31522 else
31523 if test -n "$PKG_CONFIG" && \
31524 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libxml-2.0\""; } >&5
31525 ($PKG_CONFIG --exists --silence-errors "libxml-2.0") 2>&5
31526 ac_status=$?
31527 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31528 test $ac_status = 0; }; then
31529 HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
31530 else
31531 HWLOC_pkg_failed=yes
31532 fi
31533 fi
31534 else
31535 HWLOC_pkg_failed=untried
31536 fi
31537
31538 if test -n "$PKG_CONFIG"; then
31539 if test -n "$HWLOC_LIBXML2_LIBS"; then
31540 HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS="$HWLOC_LIBXML2_LIBS"
31541 else
31542 if test -n "$PKG_CONFIG" && \
31543 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libxml-2.0\""; } >&5
31544 ($PKG_CONFIG --exists --silence-errors "libxml-2.0") 2>&5
31545 ac_status=$?
31546 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31547 test $ac_status = 0; }; then
31548 HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
31549 else
31550 HWLOC_pkg_failed=yes
31551 fi
31552 fi
31553 else
31554 HWLOC_pkg_failed=untried
31555 fi
31556
31557
31558
31559
31560 # Check for failure of pkg-config
31561 if test $HWLOC_pkg_failed = yes; then
31562
31563 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31564 HWLOC_pkg_short_errors_supported=yes
31565 else
31566 HWLOC_pkg_short_errors_supported=no
31567 fi
31568 if test $HWLOC_pkg_short_errors_supported = yes; then
31569 HWLOC_LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0" 2>&1`
31570 else
31571 HWLOC_LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0" 2>&1`
31572 fi
31573 # Put the nasty error message in config.log where it belongs
31574 echo "$HWLOC_LIBXML2_PKG_ERRORS" >&5
31575
31576 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
31577 printf '%s\n' "no" >&6; }
31578 hwloc_libxml2_happy=no
31579 elif test $HWLOC_pkg_failed = untried; then
31580 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5
31581 printf '%s\n' "cannot check without pkg-config" >&6; }
31582 hwloc_libxml2_happy=no
31583 else
31584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31585 printf '%s\n' "yes" >&6; }
31586
31587 # If we got good results from pkg-config, check that they
31588 # actually work (i.e., that we can link against the resulting
31589 # $LIBS). The canonical example why we do this is if
31590 # pkg-config returns 64 bit libraries but ./configure was run
31591 # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid
31592 # results, but we'll fail if we try to link. So detect that
31593 # failure now.
31594 # There are also cases on Mac where pkg-config returns paths
31595 # that do not actually exists until some magic is applied.
31596 # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
31597 # So check whether we find the header as well.
31598 hwloc_cflags_save=$CFLAGS
31599 hwloc_cppflags_save=$CPPFLAGS
31600 hwloc_libs_save=$LIBS
31601 CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS"
31602 CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS"
31603 LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS"
31604 ac_fn_c_check_header_compile "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31605 if test "x$ac_cv_header_libxml_parser_h" = xyes
31606 then :
31607
31608 ac_fn_c_check_func "$LINENO" "xmlNewDoc" "ac_cv_func_xmlNewDoc"
31609 if test "x$ac_cv_func_xmlNewDoc" = xyes
31610 then :
31611 hwloc_result=yes
31612 else case e in #(
31613 e) hwloc_result=no ;;
31614 esac
31615 fi
31616
31617
31618 else case e in #(
31619 e) hwloc_result=no ;;
31620 esac
31621 fi
31622
31623 CFLAGS=$hwloc_cflags_save
31624 CPPFLAGS=$hwloc_cppflags_save
31625 LIBS=$hwloc_libs_save
31626
31627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for final LIBXML2 support" >&5
31628 printf %s "checking for final LIBXML2 support... " >&6; }
31629 if test "$hwloc_result" = "yes"
31630 then :
31631 HWLOC_LIBXML2_CFLAGS=$HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS
31632 HWLOC_LIBXML2_LIBS=$HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS
31633 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31634 printf '%s\n' "yes" >&6; }
31635 hwloc_libxml2_happy=yes
31636 else case e in #(
31637 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
31638 printf '%s\n' "no" >&6; }
31639 hwloc_libxml2_happy=no ;;
31640 esac
31641 fi
31642 fi
31643
31644 echo "**** end of libxml2 configuration"
31645 fi
31646 if test "x$hwloc_libxml2_happy" = "xyes"; then
31647 HWLOC_LIBXML2_REQUIRES="libxml-2.0"
31648
31649 printf '%s\n' "#define HWLOC_HAVE_LIBXML2 1" >>confdefs.h
31650
31651 HWLOC_HAVE_LIBXML2=1
31652
31653
31654 hwloc_components="$hwloc_components xml_libxml"
31655 hwloc_xml_libxml_component_maybeplugin=1
31656 else
31657 HWLOC_HAVE_LIBXML2=0
31658
31659 if test "$enable_libxml2" = "yes"
31660 then :
31661 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libxml2 requested, but libxml2 was not found" >&5
31662 printf '%s\n' "$as_me: WARNING: --enable-libxml2 requested, but libxml2 was not found" >&2;}
31663 as_fn_error $? "Cannot continue" "$LINENO" 5
31664 fi
31665 fi
31666 # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
31667
31668 # Try to compile the x86 cpuid inlines
31669 if test "x$enable_cpuid" != "xno"; then
31670 echo
31671 echo "**** x86 CPUID configuration"
31672
31673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid" >&5
31674 printf %s "checking for x86 cpuid... " >&6; }
31675 old_CPPFLAGS="$CPPFLAGS"
31676 CPPFLAGS="$CPPFLAGS -I$HWLOC_top_srcdir/include"
31677 # We need hwloc_uint64_t but we can't use autogen/config.h before configure ends.
31678 # So pass #include/#define manually here for now.
31679 CPUID_CHECK_HEADERS=
31680 CPUID_CHECK_DEFINE=
31681 if test "x$hwloc_windows" = xyes; then
31682 X86_CPUID_CHECK_HEADERS="#include <windows.h>"
31683 X86_CPUID_CHECK_DEFINE="#define hwloc_uint64_t DWORDLONG"
31684 else
31685 X86_CPUID_CHECK_DEFINE="#define hwloc_uint64_t uint64_t"
31686 if test "x$ac_cv_header_stdint_h" = xyes; then
31687 X86_CPUID_CHECK_HEADERS="#include <stdint.h>"
31688 fi
31689 fi
31690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31691 /* end confdefs.h. */
31692
31693 #include <stdio.h>
31694 $X86_CPUID_CHECK_HEADERS
31695 $X86_CPUID_CHECK_DEFINE
31696 #define __hwloc_inline
31697 #include <private/cpuid-x86.h>
31698
31699 int
31700 main (void)
31701 {
31702
31703 if (hwloc_have_x86_cpuid()) {
31704 unsigned eax = 0, ebx, ecx = 0, edx;
31705 hwloc_x86_cpuid(&eax, &ebx, &ecx, &edx);
31706 printf("highest x86 cpuid %x\n", eax);
31707 return 0;
31708 }
31709
31710 ;
31711 return 0;
31712 }
31713 _ACEOF
31714 if ac_fn_c_try_link "$LINENO"
31715 then :
31716 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31717 printf '%s\n' "yes" >&6; }
31718
31719 printf '%s\n' "#define HWLOC_HAVE_X86_CPUID 1" >>confdefs.h
31720
31721 HWLOC_HAVE_X86_CPUID=1
31722
31723 hwloc_have_x86_cpuid=yes
31724 else case e in #(
31725 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
31726 printf '%s\n' "no" >&6; } ;;
31727 esac
31728 fi
31729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31730 conftest$ac_exeext conftest.$ac_ext
31731 if test "x$hwloc_have_x86_cpuid" = xyes; then
31732 hwloc_components="$hwloc_components x86"
31733 fi
31734 CPPFLAGS="$old_CPPFLAGS"
31735
31736 echo "**** end of x86 CPUID configuration"
31737 fi
31738
31739 #
31740 # Now enable registration of listed components
31741 #
31742 echo
31743 echo "**** component and plugin-specific configuration"
31744
31745 # Plugin support
31746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if plugin support is enabled" >&5
31747 printf %s "checking if plugin support is enabled... " >&6; }
31748 # Plugins (even core support) are totally disabled by default.
31749 # Pass --enable-plugins=foo (with "foo" NOT an existing component) to enable plugins but build none of them.
31750 if test "x$enable_plugins" = xyes; then
31751 hwloc_have_plugins=yes
31752 requested_plugins="$hwloc_components"
31753 else if test "x$enable_plugins" != xno -a "x$enable_plugins" != x; then
31754 hwloc_have_plugins=yes
31755 requested_plugins=`echo $enable_plugins | sed -e 's/,/ /g'`
31756 else
31757 hwloc_have_plugins=no
31758 fi
31759 fi
31760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hwloc_have_plugins" >&5
31761 printf '%s\n' "$hwloc_have_plugins" >&6; }
31762
31763 if test "x$hwloc_have_plugins" = xyes; then
31764 # dlopen and ltdl (at least 2.4.2) doesn't work on AIX
31765 # posix linkers don't work well with plugins and windows dll constraints
31766 if test "x$enable_plugin_dlopen" = x; then
31767 if test "x$hwloc_aix" = "xyes"; then
31768 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: dlopen does not work on AIX, disabled by default." >&5
31769 printf '%s\n' "$as_me: WARNING: dlopen does not work on AIX, disabled by default." >&2;}
31770 enable_plugin_dlopen=no
31771 else if test "x$hwloc_windows" = "xyes"; then
31772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: dlopen not supported on non-native Windows build, disabled by default." >&5
31773 printf '%s\n' "$as_me: WARNING: dlopen not supported on non-native Windows build, disabled by default." >&2;}
31774 enable_plugin_dlopen=no
31775 fi
31776 fi
31777 fi
31778 if test "x$enable_plugin_ltdl" = x; then
31779 if test "x$hwloc_aix" = "xyes"; then
31780 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ltdl does not work on AIX, disabled by default." >&5
31781 printf '%s\n' "$as_me: WARNING: ltdl does not work on AIX, disabled by default." >&2;}
31782 enable_plugin_dlopen=no
31783 else if test "x$hwloc_windows" = "xyes"; then
31784 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ltdl not supported on non-native Windows build, disabled by default." >&5
31785 printf '%s\n' "$as_me: WARNING: ltdl not supported on non-native Windows build, disabled by default." >&2;}
31786 enable_plugin_dlopen=no
31787 fi
31788 fi
31789 fi
31790
31791 # Look for dlopen
31792 if test "x$enable_plugin_dlopen" != xno; then
31793
31794 hwloc_dlopen_ready=no
31795 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
31796 printf %s "checking for dlopen... " >&6; }
31797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31798 /* end confdefs.h. */
31799
31800
31801 #include <dlfcn.h>
31802 #include <stdlib.h>
31803 void *handle;
31804
31805 int
31806 main (void)
31807 {
31808
31809 handle = dlopen(NULL, RTLD_NOW|RTLD_LOCAL);
31810
31811 ;
31812 return 0;
31813 }
31814 _ACEOF
31815 if ac_fn_c_try_link "$LINENO"
31816 then :
31817 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31818 printf '%s\n' "yes" >&6; }
31819 hwloc_dlopen_ready=yes
31820 else case e in #(
31821 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
31822 printf '%s\n' "no" >&6; }
31823 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
31824 if test "x$ac_cv_header_dlfcn_h" = xyes
31825 then :
31826 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
31827 printf %s "checking for dlopen in -ldl... " >&6; }
31828 if test ${ac_cv_lib_dl_dlopen+y}
31829 then :
31830 printf %s "(cached) " >&6
31831 else case e in #(
31832 e) ac_check_lib_save_LIBS=$LIBS
31833 LIBS="-ldl $LIBS"
31834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31835 /* end confdefs.h. */
31836
31837 /* Override any GCC internal prototype to avoid an error.
31838 Use char because int might match the return type of a GCC
31839 builtin and then its argument prototype would still apply.
31840 The 'extern "C"' is for builds by C++ compilers;
31841 although this is not generally supported in C code supporting it here
31842 has little cost and some practical benefit (sr 110532). */
31843 #ifdef __cplusplus
31844 extern "C"
31845 #endif
31846 char dlopen (void);
31847 int
31848 main (void)
31849 {
31850 return dlopen ();
31851 ;
31852 return 0;
31853 }
31854 _ACEOF
31855 if ac_fn_c_try_link "$LINENO"
31856 then :
31857 ac_cv_lib_dl_dlopen=yes
31858 else case e in #(
31859 e) ac_cv_lib_dl_dlopen=no ;;
31860 esac
31861 fi
31862 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31863 conftest$ac_exeext conftest.$ac_ext
31864 LIBS=$ac_check_lib_save_LIBS ;;
31865 esac
31866 fi
31867 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
31868 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
31869 if test "x$ac_cv_lib_dl_dlopen" = xyes
31870 then :
31871 hwloc_dlopen_ready=yes
31872 hwloc_dlopen_libs=-ldl
31873 fi
31874
31875
31876 fi
31877
31878 ;;
31879 esac
31880 fi
31881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31882 conftest$ac_exeext conftest.$ac_ext
31883
31884 fi
31885 # Look for ltdl
31886 if test "x$enable_plugin_ltdl" != xno; then
31887
31888 hwloc_ltdl_ready=no
31889 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
31890 if test "x$ac_cv_header_ltdl_h" = xyes
31891 then :
31892 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for lt_dlopenext in -lltdl" >&5
31893 printf %s "checking for lt_dlopenext in -lltdl... " >&6; }
31894 if test ${ac_cv_lib_ltdl_lt_dlopenext+y}
31895 then :
31896 printf %s "(cached) " >&6
31897 else case e in #(
31898 e) ac_check_lib_save_LIBS=$LIBS
31899 LIBS="-lltdl $LIBS"
31900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31901 /* end confdefs.h. */
31902
31903 /* Override any GCC internal prototype to avoid an error.
31904 Use char because int might match the return type of a GCC
31905 builtin and then its argument prototype would still apply.
31906 The 'extern "C"' is for builds by C++ compilers;
31907 although this is not generally supported in C code supporting it here
31908 has little cost and some practical benefit (sr 110532). */
31909 #ifdef __cplusplus
31910 extern "C"
31911 #endif
31912 char lt_dlopenext (void);
31913 int
31914 main (void)
31915 {
31916 return lt_dlopenext ();
31917 ;
31918 return 0;
31919 }
31920 _ACEOF
31921 if ac_fn_c_try_link "$LINENO"
31922 then :
31923 ac_cv_lib_ltdl_lt_dlopenext=yes
31924 else case e in #(
31925 e) ac_cv_lib_ltdl_lt_dlopenext=no ;;
31926 esac
31927 fi
31928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31929 conftest$ac_exeext conftest.$ac_ext
31930 LIBS=$ac_check_lib_save_LIBS ;;
31931 esac
31932 fi
31933 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopenext" >&5
31934 printf '%s\n' "$ac_cv_lib_ltdl_lt_dlopenext" >&6; }
31935 if test "x$ac_cv_lib_ltdl_lt_dlopenext" = xyes
31936 then :
31937 hwloc_ltdl_ready=yes
31938 hwloc_ltdl_libs=-lltdl
31939 fi
31940
31941
31942 fi
31943
31944
31945 fi
31946
31947 # Now use dlopen by default, or ltdl, or just fail to enable plugins
31948 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which library to use for loading plugins" >&5
31949 printf %s "checking which library to use for loading plugins... " >&6; }
31950 if test "x$hwloc_dlopen_ready" = xyes; then
31951 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: dlopen" >&5
31952 printf '%s\n' "dlopen" >&6; }
31953 hwloc_plugins_load=dlopen
31954 # Now enable dlopen libs
31955 HWLOC_DL_LIBS="$hwloc_dlopen_libs"
31956
31957 else if test x$hwloc_ltdl_ready = xyes; then
31958 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
31959 printf '%s\n' "ltdl" >&6; }
31960 hwloc_plugins_load=ltdl
31961 # Now enable ltdl libs
31962
31963 printf '%s\n' "#define HWLOC_HAVE_LTDL 1" >>confdefs.h
31964
31965 HWLOC_LTDL_LIBS="$hwloc_ltdl_libs"
31966
31967 # Add ltdl static-build dependencies to hwloc.pc
31968
31969 # save variables that we'll modify below
31970 save_lt_cv_dlopen="$lt_cv_dlopen"
31971 save_lt_cv_dlopen_libs="$lt_cv_dlopen_libs"
31972 save_lt_cv_dlopen_self="$lt_cv_dlopen_self"
31973 ###########################################################
31974 # code stolen from LT_SYS_DLOPEN_SELF in libtool.m4
31975 case $host_os in
31976 beos*)
31977 lt_cv_dlopen="load_add_on"
31978 lt_cv_dlopen_libs=
31979 lt_cv_dlopen_self=yes
31980 ;;
31981
31982 mingw* | pw32* | cegcc*)
31983 lt_cv_dlopen="LoadLibrary"
31984 lt_cv_dlopen_libs=
31985 ;;
31986
31987 cygwin*)
31988 lt_cv_dlopen="dlopen"
31989 lt_cv_dlopen_libs=
31990 ;;
31991
31992 darwin*)
31993 # if libdl is installed we need to link against it
31994 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
31995 printf %s "checking for dlopen in -ldl... " >&6; }
31996 if test ${ac_cv_lib_dl_dlopen+y}
31997 then :
31998 printf %s "(cached) " >&6
31999 else case e in #(
32000 e) ac_check_lib_save_LIBS=$LIBS
32001 LIBS="-ldl $LIBS"
32002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32003 /* end confdefs.h. */
32004
32005 /* Override any GCC internal prototype to avoid an error.
32006 Use char because int might match the return type of a GCC
32007 builtin and then its argument prototype would still apply.
32008 The 'extern "C"' is for builds by C++ compilers;
32009 although this is not generally supported in C code supporting it here
32010 has little cost and some practical benefit (sr 110532). */
32011 #ifdef __cplusplus
32012 extern "C"
32013 #endif
32014 char dlopen (void);
32015 int
32016 main (void)
32017 {
32018 return dlopen ();
32019 ;
32020 return 0;
32021 }
32022 _ACEOF
32023 if ac_fn_c_try_link "$LINENO"
32024 then :
32025 ac_cv_lib_dl_dlopen=yes
32026 else case e in #(
32027 e) ac_cv_lib_dl_dlopen=no ;;
32028 esac
32029 fi
32030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32031 conftest$ac_exeext conftest.$ac_ext
32032 LIBS=$ac_check_lib_save_LIBS ;;
32033 esac
32034 fi
32035 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
32036 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
32037 if test "x$ac_cv_lib_dl_dlopen" = xyes
32038 then :
32039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
32040 else case e in #(
32041 e)
32042 lt_cv_dlopen="dyld"
32043 lt_cv_dlopen_libs=
32044 lt_cv_dlopen_self=yes
32045 ;;
32046 esac
32047 fi
32048
32049 ;;
32050
32051 *)
32052 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
32053 if test "x$ac_cv_func_shl_load" = xyes
32054 then :
32055 lt_cv_dlopen="shl_load"
32056 else case e in #(
32057 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
32058 printf %s "checking for shl_load in -ldld... " >&6; }
32059 if test ${ac_cv_lib_dld_shl_load+y}
32060 then :
32061 printf %s "(cached) " >&6
32062 else case e in #(
32063 e) ac_check_lib_save_LIBS=$LIBS
32064 LIBS="-ldld $LIBS"
32065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32066 /* end confdefs.h. */
32067
32068 /* Override any GCC internal prototype to avoid an error.
32069 Use char because int might match the return type of a GCC
32070 builtin and then its argument prototype would still apply.
32071 The 'extern "C"' is for builds by C++ compilers;
32072 although this is not generally supported in C code supporting it here
32073 has little cost and some practical benefit (sr 110532). */
32074 #ifdef __cplusplus
32075 extern "C"
32076 #endif
32077 char shl_load (void);
32078 int
32079 main (void)
32080 {
32081 return shl_load ();
32082 ;
32083 return 0;
32084 }
32085 _ACEOF
32086 if ac_fn_c_try_link "$LINENO"
32087 then :
32088 ac_cv_lib_dld_shl_load=yes
32089 else case e in #(
32090 e) ac_cv_lib_dld_shl_load=no ;;
32091 esac
32092 fi
32093 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32094 conftest$ac_exeext conftest.$ac_ext
32095 LIBS=$ac_check_lib_save_LIBS ;;
32096 esac
32097 fi
32098 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
32099 printf '%s\n' "$ac_cv_lib_dld_shl_load" >&6; }
32100 if test "x$ac_cv_lib_dld_shl_load" = xyes
32101 then :
32102 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
32103 else case e in #(
32104 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
32105 if test "x$ac_cv_func_dlopen" = xyes
32106 then :
32107 lt_cv_dlopen="dlopen"
32108 else case e in #(
32109 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
32110 printf %s "checking for dlopen in -ldl... " >&6; }
32111 if test ${ac_cv_lib_dl_dlopen+y}
32112 then :
32113 printf %s "(cached) " >&6
32114 else case e in #(
32115 e) ac_check_lib_save_LIBS=$LIBS
32116 LIBS="-ldl $LIBS"
32117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32118 /* end confdefs.h. */
32119
32120 /* Override any GCC internal prototype to avoid an error.
32121 Use char because int might match the return type of a GCC
32122 builtin and then its argument prototype would still apply.
32123 The 'extern "C"' is for builds by C++ compilers;
32124 although this is not generally supported in C code supporting it here
32125 has little cost and some practical benefit (sr 110532). */
32126 #ifdef __cplusplus
32127 extern "C"
32128 #endif
32129 char dlopen (void);
32130 int
32131 main (void)
32132 {
32133 return dlopen ();
32134 ;
32135 return 0;
32136 }
32137 _ACEOF
32138 if ac_fn_c_try_link "$LINENO"
32139 then :
32140 ac_cv_lib_dl_dlopen=yes
32141 else case e in #(
32142 e) ac_cv_lib_dl_dlopen=no ;;
32143 esac
32144 fi
32145 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32146 conftest$ac_exeext conftest.$ac_ext
32147 LIBS=$ac_check_lib_save_LIBS ;;
32148 esac
32149 fi
32150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
32151 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
32152 if test "x$ac_cv_lib_dl_dlopen" = xyes
32153 then :
32154 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
32155 else case e in #(
32156 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
32157 printf %s "checking for dlopen in -lsvld... " >&6; }
32158 if test ${ac_cv_lib_svld_dlopen+y}
32159 then :
32160 printf %s "(cached) " >&6
32161 else case e in #(
32162 e) ac_check_lib_save_LIBS=$LIBS
32163 LIBS="-lsvld $LIBS"
32164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32165 /* end confdefs.h. */
32166
32167 /* Override any GCC internal prototype to avoid an error.
32168 Use char because int might match the return type of a GCC
32169 builtin and then its argument prototype would still apply.
32170 The 'extern "C"' is for builds by C++ compilers;
32171 although this is not generally supported in C code supporting it here
32172 has little cost and some practical benefit (sr 110532). */
32173 #ifdef __cplusplus
32174 extern "C"
32175 #endif
32176 char dlopen (void);
32177 int
32178 main (void)
32179 {
32180 return dlopen ();
32181 ;
32182 return 0;
32183 }
32184 _ACEOF
32185 if ac_fn_c_try_link "$LINENO"
32186 then :
32187 ac_cv_lib_svld_dlopen=yes
32188 else case e in #(
32189 e) ac_cv_lib_svld_dlopen=no ;;
32190 esac
32191 fi
32192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32193 conftest$ac_exeext conftest.$ac_ext
32194 LIBS=$ac_check_lib_save_LIBS ;;
32195 esac
32196 fi
32197 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
32198 printf '%s\n' "$ac_cv_lib_svld_dlopen" >&6; }
32199 if test "x$ac_cv_lib_svld_dlopen" = xyes
32200 then :
32201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
32202 else case e in #(
32203 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
32204 printf %s "checking for dld_link in -ldld... " >&6; }
32205 if test ${ac_cv_lib_dld_dld_link+y}
32206 then :
32207 printf %s "(cached) " >&6
32208 else case e in #(
32209 e) ac_check_lib_save_LIBS=$LIBS
32210 LIBS="-ldld $LIBS"
32211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32212 /* end confdefs.h. */
32213
32214 /* Override any GCC internal prototype to avoid an error.
32215 Use char because int might match the return type of a GCC
32216 builtin and then its argument prototype would still apply.
32217 The 'extern "C"' is for builds by C++ compilers;
32218 although this is not generally supported in C code supporting it here
32219 has little cost and some practical benefit (sr 110532). */
32220 #ifdef __cplusplus
32221 extern "C"
32222 #endif
32223 char dld_link (void);
32224 int
32225 main (void)
32226 {
32227 return dld_link ();
32228 ;
32229 return 0;
32230 }
32231 _ACEOF
32232 if ac_fn_c_try_link "$LINENO"
32233 then :
32234 ac_cv_lib_dld_dld_link=yes
32235 else case e in #(
32236 e) ac_cv_lib_dld_dld_link=no ;;
32237 esac
32238 fi
32239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32240 conftest$ac_exeext conftest.$ac_ext
32241 LIBS=$ac_check_lib_save_LIBS ;;
32242 esac
32243 fi
32244 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
32245 printf '%s\n' "$ac_cv_lib_dld_dld_link" >&6; }
32246 if test "x$ac_cv_lib_dld_dld_link" = xyes
32247 then :
32248 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
32249 fi
32250
32251 ;;
32252 esac
32253 fi
32254
32255 ;;
32256 esac
32257 fi
32258
32259 ;;
32260 esac
32261 fi
32262
32263 ;;
32264 esac
32265 fi
32266
32267 ;;
32268 esac
32269 fi
32270
32271 ;;
32272 esac
32273 # end of code stolen from LT_SYS_DLOPEN_SELF in libtool.m4
32274 ###########################################################
32275
32276 HWLOC_LIBS_PRIVATE="$HWLOC_LIBS_PRIVATE $lt_cv_dlopen_libs"
32277
32278 # restore modified variable in case the actual libtool code uses them
32279 lt_cv_dlopen="$save_lt_cv_dlopen"
32280 lt_cv_dlopen_libs="$save_lt_cv_dlopen_libs"
32281 lt_cv_dlopen_self="$save_lt_cv_dlopen_self"
32282
32283 else
32284 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none" >&5
32285 printf '%s\n' "none" >&6; }
32286 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Plugin support requested, but could not enable dlopen or ltdl" >&5
32287 printf '%s\n' "$as_me: WARNING: Plugin support requested, but could not enable dlopen or ltdl" >&2;}
32288 as_fn_error $? "Cannot continue" "$LINENO" 5
32289 fi
32290 fi
32291
32292
32293 printf '%s\n' "#define HWLOC_HAVE_PLUGINS 1" >>confdefs.h
32294
32295 fi
32296
32297 # HWLOC_PLUGINS_PATH is defined in AC_ARG_WITH([hwloc-plugins-path]...)
32298
32299 HWLOC_PLUGINS_DIR=`echo "$HWLOC_PLUGINS_PATH" | cut -d: -f1`
32300
32301
32302 # Static components output file
32303 hwloc_static_components_dir=${HWLOC_top_builddir}/hwloc
32304 mkdir -p "${hwloc_static_components_dir}"
32305 hwloc_static_components_file=${hwloc_static_components_dir}/static-components.h
32306 rm -f "${hwloc_static_components_file}"
32307
32308
32309 for name in $requested_plugins ; do
32310 str="hwloc_${name}_component_wantplugin=1"
32311 eval $str
32312 done
32313
32314 # Now we have some hwloc_<name>_component_wantplugin=1
32315
32316 # See which core components want plugin and support it
32317
32318 for name in $hwloc_components ; do
32319 str="maybeplugin=\$hwloc_${name}_component_maybeplugin"
32320 eval $str
32321 str="wantplugin=\$hwloc_${name}_component_wantplugin"
32322 eval $str
32323 if test x$hwloc_have_plugins = xyes -a x$maybeplugin = x1 -a x$wantplugin = x1; then
32324 hwloc_plugin_components="$hwloc_plugin_components $name"
32325 str="hwloc_${name}_component=plugin"
32326 else
32327 hwloc_static_components="$hwloc_static_components $name"
32328 str="hwloc_${name}_component=static"
32329 fi
32330 eval $str
32331 done
32332
32333 # Now we have some hwloc_<name>_component=plugin/static
32334 # and hwloc_static/plugin_components=list (space separated)
32335 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking components to build statically" >&5
32336 printf %s "checking components to build statically... " >&6; }
32337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hwloc_static_components" >&5
32338 printf '%s\n' "$hwloc_static_components" >&6; }
32339
32340 cat <<EOF >>"$hwloc_static_components_file"
32341 #include <private/internal-components.h>
32342 static const struct hwloc_component * hwloc_static_components[] = {
32343 EOF
32344 for comp in $hwloc_static_components; do
32345 echo " &hwloc_${comp}_component," >>"$hwloc_static_components_file"
32346 done
32347 cat <<EOF >>"$hwloc_static_components_file"
32348 NULL
32349 };
32350 EOF
32351
32352 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking components to build as plugins" >&5
32353 printf %s "checking components to build as plugins... " >&6; }
32354 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hwloc_plugin_components" >&5
32355 printf '%s\n' "$hwloc_plugin_components" >&6; }
32356
32357 if test "$hwloc_pci_component" = "static"
32358 then :
32359 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_PCIACCESS_LIBS"
32360 HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_PCIACCESS_LDFLAGS"
32361 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_PCIACCESS_CPPFLAGS $HWLOC_PCIACCESS_CFLAGS"
32362 HWLOC_REQUIRES="$HWLOC_PCIACCESS_REQUIRES $HWLOC_REQUIRES"
32363
32364 printf '%s\n' "#define HWLOC_PCI_COMPONENT_BUILTIN 1" >>confdefs.h
32365
32366 fi
32367 if test "$hwloc_opencl_component" = "static"
32368 then :
32369 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_OPENCL_LIBS"
32370 HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_OPENCL_LDFLAGS"
32371 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_OPENCL_CPPFLAGS $HWLOC_OPENCL_CFLAGS"
32372 HWLOC_REQUIRES="$HWLOC_OPENCL_REQUIRES $HWLOC_REQUIRES"
32373
32374 printf '%s\n' "#define HWLOC_OPENCL_COMPONENT_BUILTIN 1" >>confdefs.h
32375
32376 fi
32377 if test "$hwloc_cuda_component" = "static"
32378 then :
32379 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_CUDART_LIBS"
32380 HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_CUDART_LDFLAGS"
32381 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_CUDART_CPPFLAGS $HWLOC_CUDART_CFLAGS"
32382 HWLOC_REQUIRES="$HWLOC_CUDART_REQUIRES $HWLOC_REQUIRES"
32383
32384 printf '%s\n' "#define HWLOC_CUDA_COMPONENT_BUILTIN 1" >>confdefs.h
32385
32386 fi
32387 if test "$hwloc_nvml_component" = "static"
32388 then :
32389 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_NVML_LIBS"
32390 HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_NVML_LDFLAGS"
32391 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_NVML_CPPFLAGS $HWLOC_NVML_CFLAGS"
32392 HWLOC_REQUIRES="$HWLOC_NVML_REQUIRES $HWLOC_REQUIRES"
32393
32394 printf '%s\n' "#define HWLOC_NVML_COMPONENT_BUILTIN 1" >>confdefs.h
32395
32396 fi
32397 if test "$hwloc_rsmi_component" = "static"
32398 then :
32399 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_RSMI_LIBS"
32400 HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_RSMI_LDFLAGS"
32401 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_RSMI_CPPFLAGS $HWLOC_RSMI_CFLAGS"
32402 HWLOC_REQUIRES="$HWLOC_RSMI_REQUIRES $HWLOC_REQUIRES"
32403
32404 printf '%s\n' "#define HWLOC_RSMI_COMPONENT_BUILTIN 1" >>confdefs.h
32405
32406 fi
32407 if test "$hwloc_levelzero_component" = "static"
32408 then :
32409 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_LEVELZERO_LIBS"
32410 HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_LEVELZERO_LDFLAGS"
32411 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_LEVELZERO_CPPFLAGS $HWLOC_LEVELZERO_CFLAGS"
32412 HWLOC_REQUIRES="$HWLOC_LEVELZERO_REQUIRES $HWLOC_REQUIRES"
32413
32414 printf '%s\n' "#define HWLOC_LEVELZERO_COMPONENT_BUILTIN 1" >>confdefs.h
32415
32416 fi
32417 if test "$hwloc_gl_component" = "static"
32418 then :
32419 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_GL_LIBS"
32420 HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_GL_LDFLAGS"
32421 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_GL_CPPFLAGS $HWLOC_GL_CFLAGS"
32422 HWLOC_REQUIRES="$HWLOC_GL_REQUIRES $HWLOC_REQUIRES"
32423
32424 printf '%s\n' "#define HWLOC_GL_COMPONENT_BUILTIN 1" >>confdefs.h
32425
32426 fi
32427 if test "$hwloc_xml_libxml_component" = "static"
32428 then :
32429 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_LIBXML2_LIBS"
32430 HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_LIBXML2_LDFLAGS"
32431 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_LIBXML2_CPPFLAGS $HWLOC_LIBXML2_CFLAGS"
32432 HWLOC_REQUIRES="$HWLOC_LIBXML2_REQUIRES $HWLOC_REQUIRES"
32433
32434 printf '%s\n' "#define HWLOC_XML_LIBXML_COMPONENT_BUILTIN 1" >>confdefs.h
32435
32436 fi
32437
32438 echo "**** end of component and plugin configuration"
32439
32440 #
32441 # Setup HWLOC's C, CPP, and LD flags, and LIBS
32442 #
32443
32444
32445 HWLOC_CPPFLAGS='-I"$(HWLOC_top_builddir)"/include -I"$(HWLOC_top_srcdir)"/include'
32446
32447
32448
32449
32450
32451 # Set these values explicitly for embedded builds. Exporting
32452 # these values through *_EMBEDDED_* values gives us the freedom to
32453 # do something different someday if we ever need to. There's no
32454 # need to fill these values in unless we're in embedded mode.
32455 # Indeed, if we're building in embedded mode, we want HWLOC_LIBS
32456 # to be empty so that nothing is linked into libhwloc_embedded.la
32457 # itself -- only the upper-layer will link in anything required.
32458
32459 if test "$hwloc_mode" = "embedded"
32460 then :
32461 HWLOC_EMBEDDED_CFLAGS=$HWLOC_CFLAGS
32462 HWLOC_EMBEDDED_CPPFLAGS=$HWLOC_CPPFLAGS
32463 HWLOC_EMBEDDED_LDFLAGS=$HWLOC_LDFLAGS
32464 HWLOC_EMBEDDED_LDADD='$(HWLOC_top_builddir)/hwloc/libhwloc_embedded.la'
32465 HWLOC_EMBEDDED_LIBS=$HWLOC_LIBS
32466 HWLOC_LIBS=
32467 fi
32468
32469
32470
32471
32472
32473
32474 # Always generate these files
32475 ac_config_files="$ac_config_files Makefile include/Makefile hwloc/Makefile"
32476
32477
32478 # Cleanup
32479 ac_ext=c
32480 ac_cpp='$CPP $CPPFLAGS'
32481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32484
32485
32486 # Success
32487
32488
32489
32490 ####################################################################
32491 # Version information
32492 ####################################################################
32493
32494 # HWLOC_VERSION was setup by HWLOC_SETUP_CORE above.
32495
32496 # Make configure depend on the VERSION file, since it's used in AC_INIT
32497 CONFIGURE_DEPENDENCIES='$(top_srcdir)/VERSION'
32498
32499
32500 # Override/fixup the version numbers set by AC_INIT, since on
32501 # developer builds, there's no good way to know what the version is
32502 # before running configure :(. We only use the base version number
32503 # for the version set in AC_INIT. This will always match reality
32504 # because we add the VERSION file (the only way to change the
32505 # major.minor.release{greek}) into the configure dependencies.
32506 PACKAGE_VERSION="$HWLOC_VERSION"
32507 PACKAGE_STRING="${PACKAGE_NAME} ${PACKAGE_VERSION}"
32508 VERSION="${PACKAGE_VERSION}"
32509
32510 # For standalone configurations, we also include a .so version number.
32511
32512 . $srcdir/VERSION
32513
32514 libhwloc_so_version_current=`echo $libhwloc_so_version | cut -d: -f1`
32515 libhwloc_so_version_age=`echo $libhwloc_so_version | cut -d: -f3`
32516 libhwloc_so_name=`expr $libhwloc_so_version_current - $libhwloc_so_version_age`
32517
32518 ####################################################################
32519 # Setup the rest of the infrastructure
32520 ####################################################################
32521
32522 # Setup hwloc's docs, utils, and tests
32523
32524
32525 # Extract the first word of "diff", so it can be a program name with args.
32526 set dummy diff; ac_word=$2
32527 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32528 printf %s "checking for $ac_word... " >&6; }
32529 if test ${ac_cv_path_DIFF+y}
32530 then :
32531 printf %s "(cached) " >&6
32532 else case e in #(
32533 e) case $DIFF in
32534 [\\/]* | ?:[\\/]*)
32535 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
32536 ;;
32537 *)
32538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32539 for as_dir in $PATH
32540 do
32541 IFS=$as_save_IFS
32542 case $as_dir in #(((
32543 '') as_dir=./ ;;
32544 */) ;;
32545 *) as_dir=$as_dir/ ;;
32546 esac
32547 for ac_exec_ext in '' $ac_executable_extensions; do
32548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32549 ac_cv_path_DIFF="$as_dir$ac_word$ac_exec_ext"
32550 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32551 break 2
32552 fi
32553 done
32554 done
32555 IFS=$as_save_IFS
32556
32557 ;;
32558 esac ;;
32559 esac
32560 fi
32561 DIFF=$ac_cv_path_DIFF
32562 if test -n "$DIFF"; then
32563 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
32564 printf '%s\n' "$DIFF" >&6; }
32565 else
32566 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
32567 printf '%s\n' "no" >&6; }
32568 fi
32569
32570
32571
32572 if test "$hwloc_mode" = "standalone"
32573 then :
32574
32575 cat <<EOF
32576
32577 ###
32578 ### Configuring hwloc documentation
32579 ###
32580 EOF
32581
32582 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if this is a developer build" >&5
32583 printf %s "checking if this is a developer build... " >&6; }
32584 if test ! -e "$srcdir/.git"
32585 then :
32586 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no (doxygen generation is optional)" >&5
32587 printf '%s\n' "no (doxygen generation is optional)" >&6; }
32588 test "x$enable_doxygen" = x && enable_doxygen=no
32589 else case e in #(
32590 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32591 printf '%s\n' "yes" >&6; }
32592 test "x$enable_doxygen" = x && enable_doxygen=yes ;;
32593 esac
32594 fi
32595
32596 # Generating the doxygen output requires a few tools. If we
32597 # don't have all of them, refuse the build the docs.
32598
32599 if test -n "$ac_tool_prefix"; then
32600 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
32601 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
32602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32603 printf %s "checking for $ac_word... " >&6; }
32604 if test ${ac_cv_path_DOXYGEN+y}
32605 then :
32606 printf %s "(cached) " >&6
32607 else case e in #(
32608 e) case $DOXYGEN in
32609 [\\/]* | ?:[\\/]*)
32610 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
32611 ;;
32612 *)
32613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32614 for as_dir in $PATH
32615 do
32616 IFS=$as_save_IFS
32617 case $as_dir in #(((
32618 '') as_dir=./ ;;
32619 */) ;;
32620 *) as_dir=$as_dir/ ;;
32621 esac
32622 for ac_exec_ext in '' $ac_executable_extensions; do
32623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32624 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
32625 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32626 break 2
32627 fi
32628 done
32629 done
32630 IFS=$as_save_IFS
32631
32632 ;;
32633 esac ;;
32634 esac
32635 fi
32636 DOXYGEN=$ac_cv_path_DOXYGEN
32637 if test -n "$DOXYGEN"; then
32638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
32639 printf '%s\n' "$DOXYGEN" >&6; }
32640 else
32641 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
32642 printf '%s\n' "no" >&6; }
32643 fi
32644
32645
32646 fi
32647 if test -z "$ac_cv_path_DOXYGEN"; then
32648 ac_pt_DOXYGEN=$DOXYGEN
32649 # Extract the first word of "doxygen", so it can be a program name with args.
32650 set dummy doxygen; ac_word=$2
32651 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32652 printf %s "checking for $ac_word... " >&6; }
32653 if test ${ac_cv_path_ac_pt_DOXYGEN+y}
32654 then :
32655 printf %s "(cached) " >&6
32656 else case e in #(
32657 e) case $ac_pt_DOXYGEN in
32658 [\\/]* | ?:[\\/]*)
32659 ac_cv_path_ac_pt_DOXYGEN="$ac_pt_DOXYGEN" # Let the user override the test with a path.
32660 ;;
32661 *)
32662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32663 for as_dir in $PATH
32664 do
32665 IFS=$as_save_IFS
32666 case $as_dir in #(((
32667 '') as_dir=./ ;;
32668 */) ;;
32669 *) as_dir=$as_dir/ ;;
32670 esac
32671 for ac_exec_ext in '' $ac_executable_extensions; do
32672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32673 ac_cv_path_ac_pt_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
32674 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32675 break 2
32676 fi
32677 done
32678 done
32679 IFS=$as_save_IFS
32680
32681 ;;
32682 esac ;;
32683 esac
32684 fi
32685 ac_pt_DOXYGEN=$ac_cv_path_ac_pt_DOXYGEN
32686 if test -n "$ac_pt_DOXYGEN"; then
32687 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DOXYGEN" >&5
32688 printf '%s\n' "$ac_pt_DOXYGEN" >&6; }
32689 else
32690 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
32691 printf '%s\n' "no" >&6; }
32692 fi
32693
32694 if test "x$ac_pt_DOXYGEN" = x; then
32695 DOXYGEN=""
32696 else
32697 case $cross_compiling:$ac_tool_warned in
32698 yes:)
32699 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32700 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32701 ac_tool_warned=yes ;;
32702 esac
32703 DOXYGEN=$ac_pt_DOXYGEN
32704 fi
32705 else
32706 DOXYGEN="$ac_cv_path_DOXYGEN"
32707 fi
32708
32709 HWLOC_DOXYGEN_VERSION=`doxygen --version 2> /dev/null`
32710
32711
32712 if test -n "$ac_tool_prefix"; then
32713 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
32714 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
32715 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32716 printf %s "checking for $ac_word... " >&6; }
32717 if test ${ac_cv_path_PDFLATEX+y}
32718 then :
32719 printf %s "(cached) " >&6
32720 else case e in #(
32721 e) case $PDFLATEX in
32722 [\\/]* | ?:[\\/]*)
32723 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
32724 ;;
32725 *)
32726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32727 for as_dir in $PATH
32728 do
32729 IFS=$as_save_IFS
32730 case $as_dir in #(((
32731 '') as_dir=./ ;;
32732 */) ;;
32733 *) as_dir=$as_dir/ ;;
32734 esac
32735 for ac_exec_ext in '' $ac_executable_extensions; do
32736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32737 ac_cv_path_PDFLATEX="$as_dir$ac_word$ac_exec_ext"
32738 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32739 break 2
32740 fi
32741 done
32742 done
32743 IFS=$as_save_IFS
32744
32745 ;;
32746 esac ;;
32747 esac
32748 fi
32749 PDFLATEX=$ac_cv_path_PDFLATEX
32750 if test -n "$PDFLATEX"; then
32751 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
32752 printf '%s\n' "$PDFLATEX" >&6; }
32753 else
32754 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
32755 printf '%s\n' "no" >&6; }
32756 fi
32757
32758
32759 fi
32760 if test -z "$ac_cv_path_PDFLATEX"; then
32761 ac_pt_PDFLATEX=$PDFLATEX
32762 # Extract the first word of "pdflatex", so it can be a program name with args.
32763 set dummy pdflatex; ac_word=$2
32764 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32765 printf %s "checking for $ac_word... " >&6; }
32766 if test ${ac_cv_path_ac_pt_PDFLATEX+y}
32767 then :
32768 printf %s "(cached) " >&6
32769 else case e in #(
32770 e) case $ac_pt_PDFLATEX in
32771 [\\/]* | ?:[\\/]*)
32772 ac_cv_path_ac_pt_PDFLATEX="$ac_pt_PDFLATEX" # Let the user override the test with a path.
32773 ;;
32774 *)
32775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32776 for as_dir in $PATH
32777 do
32778 IFS=$as_save_IFS
32779 case $as_dir in #(((
32780 '') as_dir=./ ;;
32781 */) ;;
32782 *) as_dir=$as_dir/ ;;
32783 esac
32784 for ac_exec_ext in '' $ac_executable_extensions; do
32785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32786 ac_cv_path_ac_pt_PDFLATEX="$as_dir$ac_word$ac_exec_ext"
32787 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32788 break 2
32789 fi
32790 done
32791 done
32792 IFS=$as_save_IFS
32793
32794 ;;
32795 esac ;;
32796 esac
32797 fi
32798 ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX
32799 if test -n "$ac_pt_PDFLATEX"; then
32800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PDFLATEX" >&5
32801 printf '%s\n' "$ac_pt_PDFLATEX" >&6; }
32802 else
32803 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
32804 printf '%s\n' "no" >&6; }
32805 fi
32806
32807 if test "x$ac_pt_PDFLATEX" = x; then
32808 PDFLATEX=""
32809 else
32810 case $cross_compiling:$ac_tool_warned in
32811 yes:)
32812 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32813 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32814 ac_tool_warned=yes ;;
32815 esac
32816 PDFLATEX=$ac_pt_PDFLATEX
32817 fi
32818 else
32819 PDFLATEX="$ac_cv_path_PDFLATEX"
32820 fi
32821
32822
32823
32824 if test -n "$ac_tool_prefix"; then
32825 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
32826 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
32827 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32828 printf %s "checking for $ac_word... " >&6; }
32829 if test ${ac_cv_path_MAKEINDEX+y}
32830 then :
32831 printf %s "(cached) " >&6
32832 else case e in #(
32833 e) case $MAKEINDEX in
32834 [\\/]* | ?:[\\/]*)
32835 ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path.
32836 ;;
32837 *)
32838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32839 for as_dir in $PATH
32840 do
32841 IFS=$as_save_IFS
32842 case $as_dir in #(((
32843 '') as_dir=./ ;;
32844 */) ;;
32845 *) as_dir=$as_dir/ ;;
32846 esac
32847 for ac_exec_ext in '' $ac_executable_extensions; do
32848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32849 ac_cv_path_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
32850 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32851 break 2
32852 fi
32853 done
32854 done
32855 IFS=$as_save_IFS
32856
32857 ;;
32858 esac ;;
32859 esac
32860 fi
32861 MAKEINDEX=$ac_cv_path_MAKEINDEX
32862 if test -n "$MAKEINDEX"; then
32863 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5
32864 printf '%s\n' "$MAKEINDEX" >&6; }
32865 else
32866 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
32867 printf '%s\n' "no" >&6; }
32868 fi
32869
32870
32871 fi
32872 if test -z "$ac_cv_path_MAKEINDEX"; then
32873 ac_pt_MAKEINDEX=$MAKEINDEX
32874 # Extract the first word of "makeindex", so it can be a program name with args.
32875 set dummy makeindex; ac_word=$2
32876 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32877 printf %s "checking for $ac_word... " >&6; }
32878 if test ${ac_cv_path_ac_pt_MAKEINDEX+y}
32879 then :
32880 printf %s "(cached) " >&6
32881 else case e in #(
32882 e) case $ac_pt_MAKEINDEX in
32883 [\\/]* | ?:[\\/]*)
32884 ac_cv_path_ac_pt_MAKEINDEX="$ac_pt_MAKEINDEX" # Let the user override the test with a path.
32885 ;;
32886 *)
32887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32888 for as_dir in $PATH
32889 do
32890 IFS=$as_save_IFS
32891 case $as_dir in #(((
32892 '') as_dir=./ ;;
32893 */) ;;
32894 *) as_dir=$as_dir/ ;;
32895 esac
32896 for ac_exec_ext in '' $ac_executable_extensions; do
32897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32898 ac_cv_path_ac_pt_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
32899 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32900 break 2
32901 fi
32902 done
32903 done
32904 IFS=$as_save_IFS
32905
32906 ;;
32907 esac ;;
32908 esac
32909 fi
32910 ac_pt_MAKEINDEX=$ac_cv_path_ac_pt_MAKEINDEX
32911 if test -n "$ac_pt_MAKEINDEX"; then
32912 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MAKEINDEX" >&5
32913 printf '%s\n' "$ac_pt_MAKEINDEX" >&6; }
32914 else
32915 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
32916 printf '%s\n' "no" >&6; }
32917 fi
32918
32919 if test "x$ac_pt_MAKEINDEX" = x; then
32920 MAKEINDEX=""
32921 else
32922 case $cross_compiling:$ac_tool_warned in
32923 yes:)
32924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32925 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32926 ac_tool_warned=yes ;;
32927 esac
32928 MAKEINDEX=$ac_pt_MAKEINDEX
32929 fi
32930 else
32931 MAKEINDEX="$ac_cv_path_MAKEINDEX"
32932 fi
32933
32934
32935
32936 if test -n "$ac_tool_prefix"; then
32937 # Extract the first word of "${ac_tool_prefix}fig2dev", so it can be a program name with args.
32938 set dummy ${ac_tool_prefix}fig2dev; ac_word=$2
32939 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32940 printf %s "checking for $ac_word... " >&6; }
32941 if test ${ac_cv_path_FIG2DEV+y}
32942 then :
32943 printf %s "(cached) " >&6
32944 else case e in #(
32945 e) case $FIG2DEV in
32946 [\\/]* | ?:[\\/]*)
32947 ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
32948 ;;
32949 *)
32950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32951 for as_dir in $PATH
32952 do
32953 IFS=$as_save_IFS
32954 case $as_dir in #(((
32955 '') as_dir=./ ;;
32956 */) ;;
32957 *) as_dir=$as_dir/ ;;
32958 esac
32959 for ac_exec_ext in '' $ac_executable_extensions; do
32960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32961 ac_cv_path_FIG2DEV="$as_dir$ac_word$ac_exec_ext"
32962 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32963 break 2
32964 fi
32965 done
32966 done
32967 IFS=$as_save_IFS
32968
32969 ;;
32970 esac ;;
32971 esac
32972 fi
32973 FIG2DEV=$ac_cv_path_FIG2DEV
32974 if test -n "$FIG2DEV"; then
32975 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $FIG2DEV" >&5
32976 printf '%s\n' "$FIG2DEV" >&6; }
32977 else
32978 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
32979 printf '%s\n' "no" >&6; }
32980 fi
32981
32982
32983 fi
32984 if test -z "$ac_cv_path_FIG2DEV"; then
32985 ac_pt_FIG2DEV=$FIG2DEV
32986 # Extract the first word of "fig2dev", so it can be a program name with args.
32987 set dummy fig2dev; ac_word=$2
32988 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32989 printf %s "checking for $ac_word... " >&6; }
32990 if test ${ac_cv_path_ac_pt_FIG2DEV+y}
32991 then :
32992 printf %s "(cached) " >&6
32993 else case e in #(
32994 e) case $ac_pt_FIG2DEV in
32995 [\\/]* | ?:[\\/]*)
32996 ac_cv_path_ac_pt_FIG2DEV="$ac_pt_FIG2DEV" # Let the user override the test with a path.
32997 ;;
32998 *)
32999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33000 for as_dir in $PATH
33001 do
33002 IFS=$as_save_IFS
33003 case $as_dir in #(((
33004 '') as_dir=./ ;;
33005 */) ;;
33006 *) as_dir=$as_dir/ ;;
33007 esac
33008 for ac_exec_ext in '' $ac_executable_extensions; do
33009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33010 ac_cv_path_ac_pt_FIG2DEV="$as_dir$ac_word$ac_exec_ext"
33011 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33012 break 2
33013 fi
33014 done
33015 done
33016 IFS=$as_save_IFS
33017
33018 ;;
33019 esac ;;
33020 esac
33021 fi
33022 ac_pt_FIG2DEV=$ac_cv_path_ac_pt_FIG2DEV
33023 if test -n "$ac_pt_FIG2DEV"; then
33024 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_FIG2DEV" >&5
33025 printf '%s\n' "$ac_pt_FIG2DEV" >&6; }
33026 else
33027 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
33028 printf '%s\n' "no" >&6; }
33029 fi
33030
33031 if test "x$ac_pt_FIG2DEV" = x; then
33032 FIG2DEV=""
33033 else
33034 case $cross_compiling:$ac_tool_warned in
33035 yes:)
33036 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33037 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33038 ac_tool_warned=yes ;;
33039 esac
33040 FIG2DEV=$ac_pt_FIG2DEV
33041 fi
33042 else
33043 FIG2DEV="$ac_cv_path_FIG2DEV"
33044 fi
33045
33046
33047
33048 if test -n "$ac_tool_prefix"; then
33049 # Extract the first word of "${ac_tool_prefix}gs", so it can be a program name with args.
33050 set dummy ${ac_tool_prefix}gs; ac_word=$2
33051 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33052 printf %s "checking for $ac_word... " >&6; }
33053 if test ${ac_cv_path_GS+y}
33054 then :
33055 printf %s "(cached) " >&6
33056 else case e in #(
33057 e) case $GS in
33058 [\\/]* | ?:[\\/]*)
33059 ac_cv_path_GS="$GS" # Let the user override the test with a path.
33060 ;;
33061 *)
33062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33063 for as_dir in $PATH
33064 do
33065 IFS=$as_save_IFS
33066 case $as_dir in #(((
33067 '') as_dir=./ ;;
33068 */) ;;
33069 *) as_dir=$as_dir/ ;;
33070 esac
33071 for ac_exec_ext in '' $ac_executable_extensions; do
33072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33073 ac_cv_path_GS="$as_dir$ac_word$ac_exec_ext"
33074 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33075 break 2
33076 fi
33077 done
33078 done
33079 IFS=$as_save_IFS
33080
33081 ;;
33082 esac ;;
33083 esac
33084 fi
33085 GS=$ac_cv_path_GS
33086 if test -n "$GS"; then
33087 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
33088 printf '%s\n' "$GS" >&6; }
33089 else
33090 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
33091 printf '%s\n' "no" >&6; }
33092 fi
33093
33094
33095 fi
33096 if test -z "$ac_cv_path_GS"; then
33097 ac_pt_GS=$GS
33098 # Extract the first word of "gs", so it can be a program name with args.
33099 set dummy gs; ac_word=$2
33100 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33101 printf %s "checking for $ac_word... " >&6; }
33102 if test ${ac_cv_path_ac_pt_GS+y}
33103 then :
33104 printf %s "(cached) " >&6
33105 else case e in #(
33106 e) case $ac_pt_GS in
33107 [\\/]* | ?:[\\/]*)
33108 ac_cv_path_ac_pt_GS="$ac_pt_GS" # Let the user override the test with a path.
33109 ;;
33110 *)
33111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33112 for as_dir in $PATH
33113 do
33114 IFS=$as_save_IFS
33115 case $as_dir in #(((
33116 '') as_dir=./ ;;
33117 */) ;;
33118 *) as_dir=$as_dir/ ;;
33119 esac
33120 for ac_exec_ext in '' $ac_executable_extensions; do
33121 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33122 ac_cv_path_ac_pt_GS="$as_dir$ac_word$ac_exec_ext"
33123 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33124 break 2
33125 fi
33126 done
33127 done
33128 IFS=$as_save_IFS
33129
33130 ;;
33131 esac ;;
33132 esac
33133 fi
33134 ac_pt_GS=$ac_cv_path_ac_pt_GS
33135 if test -n "$ac_pt_GS"; then
33136 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GS" >&5
33137 printf '%s\n' "$ac_pt_GS" >&6; }
33138 else
33139 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
33140 printf '%s\n' "no" >&6; }
33141 fi
33142
33143 if test "x$ac_pt_GS" = x; then
33144 GS=""
33145 else
33146 case $cross_compiling:$ac_tool_warned in
33147 yes:)
33148 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33149 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33150 ac_tool_warned=yes ;;
33151 esac
33152 GS=$ac_pt_GS
33153 fi
33154 else
33155 GS="$ac_cv_path_GS"
33156 fi
33157
33158
33159
33160 if test -n "$ac_tool_prefix"; then
33161 # Extract the first word of "${ac_tool_prefix}epstopdf", so it can be a program name with args.
33162 set dummy ${ac_tool_prefix}epstopdf; ac_word=$2
33163 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33164 printf %s "checking for $ac_word... " >&6; }
33165 if test ${ac_cv_path_EPSTOPDF+y}
33166 then :
33167 printf %s "(cached) " >&6
33168 else case e in #(
33169 e) case $EPSTOPDF in
33170 [\\/]* | ?:[\\/]*)
33171 ac_cv_path_EPSTOPDF="$EPSTOPDF" # Let the user override the test with a path.
33172 ;;
33173 *)
33174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33175 for as_dir in $PATH
33176 do
33177 IFS=$as_save_IFS
33178 case $as_dir in #(((
33179 '') as_dir=./ ;;
33180 */) ;;
33181 *) as_dir=$as_dir/ ;;
33182 esac
33183 for ac_exec_ext in '' $ac_executable_extensions; do
33184 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33185 ac_cv_path_EPSTOPDF="$as_dir$ac_word$ac_exec_ext"
33186 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33187 break 2
33188 fi
33189 done
33190 done
33191 IFS=$as_save_IFS
33192
33193 ;;
33194 esac ;;
33195 esac
33196 fi
33197 EPSTOPDF=$ac_cv_path_EPSTOPDF
33198 if test -n "$EPSTOPDF"; then
33199 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $EPSTOPDF" >&5
33200 printf '%s\n' "$EPSTOPDF" >&6; }
33201 else
33202 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
33203 printf '%s\n' "no" >&6; }
33204 fi
33205
33206
33207 fi
33208 if test -z "$ac_cv_path_EPSTOPDF"; then
33209 ac_pt_EPSTOPDF=$EPSTOPDF
33210 # Extract the first word of "epstopdf", so it can be a program name with args.
33211 set dummy epstopdf; ac_word=$2
33212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33213 printf %s "checking for $ac_word... " >&6; }
33214 if test ${ac_cv_path_ac_pt_EPSTOPDF+y}
33215 then :
33216 printf %s "(cached) " >&6
33217 else case e in #(
33218 e) case $ac_pt_EPSTOPDF in
33219 [\\/]* | ?:[\\/]*)
33220 ac_cv_path_ac_pt_EPSTOPDF="$ac_pt_EPSTOPDF" # Let the user override the test with a path.
33221 ;;
33222 *)
33223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33224 for as_dir in $PATH
33225 do
33226 IFS=$as_save_IFS
33227 case $as_dir in #(((
33228 '') as_dir=./ ;;
33229 */) ;;
33230 *) as_dir=$as_dir/ ;;
33231 esac
33232 for ac_exec_ext in '' $ac_executable_extensions; do
33233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33234 ac_cv_path_ac_pt_EPSTOPDF="$as_dir$ac_word$ac_exec_ext"
33235 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33236 break 2
33237 fi
33238 done
33239 done
33240 IFS=$as_save_IFS
33241
33242 ;;
33243 esac ;;
33244 esac
33245 fi
33246 ac_pt_EPSTOPDF=$ac_cv_path_ac_pt_EPSTOPDF
33247 if test -n "$ac_pt_EPSTOPDF"; then
33248 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_EPSTOPDF" >&5
33249 printf '%s\n' "$ac_pt_EPSTOPDF" >&6; }
33250 else
33251 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
33252 printf '%s\n' "no" >&6; }
33253 fi
33254
33255 if test "x$ac_pt_EPSTOPDF" = x; then
33256 EPSTOPDF=""
33257 else
33258 case $cross_compiling:$ac_tool_warned in
33259 yes:)
33260 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33261 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33262 ac_tool_warned=yes ;;
33263 esac
33264 EPSTOPDF=$ac_pt_EPSTOPDF
33265 fi
33266 else
33267 EPSTOPDF="$ac_cv_path_EPSTOPDF"
33268 fi
33269
33270
33271 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if can build doxygen docs" >&5
33272 printf %s "checking if can build doxygen docs... " >&6; }
33273 if test "x$DOXYGEN" != "x" -a "x$PDFLATEX" != "x" -a "x$MAKEINDEX" != "x" -a "x$FIG2DEV" != "x" -a "x$GS" != "x" -a "x$EPSTOPDF" != "x"
33274 then :
33275 hwloc_generate_doxs=yes
33276 else case e in #(
33277 e) hwloc_generate_doxs=no ;;
33278 esac
33279 fi
33280 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hwloc_generate_doxs" >&5
33281 printf '%s\n' "$hwloc_generate_doxs" >&6; }
33282 if test "x$hwloc_generate_doxs" = xyes -a "x$HWLOC_DOXYGEN_VERSION" = x1.6.2
33283 then :
33284 hwloc_generate_doxs="no"; { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: doxygen 1.6.2 has broken short name support, disabling" >&5
33285 printf '%s\n' "$as_me: WARNING: doxygen 1.6.2 has broken short name support, disabling" >&2;}
33286 fi
33287 if test "x$hwloc_generate_doxs" = xyes -a "x$HWLOC_DOXYGEN_VERSION" = x1.8.16 -a "$HWLOC_top_builddir" = "$HWLOC_top_srcdir"
33288 then :
33289 hwloc_generate_doxs="no"; { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: doxygen 1.8.16 fails when building inside the source-tree, disabling" >&5
33290 printf '%s\n' "$as_me: WARNING: doxygen 1.8.16 fails when building inside the source-tree, disabling" >&2;}
33291 fi
33292
33293
33294
33295 if test "x$enable_readme" != xno
33296 then :
33297
33298 # Making the top-level README requires w3m or lynx.
33299
33300 if test -n "$ac_tool_prefix"; then
33301 # Extract the first word of "${ac_tool_prefix}w3m", so it can be a program name with args.
33302 set dummy ${ac_tool_prefix}w3m; ac_word=$2
33303 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33304 printf %s "checking for $ac_word... " >&6; }
33305 if test ${ac_cv_path_W3M+y}
33306 then :
33307 printf %s "(cached) " >&6
33308 else case e in #(
33309 e) case $W3M in
33310 [\\/]* | ?:[\\/]*)
33311 ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
33312 ;;
33313 *)
33314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33315 for as_dir in $PATH
33316 do
33317 IFS=$as_save_IFS
33318 case $as_dir in #(((
33319 '') as_dir=./ ;;
33320 */) ;;
33321 *) as_dir=$as_dir/ ;;
33322 esac
33323 for ac_exec_ext in '' $ac_executable_extensions; do
33324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33325 ac_cv_path_W3M="$as_dir$ac_word$ac_exec_ext"
33326 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33327 break 2
33328 fi
33329 done
33330 done
33331 IFS=$as_save_IFS
33332
33333 ;;
33334 esac ;;
33335 esac
33336 fi
33337 W3M=$ac_cv_path_W3M
33338 if test -n "$W3M"; then
33339 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
33340 printf '%s\n' "$W3M" >&6; }
33341 else
33342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
33343 printf '%s\n' "no" >&6; }
33344 fi
33345
33346
33347 fi
33348 if test -z "$ac_cv_path_W3M"; then
33349 ac_pt_W3M=$W3M
33350 # Extract the first word of "w3m", so it can be a program name with args.
33351 set dummy w3m; ac_word=$2
33352 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33353 printf %s "checking for $ac_word... " >&6; }
33354 if test ${ac_cv_path_ac_pt_W3M+y}
33355 then :
33356 printf %s "(cached) " >&6
33357 else case e in #(
33358 e) case $ac_pt_W3M in
33359 [\\/]* | ?:[\\/]*)
33360 ac_cv_path_ac_pt_W3M="$ac_pt_W3M" # Let the user override the test with a path.
33361 ;;
33362 *)
33363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33364 for as_dir in $PATH
33365 do
33366 IFS=$as_save_IFS
33367 case $as_dir in #(((
33368 '') as_dir=./ ;;
33369 */) ;;
33370 *) as_dir=$as_dir/ ;;
33371 esac
33372 for ac_exec_ext in '' $ac_executable_extensions; do
33373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33374 ac_cv_path_ac_pt_W3M="$as_dir$ac_word$ac_exec_ext"
33375 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33376 break 2
33377 fi
33378 done
33379 done
33380 IFS=$as_save_IFS
33381
33382 ;;
33383 esac ;;
33384 esac
33385 fi
33386 ac_pt_W3M=$ac_cv_path_ac_pt_W3M
33387 if test -n "$ac_pt_W3M"; then
33388 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_W3M" >&5
33389 printf '%s\n' "$ac_pt_W3M" >&6; }
33390 else
33391 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
33392 printf '%s\n' "no" >&6; }
33393 fi
33394
33395 if test "x$ac_pt_W3M" = x; then
33396 W3M=""
33397 else
33398 case $cross_compiling:$ac_tool_warned in
33399 yes:)
33400 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33401 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33402 ac_tool_warned=yes ;;
33403 esac
33404 W3M=$ac_pt_W3M
33405 fi
33406 else
33407 W3M="$ac_cv_path_W3M"
33408 fi
33409
33410
33411 if test -n "$ac_tool_prefix"; then
33412 # Extract the first word of "${ac_tool_prefix}lynx", so it can be a program name with args.
33413 set dummy ${ac_tool_prefix}lynx; ac_word=$2
33414 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33415 printf %s "checking for $ac_word... " >&6; }
33416 if test ${ac_cv_path_LYNX+y}
33417 then :
33418 printf %s "(cached) " >&6
33419 else case e in #(
33420 e) case $LYNX in
33421 [\\/]* | ?:[\\/]*)
33422 ac_cv_path_LYNX="$LYNX" # Let the user override the test with a path.
33423 ;;
33424 *)
33425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33426 for as_dir in $PATH
33427 do
33428 IFS=$as_save_IFS
33429 case $as_dir in #(((
33430 '') as_dir=./ ;;
33431 */) ;;
33432 *) as_dir=$as_dir/ ;;
33433 esac
33434 for ac_exec_ext in '' $ac_executable_extensions; do
33435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33436 ac_cv_path_LYNX="$as_dir$ac_word$ac_exec_ext"
33437 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33438 break 2
33439 fi
33440 done
33441 done
33442 IFS=$as_save_IFS
33443
33444 ;;
33445 esac ;;
33446 esac
33447 fi
33448 LYNX=$ac_cv_path_LYNX
33449 if test -n "$LYNX"; then
33450 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LYNX" >&5
33451 printf '%s\n' "$LYNX" >&6; }
33452 else
33453 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
33454 printf '%s\n' "no" >&6; }
33455 fi
33456
33457
33458 fi
33459 if test -z "$ac_cv_path_LYNX"; then
33460 ac_pt_LYNX=$LYNX
33461 # Extract the first word of "lynx", so it can be a program name with args.
33462 set dummy lynx; ac_word=$2
33463 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33464 printf %s "checking for $ac_word... " >&6; }
33465 if test ${ac_cv_path_ac_pt_LYNX+y}
33466 then :
33467 printf %s "(cached) " >&6
33468 else case e in #(
33469 e) case $ac_pt_LYNX in
33470 [\\/]* | ?:[\\/]*)
33471 ac_cv_path_ac_pt_LYNX="$ac_pt_LYNX" # Let the user override the test with a path.
33472 ;;
33473 *)
33474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33475 for as_dir in $PATH
33476 do
33477 IFS=$as_save_IFS
33478 case $as_dir in #(((
33479 '') as_dir=./ ;;
33480 */) ;;
33481 *) as_dir=$as_dir/ ;;
33482 esac
33483 for ac_exec_ext in '' $ac_executable_extensions; do
33484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33485 ac_cv_path_ac_pt_LYNX="$as_dir$ac_word$ac_exec_ext"
33486 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33487 break 2
33488 fi
33489 done
33490 done
33491 IFS=$as_save_IFS
33492
33493 ;;
33494 esac ;;
33495 esac
33496 fi
33497 ac_pt_LYNX=$ac_cv_path_ac_pt_LYNX
33498 if test -n "$ac_pt_LYNX"; then
33499 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LYNX" >&5
33500 printf '%s\n' "$ac_pt_LYNX" >&6; }
33501 else
33502 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
33503 printf '%s\n' "no" >&6; }
33504 fi
33505
33506 if test "x$ac_pt_LYNX" = x; then
33507 LYNX=""
33508 else
33509 case $cross_compiling:$ac_tool_warned in
33510 yes:)
33511 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33512 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33513 ac_tool_warned=yes ;;
33514 esac
33515 LYNX=$ac_pt_LYNX
33516 fi
33517 else
33518 LYNX="$ac_cv_path_LYNX"
33519 fi
33520
33521
33522 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if can build top-level README" >&5
33523 printf %s "checking if can build top-level README... " >&6; }
33524 if test "x$W3M" != "x"
33525 then :
33526 hwloc_generate_readme=yes
33527 HWLOC_W3_GENERATOR=$W3M
33528 else case e in #(
33529 e) if test "x$LYNX" != "x"
33530 then :
33531 hwloc_generate_readme=yes
33532 HWLOC_W3_GENERATOR="$LYNX -dump -nolist"
33533 else case e in #(
33534 e) hwloc_generate_readme=no ;;
33535 esac
33536 fi ;;
33537 esac
33538 fi
33539
33540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hwloc_generate_readme" >&5
33541 printf '%s\n' "$hwloc_generate_readme" >&6; }
33542
33543 else case e in #(
33544 e)
33545 hwloc_generate_readme=no
33546 ;;
33547 esac
33548 fi
33549 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if will build top-level README" >&5
33550 printf %s "checking if will build top-level README... " >&6; }
33551 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hwloc_generate_readme" >&5
33552 printf '%s\n' "$hwloc_generate_readme" >&6; }
33553
33554 # If any one of the above tools is missing, we will refuse to make dist.
33555 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if will build doxygen docs" >&5
33556 printf %s "checking if will build doxygen docs... " >&6; }
33557 if test "x$hwloc_generate_doxs" = "xyes" -a "x$enable_doxygen" != "xno"
33558 then :
33559
33560 else case e in #(
33561 e) hwloc_generate_doxs=no ;;
33562 esac
33563 fi
33564 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hwloc_generate_doxs" >&5
33565 printf '%s\n' "$hwloc_generate_doxs" >&6; }
33566
33567 # See if we want to install the doxygen docs
33568 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if will install doxygen docs" >&5
33569 printf %s "checking if will install doxygen docs... " >&6; }
33570 if test "x$hwloc_generate_doxs" = "xyes" -o \
33571 -f "$srcdir/doc/doxygen-doc/man/man3/hwloc_distrib.3" -a \
33572 -f "$srcdir/doc/doxygen-doc/hwloc-a4.pdf" -a \
33573 -f "$srcdir/doc/doxygen-doc/hwloc-letter.pdf"
33574 then :
33575 hwloc_install_doxs=yes
33576 else case e in #(
33577 e) hwloc_install_doxs=no ;;
33578 esac
33579 fi
33580 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hwloc_install_doxs" >&5
33581 printf '%s\n' "$hwloc_install_doxs" >&6; }
33582
33583 # Generate some files for the docs
33584 ac_config_files="$ac_config_files doc/Makefile doc/examples/Makefile doc/doxygen-config.cfg"
33585
33586
33587
33588 cat <<EOF
33589
33590 ###
33591 ### Configuring hwloc command line utilities
33592 ###
33593 EOF
33594
33595
33596
33597 # runstatedir only supported in autoconf >= 2.70 and in some backports
33598 if test "x${runstatedir}" != "x"; then
33599 HWLOC_runstatedir=${runstatedir}
33600 else
33601 HWLOC_runstatedir='${localstatedir}/run'
33602 fi
33603
33604
33605 # X11 support
33606 if test "$no_x" = yes; then
33607 # Not all programs may use this symbol, but it does not hurt to define it.
33608
33609 printf '%s\n' "#define X_DISPLAY_MISSING 1" >>confdefs.h
33610
33611 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
33612 else
33613 if test -n "$x_includes"; then
33614 X_CFLAGS="$X_CFLAGS -I$x_includes"
33615 fi
33616
33617 # It would also be nice to do this for all -L options, not just this one.
33618 if test -n "$x_libraries"; then
33619 X_LIBS="$X_LIBS -L$x_libraries"
33620 # For Solaris; some versions of Sun CC require a space after -R and
33621 # others require no space. Words are not sufficient . . . .
33622 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
33623 printf %s "checking whether -R must be followed by a space... " >&6; }
33624 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
33625 ac_xsave_c_werror_flag=$ac_c_werror_flag
33626 ac_c_werror_flag=yes
33627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33628 /* end confdefs.h. */
33629
33630 int
33631 main (void)
33632 {
33633
33634 ;
33635 return 0;
33636 }
33637 _ACEOF
33638 if ac_fn_c_try_link "$LINENO"
33639 then :
33640 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
33641 printf '%s\n' "no" >&6; }
33642 X_LIBS="$X_LIBS -R$x_libraries"
33643 else case e in #(
33644 e) LIBS="$ac_xsave_LIBS -R $x_libraries"
33645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33646 /* end confdefs.h. */
33647
33648 int
33649 main (void)
33650 {
33651
33652 ;
33653 return 0;
33654 }
33655 _ACEOF
33656 if ac_fn_c_try_link "$LINENO"
33657 then :
33658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33659 printf '%s\n' "yes" >&6; }
33660 X_LIBS="$X_LIBS -R $x_libraries"
33661 else case e in #(
33662 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
33663 printf '%s\n' "neither works" >&6; } ;;
33664 esac
33665 fi
33666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33667 conftest$ac_exeext conftest.$ac_ext ;;
33668 esac
33669 fi
33670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33671 conftest$ac_exeext conftest.$ac_ext
33672 ac_c_werror_flag=$ac_xsave_c_werror_flag
33673 LIBS=$ac_xsave_LIBS
33674 fi
33675
33676 # Check for system-dependent libraries X programs must link with.
33677 # Do this before checking for the system-independent R6 libraries
33678 # (-lICE), since we may need -lsocket or whatever for X linking.
33679
33680 if test "$ISC" = yes; then
33681 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
33682 else
33683 # Martyn Johnson says this is needed for Ultrix, if the X
33684 # libraries were built with DECnet support. And Karl Berry says
33685 # the Alpha needs dnet_stub (dnet does not exist).
33686 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
33687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33688 /* end confdefs.h. */
33689
33690 /* Override any GCC internal prototype to avoid an error.
33691 Use char because int might match the return type of a GCC
33692 builtin and then its argument prototype would still apply.
33693 The 'extern "C"' is for builds by C++ compilers;
33694 although this is not generally supported in C code supporting it here
33695 has little cost and some practical benefit (sr 110532). */
33696 #ifdef __cplusplus
33697 extern "C"
33698 #endif
33699 char XOpenDisplay (void);
33700 int
33701 main (void)
33702 {
33703 return XOpenDisplay ();
33704 ;
33705 return 0;
33706 }
33707 _ACEOF
33708 if ac_fn_c_try_link "$LINENO"
33709 then :
33710
33711 else case e in #(
33712 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
33713 printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
33714 if test ${ac_cv_lib_dnet_dnet_ntoa+y}
33715 then :
33716 printf %s "(cached) " >&6
33717 else case e in #(
33718 e) ac_check_lib_save_LIBS=$LIBS
33719 LIBS="-ldnet $LIBS"
33720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33721 /* end confdefs.h. */
33722
33723 /* Override any GCC internal prototype to avoid an error.
33724 Use char because int might match the return type of a GCC
33725 builtin and then its argument prototype would still apply.
33726 The 'extern "C"' is for builds by C++ compilers;
33727 although this is not generally supported in C code supporting it here
33728 has little cost and some practical benefit (sr 110532). */
33729 #ifdef __cplusplus
33730 extern "C"
33731 #endif
33732 char dnet_ntoa (void);
33733 int
33734 main (void)
33735 {
33736 return dnet_ntoa ();
33737 ;
33738 return 0;
33739 }
33740 _ACEOF
33741 if ac_fn_c_try_link "$LINENO"
33742 then :
33743 ac_cv_lib_dnet_dnet_ntoa=yes
33744 else case e in #(
33745 e) ac_cv_lib_dnet_dnet_ntoa=no ;;
33746 esac
33747 fi
33748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33749 conftest$ac_exeext conftest.$ac_ext
33750 LIBS=$ac_check_lib_save_LIBS ;;
33751 esac
33752 fi
33753 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
33754 printf '%s\n' "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
33755 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
33756 then :
33757 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
33758 fi
33759
33760 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
33761 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
33762 printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
33763 if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
33764 then :
33765 printf %s "(cached) " >&6
33766 else case e in #(
33767 e) ac_check_lib_save_LIBS=$LIBS
33768 LIBS="-ldnet_stub $LIBS"
33769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33770 /* end confdefs.h. */
33771
33772 /* Override any GCC internal prototype to avoid an error.
33773 Use char because int might match the return type of a GCC
33774 builtin and then its argument prototype would still apply.
33775 The 'extern "C"' is for builds by C++ compilers;
33776 although this is not generally supported in C code supporting it here
33777 has little cost and some practical benefit (sr 110532). */
33778 #ifdef __cplusplus
33779 extern "C"
33780 #endif
33781 char dnet_ntoa (void);
33782 int
33783 main (void)
33784 {
33785 return dnet_ntoa ();
33786 ;
33787 return 0;
33788 }
33789 _ACEOF
33790 if ac_fn_c_try_link "$LINENO"
33791 then :
33792 ac_cv_lib_dnet_stub_dnet_ntoa=yes
33793 else case e in #(
33794 e) ac_cv_lib_dnet_stub_dnet_ntoa=no ;;
33795 esac
33796 fi
33797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33798 conftest$ac_exeext conftest.$ac_ext
33799 LIBS=$ac_check_lib_save_LIBS ;;
33800 esac
33801 fi
33802 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
33803 printf '%s\n' "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
33804 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
33805 then :
33806 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
33807 fi
33808
33809 fi ;;
33810 esac
33811 fi
33812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33813 conftest$ac_exeext conftest.$ac_ext
33814 LIBS="$ac_xsave_LIBS"
33815
33816 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
33817 # to get the SysV transport functions.
33818 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
33819 # needs -lnsl.
33820 # The nsl library prevents programs from opening the X display
33821 # on Irix 5.2, according to T.E. Dickey.
33822 # The functions gethostbyname, getservbyname, and inet_addr are
33823 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
33824 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
33825 if test "x$ac_cv_func_gethostbyname" = xyes
33826 then :
33827
33828 fi
33829
33830 if test $ac_cv_func_gethostbyname = no; then
33831 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
33832 printf %s "checking for gethostbyname in -lnsl... " >&6; }
33833 if test ${ac_cv_lib_nsl_gethostbyname+y}
33834 then :
33835 printf %s "(cached) " >&6
33836 else case e in #(
33837 e) ac_check_lib_save_LIBS=$LIBS
33838 LIBS="-lnsl $LIBS"
33839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33840 /* end confdefs.h. */
33841
33842 /* Override any GCC internal prototype to avoid an error.
33843 Use char because int might match the return type of a GCC
33844 builtin and then its argument prototype would still apply.
33845 The 'extern "C"' is for builds by C++ compilers;
33846 although this is not generally supported in C code supporting it here
33847 has little cost and some practical benefit (sr 110532). */
33848 #ifdef __cplusplus
33849 extern "C"
33850 #endif
33851 char gethostbyname (void);
33852 int
33853 main (void)
33854 {
33855 return gethostbyname ();
33856 ;
33857 return 0;
33858 }
33859 _ACEOF
33860 if ac_fn_c_try_link "$LINENO"
33861 then :
33862 ac_cv_lib_nsl_gethostbyname=yes
33863 else case e in #(
33864 e) ac_cv_lib_nsl_gethostbyname=no ;;
33865 esac
33866 fi
33867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33868 conftest$ac_exeext conftest.$ac_ext
33869 LIBS=$ac_check_lib_save_LIBS ;;
33870 esac
33871 fi
33872 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
33873 printf '%s\n' "$ac_cv_lib_nsl_gethostbyname" >&6; }
33874 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
33875 then :
33876 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
33877 fi
33878
33879 if test $ac_cv_lib_nsl_gethostbyname = no; then
33880 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
33881 printf %s "checking for gethostbyname in -lbsd... " >&6; }
33882 if test ${ac_cv_lib_bsd_gethostbyname+y}
33883 then :
33884 printf %s "(cached) " >&6
33885 else case e in #(
33886 e) ac_check_lib_save_LIBS=$LIBS
33887 LIBS="-lbsd $LIBS"
33888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33889 /* end confdefs.h. */
33890
33891 /* Override any GCC internal prototype to avoid an error.
33892 Use char because int might match the return type of a GCC
33893 builtin and then its argument prototype would still apply.
33894 The 'extern "C"' is for builds by C++ compilers;
33895 although this is not generally supported in C code supporting it here
33896 has little cost and some practical benefit (sr 110532). */
33897 #ifdef __cplusplus
33898 extern "C"
33899 #endif
33900 char gethostbyname (void);
33901 int
33902 main (void)
33903 {
33904 return gethostbyname ();
33905 ;
33906 return 0;
33907 }
33908 _ACEOF
33909 if ac_fn_c_try_link "$LINENO"
33910 then :
33911 ac_cv_lib_bsd_gethostbyname=yes
33912 else case e in #(
33913 e) ac_cv_lib_bsd_gethostbyname=no ;;
33914 esac
33915 fi
33916 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33917 conftest$ac_exeext conftest.$ac_ext
33918 LIBS=$ac_check_lib_save_LIBS ;;
33919 esac
33920 fi
33921 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
33922 printf '%s\n' "$ac_cv_lib_bsd_gethostbyname" >&6; }
33923 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
33924 then :
33925 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
33926 fi
33927
33928 fi
33929 fi
33930
33931 # [email protected] says without -lsocket,
33932 # socket/setsockopt and other routines are undefined under SCO ODT
33933 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
33934 # on later versions), says Simon Leinen: it contains gethostby*
33935 # variants that don't use the name server (or something). -lsocket
33936 # must be given before -lnsl if both are needed. We assume that
33937 # if connect needs -lnsl, so does gethostbyname.
33938 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
33939 if test "x$ac_cv_func_connect" = xyes
33940 then :
33941
33942 fi
33943
33944 if test $ac_cv_func_connect = no; then
33945 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
33946 printf %s "checking for connect in -lsocket... " >&6; }
33947 if test ${ac_cv_lib_socket_connect+y}
33948 then :
33949 printf %s "(cached) " >&6
33950 else case e in #(
33951 e) ac_check_lib_save_LIBS=$LIBS
33952 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
33953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33954 /* end confdefs.h. */
33955
33956 /* Override any GCC internal prototype to avoid an error.
33957 Use char because int might match the return type of a GCC
33958 builtin and then its argument prototype would still apply.
33959 The 'extern "C"' is for builds by C++ compilers;
33960 although this is not generally supported in C code supporting it here
33961 has little cost and some practical benefit (sr 110532). */
33962 #ifdef __cplusplus
33963 extern "C"
33964 #endif
33965 char connect (void);
33966 int
33967 main (void)
33968 {
33969 return connect ();
33970 ;
33971 return 0;
33972 }
33973 _ACEOF
33974 if ac_fn_c_try_link "$LINENO"
33975 then :
33976 ac_cv_lib_socket_connect=yes
33977 else case e in #(
33978 e) ac_cv_lib_socket_connect=no ;;
33979 esac
33980 fi
33981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33982 conftest$ac_exeext conftest.$ac_ext
33983 LIBS=$ac_check_lib_save_LIBS ;;
33984 esac
33985 fi
33986 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
33987 printf '%s\n' "$ac_cv_lib_socket_connect" >&6; }
33988 if test "x$ac_cv_lib_socket_connect" = xyes
33989 then :
33990 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
33991 fi
33992
33993 fi
33994
33995 # Guillermo Gomez says -lposix is necessary on A/UX.
33996 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
33997 if test "x$ac_cv_func_remove" = xyes
33998 then :
33999
34000 fi
34001
34002 if test $ac_cv_func_remove = no; then
34003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
34004 printf %s "checking for remove in -lposix... " >&6; }
34005 if test ${ac_cv_lib_posix_remove+y}
34006 then :
34007 printf %s "(cached) " >&6
34008 else case e in #(
34009 e) ac_check_lib_save_LIBS=$LIBS
34010 LIBS="-lposix $LIBS"
34011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34012 /* end confdefs.h. */
34013
34014 /* Override any GCC internal prototype to avoid an error.
34015 Use char because int might match the return type of a GCC
34016 builtin and then its argument prototype would still apply.
34017 The 'extern "C"' is for builds by C++ compilers;
34018 although this is not generally supported in C code supporting it here
34019 has little cost and some practical benefit (sr 110532). */
34020 #ifdef __cplusplus
34021 extern "C"
34022 #endif
34023 char remove (void);
34024 int
34025 main (void)
34026 {
34027 return remove ();
34028 ;
34029 return 0;
34030 }
34031 _ACEOF
34032 if ac_fn_c_try_link "$LINENO"
34033 then :
34034 ac_cv_lib_posix_remove=yes
34035 else case e in #(
34036 e) ac_cv_lib_posix_remove=no ;;
34037 esac
34038 fi
34039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34040 conftest$ac_exeext conftest.$ac_ext
34041 LIBS=$ac_check_lib_save_LIBS ;;
34042 esac
34043 fi
34044 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
34045 printf '%s\n' "$ac_cv_lib_posix_remove" >&6; }
34046 if test "x$ac_cv_lib_posix_remove" = xyes
34047 then :
34048 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
34049 fi
34050
34051 fi
34052
34053 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
34054 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
34055 if test "x$ac_cv_func_shmat" = xyes
34056 then :
34057
34058 fi
34059
34060 if test $ac_cv_func_shmat = no; then
34061 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
34062 printf %s "checking for shmat in -lipc... " >&6; }
34063 if test ${ac_cv_lib_ipc_shmat+y}
34064 then :
34065 printf %s "(cached) " >&6
34066 else case e in #(
34067 e) ac_check_lib_save_LIBS=$LIBS
34068 LIBS="-lipc $LIBS"
34069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34070 /* end confdefs.h. */
34071
34072 /* Override any GCC internal prototype to avoid an error.
34073 Use char because int might match the return type of a GCC
34074 builtin and then its argument prototype would still apply.
34075 The 'extern "C"' is for builds by C++ compilers;
34076 although this is not generally supported in C code supporting it here
34077 has little cost and some practical benefit (sr 110532). */
34078 #ifdef __cplusplus
34079 extern "C"
34080 #endif
34081 char shmat (void);
34082 int
34083 main (void)
34084 {
34085 return shmat ();
34086 ;
34087 return 0;
34088 }
34089 _ACEOF
34090 if ac_fn_c_try_link "$LINENO"
34091 then :
34092 ac_cv_lib_ipc_shmat=yes
34093 else case e in #(
34094 e) ac_cv_lib_ipc_shmat=no ;;
34095 esac
34096 fi
34097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34098 conftest$ac_exeext conftest.$ac_ext
34099 LIBS=$ac_check_lib_save_LIBS ;;
34100 esac
34101 fi
34102 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
34103 printf '%s\n' "$ac_cv_lib_ipc_shmat" >&6; }
34104 if test "x$ac_cv_lib_ipc_shmat" = xyes
34105 then :
34106 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
34107 fi
34108
34109 fi
34110 fi
34111
34112 # Check for libraries that X11R6 Xt/Xaw programs need.
34113 ac_save_LDFLAGS=$LDFLAGS
34114 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
34115 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
34116 # check for ICE first), but we must link in the order -lSM -lICE or
34117 # we get undefined symbols. So assume we have SM if we have ICE.
34118 # These have to be linked with before -lX11, unlike the other
34119 # libraries we check for below, so use a different variable.
34120 # John Interrante, Karl Berry
34121 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
34122 printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
34123 if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
34124 then :
34125 printf %s "(cached) " >&6
34126 else case e in #(
34127 e) ac_check_lib_save_LIBS=$LIBS
34128 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
34129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34130 /* end confdefs.h. */
34131
34132 /* Override any GCC internal prototype to avoid an error.
34133 Use char because int might match the return type of a GCC
34134 builtin and then its argument prototype would still apply.
34135 The 'extern "C"' is for builds by C++ compilers;
34136 although this is not generally supported in C code supporting it here
34137 has little cost and some practical benefit (sr 110532). */
34138 #ifdef __cplusplus
34139 extern "C"
34140 #endif
34141 char IceConnectionNumber (void);
34142 int
34143 main (void)
34144 {
34145 return IceConnectionNumber ();
34146 ;
34147 return 0;
34148 }
34149 _ACEOF
34150 if ac_fn_c_try_link "$LINENO"
34151 then :
34152 ac_cv_lib_ICE_IceConnectionNumber=yes
34153 else case e in #(
34154 e) ac_cv_lib_ICE_IceConnectionNumber=no ;;
34155 esac
34156 fi
34157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34158 conftest$ac_exeext conftest.$ac_ext
34159 LIBS=$ac_check_lib_save_LIBS ;;
34160 esac
34161 fi
34162 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
34163 printf '%s\n' "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
34164 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
34165 then :
34166 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
34167 fi
34168
34169 LDFLAGS=$ac_save_LDFLAGS
34170
34171 fi
34172
34173
34174 CPPFLAGS_save=$CPPFLAGS
34175 LIBS_save=$LIBS
34176
34177 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
34178 LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
34179 for ac_header in X11/Xlib.h
34180 do :
34181 ac_fn_c_check_header_compile "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
34182 if test "x$ac_cv_header_X11_Xlib_h" = xyes
34183 then :
34184 printf '%s\n' "#define HAVE_X11_XLIB_H 1" >>confdefs.h
34185 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
34186 printf %s "checking for XOpenDisplay in -lX11... " >&6; }
34187 if test ${ac_cv_lib_X11_XOpenDisplay+y}
34188 then :
34189 printf %s "(cached) " >&6
34190 else case e in #(
34191 e) ac_check_lib_save_LIBS=$LIBS
34192 LIBS="-lX11 $LIBS"
34193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34194 /* end confdefs.h. */
34195
34196 /* Override any GCC internal prototype to avoid an error.
34197 Use char because int might match the return type of a GCC
34198 builtin and then its argument prototype would still apply.
34199 The 'extern "C"' is for builds by C++ compilers;
34200 although this is not generally supported in C code supporting it here
34201 has little cost and some practical benefit (sr 110532). */
34202 #ifdef __cplusplus
34203 extern "C"
34204 #endif
34205 char XOpenDisplay (void);
34206 int
34207 main (void)
34208 {
34209 return XOpenDisplay ();
34210 ;
34211 return 0;
34212 }
34213 _ACEOF
34214 if ac_fn_c_try_link "$LINENO"
34215 then :
34216 ac_cv_lib_X11_XOpenDisplay=yes
34217 else case e in #(
34218 e) ac_cv_lib_X11_XOpenDisplay=no ;;
34219 esac
34220 fi
34221 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34222 conftest$ac_exeext conftest.$ac_ext
34223 LIBS=$ac_check_lib_save_LIBS ;;
34224 esac
34225 fi
34226 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
34227 printf '%s\n' "$ac_cv_lib_X11_XOpenDisplay" >&6; }
34228 if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes
34229 then :
34230 for ac_header in X11/Xutil.h
34231 do :
34232 ac_fn_c_check_header_compile "$LINENO" "X11/Xutil.h" "ac_cv_header_X11_Xutil_h" "#include <X11/Xlib.h>
34233 "
34234 if test "x$ac_cv_header_X11_Xutil_h" = xyes
34235 then :
34236 printf '%s\n' "#define HAVE_X11_XUTIL_H 1" >>confdefs.h
34237 for ac_header in X11/keysym.h
34238 do :
34239 ac_fn_c_check_header_compile "$LINENO" "X11/keysym.h" "ac_cv_header_X11_keysym_h" "$ac_includes_default"
34240 if test "x$ac_cv_header_X11_keysym_h" = xyes
34241 then :
34242 printf '%s\n' "#define HAVE_X11_KEYSYM_H 1" >>confdefs.h
34243
34244 printf '%s\n' "#define HWLOC_HAVE_X11_KEYSYM 1" >>confdefs.h
34245
34246 hwloc_x11_keysym_happy=yes
34247 HWLOC_X11_CPPFLAGS="$X_CFLAGS"
34248
34249 HWLOC_X11_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
34250
34251 fi
34252
34253 done
34254
34255 fi
34256
34257 done
34258
34259 fi
34260
34261
34262 fi
34263
34264 done
34265 CPPFLAGS=$CPPFLAGS_save
34266 LIBS=$LIBS_save
34267
34268 # Cairo support
34269 hwloc_cairo_happy=no
34270 if test "x$enable_cairo" != "xno"; then
34271
34272
34273 HWLOC_pkg_failed=no
34274 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
34275 printf %s "checking for CAIRO... " >&6; }
34276
34277 if test -n "$PKG_CONFIG"; then
34278 if test -n "$HWLOC_CAIRO_CFLAGS"; then
34279 HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS="$HWLOC_CAIRO_CFLAGS"
34280 else
34281 if test -n "$PKG_CONFIG" && \
34282 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"cairo\""; } >&5
34283 ($PKG_CONFIG --exists --silence-errors "cairo") 2>&5
34284 ac_status=$?
34285 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34286 test $ac_status = 0; }; then
34287 HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
34288 else
34289 HWLOC_pkg_failed=yes
34290 fi
34291 fi
34292 else
34293 HWLOC_pkg_failed=untried
34294 fi
34295
34296 if test -n "$PKG_CONFIG"; then
34297 if test -n "$HWLOC_CAIRO_LIBS"; then
34298 HWLOC_pkg_cv_HWLOC_CAIRO_LIBS="$HWLOC_CAIRO_LIBS"
34299 else
34300 if test -n "$PKG_CONFIG" && \
34301 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"cairo\""; } >&5
34302 ($PKG_CONFIG --exists --silence-errors "cairo") 2>&5
34303 ac_status=$?
34304 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34305 test $ac_status = 0; }; then
34306 HWLOC_pkg_cv_HWLOC_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
34307 else
34308 HWLOC_pkg_failed=yes
34309 fi
34310 fi
34311 else
34312 HWLOC_pkg_failed=untried
34313 fi
34314
34315
34316
34317
34318 # Check for failure of pkg-config
34319 if test $HWLOC_pkg_failed = yes; then
34320
34321 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34322 HWLOC_pkg_short_errors_supported=yes
34323 else
34324 HWLOC_pkg_short_errors_supported=no
34325 fi
34326 if test $HWLOC_pkg_short_errors_supported = yes; then
34327 HWLOC_CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo" 2>&1`
34328 else
34329 HWLOC_CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo" 2>&1`
34330 fi
34331 # Put the nasty error message in config.log where it belongs
34332 echo "$HWLOC_CAIRO_PKG_ERRORS" >&5
34333
34334 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
34335 printf '%s\n' "no" >&6; }
34336 hwloc_cairo_happy=no
34337 elif test $HWLOC_pkg_failed = untried; then
34338 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5
34339 printf '%s\n' "cannot check without pkg-config" >&6; }
34340 hwloc_cairo_happy=no
34341 else
34342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34343 printf '%s\n' "yes" >&6; }
34344
34345 # If we got good results from pkg-config, check that they
34346 # actually work (i.e., that we can link against the resulting
34347 # $LIBS). The canonical example why we do this is if
34348 # pkg-config returns 64 bit libraries but ./configure was run
34349 # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid
34350 # results, but we'll fail if we try to link. So detect that
34351 # failure now.
34352 # There are also cases on Mac where pkg-config returns paths
34353 # that do not actually exists until some magic is applied.
34354 # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
34355 # So check whether we find the header as well.
34356 hwloc_cflags_save=$CFLAGS
34357 hwloc_cppflags_save=$CPPFLAGS
34358 hwloc_libs_save=$LIBS
34359 CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS"
34360 CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS"
34361 LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_CAIRO_LIBS"
34362 ac_fn_c_check_header_compile "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
34363 if test "x$ac_cv_header_cairo_h" = xyes
34364 then :
34365
34366 ac_fn_c_check_func "$LINENO" "cairo_fill" "ac_cv_func_cairo_fill"
34367 if test "x$ac_cv_func_cairo_fill" = xyes
34368 then :
34369 hwloc_result=yes
34370 else case e in #(
34371 e) hwloc_result=no ;;
34372 esac
34373 fi
34374
34375
34376 else case e in #(
34377 e) hwloc_result=no ;;
34378 esac
34379 fi
34380
34381 CFLAGS=$hwloc_cflags_save
34382 CPPFLAGS=$hwloc_cppflags_save
34383 LIBS=$hwloc_libs_save
34384
34385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for final CAIRO support" >&5
34386 printf %s "checking for final CAIRO support... " >&6; }
34387 if test "$hwloc_result" = "yes"
34388 then :
34389 HWLOC_CAIRO_CFLAGS=$HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS
34390 HWLOC_CAIRO_LIBS=$HWLOC_pkg_cv_HWLOC_CAIRO_LIBS
34391 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34392 printf '%s\n' "yes" >&6; }
34393 hwloc_cairo_happy=yes
34394 else case e in #(
34395 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
34396 printf '%s\n' "no" >&6; }
34397 hwloc_cairo_happy=no ;;
34398 esac
34399 fi
34400 fi
34401 fi
34402
34403 if test "x$hwloc_cairo_happy" = "xyes"; then
34404
34405 printf '%s\n' "#define HWLOC_HAVE_CAIRO 1" >>confdefs.h
34406
34407 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether lstopo Cairo/X11 interactive graphical output is supported" >&5
34408 printf %s "checking whether lstopo Cairo/X11 interactive graphical output is supported... " >&6; }
34409 if test "x$hwloc_x11_keysym_happy" = xyes; then
34410 save_CPPFLAGS="$CPPFLAGS"
34411 CPPFLAGS="$CPPFLAGS $HWLOC_CAIRO_CFLAGS $HWLOC_X11_CPPFLAGS"
34412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34413 /* end confdefs.h. */
34414
34415
34416 #include <cairo.h>
34417
34418 int
34419 main (void)
34420 {
34421
34422 #ifndef CAIRO_HAS_XLIB_SURFACE
34423 #error
34424 #endif
34425
34426 ;
34427 return 0;
34428 }
34429
34430 _ACEOF
34431 if ac_fn_c_try_cpp "$LINENO"
34432 then :
34433
34434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34435 printf '%s\n' "yes" >&6; }
34436 lstopo_have_x11=yes
34437
34438 printf '%s\n' "#define LSTOPO_HAVE_X11 1" >>confdefs.h
34439
34440
34441 else case e in #(
34442 e)
34443 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no (missing CAIRO_HAS_XLIB_SURFACE)" >&5
34444 printf '%s\n' "no (missing CAIRO_HAS_XLIB_SURFACE)" >&6; }
34445 ;;
34446 esac
34447 fi
34448 rm -f conftest.err conftest.i conftest.$ac_ext
34449 CPPFLAGS="$save_CPPFLAGS"
34450 else
34451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no (missing X11)" >&5
34452 printf '%s\n' "no (missing X11)" >&6; }
34453 fi
34454 else
34455 if test "$enable_cairo" = "yes"
34456 then :
34457 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: --enable-cairo requested, but Cairo/X11 support was not found" >&5
34458 printf '%s\n' "$as_me: WARNING: --enable-cairo requested, but Cairo/X11 support was not found" >&2;}
34459 as_fn_error $? "Cannot continue" "$LINENO" 5
34460 fi
34461 fi
34462
34463 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "#include <wchar.h>
34464 "
34465 if test "x$ac_cv_type_wchar_t" = xyes
34466 then :
34467
34468 printf '%s\n' "#define HAVE_WCHAR_T 1" >>confdefs.h
34469
34470
34471 ac_fn_c_check_func "$LINENO" "putwc" "ac_cv_func_putwc"
34472 if test "x$ac_cv_func_putwc" = xyes
34473 then :
34474 printf '%s\n' "#define HAVE_PUTWC 1" >>confdefs.h
34475
34476 fi
34477
34478
34479 fi
34480
34481
34482 HWLOC_XML_LOCALIZED=1
34483 for ac_header in locale.h xlocale.h
34484 do :
34485 as_ac_Header=`printf '%s\n' "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
34486 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
34487 if eval test \"x\$"$as_ac_Header"\" = x"yes"
34488 then :
34489 cat >>confdefs.h <<_ACEOF
34490 #define `printf '%s\n' "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
34491 _ACEOF
34492
34493 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
34494 if test "x$ac_cv_func_setlocale" = xyes
34495 then :
34496 printf '%s\n' "#define HAVE_SETLOCALE 1" >>confdefs.h
34497
34498 fi
34499
34500
34501 for ac_func in uselocale
34502 do :
34503 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
34504 if test "x$ac_cv_func_uselocale" = xyes
34505 then :
34506 printf '%s\n' "#define HAVE_USELOCALE 1" >>confdefs.h
34507 HWLOC_XML_LOCALIZED=0
34508 fi
34509
34510 done
34511
34512 fi
34513
34514 done
34515
34516 for ac_header in langinfo.h
34517 do :
34518 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
34519 if test "x$ac_cv_header_langinfo_h" = xyes
34520 then :
34521 printf '%s\n' "#define HAVE_LANGINFO_H 1" >>confdefs.h
34522
34523 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
34524 if test "x$ac_cv_func_nl_langinfo" = xyes
34525 then :
34526 printf '%s\n' "#define HAVE_NL_LANGINFO 1" >>confdefs.h
34527
34528 fi
34529
34530
34531 fi
34532
34533 done
34534 hwloc_old_LIBS="$LIBS"
34535 chosen_curses=""
34536 for curses in ncurses curses
34537 do
34538 for lib in "" -l${curses}w -l$curses -ltinfo -ltermcap
34539 do
34540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking termcap support using $curses and $lib" >&5
34541 printf %s "checking termcap support using $curses and $lib... " >&6; }
34542 LIBS="$hwloc_old_LIBS $lib"
34543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34544 /* end confdefs.h. */
34545
34546 #include <$curses.h>
34547 #include <term.h>
34548
34549 int
34550 main (void)
34551 {
34552 tparm(NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0)
34553 ;
34554 return 0;
34555 }
34556 _ACEOF
34557 if ac_fn_c_try_link "$LINENO"
34558 then :
34559
34560 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34561 printf '%s\n' "yes" >&6; }
34562 HWLOC_TERMCAP_LIBS="$LIBS"
34563
34564
34565 printf '%s\n' "#define HWLOC_HAVE_LIBTERMCAP 1" >>confdefs.h
34566
34567 chosen_curses=$curses
34568
34569 else case e in #(
34570 e)
34571 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
34572 printf '%s\n' "no" >&6; }
34573 ;;
34574 esac
34575 fi
34576 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34577 conftest$ac_exeext conftest.$ac_ext
34578 test "x$chosen_curses" != "x" && break
34579 done
34580 test "x$chosen_curses" != "x" && break
34581 done
34582 if test "$chosen_curses" = ncurses
34583 then
34584
34585 printf '%s\n' "#define HWLOC_USE_NCURSES 1" >>confdefs.h
34586
34587 fi
34588 LIBS="$hwloc_old_LIBS"
34589 unset hwloc_old_LIBS
34590
34591
34592
34593 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether diff accepts -u" >&5
34594 printf %s "checking whether diff accepts -u... " >&6; }
34595 if $DIFF -u /dev/null /dev/null 2> /dev/null
34596 then
34597 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34598 printf '%s\n' "yes" >&6; }
34599 HWLOC_DIFF_U="-u"
34600 else
34601 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
34602 printf '%s\n' "no" >&6; }
34603 HWLOC_DIFF_U=""
34604 fi
34605
34606
34607
34608
34609 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether diff accepts -w" >&5
34610 printf %s "checking whether diff accepts -w... " >&6; }
34611 if $DIFF -w /dev/null /dev/null 2> /dev/null
34612 then
34613 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34614 printf '%s\n' "yes" >&6; }
34615 HWLOC_DIFF_W="-w"
34616 else
34617 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
34618 printf '%s\n' "no" >&6; }
34619 HWLOC_DIFF_W=""
34620 fi
34621
34622
34623
34624 # Solaris needs -lsocket for socket/bind/... in hwloc-ps
34625 ac_fn_check_decl "$LINENO" "bind" "ac_cv_have_decl_bind" "#include <sys/socket.h>
34626 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
34627 if test "x$ac_cv_have_decl_bind" = xyes
34628 then :
34629 ac_have_decl=1
34630 else case e in #(
34631 e) ac_have_decl=0 ;;
34632 esac
34633 fi
34634 printf '%s\n' "#define HAVE_DECL_BIND $ac_have_decl" >>confdefs.h
34635 if test $ac_have_decl = 1
34636 then :
34637
34638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
34639 printf %s "checking for bind in -lsocket... " >&6; }
34640 if test ${ac_cv_lib_socket_bind+y}
34641 then :
34642 printf %s "(cached) " >&6
34643 else case e in #(
34644 e) ac_check_lib_save_LIBS=$LIBS
34645 LIBS="-lsocket $LIBS"
34646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34647 /* end confdefs.h. */
34648
34649 /* Override any GCC internal prototype to avoid an error.
34650 Use char because int might match the return type of a GCC
34651 builtin and then its argument prototype would still apply.
34652 The 'extern "C"' is for builds by C++ compilers;
34653 although this is not generally supported in C code supporting it here
34654 has little cost and some practical benefit (sr 110532). */
34655 #ifdef __cplusplus
34656 extern "C"
34657 #endif
34658 char bind (void);
34659 int
34660 main (void)
34661 {
34662 return bind ();
34663 ;
34664 return 0;
34665 }
34666 _ACEOF
34667 if ac_fn_c_try_link "$LINENO"
34668 then :
34669 ac_cv_lib_socket_bind=yes
34670 else case e in #(
34671 e) ac_cv_lib_socket_bind=no ;;
34672 esac
34673 fi
34674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34675 conftest$ac_exeext conftest.$ac_ext
34676 LIBS=$ac_check_lib_save_LIBS ;;
34677 esac
34678 fi
34679 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
34680 printf '%s\n' "$ac_cv_lib_socket_bind" >&6; }
34681 if test "x$ac_cv_lib_socket_bind" = xyes
34682 then :
34683 need_libsocket=yes
34684 fi
34685
34686
34687 fi
34688
34689 if test x$need_libsocket = xyes; then
34690 # keep -lsocket first in case there's also -lnsl which cannot be before -lsocket
34691 HWLOC_PS_LIBS="-lsocket $HWLOC_PS_LIBS"
34692 fi
34693
34694
34695 ac_fn_c_check_func "$LINENO" "isatty" "ac_cv_func_isatty"
34696 if test "x$ac_cv_func_isatty" = xyes
34697 then :
34698 printf '%s\n' "#define HAVE_ISATTY 1" >>confdefs.h
34699
34700 fi
34701
34702 ac_fn_c_check_func "$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp"
34703 if test "x$ac_cv_func_tcgetpgrp" = xyes
34704 then :
34705 printf '%s\n' "#define HAVE_TCGETPGRP 1" >>confdefs.h
34706
34707 fi
34708
34709
34710 for ac_header in time.h
34711 do :
34712 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
34713 if test "x$ac_cv_header_time_h" = xyes
34714 then :
34715 printf '%s\n' "#define HAVE_TIME_H 1" >>confdefs.h
34716
34717 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
34718 if test "x$ac_cv_func_clock_gettime" = xyes
34719 then :
34720 printf '%s\n' "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
34721
34722 fi
34723
34724
34725 fi
34726
34727 done
34728
34729 # Only generate this if we're building the utilities
34730 ac_config_files="$ac_config_files utils/Makefile utils/hwloc/Makefile utils/lstopo/Makefile hwloc.pc"
34731
34732
34733
34734 cat <<EOF
34735
34736 ###
34737 ### Configuring tests
34738 ###
34739 EOF
34740
34741 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
34742 printf %s "checking for pthread_self in -lpthread... " >&6; }
34743 if test ${ac_cv_lib_pthread_pthread_self+y}
34744 then :
34745 printf %s "(cached) " >&6
34746 else case e in #(
34747 e) ac_check_lib_save_LIBS=$LIBS
34748 LIBS="-lpthread $LIBS"
34749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34750 /* end confdefs.h. */
34751
34752 /* Override any GCC internal prototype to avoid an error.
34753 Use char because int might match the return type of a GCC
34754 builtin and then its argument prototype would still apply.
34755 The 'extern "C"' is for builds by C++ compilers;
34756 although this is not generally supported in C code supporting it here
34757 has little cost and some practical benefit (sr 110532). */
34758 #ifdef __cplusplus
34759 extern "C"
34760 #endif
34761 char pthread_self (void);
34762 int
34763 main (void)
34764 {
34765 return pthread_self ();
34766 ;
34767 return 0;
34768 }
34769 _ACEOF
34770 if ac_fn_c_try_link "$LINENO"
34771 then :
34772 ac_cv_lib_pthread_pthread_self=yes
34773 else case e in #(
34774 e) ac_cv_lib_pthread_pthread_self=no ;;
34775 esac
34776 fi
34777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34778 conftest$ac_exeext conftest.$ac_ext
34779 LIBS=$ac_check_lib_save_LIBS ;;
34780 esac
34781 fi
34782 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
34783 printf '%s\n' "$ac_cv_lib_pthread_pthread_self" >&6; }
34784 if test "x$ac_cv_lib_pthread_pthread_self" = xyes
34785 then :
34786 hwloc_have_pthread=yes
34787 fi
34788
34789
34790
34791
34792 HWLOC_pkg_failed=no
34793 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for NUMA" >&5
34794 printf %s "checking for NUMA... " >&6; }
34795
34796 if test -n "$PKG_CONFIG"; then
34797 if test -n "$HWLOC_NUMA_CFLAGS"; then
34798 HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS="$HWLOC_NUMA_CFLAGS"
34799 else
34800 if test -n "$PKG_CONFIG" && \
34801 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"numa\""; } >&5
34802 ($PKG_CONFIG --exists --silence-errors "numa") 2>&5
34803 ac_status=$?
34804 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34805 test $ac_status = 0; }; then
34806 HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS=`$PKG_CONFIG --cflags "numa" 2>/dev/null`
34807 else
34808 HWLOC_pkg_failed=yes
34809 fi
34810 fi
34811 else
34812 HWLOC_pkg_failed=untried
34813 fi
34814
34815 if test -n "$PKG_CONFIG"; then
34816 if test -n "$HWLOC_NUMA_LIBS"; then
34817 HWLOC_pkg_cv_HWLOC_NUMA_LIBS="$HWLOC_NUMA_LIBS"
34818 else
34819 if test -n "$PKG_CONFIG" && \
34820 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"numa\""; } >&5
34821 ($PKG_CONFIG --exists --silence-errors "numa") 2>&5
34822 ac_status=$?
34823 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34824 test $ac_status = 0; }; then
34825 HWLOC_pkg_cv_HWLOC_NUMA_LIBS=`$PKG_CONFIG --libs "numa" 2>/dev/null`
34826 else
34827 HWLOC_pkg_failed=yes
34828 fi
34829 fi
34830 else
34831 HWLOC_pkg_failed=untried
34832 fi
34833
34834
34835
34836
34837 # Check for failure of pkg-config
34838 if test $HWLOC_pkg_failed = yes; then
34839
34840 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34841 HWLOC_pkg_short_errors_supported=yes
34842 else
34843 HWLOC_pkg_short_errors_supported=no
34844 fi
34845 if test $HWLOC_pkg_short_errors_supported = yes; then
34846 HWLOC_NUMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "numa" 2>&1`
34847 else
34848 HWLOC_NUMA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "numa" 2>&1`
34849 fi
34850 # Put the nasty error message in config.log where it belongs
34851 echo "$HWLOC_NUMA_PKG_ERRORS" >&5
34852
34853 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
34854 printf '%s\n' "no" >&6; }
34855
34856 # libnuma didn't have a .pc before 2.0.12, look for it manually.
34857 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
34858 printf %s "checking for numa_available in -lnuma... " >&6; }
34859 if test ${ac_cv_lib_numa_numa_available+y}
34860 then :
34861 printf %s "(cached) " >&6
34862 else case e in #(
34863 e) ac_check_lib_save_LIBS=$LIBS
34864 LIBS="-lnuma $LIBS"
34865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34866 /* end confdefs.h. */
34867
34868 /* Override any GCC internal prototype to avoid an error.
34869 Use char because int might match the return type of a GCC
34870 builtin and then its argument prototype would still apply.
34871 The 'extern "C"' is for builds by C++ compilers;
34872 although this is not generally supported in C code supporting it here
34873 has little cost and some practical benefit (sr 110532). */
34874 #ifdef __cplusplus
34875 extern "C"
34876 #endif
34877 char numa_available (void);
34878 int
34879 main (void)
34880 {
34881 return numa_available ();
34882 ;
34883 return 0;
34884 }
34885 _ACEOF
34886 if ac_fn_c_try_link "$LINENO"
34887 then :
34888 ac_cv_lib_numa_numa_available=yes
34889 else case e in #(
34890 e) ac_cv_lib_numa_numa_available=no ;;
34891 esac
34892 fi
34893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34894 conftest$ac_exeext conftest.$ac_ext
34895 LIBS=$ac_check_lib_save_LIBS ;;
34896 esac
34897 fi
34898 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
34899 printf '%s\n' "$ac_cv_lib_numa_numa_available" >&6; }
34900 if test "x$ac_cv_lib_numa_numa_available" = xyes
34901 then :
34902
34903 # and make sure this old release has at least numa_bitmask_alloc() for our tests
34904 ac_fn_check_decl "$LINENO" "numa_bitmask_alloc" "ac_cv_have_decl_numa_bitmask_alloc" "#include <numa.h>
34905 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
34906 if test "x$ac_cv_have_decl_numa_bitmask_alloc" = xyes
34907 then :
34908 hwloc_have_linux_libnuma=yes
34909 HWLOC_NUMA_LIBS=-lnuma
34910
34911 fi
34912
34913 fi
34914
34915 elif test $HWLOC_pkg_failed = untried; then
34916 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5
34917 printf '%s\n' "cannot check without pkg-config" >&6; }
34918
34919 # libnuma didn't have a .pc before 2.0.12, look for it manually.
34920 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
34921 printf %s "checking for numa_available in -lnuma... " >&6; }
34922 if test ${ac_cv_lib_numa_numa_available+y}
34923 then :
34924 printf %s "(cached) " >&6
34925 else case e in #(
34926 e) ac_check_lib_save_LIBS=$LIBS
34927 LIBS="-lnuma $LIBS"
34928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34929 /* end confdefs.h. */
34930
34931 /* Override any GCC internal prototype to avoid an error.
34932 Use char because int might match the return type of a GCC
34933 builtin and then its argument prototype would still apply.
34934 The 'extern "C"' is for builds by C++ compilers;
34935 although this is not generally supported in C code supporting it here
34936 has little cost and some practical benefit (sr 110532). */
34937 #ifdef __cplusplus
34938 extern "C"
34939 #endif
34940 char numa_available (void);
34941 int
34942 main (void)
34943 {
34944 return numa_available ();
34945 ;
34946 return 0;
34947 }
34948 _ACEOF
34949 if ac_fn_c_try_link "$LINENO"
34950 then :
34951 ac_cv_lib_numa_numa_available=yes
34952 else case e in #(
34953 e) ac_cv_lib_numa_numa_available=no ;;
34954 esac
34955 fi
34956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34957 conftest$ac_exeext conftest.$ac_ext
34958 LIBS=$ac_check_lib_save_LIBS ;;
34959 esac
34960 fi
34961 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
34962 printf '%s\n' "$ac_cv_lib_numa_numa_available" >&6; }
34963 if test "x$ac_cv_lib_numa_numa_available" = xyes
34964 then :
34965
34966 # and make sure this old release has at least numa_bitmask_alloc() for our tests
34967 ac_fn_check_decl "$LINENO" "numa_bitmask_alloc" "ac_cv_have_decl_numa_bitmask_alloc" "#include <numa.h>
34968 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
34969 if test "x$ac_cv_have_decl_numa_bitmask_alloc" = xyes
34970 then :
34971 hwloc_have_linux_libnuma=yes
34972 HWLOC_NUMA_LIBS=-lnuma
34973
34974 fi
34975
34976 fi
34977
34978 else
34979 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34980 printf '%s\n' "yes" >&6; }
34981
34982 # If we got good results from pkg-config, check that they
34983 # actually work (i.e., that we can link against the resulting
34984 # $LIBS). The canonical example why we do this is if
34985 # pkg-config returns 64 bit libraries but ./configure was run
34986 # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid
34987 # results, but we'll fail if we try to link. So detect that
34988 # failure now.
34989 # There are also cases on Mac where pkg-config returns paths
34990 # that do not actually exists until some magic is applied.
34991 # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
34992 # So check whether we find the header as well.
34993 hwloc_cflags_save=$CFLAGS
34994 hwloc_cppflags_save=$CPPFLAGS
34995 hwloc_libs_save=$LIBS
34996 CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS"
34997 CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS"
34998 LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_NUMA_LIBS"
34999 ac_fn_c_check_header_compile "$LINENO" "numa.h" "ac_cv_header_numa_h" "$ac_includes_default"
35000 if test "x$ac_cv_header_numa_h" = xyes
35001 then :
35002
35003 ac_fn_c_check_func "$LINENO" "numa_available" "ac_cv_func_numa_available"
35004 if test "x$ac_cv_func_numa_available" = xyes
35005 then :
35006 hwloc_result=yes
35007 else case e in #(
35008 e) hwloc_result=no ;;
35009 esac
35010 fi
35011
35012
35013 else case e in #(
35014 e) hwloc_result=no ;;
35015 esac
35016 fi
35017
35018 CFLAGS=$hwloc_cflags_save
35019 CPPFLAGS=$hwloc_cppflags_save
35020 LIBS=$hwloc_libs_save
35021
35022 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for final NUMA support" >&5
35023 printf %s "checking for final NUMA support... " >&6; }
35024 if test "$hwloc_result" = "yes"
35025 then :
35026 HWLOC_NUMA_CFLAGS=$HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS
35027 HWLOC_NUMA_LIBS=$HWLOC_pkg_cv_HWLOC_NUMA_LIBS
35028 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35029 printf '%s\n' "yes" >&6; }
35030 hwloc_have_linux_libnuma=yes
35031 else case e in #(
35032 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
35033 printf '%s\n' "no" >&6; }
35034
35035 # libnuma didn't have a .pc before 2.0.12, look for it manually.
35036 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
35037 printf %s "checking for numa_available in -lnuma... " >&6; }
35038 if test ${ac_cv_lib_numa_numa_available+y}
35039 then :
35040 printf %s "(cached) " >&6
35041 else case e in #(
35042 e) ac_check_lib_save_LIBS=$LIBS
35043 LIBS="-lnuma $LIBS"
35044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35045 /* end confdefs.h. */
35046
35047 /* Override any GCC internal prototype to avoid an error.
35048 Use char because int might match the return type of a GCC
35049 builtin and then its argument prototype would still apply.
35050 The 'extern "C"' is for builds by C++ compilers;
35051 although this is not generally supported in C code supporting it here
35052 has little cost and some practical benefit (sr 110532). */
35053 #ifdef __cplusplus
35054 extern "C"
35055 #endif
35056 char numa_available (void);
35057 int
35058 main (void)
35059 {
35060 return numa_available ();
35061 ;
35062 return 0;
35063 }
35064 _ACEOF
35065 if ac_fn_c_try_link "$LINENO"
35066 then :
35067 ac_cv_lib_numa_numa_available=yes
35068 else case e in #(
35069 e) ac_cv_lib_numa_numa_available=no ;;
35070 esac
35071 fi
35072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35073 conftest$ac_exeext conftest.$ac_ext
35074 LIBS=$ac_check_lib_save_LIBS ;;
35075 esac
35076 fi
35077 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
35078 printf '%s\n' "$ac_cv_lib_numa_numa_available" >&6; }
35079 if test "x$ac_cv_lib_numa_numa_available" = xyes
35080 then :
35081
35082 # and make sure this old release has at least numa_bitmask_alloc() for our tests
35083 ac_fn_check_decl "$LINENO" "numa_bitmask_alloc" "ac_cv_have_decl_numa_bitmask_alloc" "#include <numa.h>
35084 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
35085 if test "x$ac_cv_have_decl_numa_bitmask_alloc" = xyes
35086 then :
35087 hwloc_have_linux_libnuma=yes
35088 HWLOC_NUMA_LIBS=-lnuma
35089
35090 fi
35091
35092 fi
35093 ;;
35094 esac
35095 fi
35096 fi
35097
35098 for ac_header in stdlib.h
35099 do :
35100 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
35101 if test "x$ac_cv_header_stdlib_h" = xyes
35102 then :
35103 printf '%s\n' "#define HAVE_STDLIB_H 1" >>confdefs.h
35104
35105 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
35106 if test "x$ac_cv_func_mkstemp" = xyes
35107 then :
35108 printf '%s\n' "#define HAVE_MKSTEMP 1" >>confdefs.h
35109
35110 fi
35111
35112
35113 fi
35114
35115 done
35116
35117 for ac_header in infiniband/verbs.h
35118 do :
35119 ac_fn_c_check_header_compile "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
35120 if test "x$ac_cv_header_infiniband_verbs_h" = xyes
35121 then :
35122 printf '%s\n' "#define HAVE_INFINIBAND_VERBS_H 1" >>confdefs.h
35123
35124 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
35125 printf %s "checking for ibv_open_device in -libverbs... " >&6; }
35126 if test ${ac_cv_lib_ibverbs_ibv_open_device+y}
35127 then :
35128 printf %s "(cached) " >&6
35129 else case e in #(
35130 e) ac_check_lib_save_LIBS=$LIBS
35131 LIBS="-libverbs $LIBS"
35132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35133 /* end confdefs.h. */
35134
35135 /* Override any GCC internal prototype to avoid an error.
35136 Use char because int might match the return type of a GCC
35137 builtin and then its argument prototype would still apply.
35138 The 'extern "C"' is for builds by C++ compilers;
35139 although this is not generally supported in C code supporting it here
35140 has little cost and some practical benefit (sr 110532). */
35141 #ifdef __cplusplus
35142 extern "C"
35143 #endif
35144 char ibv_open_device (void);
35145 int
35146 main (void)
35147 {
35148 return ibv_open_device ();
35149 ;
35150 return 0;
35151 }
35152 _ACEOF
35153 if ac_fn_c_try_link "$LINENO"
35154 then :
35155 ac_cv_lib_ibverbs_ibv_open_device=yes
35156 else case e in #(
35157 e) ac_cv_lib_ibverbs_ibv_open_device=no ;;
35158 esac
35159 fi
35160 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35161 conftest$ac_exeext conftest.$ac_ext
35162 LIBS=$ac_check_lib_save_LIBS ;;
35163 esac
35164 fi
35165 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
35166 printf '%s\n' "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
35167 if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes
35168 then :
35169
35170 printf '%s\n' "#define HAVE_LIBIBVERBS 1" >>confdefs.h
35171
35172 hwloc_have_libibverbs=yes
35173 HWLOC_IBVERBS_LIBS=-libverbs
35174
35175
35176 fi
35177
35178
35179 fi
35180
35181 done
35182
35183 # Extract the first word of "bash", so it can be a program name with args.
35184 set dummy bash; ac_word=$2
35185 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35186 printf %s "checking for $ac_word... " >&6; }
35187 if test ${ac_cv_path_BASH+y}
35188 then :
35189 printf %s "(cached) " >&6
35190 else case e in #(
35191 e) case $BASH in
35192 [\\/]* | ?:[\\/]*)
35193 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
35194 ;;
35195 *)
35196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35197 for as_dir in $PATH
35198 do
35199 IFS=$as_save_IFS
35200 case $as_dir in #(((
35201 '') as_dir=./ ;;
35202 */) ;;
35203 *) as_dir=$as_dir/ ;;
35204 esac
35205 for ac_exec_ext in '' $ac_executable_extensions; do
35206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
35207 ac_cv_path_BASH="$as_dir$ac_word$ac_exec_ext"
35208 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
35209 break 2
35210 fi
35211 done
35212 done
35213 IFS=$as_save_IFS
35214
35215 ;;
35216 esac ;;
35217 esac
35218 fi
35219 BASH=$ac_cv_path_BASH
35220 if test -n "$BASH"; then
35221 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
35222 printf '%s\n' "$BASH" >&6; }
35223 else
35224 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
35225 printf '%s\n' "no" >&6; }
35226 fi
35227
35228
35229
35230 for ac_prog in xmllint
35231 do
35232 # Extract the first word of "$ac_prog", so it can be a program name with args.
35233 set dummy $ac_prog; ac_word=$2
35234 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35235 printf %s "checking for $ac_word... " >&6; }
35236 if test ${ac_cv_prog_XMLLINT+y}
35237 then :
35238 printf %s "(cached) " >&6
35239 else case e in #(
35240 e) if test -n "$XMLLINT"; then
35241 ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test.
35242 else
35243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35244 for as_dir in $PATH
35245 do
35246 IFS=$as_save_IFS
35247 case $as_dir in #(((
35248 '') as_dir=./ ;;
35249 */) ;;
35250 *) as_dir=$as_dir/ ;;
35251 esac
35252 for ac_exec_ext in '' $ac_executable_extensions; do
35253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
35254 ac_cv_prog_XMLLINT="$ac_prog"
35255 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
35256 break 2
35257 fi
35258 done
35259 done
35260 IFS=$as_save_IFS
35261
35262 fi ;;
35263 esac
35264 fi
35265 XMLLINT=$ac_cv_prog_XMLLINT
35266 if test -n "$XMLLINT"; then
35267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
35268 printf '%s\n' "$XMLLINT" >&6; }
35269 else
35270 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
35271 printf '%s\n' "no" >&6; }
35272 fi
35273
35274
35275 test -n "$XMLLINT" && break
35276 done
35277
35278
35279 for ac_prog in bunzip2
35280 do
35281 # Extract the first word of "$ac_prog", so it can be a program name with args.
35282 set dummy $ac_prog; ac_word=$2
35283 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35284 printf %s "checking for $ac_word... " >&6; }
35285 if test ${ac_cv_prog_BUNZIPP+y}
35286 then :
35287 printf %s "(cached) " >&6
35288 else case e in #(
35289 e) if test -n "$BUNZIPP"; then
35290 ac_cv_prog_BUNZIPP="$BUNZIPP" # Let the user override the test.
35291 else
35292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35293 for as_dir in $PATH
35294 do
35295 IFS=$as_save_IFS
35296 case $as_dir in #(((
35297 '') as_dir=./ ;;
35298 */) ;;
35299 *) as_dir=$as_dir/ ;;
35300 esac
35301 for ac_exec_ext in '' $ac_executable_extensions; do
35302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
35303 ac_cv_prog_BUNZIPP="$ac_prog"
35304 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
35305 break 2
35306 fi
35307 done
35308 done
35309 IFS=$as_save_IFS
35310
35311 fi ;;
35312 esac
35313 fi
35314 BUNZIPP=$ac_cv_prog_BUNZIPP
35315 if test -n "$BUNZIPP"; then
35316 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $BUNZIPP" >&5
35317 printf '%s\n' "$BUNZIPP" >&6; }
35318 else
35319 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
35320 printf '%s\n' "no" >&6; }
35321 fi
35322
35323
35324 test -n "$BUNZIPP" && break
35325 done
35326 test -n "$BUNZIPP" || BUNZIPP="false"
35327
35328
35329 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if CXX works" >&5
35330 printf %s "checking if CXX works... " >&6; }
35331 ac_ext=cpp
35332 ac_cpp='$CXXCPP $CPPFLAGS'
35333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35336
35337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35338 /* end confdefs.h. */
35339
35340 #include <iostream>
35341 using namespace std;
35342 int foo(void) {
35343 cout << "test" << endl;
35344 return 0;
35345 }
35346
35347 int
35348 main (void)
35349 {
35350
35351 ;
35352 return 0;
35353 }
35354 _ACEOF
35355 if ac_fn_cxx_try_compile "$LINENO"
35356 then :
35357 hwloc_have_cxx=yes
35358 else case e in #(
35359 e) hwloc_have_cxx=no ;;
35360 esac
35361 fi
35362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35363 ac_ext=c
35364 ac_cpp='$CPP $CPPFLAGS'
35365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35368
35369 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hwloc_have_cxx" >&5
35370 printf '%s\n' "$hwloc_have_cxx" >&6; }
35371
35372
35373
35374 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether diff accepts -u" >&5
35375 printf %s "checking whether diff accepts -u... " >&6; }
35376 if $DIFF -u /dev/null /dev/null 2> /dev/null
35377 then
35378 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35379 printf '%s\n' "yes" >&6; }
35380 HWLOC_DIFF_U="-u"
35381 else
35382 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
35383 printf '%s\n' "no" >&6; }
35384 HWLOC_DIFF_U=""
35385 fi
35386
35387
35388
35389 # Only generate these files if we're making the tests
35390 ac_config_files="$ac_config_files tests/Makefile tests/hwloc/Makefile tests/hwloc/linux/Makefile tests/hwloc/linux/allowed/Makefile tests/hwloc/linux/gather/Makefile tests/hwloc/x86/Makefile tests/hwloc/x86+linux/Makefile tests/hwloc/xml/Makefile tests/hwloc/ports/Makefile tests/hwloc/rename/Makefile tests/hwloc/linux/allowed/test-topology.sh tests/hwloc/linux/gather/test-gather-topology.sh tests/hwloc/linux/test-topology.sh tests/hwloc/x86/test-topology.sh tests/hwloc/x86+linux/test-topology.sh tests/hwloc/xml/test-topology.sh tests/hwloc/wrapper.sh utils/hwloc/hwloc-compress-dir utils/hwloc/hwloc-gather-topology utils/hwloc/test-hwloc-annotate.sh utils/hwloc/test-hwloc-calc.sh utils/hwloc/test-hwloc-compress-dir.sh utils/hwloc/test-hwloc-diffpatch.sh utils/hwloc/test-hwloc-distrib.sh utils/hwloc/test-hwloc-info.sh utils/hwloc/test-build-custom-topology.sh utils/hwloc/test-fake-plugin.sh utils/hwloc/test-parsing-flags.sh utils/hwloc/test-hwloc-dump-hwdata/Makefile utils/hwloc/test-hwloc-dump-hwdata/test-hwloc-dump-hwdata.sh utils/lstopo/test-lstopo.sh utils/lstopo/test-lstopo-shmem.sh contrib/hwloc-ps.www/Makefile contrib/systemd/Makefile contrib/completion/Makefile contrib/completion/test-bash-completion.sh contrib/misc/Makefile contrib/windows/Makefile"
35391
35392
35393 ac_config_commands="$ac_config_commands chmoding-scripts"
35394
35395
35396 # These links are only needed in standalone mode. It would
35397 # be nice to m4 foreach this somehow, but whenever I tried
35398 # it, I got obscure "invalid tag" errors from
35399 # AC_CONFIG_LINKS. :-\ Since these tests are only run when
35400 # built in standalone mode, only generate them in
35401 # standalone mode.
35402 ac_config_links="$ac_config_links tests/hwloc/ports/topology-solaris.c:hwloc/topology-solaris.c tests/hwloc/ports/topology-solaris-chiptype.c:hwloc/topology-solaris-chiptype.c tests/hwloc/ports/topology-aix.c:hwloc/topology-aix.c tests/hwloc/ports/topology-windows.c:hwloc/topology-windows.c tests/hwloc/ports/topology-darwin.c:hwloc/topology-darwin.c tests/hwloc/ports/topology-freebsd.c:hwloc/topology-freebsd.c tests/hwloc/ports/topology-netbsd.c:hwloc/topology-netbsd.c tests/hwloc/ports/topology-hpux.c:hwloc/topology-hpux.c tests/hwloc/ports/topology-bgq.c:hwloc/topology-bgq.c tests/hwloc/ports/topology-opencl.c:hwloc/topology-opencl.c tests/hwloc/ports/topology-cuda.c:hwloc/topology-cuda.c tests/hwloc/ports/topology-nvml.c:hwloc/topology-nvml.c tests/hwloc/ports/topology-rsmi.c:hwloc/topology-rsmi.c tests/hwloc/ports/topology-levelzero.c:hwloc/topology-levelzero.c tests/hwloc/ports/topology-gl.c:hwloc/topology-gl.c tests/hwloc/ports/lstopo-windows.c:utils/lstopo/lstopo-windows.c tests/hwloc/ports/lstopo-android.c:utils/lstopo/lstopo-android.c"
35403
35404
35405 fi
35406
35407 cat <<EOF
35408
35409 ###
35410 ### Performing final hwloc configuration
35411 ###
35412 EOF
35413
35414 # Run the AM_CONDITIONALs
35415
35416 if test "$hwloc_did_am_conditionals" != "yes"
35417 then :
35418
35419 if test "$hwloc_mode" = "standalone"; then
35420 HWLOC_BUILD_STANDALONE_TRUE=
35421 HWLOC_BUILD_STANDALONE_FALSE='#'
35422 else
35423 HWLOC_BUILD_STANDALONE_TRUE='#'
35424 HWLOC_BUILD_STANDALONE_FALSE=
35425 fi
35426
35427
35428 if test "x$GCC" = "xyes"; then
35429 HWLOC_HAVE_GCC_TRUE=
35430 HWLOC_HAVE_GCC_FALSE='#'
35431 else
35432 HWLOC_HAVE_GCC_TRUE='#'
35433 HWLOC_HAVE_GCC_FALSE=
35434 fi
35435
35436 if test "$hwloc_c_vendor" = "microsoft"; then
35437 HWLOC_HAVE_MSVC_TRUE=
35438 HWLOC_HAVE_MSVC_FALSE='#'
35439 else
35440 HWLOC_HAVE_MSVC_TRUE='#'
35441 HWLOC_HAVE_MSVC_FALSE=
35442 fi
35443
35444 if test "x$HWLOC_MS_LIB" != "x"; then
35445 HWLOC_HAVE_MS_LIB_TRUE=
35446 HWLOC_HAVE_MS_LIB_FALSE='#'
35447 else
35448 HWLOC_HAVE_MS_LIB_TRUE='#'
35449 HWLOC_HAVE_MS_LIB_FALSE=
35450 fi
35451
35452 if test "x$hwloc_have_openat" = "xyes"; then
35453 HWLOC_HAVE_OPENAT_TRUE=
35454 HWLOC_HAVE_OPENAT_FALSE='#'
35455 else
35456 HWLOC_HAVE_OPENAT_TRUE='#'
35457 HWLOC_HAVE_OPENAT_FALSE=
35458 fi
35459
35460 if test "x$hwloc_have_sched_setaffinity" = "xyes"; then
35461 HWLOC_HAVE_SCHED_SETAFFINITY_TRUE=
35462 HWLOC_HAVE_SCHED_SETAFFINITY_FALSE='#'
35463 else
35464 HWLOC_HAVE_SCHED_SETAFFINITY_TRUE='#'
35465 HWLOC_HAVE_SCHED_SETAFFINITY_FALSE=
35466 fi
35467
35468 if test "x$hwloc_have_pthread" = "xyes"; then
35469 HWLOC_HAVE_PTHREAD_TRUE=
35470 HWLOC_HAVE_PTHREAD_FALSE='#'
35471 else
35472 HWLOC_HAVE_PTHREAD_TRUE='#'
35473 HWLOC_HAVE_PTHREAD_FALSE=
35474 fi
35475
35476 if test "x$hwloc_have_linux_libnuma" = "xyes"; then
35477 HWLOC_HAVE_LINUX_LIBNUMA_TRUE=
35478 HWLOC_HAVE_LINUX_LIBNUMA_FALSE='#'
35479 else
35480 HWLOC_HAVE_LINUX_LIBNUMA_TRUE='#'
35481 HWLOC_HAVE_LINUX_LIBNUMA_FALSE=
35482 fi
35483
35484 if test "x$hwloc_have_libibverbs" = "xyes"; then
35485 HWLOC_HAVE_LIBIBVERBS_TRUE=
35486 HWLOC_HAVE_LIBIBVERBS_FALSE='#'
35487 else
35488 HWLOC_HAVE_LIBIBVERBS_TRUE='#'
35489 HWLOC_HAVE_LIBIBVERBS_FALSE=
35490 fi
35491
35492 if test "x$hwloc_have_cuda" = "xyes"; then
35493 HWLOC_HAVE_CUDA_TRUE=
35494 HWLOC_HAVE_CUDA_FALSE='#'
35495 else
35496 HWLOC_HAVE_CUDA_TRUE='#'
35497 HWLOC_HAVE_CUDA_FALSE=
35498 fi
35499
35500 if test "x$hwloc_have_gl" = "xyes"; then
35501 HWLOC_HAVE_GL_TRUE=
35502 HWLOC_HAVE_GL_FALSE='#'
35503 else
35504 HWLOC_HAVE_GL_TRUE='#'
35505 HWLOC_HAVE_GL_FALSE=
35506 fi
35507
35508 if test "x$hwloc_have_cudart" = "xyes"; then
35509 HWLOC_HAVE_CUDART_TRUE=
35510 HWLOC_HAVE_CUDART_FALSE='#'
35511 else
35512 HWLOC_HAVE_CUDART_TRUE='#'
35513 HWLOC_HAVE_CUDART_FALSE=
35514 fi
35515
35516 if test "$hwloc_libxml2_happy" = "yes"; then
35517 HWLOC_HAVE_LIBXML2_TRUE=
35518 HWLOC_HAVE_LIBXML2_FALSE='#'
35519 else
35520 HWLOC_HAVE_LIBXML2_TRUE='#'
35521 HWLOC_HAVE_LIBXML2_FALSE=
35522 fi
35523
35524 if test "$hwloc_cairo_happy" = "yes"; then
35525 HWLOC_HAVE_CAIRO_TRUE=
35526 HWLOC_HAVE_CAIRO_FALSE='#'
35527 else
35528 HWLOC_HAVE_CAIRO_TRUE='#'
35529 HWLOC_HAVE_CAIRO_FALSE=
35530 fi
35531
35532 if test "$hwloc_pciaccess_happy" = "yes"; then
35533 HWLOC_HAVE_PCIACCESS_TRUE=
35534 HWLOC_HAVE_PCIACCESS_FALSE='#'
35535 else
35536 HWLOC_HAVE_PCIACCESS_TRUE='#'
35537 HWLOC_HAVE_PCIACCESS_FALSE=
35538 fi
35539
35540 if test "$hwloc_opencl_happy" = "yes"; then
35541 HWLOC_HAVE_OPENCL_TRUE=
35542 HWLOC_HAVE_OPENCL_FALSE='#'
35543 else
35544 HWLOC_HAVE_OPENCL_TRUE='#'
35545 HWLOC_HAVE_OPENCL_FALSE=
35546 fi
35547
35548 if test "$hwloc_nvml_happy" = "yes"; then
35549 HWLOC_HAVE_NVML_TRUE=
35550 HWLOC_HAVE_NVML_FALSE='#'
35551 else
35552 HWLOC_HAVE_NVML_TRUE='#'
35553 HWLOC_HAVE_NVML_FALSE=
35554 fi
35555
35556 if test "$hwloc_rsmi_happy" = "yes"; then
35557 HWLOC_HAVE_RSMI_TRUE=
35558 HWLOC_HAVE_RSMI_FALSE='#'
35559 else
35560 HWLOC_HAVE_RSMI_TRUE='#'
35561 HWLOC_HAVE_RSMI_FALSE=
35562 fi
35563
35564 if test "$hwloc_levelzero_happy" = "yes"; then
35565 HWLOC_HAVE_LEVELZERO_TRUE=
35566 HWLOC_HAVE_LEVELZERO_FALSE='#'
35567 else
35568 HWLOC_HAVE_LEVELZERO_TRUE='#'
35569 HWLOC_HAVE_LEVELZERO_FALSE=
35570 fi
35571
35572 if test "x$BUNZIPP" != "xfalse"; then
35573 HWLOC_HAVE_BUNZIPP_TRUE=
35574 HWLOC_HAVE_BUNZIPP_FALSE='#'
35575 else
35576 HWLOC_HAVE_BUNZIPP_TRUE='#'
35577 HWLOC_HAVE_BUNZIPP_FALSE=
35578 fi
35579
35580 if test "x$hwloc_have_user32" = "xyes"; then
35581 HWLOC_HAVE_USER32_TRUE=
35582 HWLOC_HAVE_USER32_FALSE='#'
35583 else
35584 HWLOC_HAVE_USER32_TRUE='#'
35585 HWLOC_HAVE_USER32_FALSE=
35586 fi
35587
35588
35589 if test "x$hwloc_generate_doxs" = "xyes"; then
35590 HWLOC_BUILD_DOXYGEN_TRUE=
35591 HWLOC_BUILD_DOXYGEN_FALSE='#'
35592 else
35593 HWLOC_BUILD_DOXYGEN_TRUE='#'
35594 HWLOC_BUILD_DOXYGEN_FALSE=
35595 fi
35596
35597 if test "x$hwloc_generate_readme" = "xyes" -a \( "x$hwloc_install_doxs" = "xyes" -o "x$hwloc_generate_doxs" = "xyes" \) ; then
35598 HWLOC_BUILD_README_TRUE=
35599 HWLOC_BUILD_README_FALSE='#'
35600 else
35601 HWLOC_BUILD_README_TRUE='#'
35602 HWLOC_BUILD_README_FALSE=
35603 fi
35604
35605 if test "x$hwloc_install_doxs" = "xyes"; then
35606 HWLOC_INSTALL_DOXYGEN_TRUE=
35607 HWLOC_INSTALL_DOXYGEN_FALSE='#'
35608 else
35609 HWLOC_INSTALL_DOXYGEN_TRUE='#'
35610 HWLOC_INSTALL_DOXYGEN_FALSE=
35611 fi
35612
35613
35614 if test "x$hwloc_linux" = "xyes"; then
35615 HWLOC_HAVE_LINUX_TRUE=
35616 HWLOC_HAVE_LINUX_FALSE='#'
35617 else
35618 HWLOC_HAVE_LINUX_TRUE='#'
35619 HWLOC_HAVE_LINUX_FALSE=
35620 fi
35621
35622 if test "x$hwloc_bgq" = "xyes"; then
35623 HWLOC_HAVE_BGQ_TRUE=
35624 HWLOC_HAVE_BGQ_FALSE='#'
35625 else
35626 HWLOC_HAVE_BGQ_TRUE='#'
35627 HWLOC_HAVE_BGQ_FALSE=
35628 fi
35629
35630 if test "x$hwloc_irix" = "xyes"; then
35631 HWLOC_HAVE_IRIX_TRUE=
35632 HWLOC_HAVE_IRIX_FALSE='#'
35633 else
35634 HWLOC_HAVE_IRIX_TRUE='#'
35635 HWLOC_HAVE_IRIX_FALSE=
35636 fi
35637
35638 if test "x$hwloc_darwin" = "xyes"; then
35639 HWLOC_HAVE_DARWIN_TRUE=
35640 HWLOC_HAVE_DARWIN_FALSE='#'
35641 else
35642 HWLOC_HAVE_DARWIN_TRUE='#'
35643 HWLOC_HAVE_DARWIN_FALSE=
35644 fi
35645
35646 if test "x$hwloc_freebsd" = "xyes"; then
35647 HWLOC_HAVE_FREEBSD_TRUE=
35648 HWLOC_HAVE_FREEBSD_FALSE='#'
35649 else
35650 HWLOC_HAVE_FREEBSD_TRUE='#'
35651 HWLOC_HAVE_FREEBSD_FALSE=
35652 fi
35653
35654 if test "x$hwloc_netbsd" = "xyes"; then
35655 HWLOC_HAVE_NETBSD_TRUE=
35656 HWLOC_HAVE_NETBSD_FALSE='#'
35657 else
35658 HWLOC_HAVE_NETBSD_TRUE='#'
35659 HWLOC_HAVE_NETBSD_FALSE=
35660 fi
35661
35662 if test "x$hwloc_solaris" = "xyes"; then
35663 HWLOC_HAVE_SOLARIS_TRUE=
35664 HWLOC_HAVE_SOLARIS_FALSE='#'
35665 else
35666 HWLOC_HAVE_SOLARIS_TRUE='#'
35667 HWLOC_HAVE_SOLARIS_FALSE=
35668 fi
35669
35670 if test "x$hwloc_aix" = "xyes"; then
35671 HWLOC_HAVE_AIX_TRUE=
35672 HWLOC_HAVE_AIX_FALSE='#'
35673 else
35674 HWLOC_HAVE_AIX_TRUE='#'
35675 HWLOC_HAVE_AIX_FALSE=
35676 fi
35677
35678 if test "x$hwloc_hpux" = "xyes"; then
35679 HWLOC_HAVE_HPUX_TRUE=
35680 HWLOC_HAVE_HPUX_FALSE='#'
35681 else
35682 HWLOC_HAVE_HPUX_TRUE='#'
35683 HWLOC_HAVE_HPUX_FALSE=
35684 fi
35685
35686 if test "x$hwloc_windows" = "xyes"; then
35687 HWLOC_HAVE_WINDOWS_TRUE=
35688 HWLOC_HAVE_WINDOWS_FALSE='#'
35689 else
35690 HWLOC_HAVE_WINDOWS_TRUE='#'
35691 HWLOC_HAVE_WINDOWS_FALSE=
35692 fi
35693
35694 if test "x$target_os" = "xmingw32"; then
35695 HWLOC_HAVE_MINGW32_TRUE=
35696 HWLOC_HAVE_MINGW32_FALSE='#'
35697 else
35698 HWLOC_HAVE_MINGW32_TRUE='#'
35699 HWLOC_HAVE_MINGW32_FALSE=
35700 fi
35701
35702
35703 if test "x$hwloc_x86_32" = "xyes" -o "x$hwloc_x86_64" = "xyes"; then
35704 HWLOC_HAVE_X86_TRUE=
35705 HWLOC_HAVE_X86_FALSE='#'
35706 else
35707 HWLOC_HAVE_X86_TRUE='#'
35708 HWLOC_HAVE_X86_FALSE=
35709 fi
35710
35711 if test "x$hwloc_x86_32" = "xyes"; then
35712 HWLOC_HAVE_X86_32_TRUE=
35713 HWLOC_HAVE_X86_32_FALSE='#'
35714 else
35715 HWLOC_HAVE_X86_32_TRUE='#'
35716 HWLOC_HAVE_X86_32_FALSE=
35717 fi
35718
35719 if test "x$hwloc_x86_64" = "xyes"; then
35720 HWLOC_HAVE_X86_64_TRUE=
35721 HWLOC_HAVE_X86_64_FALSE='#'
35722 else
35723 HWLOC_HAVE_X86_64_TRUE='#'
35724 HWLOC_HAVE_X86_64_FALSE=
35725 fi
35726
35727 if test "x$hwloc_have_x86_cpuid" = "xyes"; then
35728 HWLOC_HAVE_X86_CPUID_TRUE=
35729 HWLOC_HAVE_X86_CPUID_FALSE='#'
35730 else
35731 HWLOC_HAVE_X86_CPUID_TRUE='#'
35732 HWLOC_HAVE_X86_CPUID_FALSE=
35733 fi
35734
35735
35736 if test "x$enable_32bits_pci_domain" = "xyes"; then
35737 HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE=
35738 HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE='#'
35739 else
35740 HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE='#'
35741 HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE=
35742 fi
35743
35744
35745 if test "x$hwloc_have_plugins" = "xyes"; then
35746 HWLOC_HAVE_PLUGINS_TRUE=
35747 HWLOC_HAVE_PLUGINS_FALSE='#'
35748 else
35749 HWLOC_HAVE_PLUGINS_TRUE='#'
35750 HWLOC_HAVE_PLUGINS_FALSE=
35751 fi
35752
35753 if test "x$hwloc_pci_component" = "xstatic"; then
35754 HWLOC_PCI_BUILD_STATIC_TRUE=
35755 HWLOC_PCI_BUILD_STATIC_FALSE='#'
35756 else
35757 HWLOC_PCI_BUILD_STATIC_TRUE='#'
35758 HWLOC_PCI_BUILD_STATIC_FALSE=
35759 fi
35760
35761 if test "x$hwloc_opencl_component" = "xstatic"; then
35762 HWLOC_OPENCL_BUILD_STATIC_TRUE=
35763 HWLOC_OPENCL_BUILD_STATIC_FALSE='#'
35764 else
35765 HWLOC_OPENCL_BUILD_STATIC_TRUE='#'
35766 HWLOC_OPENCL_BUILD_STATIC_FALSE=
35767 fi
35768
35769 if test "x$hwloc_cuda_component" = "xstatic"; then
35770 HWLOC_CUDA_BUILD_STATIC_TRUE=
35771 HWLOC_CUDA_BUILD_STATIC_FALSE='#'
35772 else
35773 HWLOC_CUDA_BUILD_STATIC_TRUE='#'
35774 HWLOC_CUDA_BUILD_STATIC_FALSE=
35775 fi
35776
35777 if test "x$hwloc_nvml_component" = "xstatic"; then
35778 HWLOC_NVML_BUILD_STATIC_TRUE=
35779 HWLOC_NVML_BUILD_STATIC_FALSE='#'
35780 else
35781 HWLOC_NVML_BUILD_STATIC_TRUE='#'
35782 HWLOC_NVML_BUILD_STATIC_FALSE=
35783 fi
35784
35785 if test "x$hwloc_rsmi_component" = "xstatic"; then
35786 HWLOC_RSMI_BUILD_STATIC_TRUE=
35787 HWLOC_RSMI_BUILD_STATIC_FALSE='#'
35788 else
35789 HWLOC_RSMI_BUILD_STATIC_TRUE='#'
35790 HWLOC_RSMI_BUILD_STATIC_FALSE=
35791 fi
35792
35793 if test "x$hwloc_levelzero_component" = "xstatic"; then
35794 HWLOC_LEVELZERO_BUILD_STATIC_TRUE=
35795 HWLOC_LEVELZERO_BUILD_STATIC_FALSE='#'
35796 else
35797 HWLOC_LEVELZERO_BUILD_STATIC_TRUE='#'
35798 HWLOC_LEVELZERO_BUILD_STATIC_FALSE=
35799 fi
35800
35801 if test "x$hwloc_gl_component" = "xstatic"; then
35802 HWLOC_GL_BUILD_STATIC_TRUE=
35803 HWLOC_GL_BUILD_STATIC_FALSE='#'
35804 else
35805 HWLOC_GL_BUILD_STATIC_TRUE='#'
35806 HWLOC_GL_BUILD_STATIC_FALSE=
35807 fi
35808
35809 if test "x$hwloc_xml_libxml_component" = "xstatic"; then
35810 HWLOC_XML_LIBXML_BUILD_STATIC_TRUE=
35811 HWLOC_XML_LIBXML_BUILD_STATIC_FALSE='#'
35812 else
35813 HWLOC_XML_LIBXML_BUILD_STATIC_TRUE='#'
35814 HWLOC_XML_LIBXML_BUILD_STATIC_FALSE=
35815 fi
35816
35817
35818 if test "x$BASH" != "x"; then
35819 HWLOC_HAVE_BASH_TRUE=
35820 HWLOC_HAVE_BASH_FALSE='#'
35821 else
35822 HWLOC_HAVE_BASH_TRUE='#'
35823 HWLOC_HAVE_BASH_FALSE=
35824 fi
35825
35826 if test "x$hwloc_have_cxx" = "xyes"; then
35827 HWLOC_HAVE_CXX_TRUE=
35828 HWLOC_HAVE_CXX_FALSE='#'
35829 else
35830 HWLOC_HAVE_CXX_TRUE='#'
35831 HWLOC_HAVE_CXX_FALSE=
35832 fi
35833
35834 if test "x$cross_compiling" = "xyes"; then
35835 HWLOC_CROSS_COMPILING_TRUE=
35836 HWLOC_CROSS_COMPILING_FALSE='#'
35837 else
35838 HWLOC_CROSS_COMPILING_TRUE='#'
35839 HWLOC_CROSS_COMPILING_FALSE=
35840 fi
35841
35842
35843 fi
35844 hwloc_did_am_conditionals=yes
35845
35846
35847 ####################################################################
35848 # Final output
35849 ####################################################################
35850
35851 # Set the final flags
35852 CFLAGS="$HWLOC_EMBEDDED_CFLAGS $CFLAGS"
35853 CPPFLAGS="$HWLOC_EMBEDDED_CPPFLAGS $CPPFLAGS"
35854 LIBS="$HWLOC_EMBEDDED_LIBS $LIBS"
35855
35856 # Party on
35857 cat >confcache <<\_ACEOF
35858 # This file is a shell script that caches the results of configure
35859 # tests run on this system so they can be shared between configure
35860 # scripts and configure runs, see configure's option --config-cache.
35861 # It is not useful on other systems. If it contains results you don't
35862 # want to keep, you may remove or edit it.
35863 #
35864 # config.status only pays attention to the cache file if you give it
35865 # the --recheck option to rerun configure.
35866 #
35867 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
35868 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
35869 # following values.
35870
35871 _ACEOF
35872
35873 ac_cache_dump |
35874 sed '
35875 /^ac_cv_env_/b end
35876 t clear
35877 :clear
35878 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
35879 t end
35880 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35881 :end' >>confcache
35882 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35883 if test -w "$cache_file"; then
35884 if test "x$cache_file" != "x/dev/null"; then
35885 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35886 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
35887 if test ! -f "$cache_file" || test -h "$cache_file"; then
35888 cat confcache >"$cache_file"
35889 else
35890 case $cache_file in #(
35891 */* | ?:*)
35892 mv -f confcache "$cache_file"$$ &&
35893 mv -f "$cache_file"$$ "$cache_file" ;; #(
35894 *)
35895 mv -f confcache "$cache_file" ;;
35896 esac
35897 fi
35898 fi
35899 else
35900 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35901 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
35902 fi
35903 fi
35904 rm -f confcache
35905
35906 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35907 # Let make expand exec_prefix.
35908 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35909
35910 DEFS=-DHAVE_CONFIG_H
35911
35912 ac_libobjs=
35913 ac_ltlibobjs=
35914 U=
35915 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35916 # 1. Remove the extension, and $U if already installed.
35917 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35918 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
35919 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35920 # will be set to the directory where LIBOBJS objects are built.
35921 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35922 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
35923 done
35924 LIBOBJS=$ac_libobjs
35925
35926 LTLIBOBJS=$ac_ltlibobjs
35927
35928
35929 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35930 printf %s "checking that generated files are newer than configure... " >&6; }
35931 if test -n "$am_sleep_pid"; then
35932 # Hide warnings about reused PIDs.
35933 wait $am_sleep_pid 2>/dev/null
35934 fi
35935 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
35936 printf '%s\n' "done" >&6; }
35937 case $enable_silent_rules in # (((
35938 yes) AM_DEFAULT_VERBOSITY=0;;
35939 no) AM_DEFAULT_VERBOSITY=1;;
35940 esac
35941 if test $am_cv_make_support_nested_variables = yes; then
35942 AM_V='$(V)'
35943 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
35944 else
35945 AM_V=$AM_DEFAULT_VERBOSITY
35946 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
35947 fi
35948
35949 if test -n "$EXEEXT"; then
35950 am__EXEEXT_TRUE=
35951 am__EXEEXT_FALSE='#'
35952 else
35953 am__EXEEXT_TRUE='#'
35954 am__EXEEXT_FALSE=
35955 fi
35956
35957 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35958 as_fn_error $? "conditional \"AMDEP\" was never defined.
35959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35960 fi
35961 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35962 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35964 fi
35965 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
35966 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
35967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35968 fi
35969 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35970 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35972 fi
35973 if test -z "${HWLOC_BUILD_STANDALONE_TRUE}" && test -z "${HWLOC_BUILD_STANDALONE_FALSE}"; then
35974 as_fn_error $? "conditional \"HWLOC_BUILD_STANDALONE\" was never defined.
35975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35976 fi
35977 if test -z "${HWLOC_HAVE_GCC_TRUE}" && test -z "${HWLOC_HAVE_GCC_FALSE}"; then
35978 as_fn_error $? "conditional \"HWLOC_HAVE_GCC\" was never defined.
35979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35980 fi
35981 if test -z "${HWLOC_HAVE_MSVC_TRUE}" && test -z "${HWLOC_HAVE_MSVC_FALSE}"; then
35982 as_fn_error $? "conditional \"HWLOC_HAVE_MSVC\" was never defined.
35983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35984 fi
35985 if test -z "${HWLOC_HAVE_MS_LIB_TRUE}" && test -z "${HWLOC_HAVE_MS_LIB_FALSE}"; then
35986 as_fn_error $? "conditional \"HWLOC_HAVE_MS_LIB\" was never defined.
35987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35988 fi
35989 if test -z "${HWLOC_HAVE_OPENAT_TRUE}" && test -z "${HWLOC_HAVE_OPENAT_FALSE}"; then
35990 as_fn_error $? "conditional \"HWLOC_HAVE_OPENAT\" was never defined.
35991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35992 fi
35993 if test -z "${HWLOC_HAVE_SCHED_SETAFFINITY_TRUE}" && test -z "${HWLOC_HAVE_SCHED_SETAFFINITY_FALSE}"; then
35994 as_fn_error $? "conditional \"HWLOC_HAVE_SCHED_SETAFFINITY\" was never defined.
35995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35996 fi
35997 if test -z "${HWLOC_HAVE_PTHREAD_TRUE}" && test -z "${HWLOC_HAVE_PTHREAD_FALSE}"; then
35998 as_fn_error $? "conditional \"HWLOC_HAVE_PTHREAD\" was never defined.
35999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36000 fi
36001 if test -z "${HWLOC_HAVE_LINUX_LIBNUMA_TRUE}" && test -z "${HWLOC_HAVE_LINUX_LIBNUMA_FALSE}"; then
36002 as_fn_error $? "conditional \"HWLOC_HAVE_LINUX_LIBNUMA\" was never defined.
36003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36004 fi
36005 if test -z "${HWLOC_HAVE_LIBIBVERBS_TRUE}" && test -z "${HWLOC_HAVE_LIBIBVERBS_FALSE}"; then
36006 as_fn_error $? "conditional \"HWLOC_HAVE_LIBIBVERBS\" was never defined.
36007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36008 fi
36009 if test -z "${HWLOC_HAVE_CUDA_TRUE}" && test -z "${HWLOC_HAVE_CUDA_FALSE}"; then
36010 as_fn_error $? "conditional \"HWLOC_HAVE_CUDA\" was never defined.
36011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36012 fi
36013 if test -z "${HWLOC_HAVE_GL_TRUE}" && test -z "${HWLOC_HAVE_GL_FALSE}"; then
36014 as_fn_error $? "conditional \"HWLOC_HAVE_GL\" was never defined.
36015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36016 fi
36017 if test -z "${HWLOC_HAVE_CUDART_TRUE}" && test -z "${HWLOC_HAVE_CUDART_FALSE}"; then
36018 as_fn_error $? "conditional \"HWLOC_HAVE_CUDART\" was never defined.
36019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36020 fi
36021 if test -z "${HWLOC_HAVE_LIBXML2_TRUE}" && test -z "${HWLOC_HAVE_LIBXML2_FALSE}"; then
36022 as_fn_error $? "conditional \"HWLOC_HAVE_LIBXML2\" was never defined.
36023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36024 fi
36025 if test -z "${HWLOC_HAVE_CAIRO_TRUE}" && test -z "${HWLOC_HAVE_CAIRO_FALSE}"; then
36026 as_fn_error $? "conditional \"HWLOC_HAVE_CAIRO\" was never defined.
36027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36028 fi
36029 if test -z "${HWLOC_HAVE_PCIACCESS_TRUE}" && test -z "${HWLOC_HAVE_PCIACCESS_FALSE}"; then
36030 as_fn_error $? "conditional \"HWLOC_HAVE_PCIACCESS\" was never defined.
36031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36032 fi
36033 if test -z "${HWLOC_HAVE_OPENCL_TRUE}" && test -z "${HWLOC_HAVE_OPENCL_FALSE}"; then
36034 as_fn_error $? "conditional \"HWLOC_HAVE_OPENCL\" was never defined.
36035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36036 fi
36037 if test -z "${HWLOC_HAVE_NVML_TRUE}" && test -z "${HWLOC_HAVE_NVML_FALSE}"; then
36038 as_fn_error $? "conditional \"HWLOC_HAVE_NVML\" was never defined.
36039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36040 fi
36041 if test -z "${HWLOC_HAVE_RSMI_TRUE}" && test -z "${HWLOC_HAVE_RSMI_FALSE}"; then
36042 as_fn_error $? "conditional \"HWLOC_HAVE_RSMI\" was never defined.
36043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36044 fi
36045 if test -z "${HWLOC_HAVE_LEVELZERO_TRUE}" && test -z "${HWLOC_HAVE_LEVELZERO_FALSE}"; then
36046 as_fn_error $? "conditional \"HWLOC_HAVE_LEVELZERO\" was never defined.
36047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36048 fi
36049 if test -z "${HWLOC_HAVE_BUNZIPP_TRUE}" && test -z "${HWLOC_HAVE_BUNZIPP_FALSE}"; then
36050 as_fn_error $? "conditional \"HWLOC_HAVE_BUNZIPP\" was never defined.
36051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36052 fi
36053 if test -z "${HWLOC_HAVE_USER32_TRUE}" && test -z "${HWLOC_HAVE_USER32_FALSE}"; then
36054 as_fn_error $? "conditional \"HWLOC_HAVE_USER32\" was never defined.
36055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36056 fi
36057 if test -z "${HWLOC_BUILD_DOXYGEN_TRUE}" && test -z "${HWLOC_BUILD_DOXYGEN_FALSE}"; then
36058 as_fn_error $? "conditional \"HWLOC_BUILD_DOXYGEN\" was never defined.
36059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36060 fi
36061 if test -z "${HWLOC_BUILD_README_TRUE}" && test -z "${HWLOC_BUILD_README_FALSE}"; then
36062 as_fn_error $? "conditional \"HWLOC_BUILD_README\" was never defined.
36063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36064 fi
36065 if test -z "${HWLOC_INSTALL_DOXYGEN_TRUE}" && test -z "${HWLOC_INSTALL_DOXYGEN_FALSE}"; then
36066 as_fn_error $? "conditional \"HWLOC_INSTALL_DOXYGEN\" was never defined.
36067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36068 fi
36069 if test -z "${HWLOC_HAVE_LINUX_TRUE}" && test -z "${HWLOC_HAVE_LINUX_FALSE}"; then
36070 as_fn_error $? "conditional \"HWLOC_HAVE_LINUX\" was never defined.
36071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36072 fi
36073 if test -z "${HWLOC_HAVE_BGQ_TRUE}" && test -z "${HWLOC_HAVE_BGQ_FALSE}"; then
36074 as_fn_error $? "conditional \"HWLOC_HAVE_BGQ\" was never defined.
36075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36076 fi
36077 if test -z "${HWLOC_HAVE_IRIX_TRUE}" && test -z "${HWLOC_HAVE_IRIX_FALSE}"; then
36078 as_fn_error $? "conditional \"HWLOC_HAVE_IRIX\" was never defined.
36079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36080 fi
36081 if test -z "${HWLOC_HAVE_DARWIN_TRUE}" && test -z "${HWLOC_HAVE_DARWIN_FALSE}"; then
36082 as_fn_error $? "conditional \"HWLOC_HAVE_DARWIN\" was never defined.
36083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36084 fi
36085 if test -z "${HWLOC_HAVE_FREEBSD_TRUE}" && test -z "${HWLOC_HAVE_FREEBSD_FALSE}"; then
36086 as_fn_error $? "conditional \"HWLOC_HAVE_FREEBSD\" was never defined.
36087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36088 fi
36089 if test -z "${HWLOC_HAVE_NETBSD_TRUE}" && test -z "${HWLOC_HAVE_NETBSD_FALSE}"; then
36090 as_fn_error $? "conditional \"HWLOC_HAVE_NETBSD\" was never defined.
36091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36092 fi
36093 if test -z "${HWLOC_HAVE_SOLARIS_TRUE}" && test -z "${HWLOC_HAVE_SOLARIS_FALSE}"; then
36094 as_fn_error $? "conditional \"HWLOC_HAVE_SOLARIS\" was never defined.
36095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36096 fi
36097 if test -z "${HWLOC_HAVE_AIX_TRUE}" && test -z "${HWLOC_HAVE_AIX_FALSE}"; then
36098 as_fn_error $? "conditional \"HWLOC_HAVE_AIX\" was never defined.
36099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36100 fi
36101 if test -z "${HWLOC_HAVE_HPUX_TRUE}" && test -z "${HWLOC_HAVE_HPUX_FALSE}"; then
36102 as_fn_error $? "conditional \"HWLOC_HAVE_HPUX\" was never defined.
36103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36104 fi
36105 if test -z "${HWLOC_HAVE_WINDOWS_TRUE}" && test -z "${HWLOC_HAVE_WINDOWS_FALSE}"; then
36106 as_fn_error $? "conditional \"HWLOC_HAVE_WINDOWS\" was never defined.
36107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36108 fi
36109 if test -z "${HWLOC_HAVE_MINGW32_TRUE}" && test -z "${HWLOC_HAVE_MINGW32_FALSE}"; then
36110 as_fn_error $? "conditional \"HWLOC_HAVE_MINGW32\" was never defined.
36111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36112 fi
36113 if test -z "${HWLOC_HAVE_X86_TRUE}" && test -z "${HWLOC_HAVE_X86_FALSE}"; then
36114 as_fn_error $? "conditional \"HWLOC_HAVE_X86\" was never defined.
36115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36116 fi
36117 if test -z "${HWLOC_HAVE_X86_32_TRUE}" && test -z "${HWLOC_HAVE_X86_32_FALSE}"; then
36118 as_fn_error $? "conditional \"HWLOC_HAVE_X86_32\" was never defined.
36119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36120 fi
36121 if test -z "${HWLOC_HAVE_X86_64_TRUE}" && test -z "${HWLOC_HAVE_X86_64_FALSE}"; then
36122 as_fn_error $? "conditional \"HWLOC_HAVE_X86_64\" was never defined.
36123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36124 fi
36125 if test -z "${HWLOC_HAVE_X86_CPUID_TRUE}" && test -z "${HWLOC_HAVE_X86_CPUID_FALSE}"; then
36126 as_fn_error $? "conditional \"HWLOC_HAVE_X86_CPUID\" was never defined.
36127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36128 fi
36129 if test -z "${HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE}" && test -z "${HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE}"; then
36130 as_fn_error $? "conditional \"HWLOC_HAVE_32BITS_PCI_DOMAIN\" was never defined.
36131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36132 fi
36133 if test -z "${HWLOC_HAVE_PLUGINS_TRUE}" && test -z "${HWLOC_HAVE_PLUGINS_FALSE}"; then
36134 as_fn_error $? "conditional \"HWLOC_HAVE_PLUGINS\" was never defined.
36135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36136 fi
36137 if test -z "${HWLOC_PCI_BUILD_STATIC_TRUE}" && test -z "${HWLOC_PCI_BUILD_STATIC_FALSE}"; then
36138 as_fn_error $? "conditional \"HWLOC_PCI_BUILD_STATIC\" was never defined.
36139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36140 fi
36141 if test -z "${HWLOC_OPENCL_BUILD_STATIC_TRUE}" && test -z "${HWLOC_OPENCL_BUILD_STATIC_FALSE}"; then
36142 as_fn_error $? "conditional \"HWLOC_OPENCL_BUILD_STATIC\" was never defined.
36143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36144 fi
36145 if test -z "${HWLOC_CUDA_BUILD_STATIC_TRUE}" && test -z "${HWLOC_CUDA_BUILD_STATIC_FALSE}"; then
36146 as_fn_error $? "conditional \"HWLOC_CUDA_BUILD_STATIC\" was never defined.
36147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36148 fi
36149 if test -z "${HWLOC_NVML_BUILD_STATIC_TRUE}" && test -z "${HWLOC_NVML_BUILD_STATIC_FALSE}"; then
36150 as_fn_error $? "conditional \"HWLOC_NVML_BUILD_STATIC\" was never defined.
36151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36152 fi
36153 if test -z "${HWLOC_RSMI_BUILD_STATIC_TRUE}" && test -z "${HWLOC_RSMI_BUILD_STATIC_FALSE}"; then
36154 as_fn_error $? "conditional \"HWLOC_RSMI_BUILD_STATIC\" was never defined.
36155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36156 fi
36157 if test -z "${HWLOC_LEVELZERO_BUILD_STATIC_TRUE}" && test -z "${HWLOC_LEVELZERO_BUILD_STATIC_FALSE}"; then
36158 as_fn_error $? "conditional \"HWLOC_LEVELZERO_BUILD_STATIC\" was never defined.
36159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36160 fi
36161 if test -z "${HWLOC_GL_BUILD_STATIC_TRUE}" && test -z "${HWLOC_GL_BUILD_STATIC_FALSE}"; then
36162 as_fn_error $? "conditional \"HWLOC_GL_BUILD_STATIC\" was never defined.
36163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36164 fi
36165 if test -z "${HWLOC_XML_LIBXML_BUILD_STATIC_TRUE}" && test -z "${HWLOC_XML_LIBXML_BUILD_STATIC_FALSE}"; then
36166 as_fn_error $? "conditional \"HWLOC_XML_LIBXML_BUILD_STATIC\" was never defined.
36167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36168 fi
36169 if test -z "${HWLOC_HAVE_BASH_TRUE}" && test -z "${HWLOC_HAVE_BASH_FALSE}"; then
36170 as_fn_error $? "conditional \"HWLOC_HAVE_BASH\" was never defined.
36171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36172 fi
36173 if test -z "${HWLOC_HAVE_CXX_TRUE}" && test -z "${HWLOC_HAVE_CXX_FALSE}"; then
36174 as_fn_error $? "conditional \"HWLOC_HAVE_CXX\" was never defined.
36175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36176 fi
36177 if test -z "${HWLOC_CROSS_COMPILING_TRUE}" && test -z "${HWLOC_CROSS_COMPILING_FALSE}"; then
36178 as_fn_error $? "conditional \"HWLOC_CROSS_COMPILING\" was never defined.
36179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36180 fi
36181
36182 : "${CONFIG_STATUS=./config.status}"
36183 case $CONFIG_STATUS in #(
36184 -*) :
36185 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
36186 */*) :
36187 ;; #(
36188 *) :
36189 CONFIG_STATUS=./$CONFIG_STATUS ;;
36190 esac
36191
36192 ac_write_fail=0
36193 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
36194 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36195 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
36196 as_write_fail=0
36197 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
36198 #! $SHELL
36199 # Generated by $as_me.
36200 # Run this file to recreate the current configuration.
36201 # Compiler output produced by configure, useful for debugging
36202 # configure, is in config.log if it exists.
36203
36204 debug=false
36205 ac_cs_recheck=false
36206 ac_cs_silent=false
36207
36208 SHELL=\${CONFIG_SHELL-$SHELL}
36209 export SHELL
36210 _ASEOF
36211 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
36212 ## -------------------- ##
36213 ## M4sh Initialization. ##
36214 ## -------------------- ##
36215
36216 # Be more Bourne compatible
36217 DUALCASE=1; export DUALCASE # for MKS sh
36218 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
36219 then :
36220 emulate sh
36221 NULLCMD=:
36222 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36223 # contradicts POSIX and common usage. Disable this.
36224 alias -g '${1+"$@"}'='"$@"'
36225 setopt NO_GLOB_SUBST
36226 else case e in #(
36227 e) case `(set -o) 2>/dev/null` in #(
36228 *posix*) :
36229 set -o posix ;; #(
36230 *) :
36231 ;;
36232 esac ;;
36233 esac
36234 fi
36235
36236
36237
36238 # Reset variables that may have inherited troublesome values from
36239 # the environment.
36240
36241 # IFS needs to be set, to space, tab, and newline, in precisely that order.
36242 # (If _AS_PATH_WALK were called with IFS unset, it would have the
36243 # side effect of setting IFS to empty, thus disabling word splitting.)
36244 # Quoting is to prevent editors from complaining about space-tab.
36245 as_nl='
36246 '
36247 export as_nl
36248 IFS=" "" $as_nl"
36249
36250 PS1='$ '
36251 PS2='> '
36252 PS4='+ '
36253
36254 # Ensure predictable behavior from utilities with locale-dependent output.
36255 LC_ALL=C
36256 export LC_ALL
36257 LANGUAGE=C
36258 export LANGUAGE
36259
36260 # We cannot yet rely on "unset" to work, but we need these variables
36261 # to be unset--not just set to an empty or harmless value--now, to
36262 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
36263 # also avoids known problems related to "unset" and subshell syntax
36264 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
36265 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
36266 do eval test \${$as_var+y} \
36267 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
36268 done
36269
36270 # Ensure that fds 0, 1, and 2 are open.
36271 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
36272 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
36273 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
36274
36275 # The user is always right.
36276 if ${PATH_SEPARATOR+false} :; then
36277 PATH_SEPARATOR=:
36278 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36279 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36280 PATH_SEPARATOR=';'
36281 }
36282 fi
36283
36284
36285 # Find who we are. Look in the path if we contain no directory separator.
36286 as_myself=
36287 case $0 in #((
36288 *[\\/]* ) as_myself=$0 ;;
36289 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36290 for as_dir in $PATH
36291 do
36292 IFS=$as_save_IFS
36293 case $as_dir in #(((
36294 '') as_dir=./ ;;
36295 */) ;;
36296 *) as_dir=$as_dir/ ;;
36297 esac
36298 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
36299 done
36300 IFS=$as_save_IFS
36301
36302 ;;
36303 esac
36304 # We did not find ourselves, most probably we were run as 'sh COMMAND'
36305 # in which case we are not to be found in the path.
36306 if test "x$as_myself" = x; then
36307 as_myself=$0
36308 fi
36309 if test ! -f "$as_myself"; then
36310 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36311 exit 1
36312 fi
36313
36314
36315
36316 # as_fn_error STATUS ERROR [LINENO LOG_FD]
36317 # ----------------------------------------
36318 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36319 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36320 # script with STATUS, using 1 if that was 0.
36321 as_fn_error ()
36322 {
36323 as_status=$1; test $as_status -eq 0 && as_status=1
36324 if test "$4"; then
36325 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36326 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36327 fi
36328 printf '%s\n' "$as_me: error: $2" >&2
36329 as_fn_exit $as_status
36330 } # as_fn_error
36331
36332
36333 # as_fn_set_status STATUS
36334 # -----------------------
36335 # Set $? to STATUS, without forking.
36336 as_fn_set_status ()
36337 {
36338 return $1
36339 } # as_fn_set_status
36340
36341 # as_fn_exit STATUS
36342 # -----------------
36343 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36344 as_fn_exit ()
36345 {
36346 set +e
36347 as_fn_set_status $1
36348 exit $1
36349 } # as_fn_exit
36350
36351 # as_fn_unset VAR
36352 # ---------------
36353 # Portably unset VAR.
36354 as_fn_unset ()
36355 {
36356 { eval $1=; unset $1;}
36357 }
36358 as_unset=as_fn_unset
36359
36360 # as_fn_append VAR VALUE
36361 # ----------------------
36362 # Append the text in VALUE to the end of the definition contained in VAR. Take
36363 # advantage of any shell optimizations that allow amortized linear growth over
36364 # repeated appends, instead of the typical quadratic growth present in naive
36365 # implementations.
36366 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
36367 then :
36368 eval 'as_fn_append ()
36369 {
36370 eval $1+=\$2
36371 }'
36372 else case e in #(
36373 e) as_fn_append ()
36374 {
36375 eval $1=\$$1\$2
36376 } ;;
36377 esac
36378 fi # as_fn_append
36379
36380 # as_fn_arith ARG...
36381 # ------------------
36382 # Perform arithmetic evaluation on the ARGs, and store the result in the
36383 # global $as_val. Take advantage of shells that can avoid forks. The arguments
36384 # must be portable across $(()) and expr.
36385 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
36386 then :
36387 eval 'as_fn_arith ()
36388 {
36389 as_val=$(( $* ))
36390 }'
36391 else case e in #(
36392 e) as_fn_arith ()
36393 {
36394 as_val=`expr "$@" || test $? -eq 1`
36395 } ;;
36396 esac
36397 fi # as_fn_arith
36398
36399
36400 if expr a : '\(a\)' >/dev/null 2>&1 &&
36401 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36402 as_expr=expr
36403 else
36404 as_expr=false
36405 fi
36406
36407 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36408 as_basename=basename
36409 else
36410 as_basename=false
36411 fi
36412
36413 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36414 as_dirname=dirname
36415 else
36416 as_dirname=false
36417 fi
36418
36419 as_me=`$as_basename -- "$0" ||
36420 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36421 X"$0" : 'X\(//\)$' \| \
36422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36423 printf '%s\n' X/"$0" |
36424 sed '/^.*\/\([^/][^/]*\)\/*$/{
36425 s//\1/
36426 q
36427 }
36428 /^X\/\(\/\/\)$/{
36429 s//\1/
36430 q
36431 }
36432 /^X\/\(\/\).*/{
36433 s//\1/
36434 q
36435 }
36436 s/.*/./; q'`
36437
36438 # Avoid depending upon Character Ranges.
36439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36442 as_cr_digits='0123456789'
36443 as_cr_alnum=$as_cr_Letters$as_cr_digits
36444
36445 rm -f conf$$ conf$$.exe conf$$.file
36446 if test -d conf$$.dir; then
36447 rm -f conf$$.dir/conf$$.file
36448 else
36449 rm -f conf$$.dir
36450 mkdir conf$$.dir 2>/dev/null
36451 fi
36452 if (echo >conf$$.file) 2>/dev/null; then
36453 if ln -s conf$$.file conf$$ 2>/dev/null; then
36454 as_ln_s='ln -s'
36455 # ... but there are two gotchas:
36456 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
36457 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
36458 # In both cases, we have to default to 'cp -pR'.
36459 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36460 as_ln_s='cp -pR'
36461 elif ln conf$$.file conf$$ 2>/dev/null; then
36462 as_ln_s=ln
36463 else
36464 as_ln_s='cp -pR'
36465 fi
36466 else
36467 as_ln_s='cp -pR'
36468 fi
36469 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36470 rmdir conf$$.dir 2>/dev/null
36471
36472
36473 # as_fn_mkdir_p
36474 # -------------
36475 # Create "$as_dir" as a directory, including parents if necessary.
36476 as_fn_mkdir_p ()
36477 {
36478
36479 case $as_dir in #(
36480 -*) as_dir=./$as_dir;;
36481 esac
36482 test -d "$as_dir" || eval $as_mkdir_p || {
36483 as_dirs=
36484 while :; do
36485 case $as_dir in #(
36486 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36487 *) as_qdir=$as_dir;;
36488 esac
36489 as_dirs="'$as_qdir' $as_dirs"
36490 as_dir=`$as_dirname -- "$as_dir" ||
36491 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36492 X"$as_dir" : 'X\(//\)[^/]' \| \
36493 X"$as_dir" : 'X\(//\)$' \| \
36494 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36495 printf '%s\n' X"$as_dir" |
36496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36497 s//\1/
36498 q
36499 }
36500 /^X\(\/\/\)[^/].*/{
36501 s//\1/
36502 q
36503 }
36504 /^X\(\/\/\)$/{
36505 s//\1/
36506 q
36507 }
36508 /^X\(\/\).*/{
36509 s//\1/
36510 q
36511 }
36512 s/.*/./; q'`
36513 test -d "$as_dir" && break
36514 done
36515 test -z "$as_dirs" || eval "mkdir $as_dirs"
36516 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36517
36518
36519 } # as_fn_mkdir_p
36520 if mkdir -p . 2>/dev/null; then
36521 as_mkdir_p='mkdir -p "$as_dir"'
36522 else
36523 test -d ./-p && rmdir ./-p
36524 as_mkdir_p=false
36525 fi
36526
36527
36528 # as_fn_executable_p FILE
36529 # -----------------------
36530 # Test if FILE is an executable regular file.
36531 as_fn_executable_p ()
36532 {
36533 test -f "$1" && test -x "$1"
36534 } # as_fn_executable_p
36535 as_test_x='test -x'
36536 as_executable_p=as_fn_executable_p
36537
36538 # Sed expression to map a string onto a valid CPP name.
36539 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
36540 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
36541
36542 # Sed expression to map a string onto a valid variable name.
36543 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
36544 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
36545
36546
36547 exec 6>&1
36548 ## ------------------------------------- ##
36549 ## Main body of "$CONFIG_STATUS" script. ##
36550 ## ------------------------------------- ##
36551 _ASEOF
36552 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
36553
36554 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
36555 # Save the log message, to keep $0 and so on meaningful, and to
36556 # report actual input values of CONFIG_FILES etc. instead of their
36557 # values after options handling.
36558 ac_log="
36559 This file was extended by hwloc $as_me 2.14.0, which was
36560 generated by GNU Autoconf 2.73. Invocation command line was
36561
36562 CONFIG_FILES = $CONFIG_FILES
36563 CONFIG_HEADERS = $CONFIG_HEADERS
36564 CONFIG_LINKS = $CONFIG_LINKS
36565 CONFIG_COMMANDS = $CONFIG_COMMANDS
36566 $ $0 $@
36567
36568 on `(hostname || uname -n) 2>/dev/null | sed 1q`
36569 "
36570
36571 _ACEOF
36572
36573 case $ac_config_files in *"
36574 "*) set x $ac_config_files; shift; ac_config_files=$*;;
36575 esac
36576
36577 case $ac_config_headers in *"
36578 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36579 esac
36580
36581
36582 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
36583 # Files that config.status was made for.
36584 config_files="$ac_config_files"
36585 config_headers="$ac_config_headers"
36586 config_links="$ac_config_links"
36587 config_commands="$ac_config_commands"
36588
36589 _ACEOF
36590
36591 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
36592 ac_cs_usage="\
36593 '$as_me' instantiates files and other configuration actions
36594 from templates according to the current configuration. Unless the files
36595 and actions are specified as TAGs, all are instantiated by default.
36596
36597 Usage: $0 [OPTION]... [TAG]...
36598
36599 -h, --help print this help, then exit
36600 -V, --version print version number and configuration settings, then exit
36601 --config print configuration, then exit
36602 -q, --quiet, --silent
36603 do not print progress messages
36604 -d, --debug don't remove temporary files
36605 --recheck update $as_me by reconfiguring in the same conditions
36606 --file=FILE[:TEMPLATE]
36607 instantiate the configuration file FILE
36608 --header=FILE[:TEMPLATE]
36609 instantiate the configuration header FILE
36610
36611 Configuration files:
36612 $config_files
36613
36614 Configuration headers:
36615 $config_headers
36616
36617 Configuration links:
36618 $config_links
36619
36620 Configuration commands:
36621 $config_commands
36622
36623 Report bugs to <https://github.com/open-mpi/hwloc/issues>."
36624
36625 _ACEOF
36626 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
36627 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
36628 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
36629 ac_cs_config='$ac_cs_config_escaped'
36630 ac_cs_version="\\
36631 hwloc config.status 2.14.0
36632 configured by $0, generated by GNU Autoconf 2.73,
36633 with options \\"\$ac_cs_config\\"
36634
36635 Copyright (C) 2026 Free Software Foundation, Inc.
36636 This config.status script is free software; the Free Software Foundation
36637 gives unlimited permission to copy, distribute and modify it."
36638
36639 ac_pwd='$ac_pwd'
36640 srcdir='$srcdir'
36641 INSTALL='$INSTALL'
36642 MKDIR_P='$MKDIR_P'
36643 AWK='$AWK'
36644 test -n "\$AWK" || {
36645 awk '' </dev/null ||
36646 as_fn_error \$? "try installing gawk"
36647 AWK=awk
36648 }
36649 _ACEOF
36650
36651 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
36652 # The default lists apply if the user does not specify any file.
36653 ac_need_defaults=:
36654 while test $# != 0
36655 do
36656 case $1 in
36657 --*=?*)
36658 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36659 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36660 ac_shift=:
36661 ;;
36662 --*=)
36663 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36664 ac_optarg=
36665 ac_shift=:
36666 ;;
36667 *)
36668 ac_option=$1
36669 ac_optarg=$2
36670 ac_shift=shift
36671 ;;
36672 esac
36673
36674 case $ac_option in
36675 # Handling of the options.
36676 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36677 ac_cs_recheck=: ;;
36678 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36679 printf '%s\n' "$ac_cs_version"; exit ;;
36680 --config | --confi | --conf | --con | --co | --c )
36681 printf '%s\n' "$ac_cs_config"; exit ;;
36682 --debug | --debu | --deb | --de | --d | -d )
36683 debug=: ;;
36684 --file | --fil | --fi | --f )
36685 $ac_shift
36686 case $ac_optarg in
36687 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36688 '') as_fn_error $? "missing file argument" ;;
36689 esac
36690 as_fn_append CONFIG_FILES " '$ac_optarg'"
36691 ac_need_defaults=false;;
36692 --header | --heade | --head | --hea )
36693 $ac_shift
36694 case $ac_optarg in
36695 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36696 esac
36697 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
36698 ac_need_defaults=false;;
36699 --he | --h)
36700 # Conflict between --help and --header
36701 as_fn_error $? "ambiguous option: '$1'
36702 Try '$0 --help' for more information.";;
36703 --help | --hel | -h )
36704 printf '%s\n' "$ac_cs_usage"; exit ;;
36705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36706 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36707 ac_cs_silent=: ;;
36708
36709 # This is an error.
36710 -*) as_fn_error $? "unrecognized option: '$1'
36711 Try '$0 --help' for more information." ;;
36712
36713 *) as_fn_append ac_config_targets " $1"
36714 ac_need_defaults=false ;;
36715
36716 esac
36717 shift
36718 done
36719
36720 ac_configure_extra_args=
36721
36722 if $ac_cs_silent; then
36723 exec 6>/dev/null
36724 ac_configure_extra_args="$ac_configure_extra_args --silent"
36725 fi
36726
36727 _ACEOF
36728 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
36729 if \$ac_cs_recheck; then
36730 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36731 shift
36732 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
36733 CONFIG_SHELL='$SHELL'
36734 export CONFIG_SHELL
36735 exec "\$@"
36736 fi
36737
36738 _ACEOF
36739 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
36740 exec 5>>config.log
36741 {
36742 echo
36743 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36744 ## Running $as_me. ##
36745 _ASBOX
36746 printf '%s\n' "$ac_log"
36747 } >&5
36748
36749 _ACEOF
36750 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
36751 #
36752 # INIT-COMMANDS
36753 #
36754 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
36755
36756
36757 # The HP-UX ksh and POSIX shell print the target directory to stdout
36758 # if CDPATH is set.
36759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36760
36761 sed_quote_subst='$sed_quote_subst'
36762 double_quote_subst='$double_quote_subst'
36763 delay_variable_subst='$delay_variable_subst'
36764 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36765 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36766 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36767 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36768 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36769 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36770 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36771 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36772 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36773 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
36774 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36775 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36776 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
36777 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36778 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36779 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36780 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36781 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36782 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36783 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36784 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36785 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36786 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36787 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36788 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36789 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36790 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36791 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36792 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36793 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36794 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36795 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36796 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
36797 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36798 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
36799 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36800 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36801 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
36802 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36803 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
36804 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36805 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36806 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
36807 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36808 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
36809 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
36810 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
36811 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36812 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36813 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36814 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36815 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36816 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36817 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36818 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36819 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36820 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36821 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36822 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36823 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
36824 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36825 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"`'
36826 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
36827 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36828 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
36829 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
36830 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36831 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36832 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
36833 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
36834 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
36835 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36836 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36837 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
36838 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
36839 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36840 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36841 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36842 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36843 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36844 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36845 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36846 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36847 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36848 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36849 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36850 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36851 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36852 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36853 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36854 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36855 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36856 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36857 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36858 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36859 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36860 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36861 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36862 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36863 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36864 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36865 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36866 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36867 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36868 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36869 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
36870 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36871 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36872 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36873 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36874 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
36875 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
36876 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36877 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36878 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36879 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36880 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36881 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36882 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36883 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36884 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36885 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36886 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36887 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36888 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36889 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36890 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36891 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36892 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36893 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36894 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
36895 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
36896 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36897 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36898 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36899 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36900 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36901 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36902 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36903 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36904 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36905 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36906 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36907 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36908 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36909 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36910 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36911 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36912 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36913 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36914 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
36915 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
36916 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
36917 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36918 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36919 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36920 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36921 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36922 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36923 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36924 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36925 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36926 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36927 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36928 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36929 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36930 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36931 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36932 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36933 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36934 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36935 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36936 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36937 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36938 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36939 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36940 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36941 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
36942 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36943 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36944 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36945 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36946 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36947 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36948 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36949 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36950 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36951 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36952 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36953 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36954 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36955 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
36956
36957 LTCC='$LTCC'
36958 LTCFLAGS='$LTCFLAGS'
36959 compiler='$compiler_DEFAULT'
36960
36961 # A function that is used when there is no print builtin or printf.
36962 func_fallback_echo ()
36963 {
36964 eval 'cat <<_LTECHO_EOF
36965 \$1
36966 _LTECHO_EOF'
36967 }
36968
36969 # Quote evaled strings.
36970 for var in AS \
36971 DLLTOOL \
36972 OBJDUMP \
36973 SHELL \
36974 ECHO \
36975 PATH_SEPARATOR \
36976 SED \
36977 GREP \
36978 EGREP \
36979 FGREP \
36980 LD \
36981 NM \
36982 LN_S \
36983 lt_SP2NL \
36984 lt_NL2SP \
36985 reload_flag \
36986 FILECMD \
36987 deplibs_check_method \
36988 file_magic_cmd \
36989 file_magic_glob \
36990 want_nocaseglob \
36991 sharedlib_from_linklib_cmd \
36992 AR \
36993 archiver_list_spec \
36994 STRIP \
36995 RANLIB \
36996 CC \
36997 CFLAGS \
36998 compiler \
36999 lt_cv_sys_global_symbol_pipe \
37000 lt_cv_sys_global_symbol_to_cdecl \
37001 lt_cv_sys_global_symbol_to_import \
37002 lt_cv_sys_global_symbol_to_c_name_address \
37003 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
37004 lt_cv_nm_interface \
37005 nm_file_list_spec \
37006 lt_cv_truncate_bin \
37007 lt_prog_compiler_no_builtin_flag \
37008 lt_prog_compiler_pic \
37009 lt_prog_compiler_wl \
37010 lt_prog_compiler_static \
37011 lt_cv_prog_compiler_c_o \
37012 need_locks \
37013 MANIFEST_TOOL \
37014 DSYMUTIL \
37015 NMEDIT \
37016 LIPO \
37017 OTOOL \
37018 OTOOL64 \
37019 shrext_cmds \
37020 export_dynamic_flag_spec \
37021 whole_archive_flag_spec \
37022 compiler_needs_object \
37023 with_gnu_ld \
37024 allow_undefined_flag \
37025 no_undefined_flag \
37026 hardcode_libdir_flag_spec \
37027 hardcode_libdir_separator \
37028 exclude_expsyms \
37029 include_expsyms \
37030 file_list_spec \
37031 variables_saved_for_relink \
37032 libname_spec \
37033 library_names_spec \
37034 soname_spec \
37035 install_override_mode \
37036 finish_eval \
37037 old_striplib \
37038 striplib \
37039 compiler_lib_search_dirs \
37040 predep_objects \
37041 postdep_objects \
37042 predeps \
37043 postdeps \
37044 compiler_lib_search_path \
37045 LD_CXX \
37046 reload_flag_CXX \
37047 compiler_CXX \
37048 lt_prog_compiler_no_builtin_flag_CXX \
37049 lt_prog_compiler_pic_CXX \
37050 lt_prog_compiler_wl_CXX \
37051 lt_prog_compiler_static_CXX \
37052 lt_cv_prog_compiler_c_o_CXX \
37053 export_dynamic_flag_spec_CXX \
37054 whole_archive_flag_spec_CXX \
37055 compiler_needs_object_CXX \
37056 with_gnu_ld_CXX \
37057 allow_undefined_flag_CXX \
37058 no_undefined_flag_CXX \
37059 hardcode_libdir_flag_spec_CXX \
37060 hardcode_libdir_separator_CXX \
37061 exclude_expsyms_CXX \
37062 include_expsyms_CXX \
37063 file_list_spec_CXX \
37064 compiler_lib_search_dirs_CXX \
37065 predep_objects_CXX \
37066 postdep_objects_CXX \
37067 predeps_CXX \
37068 postdeps_CXX \
37069 compiler_lib_search_path_CXX; do
37070 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37071 *[\\\\\\\`\\"\\\$]*)
37072 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37073 ;;
37074 *)
37075 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37076 ;;
37077 esac
37078 done
37079
37080 # Double-quote double-evaled strings.
37081 for var in reload_cmds \
37082 old_postinstall_cmds \
37083 old_postuninstall_cmds \
37084 old_archive_cmds \
37085 extract_expsyms_cmds \
37086 old_archive_from_new_cmds \
37087 old_archive_from_expsyms_cmds \
37088 archive_cmds \
37089 archive_expsym_cmds \
37090 module_cmds \
37091 module_expsym_cmds \
37092 export_symbols_cmds \
37093 prelink_cmds \
37094 postlink_cmds \
37095 postinstall_cmds \
37096 postuninstall_cmds \
37097 finish_cmds \
37098 sys_lib_search_path_spec \
37099 configure_time_dlsearch_path \
37100 configure_time_lt_sys_library_path \
37101 reload_cmds_CXX \
37102 old_archive_cmds_CXX \
37103 old_archive_from_new_cmds_CXX \
37104 old_archive_from_expsyms_cmds_CXX \
37105 archive_cmds_CXX \
37106 archive_expsym_cmds_CXX \
37107 module_cmds_CXX \
37108 module_expsym_cmds_CXX \
37109 export_symbols_cmds_CXX \
37110 prelink_cmds_CXX \
37111 postlink_cmds_CXX; do
37112 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37113 *[\\\\\\\`\\"\\\$]*)
37114 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37115 ;;
37116 *)
37117 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37118 ;;
37119 esac
37120 done
37121
37122 ac_aux_dir='$ac_aux_dir'
37123
37124 # See if we are running on zsh, and set the options that allow our
37125 # commands through without removal of \ escapes INIT.
37126 if test -n "\${ZSH_VERSION+set}"; then
37127 setopt NO_GLOB_SUBST
37128 fi
37129
37130
37131 PACKAGE='$PACKAGE'
37132 VERSION='$VERSION'
37133 RM='$RM'
37134 ofile='$ofile'
37135
37136
37137
37138
37139
37140
37141 _ACEOF
37142
37143 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
37144
37145 # Handling of arguments.
37146 for ac_config_target in $ac_config_targets
37147 do
37148 case $ac_config_target in
37149 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37150 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37151 "include/private/autogen/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/private/autogen/config.h" ;;
37152 "include/hwloc/autogen/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/hwloc/autogen/config.h" ;;
37153 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37154 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
37155 "hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES hwloc/Makefile" ;;
37156 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
37157 "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
37158 "doc/doxygen-config.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen-config.cfg" ;;
37159 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
37160 "utils/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/hwloc/Makefile" ;;
37161 "utils/lstopo/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lstopo/Makefile" ;;
37162 "hwloc.pc") CONFIG_FILES="$CONFIG_FILES hwloc.pc" ;;
37163 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
37164 "tests/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/Makefile" ;;
37165 "tests/hwloc/linux/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/Makefile" ;;
37166 "tests/hwloc/linux/allowed/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/allowed/Makefile" ;;
37167 "tests/hwloc/linux/gather/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/gather/Makefile" ;;
37168 "tests/hwloc/x86/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/x86/Makefile" ;;
37169 "tests/hwloc/x86+linux/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/x86+linux/Makefile" ;;
37170 "tests/hwloc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/xml/Makefile" ;;
37171 "tests/hwloc/ports/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/ports/Makefile" ;;
37172 "tests/hwloc/rename/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/rename/Makefile" ;;
37173 "tests/hwloc/linux/allowed/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/allowed/test-topology.sh" ;;
37174 "tests/hwloc/linux/gather/test-gather-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/gather/test-gather-topology.sh" ;;
37175 "tests/hwloc/linux/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/test-topology.sh" ;;
37176 "tests/hwloc/x86/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/x86/test-topology.sh" ;;
37177 "tests/hwloc/x86+linux/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/x86+linux/test-topology.sh" ;;
37178 "tests/hwloc/xml/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/xml/test-topology.sh" ;;
37179 "tests/hwloc/wrapper.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/wrapper.sh" ;;
37180 "utils/hwloc/hwloc-compress-dir") CONFIG_FILES="$CONFIG_FILES utils/hwloc/hwloc-compress-dir" ;;
37181 "utils/hwloc/hwloc-gather-topology") CONFIG_FILES="$CONFIG_FILES utils/hwloc/hwloc-gather-topology" ;;
37182 "utils/hwloc/test-hwloc-annotate.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-annotate.sh" ;;
37183 "utils/hwloc/test-hwloc-calc.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-calc.sh" ;;
37184 "utils/hwloc/test-hwloc-compress-dir.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-compress-dir.sh" ;;
37185 "utils/hwloc/test-hwloc-diffpatch.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-diffpatch.sh" ;;
37186 "utils/hwloc/test-hwloc-distrib.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-distrib.sh" ;;
37187 "utils/hwloc/test-hwloc-info.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-info.sh" ;;
37188 "utils/hwloc/test-build-custom-topology.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-build-custom-topology.sh" ;;
37189 "utils/hwloc/test-fake-plugin.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-fake-plugin.sh" ;;
37190 "utils/hwloc/test-parsing-flags.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-parsing-flags.sh" ;;
37191 "utils/hwloc/test-hwloc-dump-hwdata/Makefile") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-dump-hwdata/Makefile" ;;
37192 "utils/hwloc/test-hwloc-dump-hwdata/test-hwloc-dump-hwdata.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-dump-hwdata/test-hwloc-dump-hwdata.sh" ;;
37193 "utils/lstopo/test-lstopo.sh") CONFIG_FILES="$CONFIG_FILES utils/lstopo/test-lstopo.sh" ;;
37194 "utils/lstopo/test-lstopo-shmem.sh") CONFIG_FILES="$CONFIG_FILES utils/lstopo/test-lstopo-shmem.sh" ;;
37195 "contrib/hwloc-ps.www/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/hwloc-ps.www/Makefile" ;;
37196 "contrib/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/systemd/Makefile" ;;
37197 "contrib/completion/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/completion/Makefile" ;;
37198 "contrib/completion/test-bash-completion.sh") CONFIG_FILES="$CONFIG_FILES contrib/completion/test-bash-completion.sh" ;;
37199 "contrib/misc/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/misc/Makefile" ;;
37200 "contrib/windows/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/windows/Makefile" ;;
37201 "chmoding-scripts") CONFIG_COMMANDS="$CONFIG_COMMANDS chmoding-scripts" ;;
37202 "tests/hwloc/ports/topology-solaris.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-solaris.c:hwloc/topology-solaris.c" ;;
37203 "tests/hwloc/ports/topology-solaris-chiptype.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-solaris-chiptype.c:hwloc/topology-solaris-chiptype.c" ;;
37204 "tests/hwloc/ports/topology-aix.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-aix.c:hwloc/topology-aix.c" ;;
37205 "tests/hwloc/ports/topology-windows.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-windows.c:hwloc/topology-windows.c" ;;
37206 "tests/hwloc/ports/topology-darwin.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-darwin.c:hwloc/topology-darwin.c" ;;
37207 "tests/hwloc/ports/topology-freebsd.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-freebsd.c:hwloc/topology-freebsd.c" ;;
37208 "tests/hwloc/ports/topology-netbsd.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-netbsd.c:hwloc/topology-netbsd.c" ;;
37209 "tests/hwloc/ports/topology-hpux.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-hpux.c:hwloc/topology-hpux.c" ;;
37210 "tests/hwloc/ports/topology-bgq.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-bgq.c:hwloc/topology-bgq.c" ;;
37211 "tests/hwloc/ports/topology-opencl.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-opencl.c:hwloc/topology-opencl.c" ;;
37212 "tests/hwloc/ports/topology-cuda.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-cuda.c:hwloc/topology-cuda.c" ;;
37213 "tests/hwloc/ports/topology-nvml.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-nvml.c:hwloc/topology-nvml.c" ;;
37214 "tests/hwloc/ports/topology-rsmi.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-rsmi.c:hwloc/topology-rsmi.c" ;;
37215 "tests/hwloc/ports/topology-levelzero.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-levelzero.c:hwloc/topology-levelzero.c" ;;
37216 "tests/hwloc/ports/topology-gl.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-gl.c:hwloc/topology-gl.c" ;;
37217 "tests/hwloc/ports/lstopo-windows.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/lstopo-windows.c:utils/lstopo/lstopo-windows.c" ;;
37218 "tests/hwloc/ports/lstopo-android.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/lstopo-android.c:utils/lstopo/lstopo-android.c" ;;
37219
37220 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
37221 esac
37222 done
37223
37224
37225 # If the user did not use the arguments to specify the items to instantiate,
37226 # then the envvar interface is used. Set only those that are not.
37227 # We use the long form for the default assignment because of an extremely
37228 # bizarre bug on SunOS 4.1.3.
37229 if $ac_need_defaults; then
37230 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
37231 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
37232 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
37233 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
37234 fi
37235
37236 # Have a temporary directory for convenience. Make it in the build tree
37237 # simply because there is no reason against having it here, and in addition,
37238 # creating and moving files from /tmp can sometimes cause problems.
37239 # Hook for its removal unless debugging.
37240 # Note that there is a small window in which the directory will not be cleaned:
37241 # after its creation but before its name has been assigned to '$tmp'.
37242 $debug ||
37243 {
37244 tmp= ac_tmp=
37245 trap 'exit_status=$?
37246 : "${ac_tmp:=$tmp}"
37247 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37248 ' 0
37249 trap 'as_fn_exit 1' 1 2 13 15
37250 }
37251 # Create a (secure) tmp directory for tmp files.
37252
37253 {
37254 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37255 test -d "$tmp"
37256 } ||
37257 {
37258 tmp=./conf$$-$RANDOM
37259 (umask 077 && mkdir "$tmp")
37260 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
37261 ac_tmp=$tmp
37262
37263 # Set up the scripts for CONFIG_FILES section.
37264 # No need to generate them if there are no CONFIG_FILES.
37265 # This happens for instance with './config.status config.h'.
37266 if test -n "$CONFIG_FILES"; then
37267
37268
37269 ac_cr=`echo X | tr X '\015'`
37270 # On cygwin, bash can eat \r inside `` if the user requested igncr.
37271 # But we know of no other shell where ac_cr would be empty at this
37272 # point, so we can use a bashism as a fallback.
37273 if test "x$ac_cr" = x; then
37274 eval ac_cr=\$\'\\r\'
37275 fi
37276 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37277 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37278 ac_cs_awk_cr='\\r'
37279 else
37280 ac_cs_awk_cr=$ac_cr
37281 fi
37282
37283 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37284 _ACEOF
37285
37286
37287 {
37288 echo "cat >conf$$subs.awk <<_ACEOF" &&
37289 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37290 echo "_ACEOF"
37291 } >conf$$subs.sh ||
37292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37293 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
37294 ac_delim='%!_!# '
37295 for ac_last_try in false false false false false :; do
37296 . ./conf$$subs.sh ||
37297 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37298
37299 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
37300 if test $ac_delim_n = $ac_delim_num; then
37301 break
37302 elif $ac_last_try; then
37303 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37304 else
37305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37306 fi
37307 done
37308 rm -f conf$$subs.sh
37309
37310 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
37311 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
37312 _ACEOF
37313 sed -n '
37314 h
37315 s/^/S["/; s/!.*/"]=/
37316 p
37317 g
37318 s/^[^!]*!//
37319 :repl
37320 t repl
37321 s/'"$ac_delim"'$//
37322 t delim
37323 :nl
37324 h
37325 s/\(.\{148\}\)..*/\1/
37326 t more1
37327 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37328 p
37329 n
37330 b repl
37331 :more1
37332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37333 p
37334 g
37335 s/.\{148\}//
37336 t nl
37337 :delim
37338 h
37339 s/\(.\{148\}\)..*/\1/
37340 t more2
37341 s/["\\]/\\&/g; s/^/"/; s/$/"/
37342 p
37343 b
37344 :more2
37345 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37346 p
37347 g
37348 s/.\{148\}//
37349 t delim
37350 ' <conf$$subs.awk | sed '
37351 /^[^""]/{
37352 N
37353 s/\n//
37354 }
37355 ' >>"$CONFIG_STATUS" || ac_write_fail=1
37356 rm -f conf$$subs.awk
37357 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
37358 _ACAWK
37359 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
37360 for (key in S) S_is_set[key] = 1
37361 FS = ""
37362
37363 }
37364 {
37365 line = $ 0
37366 nfields = split(line, field, "@")
37367 substed = 0
37368 len = length(field[1])
37369 for (i = 2; i < nfields; i++) {
37370 key = field[i]
37371 keylen = length(key)
37372 if (S_is_set[key]) {
37373 value = S[key]
37374 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37375 len += length(value) + length(field[++i])
37376 substed = 1
37377 } else
37378 len += 1 + keylen
37379 }
37380
37381 print line
37382 }
37383
37384 _ACAWK
37385 _ACEOF
37386 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
37387 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37388 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37389 else
37390 cat
37391 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
37392 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
37393 _ACEOF
37394
37395 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37396 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
37397 # trailing colons and then remove the whole line if VPATH becomes empty
37398 # (actually we leave an empty line to preserve line numbers).
37399 if test "x$srcdir" = x.; then
37400 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37401 h
37402 s///
37403 s/^/:/
37404 s/[ ]*$/:/
37405 s/:\$(srcdir):/:/g
37406 s/:\${srcdir}:/:/g
37407 s/:@srcdir@:/:/g
37408 s/^:*//
37409 s/:*$//
37410 x
37411 s/\(=[ ]*\).*/\1/
37412 G
37413 s/\n//
37414 s/^[^=]*=[ ]*$//
37415 }'
37416 fi
37417
37418 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
37419 fi # test -n "$CONFIG_FILES"
37420
37421 # Set up the scripts for CONFIG_HEADERS section.
37422 # No need to generate them if there are no CONFIG_HEADERS.
37423 # This happens for instance with './config.status Makefile'.
37424 if test -n "$CONFIG_HEADERS"; then
37425 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
37426 BEGIN {
37427 _ACEOF
37428
37429 # Transform confdefs.h into an awk script 'defines.awk', embedded as
37430 # here-document in config.status, that substitutes the proper values into
37431 # config.h.in to produce config.h.
37432
37433 # Create a delimiter string that does not exist in confdefs.h, to ease
37434 # handling of long lines.
37435 ac_delim='%!_!# '
37436 for ac_last_try in false false :; do
37437 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37438 if test -z "$ac_tt"; then
37439 break
37440 elif $ac_last_try; then
37441 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
37442 else
37443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37444 fi
37445 done
37446
37447 # For the awk script, D is an array of macro values keyed by name,
37448 # likewise P contains macro parameters if any. Preserve backslash
37449 # newline sequences.
37450
37451 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37452 sed -n '
37453 s/.\{148\}/&'"$ac_delim"'/g
37454 t rset
37455 :rset
37456 s/^[ ]*#[ ]*define[ ][ ]*/ /
37457 t def
37458 d
37459 :def
37460 s/\\$//
37461 t bsnl
37462 s/["\\]/\\&/g
37463 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37464 D["\1"]=" \3"/p
37465 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37466 d
37467 :bsnl
37468 s/["\\]/\\&/g
37469 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37470 D["\1"]=" \3\\\\\\n"\\/p
37471 t cont
37472 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37473 t cont
37474 d
37475 :cont
37476 n
37477 s/.\{148\}/&'"$ac_delim"'/g
37478 t clear
37479 :clear
37480 s/\\$//
37481 t bsnlc
37482 s/["\\]/\\&/g; s/^/"/; s/$/"/p
37483 d
37484 :bsnlc
37485 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37486 b cont
37487 ' <confdefs.h | sed '
37488 s/'"$ac_delim"'/"\\\
37489 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
37490
37491 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
37492 for (key in D) D_is_set[key] = 1
37493 FS = ""
37494 }
37495 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37496 line = \$ 0
37497 split(line, arg, " ")
37498 if (arg[1] == "#") {
37499 defundef = arg[2]
37500 mac1 = arg[3]
37501 } else {
37502 defundef = substr(arg[1], 2)
37503 mac1 = arg[2]
37504 }
37505 split(mac1, mac2, "(") #)
37506 macro = mac2[1]
37507 prefix = substr(line, 1, index(line, defundef) - 1)
37508 if (D_is_set[macro]) {
37509 suffix = P[macro] D[macro]
37510 while (suffix ~ /[\t ]$/) {
37511 suffix = substr(suffix, 1, length(suffix) - 1)
37512 }
37513 # Preserve the white space surrounding the "#".
37514 print prefix "define", macro suffix
37515 next
37516 } else {
37517 # Replace #undef with comments. This is necessary, for example,
37518 # in the case of _POSIX_SOURCE, which is predefined and required
37519 # on some systems where configure will not decide to define it.
37520 if (defundef == "undef") {
37521 print "/*", prefix defundef, macro, "*/"
37522 next
37523 }
37524 }
37525 }
37526 { print }
37527 _ACAWK
37528 _ACEOF
37529 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
37530 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
37531 fi # test -n "$CONFIG_HEADERS"
37532
37533
37534 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
37535 shift
37536 for ac_tag
37537 do
37538 case $ac_tag in
37539 :[FHLC]) ac_mode=$ac_tag; continue;;
37540 esac
37541 case $ac_mode$ac_tag in
37542 :[FHL]*:*);;
37543 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
37544 :[FH]-) ac_tag=-:-;;
37545 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37546 esac
37547 ac_save_IFS=$IFS
37548 IFS=:
37549 set x $ac_tag
37550 IFS=$ac_save_IFS
37551 shift
37552 ac_file=$1
37553 shift
37554
37555 case $ac_mode in
37556 :L) ac_source=$1;;
37557 :[FH])
37558 ac_file_inputs=
37559 for ac_f
37560 do
37561 case $ac_f in
37562 -) ac_f="$ac_tmp/stdin";;
37563 *) # Look for the file first in the build tree, then in the source tree
37564 # (if the path is not absolute). The absolute path cannot be DOS-style,
37565 # because $ac_f cannot contain ':'.
37566 test -f "$ac_f" ||
37567 case $ac_f in
37568 [\\/$]*) false;;
37569 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37570 esac ||
37571 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
37572 esac
37573 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37574 as_fn_append ac_file_inputs " '$ac_f'"
37575 done
37576
37577 # Let's still pretend it is 'configure' which instantiates (i.e., don't
37578 # use $as_me), people would be surprised to read:
37579 # /* config.h. Generated by config.status. */
37580 configure_input='Generated from '`
37581 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37582 `' by configure.'
37583 if test x"$ac_file" != x-; then
37584 configure_input="$ac_file. $configure_input"
37585 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
37586 printf '%s\n' "$as_me: creating $ac_file" >&6;}
37587 fi
37588 # Neutralize special characters interpreted by sed in replacement strings.
37589 case $configure_input in #(
37590 *\&* | *\|* | *\\* )
37591 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
37592 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37593 *) ac_sed_conf_input=$configure_input;;
37594 esac
37595
37596 case $ac_tag in
37597 *:-:* | *:-) cat >"$ac_tmp/stdin" \
37598 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
37599 esac
37600 ;;
37601 esac
37602
37603 ac_dir=`$as_dirname -- "$ac_file" ||
37604 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37605 X"$ac_file" : 'X\(//\)[^/]' \| \
37606 X"$ac_file" : 'X\(//\)$' \| \
37607 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37608 printf '%s\n' X"$ac_file" |
37609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37610 s//\1/
37611 q
37612 }
37613 /^X\(\/\/\)[^/].*/{
37614 s//\1/
37615 q
37616 }
37617 /^X\(\/\/\)$/{
37618 s//\1/
37619 q
37620 }
37621 /^X\(\/\).*/{
37622 s//\1/
37623 q
37624 }
37625 s/.*/./; q'`
37626 as_dir="$ac_dir"; as_fn_mkdir_p
37627 ac_builddir=.
37628
37629 case "$ac_dir" in
37630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37631 *)
37632 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
37633 # A ".." for each directory in $ac_dir_suffix.
37634 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37635 case $ac_top_builddir_sub in
37636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37638 esac ;;
37639 esac
37640 ac_abs_top_builddir=$ac_pwd
37641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
37642 # for backward compatibility:
37643 ac_top_builddir=$ac_top_build_prefix
37644
37645 case $srcdir in
37646 .) # We are building in place.
37647 ac_srcdir=.
37648 ac_top_srcdir=$ac_top_builddir_sub
37649 ac_abs_top_srcdir=$ac_pwd ;;
37650 [\\/]* | ?:[\\/]* ) # Absolute name.
37651 ac_srcdir=$srcdir$ac_dir_suffix;
37652 ac_top_srcdir=$srcdir
37653 ac_abs_top_srcdir=$srcdir ;;
37654 *) # Relative name.
37655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37656 ac_top_srcdir=$ac_top_build_prefix$srcdir
37657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37658 esac
37659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37660
37661
37662 case $ac_mode in
37663 :F)
37664 #
37665 # CONFIG_FILE
37666 #
37667
37668 case $INSTALL in
37669 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37670 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37671 esac
37672 ac_MKDIR_P=$MKDIR_P
37673 case $MKDIR_P in
37674 [\\/$]* | ?:[\\/]* ) ;;
37675 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37676 esac
37677 _ACEOF
37678
37679 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
37680 # If the template does not know about datarootdir, expand it.
37681 # FIXME: This hack should be removed a few years after 2.60.
37682 ac_datarootdir_hack=; ac_datarootdir_seen=
37683 ac_sed_dataroot='
37684 /datarootdir/ {
37685 p
37686 q
37687 }
37688 /@datadir@/p
37689 /@docdir@/p
37690 /@infodir@/p
37691 /@localedir@/p
37692 /@mandir@/p'
37693 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37694 *datarootdir*) ac_datarootdir_seen=yes;;
37695 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
37696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37697 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37698 _ACEOF
37699 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
37700 ac_datarootdir_hack='
37701 s&@datadir@&$datadir&g
37702 s&@docdir@&$docdir&g
37703 s&@infodir@&$infodir&g
37704 s&@localedir@&$localedir&g
37705 s&@mandir@&$mandir&g
37706 s&\\\${datarootdir}&$datarootdir&g' ;;
37707 esac
37708 _ACEOF
37709
37710 # Neutralize VPATH when '$srcdir' = '.'.
37711 # Shell code in configure.ac might set extrasub.
37712 # FIXME: do we really want to maintain this feature?
37713 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
37714 ac_sed_extra="$ac_vpsub
37715 $extrasub
37716 _ACEOF
37717 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
37718 :t
37719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37720 s|@configure_input@|$ac_sed_conf_input|;t t
37721 s&@top_builddir@&$ac_top_builddir_sub&;t t
37722 s&@top_build_prefix@&$ac_top_build_prefix&;t t
37723 s&@srcdir@&$ac_srcdir&;t t
37724 s&@abs_srcdir@&$ac_abs_srcdir&;t t
37725 s&@top_srcdir@&$ac_top_srcdir&;t t
37726 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37727 s&@builddir@&$ac_builddir&;t t
37728 s&@abs_builddir@&$ac_abs_builddir&;t t
37729 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37730 s&@INSTALL@&$ac_INSTALL&;t t
37731 s&@MKDIR_P@&$ac_MKDIR_P&;t t
37732 $ac_datarootdir_hack
37733 "
37734 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37735 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37736
37737 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37738 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37739 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37740 "$ac_tmp/out"`; test -z "$ac_out"; } &&
37741 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
37742 which seems to be undefined. Please make sure it is defined" >&5
37743 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
37744 which seems to be undefined. Please make sure it is defined" >&2;}
37745
37746 rm -f "$ac_tmp/stdin"
37747 case $ac_file in
37748 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37749 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
37750 esac \
37751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37752 ;;
37753 :H)
37754 #
37755 # CONFIG_HEADER
37756 #
37757 if test x"$ac_file" != x-; then
37758 {
37759 printf '%s\n' "/* $configure_input */" >&1 \
37760 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37761 } >"$ac_tmp/config.h" \
37762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37763 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
37764 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
37765 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
37766 else
37767 rm -f "$ac_file"
37768 mv "$ac_tmp/config.h" "$ac_file" \
37769 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37770 fi
37771 else
37772 printf '%s\n' "/* $configure_input */" >&1 \
37773 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
37774 || as_fn_error $? "could not create -" "$LINENO" 5
37775 fi
37776 # Compute "$ac_file"'s index in $config_headers.
37777 _am_arg="$ac_file"
37778 _am_stamp_count=1
37779 for _am_header in $config_headers :; do
37780 case $_am_header in
37781 $_am_arg | $_am_arg:* )
37782 break ;;
37783 * )
37784 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37785 esac
37786 done
37787 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37788 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37789 X"$_am_arg" : 'X\(//\)[^/]' \| \
37790 X"$_am_arg" : 'X\(//\)$' \| \
37791 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37792 printf '%s\n' X"$_am_arg" |
37793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37794 s//\1/
37795 q
37796 }
37797 /^X\(\/\/\)[^/].*/{
37798 s//\1/
37799 q
37800 }
37801 /^X\(\/\/\)$/{
37802 s//\1/
37803 q
37804 }
37805 /^X\(\/\).*/{
37806 s//\1/
37807 q
37808 }
37809 s/.*/./; q'`/stamp-h$_am_stamp_count
37810 ;;
37811 :L)
37812 #
37813 # CONFIG_LINK
37814 #
37815
37816 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
37817 :
37818 else
37819 # Prefer the file from the source tree if names are identical.
37820 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
37821 ac_source=$srcdir/$ac_source
37822 fi
37823
37824 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
37825 printf '%s\n' "$as_me: linking $ac_source to $ac_file" >&6;}
37826
37827 if test ! -r "$ac_source"; then
37828 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
37829 fi
37830 rm -f "$ac_file"
37831
37832 # Try a relative symlink, then a hard link, then a copy.
37833 case $ac_source in
37834 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
37835 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
37836 esac
37837 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
37838 ln "$ac_source" "$ac_file" 2>/dev/null ||
37839 cp -p "$ac_source" "$ac_file" ||
37840 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
37841 fi
37842 ;;
37843 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
37844 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
37845 ;;
37846 esac
37847
37848
37849 case $ac_file$ac_mode in
37850 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37851 # Older Autoconf quotes --file arguments for eval, but not when files
37852 # are listed without --file. Let's play safe and only enable the eval
37853 # if we detect the quoting.
37854 # TODO: see whether this extra hack can be removed once we start
37855 # requiring Autoconf 2.70 or later.
37856 case $CONFIG_FILES in #(
37857 *\'*) :
37858 eval set x "$CONFIG_FILES" ;; #(
37859 *) :
37860 set x $CONFIG_FILES ;; #(
37861 *) :
37862 ;;
37863 esac
37864 shift
37865 # Used to flag and report bootstrapping failures.
37866 am_rc=0
37867 for am_mf
37868 do
37869 # Strip MF so we end up with the name of the file.
37870 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
37871 # Check whether this is an Automake generated Makefile which includes
37872 # dependency-tracking related rules and includes.
37873 # Grep'ing the whole file directly is not great: AIX grep has a line
37874 # limit of 2048, but all sed's we know have understand at least 4000.
37875 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
37876 || continue
37877 am_dirpart=`$as_dirname -- "$am_mf" ||
37878 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37879 X"$am_mf" : 'X\(//\)[^/]' \| \
37880 X"$am_mf" : 'X\(//\)$' \| \
37881 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
37882 printf '%s\n' X"$am_mf" |
37883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37884 s//\1/
37885 q
37886 }
37887 /^X\(\/\/\)[^/].*/{
37888 s//\1/
37889 q
37890 }
37891 /^X\(\/\/\)$/{
37892 s//\1/
37893 q
37894 }
37895 /^X\(\/\).*/{
37896 s//\1/
37897 q
37898 }
37899 s/.*/./; q'`
37900 am_filepart=`$as_basename -- "$am_mf" ||
37901 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
37902 X"$am_mf" : 'X\(//\)$' \| \
37903 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
37904 printf '%s\n' X/"$am_mf" |
37905 sed '/^.*\/\([^/][^/]*\)\/*$/{
37906 s//\1/
37907 q
37908 }
37909 /^X\/\(\/\/\)$/{
37910 s//\1/
37911 q
37912 }
37913 /^X\/\(\/\).*/{
37914 s//\1/
37915 q
37916 }
37917 s/.*/./; q'`
37918 { echo "$as_me:$LINENO: cd "$am_dirpart" \
37919 && sed -e '/# am--include-marker/d' "$am_filepart" \
37920 | $MAKE -f - am--depfiles" >&5
37921 (cd "$am_dirpart" \
37922 && sed -e '/# am--include-marker/d' "$am_filepart" \
37923 | $MAKE -f - am--depfiles) >&5 2>&5
37924 ac_status=$?
37925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37926 (exit $ac_status); } || am_rc=$?
37927 done
37928 if test $am_rc -ne 0; then
37929 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
37930 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
37931 as_fn_error $? "Something went wrong bootstrapping makefile fragments
37932 for automatic dependency tracking. If GNU make was not used, consider
37933 re-running the configure script with MAKE=\"gmake\" (or whatever is
37934 necessary). You can also try re-running configure with the
37935 '--disable-dependency-tracking' option to at least be able to build
37936 the package (albeit without support for automatic dependency tracking).
37937 See 'config.log' for more details" "$LINENO" 5; }
37938 fi
37939 { am_dirpart=; unset am_dirpart;}
37940 { am_filepart=; unset am_filepart;}
37941 { am_mf=; unset am_mf;}
37942 { am_rc=; unset am_rc;}
37943 rm -f conftest-deps.mk
37944 }
37945 ;;
37946 "libtool":C)
37947
37948 # See if we are running on zsh, and set the options that allow our
37949 # commands through without removal of \ escapes.
37950 if test -n "${ZSH_VERSION+set}"; then
37951 setopt NO_GLOB_SUBST
37952 fi
37953
37954 cfgfile=${ofile}T
37955 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37956 $RM "$cfgfile"
37957
37958 cat <<_LT_EOF >> "$cfgfile"
37959 #! $SHELL
37960 # Generated automatically by $as_me ($PACKAGE) $VERSION
37961 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
37962
37963 # Provide generalized library-building support services.
37964 # Written by Gordon Matzigkeit, 1996
37965
37966 # Copyright (C) 2024 Free Software Foundation, Inc.
37967 # This is free software; see the source for copying conditions. There is NO
37968 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
37969
37970 # GNU Libtool is free software; you can redistribute it and/or modify
37971 # it under the terms of the GNU General Public License as published by
37972 # the Free Software Foundation; either version 2 of the License, or
37973 # (at your option) any later version.
37974 #
37975 # As a special exception to the GNU General Public License, if you
37976 # distribute this file as part of a program or library that is built
37977 # using GNU Libtool, you may include this file under the same
37978 # distribution terms that you use for the rest of that program.
37979 #
37980 # GNU Libtool is distributed in the hope that it will be useful, but
37981 # WITHOUT ANY WARRANTY; without even the implied warranty of
37982 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37983 # GNU General Public License for more details.
37984 #
37985 # You should have received a copy of the GNU General Public License
37986 # along with this program. If not, see <http://www.gnu.org/licenses/>.
37987
37988
37989 # The names of the tagged configurations supported by this script.
37990 available_tags='CXX '
37991
37992 # Configured defaults for sys_lib_dlsearch_path munging.
37993 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
37994
37995 # ### BEGIN LIBTOOL CONFIG
37996
37997 # Whether or not to build shared libraries.
37998 build_libtool_libs=$enable_shared
37999
38000 # Whether or not to build static libraries.
38001 build_old_libs=$enable_static
38002
38003 # Which release of libtool.m4 was used?
38004 macro_version=$macro_version
38005 macro_revision=$macro_revision
38006
38007 # Assembler program.
38008 AS=$lt_AS
38009
38010 # DLL creation program.
38011 DLLTOOL=$lt_DLLTOOL
38012
38013 # Object dumper program.
38014 OBJDUMP=$lt_OBJDUMP
38015
38016 # What type of objects to build.
38017 pic_mode=$pic_mode
38018
38019 # Whether or not to optimize for fast installation.
38020 fast_install=$enable_fast_install
38021
38022 # Shared archive member basename,for filename based shared library versioning on AIX.
38023 shared_archive_member_spec=$shared_archive_member_spec
38024
38025 # Shell to use when invoking shell scripts.
38026 SHELL=$lt_SHELL
38027
38028 # An echo program that protects backslashes.
38029 ECHO=$lt_ECHO
38030
38031 # The PATH separator for the build system.
38032 PATH_SEPARATOR=$lt_PATH_SEPARATOR
38033
38034 # The host system.
38035 host_alias=$host_alias
38036 host=$host
38037 host_os=$host_os
38038
38039 # The build system.
38040 build_alias=$build_alias
38041 build=$build
38042 build_os=$build_os
38043
38044 # A sed program that does not truncate output.
38045 SED=$lt_SED
38046
38047 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
38048 Xsed="\$SED -e 1s/^X//"
38049
38050 # A grep program that handles long lines.
38051 GREP=$lt_GREP
38052
38053 # An ERE matcher.
38054 EGREP=$lt_EGREP
38055
38056 # A literal string matcher.
38057 FGREP=$lt_FGREP
38058
38059 # A BSD- or MS-compatible name lister.
38060 NM=$lt_NM
38061
38062 # Whether we need soft or hard links.
38063 LN_S=$lt_LN_S
38064
38065 # What is the maximum length of a command?
38066 max_cmd_len=$max_cmd_len
38067
38068 # Object file suffix (normally "o").
38069 objext=$ac_objext
38070
38071 # Executable file suffix (normally "").
38072 exeext=$exeext
38073
38074 # whether the shell understands "unset".
38075 lt_unset=$lt_unset
38076
38077 # turn spaces into newlines.
38078 SP2NL=$lt_lt_SP2NL
38079
38080 # turn newlines into spaces.
38081 NL2SP=$lt_lt_NL2SP
38082
38083 # convert \$build file names to \$host format.
38084 to_host_file_cmd=$lt_cv_to_host_file_cmd
38085
38086 # convert \$build files to toolchain format.
38087 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38088
38089 # A file(cmd) program that detects file types.
38090 FILECMD=$lt_FILECMD
38091
38092 # Method to check whether dependent libraries are shared objects.
38093 deplibs_check_method=$lt_deplibs_check_method
38094
38095 # Command to use when deplibs_check_method = "file_magic".
38096 file_magic_cmd=$lt_file_magic_cmd
38097
38098 # How to find potential files when deplibs_check_method = "file_magic".
38099 file_magic_glob=$lt_file_magic_glob
38100
38101 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38102 want_nocaseglob=$lt_want_nocaseglob
38103
38104 # Command to associate shared and link libraries.
38105 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38106
38107 # The archiver.
38108 AR=$lt_AR
38109
38110 # Flags to create an archive (by configure).
38111 lt_ar_flags=$lt_ar_flags
38112
38113 # Flags to create an archive.
38114 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
38115
38116 # How to feed a file listing to the archiver.
38117 archiver_list_spec=$lt_archiver_list_spec
38118
38119 # A symbol stripping program.
38120 STRIP=$lt_STRIP
38121
38122 # Commands used to install an old-style archive.
38123 RANLIB=$lt_RANLIB
38124 old_postinstall_cmds=$lt_old_postinstall_cmds
38125 old_postuninstall_cmds=$lt_old_postuninstall_cmds
38126
38127 # Whether to use a lock for old archive extraction.
38128 lock_old_archive_extraction=$lock_old_archive_extraction
38129
38130 # A C compiler.
38131 LTCC=$lt_CC
38132
38133 # LTCC compiler flags.
38134 LTCFLAGS=$lt_CFLAGS
38135
38136 # Take the output of nm and produce a listing of raw symbols and C names.
38137 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38138
38139 # Transform the output of nm in a proper C declaration.
38140 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38141
38142 # Transform the output of nm into a list of symbols to manually relocate.
38143 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
38144
38145 # Transform the output of nm in a C name address pair.
38146 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38147
38148 # Transform the output of nm in a C name address pair when lib prefix is needed.
38149 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38150
38151 # The name lister interface.
38152 nm_interface=$lt_lt_cv_nm_interface
38153
38154 # Specify filename containing input files for \$NM.
38155 nm_file_list_spec=$lt_nm_file_list_spec
38156
38157 # The root where to search for dependent libraries,and where our libraries should be installed.
38158 lt_sysroot=$lt_sysroot
38159
38160 # Command to truncate a binary pipe.
38161 lt_truncate_bin=$lt_lt_cv_truncate_bin
38162
38163 # The name of the directory that contains temporary libtool files.
38164 objdir=$objdir
38165
38166 # Used to examine libraries when file_magic_cmd begins with "file".
38167 MAGIC_CMD=$MAGIC_CMD
38168
38169 # Must we lock files when doing compilation?
38170 need_locks=$lt_need_locks
38171
38172 # Manifest tool.
38173 MANIFEST_TOOL=$lt_MANIFEST_TOOL
38174
38175 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38176 DSYMUTIL=$lt_DSYMUTIL
38177
38178 # Tool to change global to local symbols on Mac OS X.
38179 NMEDIT=$lt_NMEDIT
38180
38181 # Tool to manipulate fat objects and archives on Mac OS X.
38182 LIPO=$lt_LIPO
38183
38184 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
38185 OTOOL=$lt_OTOOL
38186
38187 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38188 OTOOL64=$lt_OTOOL64
38189
38190 # Old archive suffix (normally "a").
38191 libext=$libext
38192
38193 # Shared library suffix (normally ".so").
38194 shrext_cmds=$lt_shrext_cmds
38195
38196 # The commands to extract the exported symbol list from a shared archive.
38197 extract_expsyms_cmds=$lt_extract_expsyms_cmds
38198
38199 # Variables whose values should be saved in libtool wrapper scripts and
38200 # restored at link time.
38201 variables_saved_for_relink=$lt_variables_saved_for_relink
38202
38203 # Do we need the "lib" prefix for modules?
38204 need_lib_prefix=$need_lib_prefix
38205
38206 # Do we need a version for libraries?
38207 need_version=$need_version
38208
38209 # Library versioning type.
38210 version_type=$version_type
38211
38212 # Shared library runtime path variable.
38213 runpath_var=$runpath_var
38214
38215 # Shared library path variable.
38216 shlibpath_var=$shlibpath_var
38217
38218 # Is shlibpath searched before the hard-coded library search path?
38219 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38220
38221 # Format of library name prefix.
38222 libname_spec=$lt_libname_spec
38223
38224 # List of archive names. First name is the real one, the rest are links.
38225 # The last name is the one that the linker finds with -lNAME
38226 library_names_spec=$lt_library_names_spec
38227
38228 # The coded name of the library, if different from the real name.
38229 soname_spec=$lt_soname_spec
38230
38231 # Permission mode override for installation of shared libraries.
38232 install_override_mode=$lt_install_override_mode
38233
38234 # Command to use after installation of a shared archive.
38235 postinstall_cmds=$lt_postinstall_cmds
38236
38237 # Command to use after uninstallation of a shared archive.
38238 postuninstall_cmds=$lt_postuninstall_cmds
38239
38240 # Commands used to finish a libtool library installation in a directory.
38241 finish_cmds=$lt_finish_cmds
38242
38243 # As "finish_cmds", except a single script fragment to be evaled but
38244 # not shown.
38245 finish_eval=$lt_finish_eval
38246
38247 # Whether we should hardcode library paths into libraries.
38248 hardcode_into_libs=$hardcode_into_libs
38249
38250 # Compile-time system search path for libraries.
38251 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38252
38253 # Detected run-time system search path for libraries.
38254 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
38255
38256 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
38257 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
38258
38259 # Whether dlopen is supported.
38260 dlopen_support=$enable_dlopen
38261
38262 # Whether dlopen of programs is supported.
38263 dlopen_self=$enable_dlopen_self
38264
38265 # Whether dlopen of statically linked programs is supported.
38266 dlopen_self_static=$enable_dlopen_self_static
38267
38268 # Commands to strip libraries.
38269 old_striplib=$lt_old_striplib
38270 striplib=$lt_striplib
38271
38272
38273 # The linker used to build libraries.
38274 LD=$lt_LD
38275
38276 # How to create reloadable object files.
38277 reload_flag=$lt_reload_flag
38278 reload_cmds=$lt_reload_cmds
38279
38280 # Commands used to build an old-style archive.
38281 old_archive_cmds=$lt_old_archive_cmds
38282
38283 # A language specific compiler.
38284 CC=$lt_compiler
38285
38286 # Is the compiler the GNU compiler?
38287 with_gcc=$GCC
38288
38289 # Compiler flag to turn off builtin functions.
38290 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38291
38292 # Additional compiler flags for building library objects.
38293 pic_flag=$lt_lt_prog_compiler_pic
38294
38295 # How to pass a linker flag through the compiler.
38296 wl=$lt_lt_prog_compiler_wl
38297
38298 # Compiler flag to prevent dynamic linking.
38299 link_static_flag=$lt_lt_prog_compiler_static
38300
38301 # Does compiler simultaneously support -c and -o options?
38302 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38303
38304 # Whether or not to add -lc for building shared libraries.
38305 build_libtool_need_lc=$archive_cmds_need_lc
38306
38307 # Whether or not to disallow shared libs when runtime libs are static.
38308 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38309
38310 # Compiler flag to allow reflexive dlopens.
38311 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38312
38313 # Compiler flag to generate shared objects directly from archives.
38314 whole_archive_flag_spec=$lt_whole_archive_flag_spec
38315
38316 # Whether the compiler copes with passing no objects directly.
38317 compiler_needs_object=$lt_compiler_needs_object
38318
38319 # Create an old-style archive from a shared archive.
38320 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38321
38322 # Create a temporary old-style archive to link instead of a shared archive.
38323 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38324
38325 # Commands used to build a shared archive.
38326 archive_cmds=$lt_archive_cmds
38327 archive_expsym_cmds=$lt_archive_expsym_cmds
38328
38329 # Commands used to build a loadable module if different from building
38330 # a shared archive.
38331 module_cmds=$lt_module_cmds
38332 module_expsym_cmds=$lt_module_expsym_cmds
38333
38334 # Whether we are building with GNU ld or not.
38335 with_gnu_ld=$lt_with_gnu_ld
38336
38337 # Flag that allows shared libraries with undefined symbols to be built.
38338 allow_undefined_flag=$lt_allow_undefined_flag
38339
38340 # Flag that enforces no undefined symbols.
38341 no_undefined_flag=$lt_no_undefined_flag
38342
38343 # Flag to hardcode \$libdir into a binary during linking.
38344 # This must work even if \$libdir does not exist
38345 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38346
38347 # Whether we need a single "-rpath" flag with a separated argument.
38348 hardcode_libdir_separator=$lt_hardcode_libdir_separator
38349
38350 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
38351 # DIR into the resulting binary.
38352 hardcode_direct=$hardcode_direct
38353
38354 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
38355 # DIR into the resulting binary and the resulting library dependency is
38356 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
38357 # library is relocated.
38358 hardcode_direct_absolute=$hardcode_direct_absolute
38359
38360 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38361 # into the resulting binary.
38362 hardcode_minus_L=$hardcode_minus_L
38363
38364 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38365 # into the resulting binary.
38366 hardcode_shlibpath_var=$hardcode_shlibpath_var
38367
38368 # Set to "yes" if building a shared library automatically hardcodes DIR
38369 # into the library and all subsequent libraries and executables linked
38370 # against it.
38371 hardcode_automatic=$hardcode_automatic
38372
38373 # Set to yes if linker adds runtime paths of dependent libraries
38374 # to runtime path list.
38375 inherit_rpath=$inherit_rpath
38376
38377 # Whether libtool must link a program against all its dependency libraries.
38378 link_all_deplibs=$link_all_deplibs
38379
38380 # Set to "yes" if exported symbols are required.
38381 always_export_symbols=$always_export_symbols
38382
38383 # The commands to list exported symbols.
38384 export_symbols_cmds=$lt_export_symbols_cmds
38385
38386 # Symbols that should not be listed in the preloaded symbols.
38387 exclude_expsyms=$lt_exclude_expsyms
38388
38389 # Symbols that must always be exported.
38390 include_expsyms=$lt_include_expsyms
38391
38392 # Commands necessary for linking programs (against libraries) with templates.
38393 prelink_cmds=$lt_prelink_cmds
38394
38395 # Commands necessary for finishing linking programs.
38396 postlink_cmds=$lt_postlink_cmds
38397
38398 # Specify filename containing input files.
38399 file_list_spec=$lt_file_list_spec
38400
38401 # How to hardcode a shared library path into an executable.
38402 hardcode_action=$hardcode_action
38403
38404 # The directories searched by this compiler when creating a shared library.
38405 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38406
38407 # Dependencies to place before and after the objects being linked to
38408 # create a shared library.
38409 predep_objects=$lt_predep_objects
38410 postdep_objects=$lt_postdep_objects
38411 predeps=$lt_predeps
38412 postdeps=$lt_postdeps
38413
38414 # The library search path used internally by the compiler when linking
38415 # a shared library.
38416 compiler_lib_search_path=$lt_compiler_lib_search_path
38417
38418 # ### END LIBTOOL CONFIG
38419
38420 _LT_EOF
38421
38422 cat <<'_LT_EOF' >> "$cfgfile"
38423
38424 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
38425
38426 # func_munge_path_list VARIABLE PATH
38427 # -----------------------------------
38428 # VARIABLE is name of variable containing _space_ separated list of
38429 # directories to be munged by the contents of PATH, which is string
38430 # having a format:
38431 # "DIR[:DIR]:"
38432 # string "DIR[ DIR]" will be prepended to VARIABLE
38433 # ":DIR[:DIR]"
38434 # string "DIR[ DIR]" will be appended to VARIABLE
38435 # "DIRP[:DIRP]::[DIRA:]DIRA"
38436 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
38437 # "DIRA[ DIRA]" will be appended to VARIABLE
38438 # "DIR[:DIR]"
38439 # VARIABLE will be replaced by "DIR[ DIR]"
38440 func_munge_path_list ()
38441 {
38442 case x$2 in
38443 x)
38444 ;;
38445 *:)
38446 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
38447 ;;
38448 x:*)
38449 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
38450 ;;
38451 *::*)
38452 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
38453 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
38454 ;;
38455 *)
38456 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
38457 ;;
38458 esac
38459 }
38460
38461
38462 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
38463 func_cc_basename ()
38464 {
38465 for cc_temp in $*""; do
38466 case $cc_temp in
38467 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
38468 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
38469 \-*) ;;
38470 *) break;;
38471 esac
38472 done
38473 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
38474 }
38475
38476
38477 # ### END FUNCTIONS SHARED WITH CONFIGURE
38478
38479 _LT_EOF
38480
38481 case $host_os in
38482 aix3*)
38483 cat <<\_LT_EOF >> "$cfgfile"
38484 # AIX sometimes has problems with the GCC collect2 program. For some
38485 # reason, if we set the COLLECT_NAMES environment variable, the problems
38486 # vanish in a puff of smoke.
38487 if test set != "${COLLECT_NAMES+set}"; then
38488 COLLECT_NAMES=
38489 export COLLECT_NAMES
38490 fi
38491 _LT_EOF
38492 ;;
38493 esac
38494
38495
38496
38497 ltmain=$ac_aux_dir/ltmain.sh
38498
38499
38500 # We use sed instead of cat because bash on DJGPP gets confused if
38501 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38502 # text mode, it properly converts lines to CR/LF. This bash problem
38503 # is reportedly fixed, but why not run on old versions too?
38504 $SED '$q' "$ltmain" >> "$cfgfile" \
38505 || (rm -f "$cfgfile"; exit 1)
38506
38507 mv -f "$cfgfile" "$ofile" ||
38508 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38509 chmod +x "$ofile"
38510
38511
38512 cat <<_LT_EOF >> "$ofile"
38513
38514 # ### BEGIN LIBTOOL TAG CONFIG: CXX
38515
38516 # The linker used to build libraries.
38517 LD=$lt_LD_CXX
38518
38519 # How to create reloadable object files.
38520 reload_flag=$lt_reload_flag_CXX
38521 reload_cmds=$lt_reload_cmds_CXX
38522
38523 # Commands used to build an old-style archive.
38524 old_archive_cmds=$lt_old_archive_cmds_CXX
38525
38526 # A language specific compiler.
38527 CC=$lt_compiler_CXX
38528
38529 # Is the compiler the GNU compiler?
38530 with_gcc=$GCC_CXX
38531
38532 # Compiler flag to turn off builtin functions.
38533 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38534
38535 # Additional compiler flags for building library objects.
38536 pic_flag=$lt_lt_prog_compiler_pic_CXX
38537
38538 # How to pass a linker flag through the compiler.
38539 wl=$lt_lt_prog_compiler_wl_CXX
38540
38541 # Compiler flag to prevent dynamic linking.
38542 link_static_flag=$lt_lt_prog_compiler_static_CXX
38543
38544 # Does compiler simultaneously support -c and -o options?
38545 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38546
38547 # Whether or not to add -lc for building shared libraries.
38548 build_libtool_need_lc=$archive_cmds_need_lc_CXX
38549
38550 # Whether or not to disallow shared libs when runtime libs are static.
38551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38552
38553 # Compiler flag to allow reflexive dlopens.
38554 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38555
38556 # Compiler flag to generate shared objects directly from archives.
38557 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38558
38559 # Whether the compiler copes with passing no objects directly.
38560 compiler_needs_object=$lt_compiler_needs_object_CXX
38561
38562 # Create an old-style archive from a shared archive.
38563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38564
38565 # Create a temporary old-style archive to link instead of a shared archive.
38566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38567
38568 # Commands used to build a shared archive.
38569 archive_cmds=$lt_archive_cmds_CXX
38570 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38571
38572 # Commands used to build a loadable module if different from building
38573 # a shared archive.
38574 module_cmds=$lt_module_cmds_CXX
38575 module_expsym_cmds=$lt_module_expsym_cmds_CXX
38576
38577 # Whether we are building with GNU ld or not.
38578 with_gnu_ld=$lt_with_gnu_ld_CXX
38579
38580 # Flag that allows shared libraries with undefined symbols to be built.
38581 allow_undefined_flag=$lt_allow_undefined_flag_CXX
38582
38583 # Flag that enforces no undefined symbols.
38584 no_undefined_flag=$lt_no_undefined_flag_CXX
38585
38586 # Flag to hardcode \$libdir into a binary during linking.
38587 # This must work even if \$libdir does not exist
38588 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38589
38590 # Whether we need a single "-rpath" flag with a separated argument.
38591 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38592
38593 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
38594 # DIR into the resulting binary.
38595 hardcode_direct=$hardcode_direct_CXX
38596
38597 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
38598 # DIR into the resulting binary and the resulting library dependency is
38599 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
38600 # library is relocated.
38601 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38602
38603 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38604 # into the resulting binary.
38605 hardcode_minus_L=$hardcode_minus_L_CXX
38606
38607 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38608 # into the resulting binary.
38609 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38610
38611 # Set to "yes" if building a shared library automatically hardcodes DIR
38612 # into the library and all subsequent libraries and executables linked
38613 # against it.
38614 hardcode_automatic=$hardcode_automatic_CXX
38615
38616 # Set to yes if linker adds runtime paths of dependent libraries
38617 # to runtime path list.
38618 inherit_rpath=$inherit_rpath_CXX
38619
38620 # Whether libtool must link a program against all its dependency libraries.
38621 link_all_deplibs=$link_all_deplibs_CXX
38622
38623 # Set to "yes" if exported symbols are required.
38624 always_export_symbols=$always_export_symbols_CXX
38625
38626 # The commands to list exported symbols.
38627 export_symbols_cmds=$lt_export_symbols_cmds_CXX
38628
38629 # Symbols that should not be listed in the preloaded symbols.
38630 exclude_expsyms=$lt_exclude_expsyms_CXX
38631
38632 # Symbols that must always be exported.
38633 include_expsyms=$lt_include_expsyms_CXX
38634
38635 # Commands necessary for linking programs (against libraries) with templates.
38636 prelink_cmds=$lt_prelink_cmds_CXX
38637
38638 # Commands necessary for finishing linking programs.
38639 postlink_cmds=$lt_postlink_cmds_CXX
38640
38641 # Specify filename containing input files.
38642 file_list_spec=$lt_file_list_spec_CXX
38643
38644 # How to hardcode a shared library path into an executable.
38645 hardcode_action=$hardcode_action_CXX
38646
38647 # The directories searched by this compiler when creating a shared library.
38648 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38649
38650 # Dependencies to place before and after the objects being linked to
38651 # create a shared library.
38652 predep_objects=$lt_predep_objects_CXX
38653 postdep_objects=$lt_postdep_objects_CXX
38654 predeps=$lt_predeps_CXX
38655 postdeps=$lt_postdeps_CXX
38656
38657 # The library search path used internally by the compiler when linking
38658 # a shared library.
38659 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38660
38661 # ### END LIBTOOL TAG CONFIG: CXX
38662 _LT_EOF
38663
38664 ;;
38665 "chmoding-scripts":C) chmod +x \
38666 tests/hwloc/linux/test-topology.sh \
38667 tests/hwloc/x86/test-topology.sh \
38668 tests/hwloc/x86+linux/test-topology.sh \
38669 tests/hwloc/xml/test-topology.sh \
38670 tests/hwloc/linux/allowed/test-topology.sh \
38671 tests/hwloc/linux/gather/test-gather-topology.sh \
38672 tests/hwloc/wrapper.sh \
38673 utils/hwloc/hwloc-compress-dir \
38674 utils/hwloc/hwloc-gather-topology \
38675 utils/hwloc/test-hwloc-annotate.sh \
38676 utils/hwloc/test-hwloc-calc.sh \
38677 utils/hwloc/test-hwloc-compress-dir.sh \
38678 utils/hwloc/test-hwloc-diffpatch.sh \
38679 utils/hwloc/test-hwloc-distrib.sh \
38680 utils/hwloc/test-hwloc-info.sh \
38681 utils/hwloc/test-build-custom-topology.sh \
38682 utils/hwloc/test-fake-plugin.sh \
38683 utils/hwloc/test-parsing-flags.sh \
38684 utils/hwloc/test-hwloc-dump-hwdata/test-hwloc-dump-hwdata.sh \
38685 utils/lstopo/test-lstopo.sh \
38686 utils/lstopo/test-lstopo-shmem.sh \
38687 contrib/completion/test-bash-completion.sh ;;
38688
38689 esac
38690 done # for ac_tag
38691
38692
38693 as_fn_exit 0
38694 _ACEOF
38695 ac_clean_CONFIG_STATUS=
38696
38697 test $ac_write_fail = 0 ||
38698 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
38699
38700
38701 # configure is writing to config.log, and then calls config.status.
38702 # config.status does its own redirection, appending to config.log.
38703 # Unfortunately, on DOS this fails, as config.log is still kept open
38704 # by configure, so config.status won't be able to write to it; its
38705 # output is simply discarded. So we exec the FD to /dev/null,
38706 # effectively closing config.log, so it can be properly (re)opened and
38707 # appended to by config.status. When coming back to configure, we
38708 # need to make the FD available again.
38709 if test "$no_create" != yes; then
38710 ac_cs_success=:
38711 case $CONFIG_STATUS in #(
38712 -*) :
38713 ac_no_opts=-- ;; #(
38714 *) :
38715 ac_no_opts= ;;
38716 esac
38717 ac_config_status_args=
38718 test "$silent" = yes &&
38719 ac_config_status_args="$ac_config_status_args --quiet"
38720 exec 5>/dev/null
38721 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
38722 ac_cs_success=false
38723 exec 5>>config.log
38724 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38725 # would make configure fail if this is the last instruction.
38726 $ac_cs_success || as_fn_exit 1
38727 fi
38728 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
38729 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38730 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38731 fi
38732
38733
38734 # Warn if we didn't have pkg-config
38735 if test "x$PKG_CONFIG" = x; then
38736 cat << EOF
38737
38738 ************************************************************************
38739 Could not detect/enable some features such as libxml2 and Cairo support
38740 because pkg-config isn't available.
38741 ************************************************************************
38742 EOF
38743 fi
38744
38745 # Show which optional support we'll be building
38746 hwloc_xml_status=basic
38747 if test "$hwloc_libxml2_happy" = "yes"
38748 then :
38749 hwloc_xml_status=full
38750 fi
38751
38752 if test "$enable_embedded_mode" = "yes"
38753 then :
38754 hwloc_graphical_lstopo_status="no (disabled in embedded mode)"
38755 else case e in #(
38756 e) if test "$hwloc_windows" = "yes"
38757 then :
38758 hwloc_graphical_lstopo_status="yes (Windows)"
38759 else case e in #(
38760 e) if test "$hwloc_cairo_happy" = "yes"
38761 then :
38762 if test "$lstopo_have_x11" = "yes"
38763 then :
38764 hwloc_graphical_lstopo_status="yes (Cairo)"
38765 else case e in #(
38766 e) hwloc_graphical_lstopo_status="partial (Cairo, without X11)" ;;
38767 esac
38768 fi
38769 else case e in #(
38770 e) hwloc_graphical_lstopo_status="no" ;;
38771 esac
38772 fi
38773 ;;
38774 esac
38775 fi
38776 ;;
38777 esac
38778 fi
38779
38780 # Prepare the I/O summary
38781 hwloc_probeio_list=
38782 if test "x$hwloc_pciaccess_happy" = "xyes" -o "x$hwloc_linuxpci_happy" = "xyes"; then
38783 test "x$hwloc_pciaccess_happy" = "xyes" && hwloc_probepci_list=pciaccess
38784 test "x$hwloc_pciaccess_happy$hwloc_linuxpci_happy" = "xyesyes" && hwloc_probepci_list="${hwloc_probepci_list}+"
38785 test "x$hwloc_linuxio_happy" = "xyes" && hwloc_probepci_list="${hwloc_probepci_list}linux"
38786 hwloc_probeio_list="$hwloc_probeio_list PCI($hwloc_probepci_list)"
38787 fi
38788 test "x$hwloc_linuxio_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list LinuxIO"
38789 test "x$hwloc_opencl_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list OpenCL"
38790 test "x$hwloc_have_cudart" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list CUDA"
38791 if test "x$hwloc_nvml_happy" = "xyes" ; then
38792 hwloc_probeio_list="$hwloc_probeio_list NVML"
38793 fi
38794 test "x$hwloc_rsmi_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list RSMI"
38795 test "x$hwloc_levelzero_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list LevelZero"
38796 test "x$hwloc_gl_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list GL"
38797 # if nothing, say "no"
38798 test "x$hwloc_probeio_list" = "x" && hwloc_probeio_list=" no"
38799
38800 if test "x$hwloc_nvml_happy" = "xyes" -a "x$hwloc_nvml_warning" = "xyes"; then
38801 hwloc_nvml_status="yes, but not functional on this machine (see warning above)"
38802 cat <<EOF
38803
38804 ************************************************************************
38805 WARNING: NVIDIA Management Library (NVML) was detected, but programs
38806 linked against it cannot run on this machine. This situation often
38807 indicates that this machine does not have the hardware necessary to run
38808 the library.
38809
38810 Sometimes, the machine building hwloc differs from the machine where
38811 hwloc will be running. As such, this warning can be ignored if you know
38812 that the library is functional where you intend to run hwloc.
38813 However, if that is not the situation, you may want to disable NVML
38814 support in hwloc with the --disable-nvml option in configure.
38815 ************************************************************************
38816 EOF
38817 fi
38818
38819 if test "x$hwloc_have_cudart" = xyes -a "x$hwloc_cuda_warning" = xyes; then
38820 hwloc_cuda_status="yes, but not in LD_LIBRARY_PATH or ld.so.conf (see warning above)"
38821 cat <<EOF
38822
38823 ************************************************************************
38824 WARNING: The NVIDIA CUDA library was detected with link options
38825 $HWLOC_CUDART_LIBS $HWLOC_CUDART_LDFLAGS
38826 but programs linked against it cannot run.
38827 This often indicates that the CUDA RT lib path is missing in
38828 ld.so.conf and LD_LIBRARY_PATH. If unneeded, this dependency may
38829 be removed from hwloc by passing --disable-cuda to configure.
38830 ************************************************************************
38831 EOF
38832 fi
38833
38834 if test "x$hwloc_rsmi_amd_happy" = xyes -a "x$hwloc_amdsmi_warning" = xyes; then
38835 hwloc_rsmi_status="yes, but not in LD_LIBRARY_PATH or ld.so.conf (see warning above)"
38836 cat <<EOF
38837
38838 ************************************************************************
38839 WARNING: The AMD SMI library was detected with link options
38840 $HWLOC_AMD_SMI_LIBS $HWLOC_RSMI_LDFLAGS
38841 but programs linked against it cannot run.
38842 This often indicates that the AMD SMI lib path is missing in
38843 ld.so.conf and LD_LIBRARY_PATH. If unneeded, this dependency may
38844 be removed from hwloc by passing --disable-rsmi-amd to configure.
38845 ************************************************************************
38846 EOF
38847 fi
38848
38849 if test "x$hwloc_rsmi_rocm_happy" = xyes -a "x$hwloc_rsmi_warning" = xyes; then
38850 hwloc_rsmi_status="yes, but not in LD_LIBRARY_PATH or ld.so.conf (see warning above)"
38851 cat <<EOF
38852
38853 ************************************************************************
38854 WARNING: The AMD ROCm SMI library was detected with link options
38855 $HWLOC_ROCM_SMI_LIBS $HWLOC_RSMI_LDFLAGS
38856 but programs linked against it cannot run.
38857 This often indicates that the ROCm SMI lib path is missing in
38858 ld.so.conf and LD_LIBRARY_PATH. If unneeded, this dependency may
38859 be removed from hwloc by passing --disable-rsmi-rocm to configure.
38860 ************************************************************************
38861 EOF
38862 fi
38863
38864 # Beginning of generic support
38865 cat <<EOF
38866
38867 -----------------------------------------------------------------------------
38868 Hwloc optional build support status (more details can be found above):
38869
38870 Probe / display I/O devices:$hwloc_probeio_list
38871 EOF
38872 if test "x$hwloc_cuda_status" != x; then
38873 cat <<EOF
38874 CUDA status: $hwloc_cuda_status
38875 EOF
38876 fi
38877 if test "x$hwloc_nvml_status" != x; then
38878 cat <<EOF
38879 NVML status: $hwloc_nvml_status
38880 EOF
38881 fi
38882 if test "x$hwloc_rsmi_status" != x; then
38883 cat <<EOF
38884 AMD/ROCm SMI status: $hwloc_rsmi_status
38885 EOF
38886 fi
38887 cat <<EOF
38888 Graphical output: $hwloc_graphical_lstopo_status
38889 XML input / output: $hwloc_xml_status
38890 EOF
38891
38892 # Plugin support
38893 hwloc_plugin_summary=$hwloc_have_plugins
38894 test "x$hwloc_plugin_components" != "x" && hwloc_plugin_summary="$hwloc_plugins_load ("`echo $hwloc_plugin_components`")" # echo removes the starting space
38895 cat <<EOF
38896 Plugin support: $hwloc_plugin_summary
38897 EOF
38898
38899 # End of generic support
38900 cat <<EOF
38901 -----------------------------------------------------------------------------
38902
38903 EOF
38904