Debian Codegraph @

src/mpi/datatype/typerep/yaksa/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for yaksa unreleased.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='yaksa'
589 PACKAGE_TARNAME='yaksa'
590 PACKAGE_VERSION='unreleased'
591 PACKAGE_STRING='yaksa unreleased'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 HIP_GENCODE
636 BUILD_HIP_BACKEND_FALSE
637 BUILD_HIP_BACKEND_TRUE
638 HIPCC
639 BUILD_ZE_NATIVE_MULTIPLE_FALSE
640 BUILD_ZE_NATIVE_MULTIPLE_TRUE
641 BUILD_ZE_NATIVE_FALSE
642 BUILD_ZE_NATIVE_TRUE
643 extra_ocloc_options
644 enable_ze_native
645 BUILD_ZE_TESTS_FALSE
646 BUILD_ZE_TESTS_TRUE
647 BUILD_ZE_BACKEND_FALSE
648 BUILD_ZE_BACKEND_TRUE
649 CUDA_GENCODE
650 BUILD_CUDA_TESTS_FALSE
651 BUILD_CUDA_TESTS_TRUE
652 BUILD_CUDA_BACKEND_FALSE
653 BUILD_CUDA_BACKEND_TRUE
654 NVCC
655 HAVE_C11_ATOMICS_FALSE
656 HAVE_C11_ATOMICS_TRUE
657 EMBEDDED_BUILD_FALSE
658 EMBEDDED_BUILD_TRUE
659 CPP
660 LT_SYS_LIBRARY_PATH
661 OTOOL64
662 OTOOL
663 LIPO
664 NMEDIT
665 DSYMUTIL
666 MANIFEST_TOOL
667 RANLIB
668 DLLTOOL
669 OBJDUMP
670 LN_S
671 NM
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LD
675 FGREP
676 EGREP
677 GREP
678 SED
679 host_os
680 host_vendor
681 host_cpu
682 host
683 build_os
684 build_vendor
685 build_cpu
686 build
687 LIBTOOL
688 ac_ct_AR
689 AR
690 am__fastdepCCAS_FALSE
691 am__fastdepCCAS_TRUE
692 CCASDEPMODE
693 CCASFLAGS
694 CCAS
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__nodep
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 AM_BACKSLASH
712 AM_DEFAULT_VERBOSITY
713 AM_DEFAULT_V
714 AM_V
715 CSCOPE
716 ETAGS
717 CTAGS
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
723 AWK
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 YAKSA_NUMVERSION
742 libyaksa_so_version
743 YAKSA_VERSION
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 localstatedir
764 sharedstatedir
765 sysconfdir
766 datadir
767 datarootdir
768 libexecdir
769 sbindir
770 bindir
771 program_transform_name
772 prefix
773 exec_prefix
774 PACKAGE_URL
775 PACKAGE_BUGREPORT
776 PACKAGE_STRING
777 PACKAGE_VERSION
778 PACKAGE_TARNAME
779 PACKAGE_NAME
780 PATH_SEPARATOR
781 SHELL
782 am__quote'
783 ac_subst_files=''
784 ac_user_opts='
785 enable_option_checking
786 enable_silent_rules
787 enable_dependency_tracking
788 enable_shared
789 enable_static
790 with_pic
791 enable_fast_install
792 with_aix_soname
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 enable_visibility
797 enable_strict
798 enable_embedded
799 enable_g
800 enable_debug
801 enable_fast
802 with_cuda_sm
803 with_cuda
804 with_cuda_include
805 with_cuda_lib
806 enable_cuda_p2p
807 with_ze
808 with_ze_include
809 with_ze_lib
810 enable_ze_p2p
811 enable_ze_revision_id
812 enable_ze_native
813 with_hip_sm
814 with_hip
815 with_hip_include
816 with_hip_lib
817 enable_hip_p2p
818 '
819 ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 CC
823 CFLAGS
824 LDFLAGS
825 LIBS
826 CPPFLAGS
827 CCAS
828 CCASFLAGS
829 LT_SYS_LIBRARY_PATH
830 CPP
831 NVCC'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures yaksa unreleased to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/yaksa]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of yaksa unreleased:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-silent-rules less verbose build output (undo: "make V=1")
1451 --disable-silent-rules verbose build output (undo: "make V=0")
1452 --enable-dependency-tracking
1453 do not reject slow dependency extractors
1454 --disable-dependency-tracking
1455 speeds up one-time build
1456 --enable-shared[=PKGS] build shared libraries [default=yes]
1457 --enable-static[=PKGS] build static libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --enable-visibility enable visibility feature of certain
1462 compilers/linkers (default: enabled on platforms
1463 that support it)
1464 --enable-strict Turn on strict compilation testing
1465 --enable-embedded enables embedded builds
1466 --enable-g alias for --enable-debug
1467 --enable-debug adds -g to CFLAGS
1468 --enable-fast=O<opt> adds -O<opt> to CFLAGS
1469 --enable-cuda-p2p={yes|no|cliques}
1470 controls CUDA P2P capability
1471 --enable-ze-p2p={yes|no|cliques}
1472 controls ZE P2P capability
1473 --enable-ze-revision-id=int
1474 specify revision id
1475 --enable-ze-native=device
1476 compile GPU kernel to native binary
1477 --enable-hip-p2p={yes|no|cliques}
1478 controls HIP P2P capability
1479
1480 Optional Packages:
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1484 both]
1485 --with-aix-soname=aix|svr4|both
1486 shared library versioning (aka "SONAME") variant to
1487 provide on AIX, [default=aix].
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1489 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1490 compiler's sysroot if not specified).
1491
1492 --with-cuda-sm=<options> (https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/)
1493 Comma-separated list of below options:
1494 auto - automatically build compatibility for all GPUs visible, any other specified compatibilities are ignored
1495 all-major - build compatibility for all major GPU versions (sm_*0) supported by the CUDA version
1496
1497 # Kepler architecture
1498 kepler - build compatibility for all Kepler GPUs
1499 30 - generic kepler architecture (generic - Tesla K40/K80, GeForce 700, GT-730)
1500 35 - specific Tesla K40 (adds support for dynamic parallelism)
1501 37 - specific Tesla K80 (adds more registers)
1502
1503 # Maxwell architecture
1504 maxwell - build compatibility for all Maxwell GPUs
1505 50 - Tesla/Quadro M series
1506 52 - Quadro M6000, GeForce 900, GTX-970, GTX-980, GTX Titan X
1507 53 - Tegra (Jetson) TX1 / Tegra X1, Drive CX, Drive PX, Jetson Nano
1508
1509 # Pascal architecture
1510 pascal - build compatibility for all Pascal GPUs
1511 60 - Quadro GP100, Tesla P100, DGX-1 (Generic Pascal)
1512 61 - GTX 1080, GTX 1070, GTX 1060, GTX 1050, GTX 1030, Titan Xp,
1513 Tesla P40, Tesla P4, Discrete GPU on the NVIDIA Drive PX2
1514 62 - Integrated GPU on the NVIDIA Drive PX2, Tegra (Jetson) TX2
1515
1516 # Volta architecture
1517 volta - build compatibility for all Volta GPUs
1518 70 - DGX-1 with Volta, Tesla V100, GTX 1180 (GV104), Titan V, Quadro GV100
1519 72 - Jetson AGX Xavier, Drive AGX Pegasus, Xavier NX
1520
1521 # Turing architecture
1522 turing - build compatibility for all Turing GPUs
1523 75 - GTX/RTX Turing - GTX 1660 Ti, RTX 2060, RTX 2070, RTX 2080, Titan RTX,
1524 Quadro RTX 4000, Quadro RTX 5000, Quadro RTX 6000, Quadro RTX 8000,
1525 Quadro T1000/T2000, Tesla T4
1526
1527 # Ampere architecture
1528 ampere - build compatibility for all Ampere GPUs
1529 80 - A100, A30
1530 86 - RTX Ampere, MX570, A40, A16, A10, A2
1531 87 - Jetson AGX Orin and Drive AGX Orin
1532
1533 # Ada architecture
1534 ada - build compatibility for all Ada GPUs
1535 89 - GeForce RTX 4090, RTX 4080, RTX 6000, Tesla L40
1536
1537 # Hopper architecture
1538 hopper - build compatibility for all Hopper GPUs
1539 90 - NVIDIA H100 (GH100)
1540 90a - add acceleration for features like wgmma and setmaxnreg. Required for NVIDIA CUTLASS
1541
1542 # Other
1543 <numeric> - specific SM numeric to use
1544
1545 --with-cuda=PATH specify path where cuda include directory and lib
1546 directory can be found
1547
1548 --with-cuda-include=PATH
1549 specify path where cuda include directory can be
1550 found
1551 --with-cuda-lib=PATH specify path where cuda lib directory can be found
1552 --with-ze=PATH specify path where ze include directory and lib
1553 directory can be found
1554
1555 --with-ze-include=PATH specify path where ze include directory can be found
1556 --with-ze-lib=PATH specify path where ze lib directory can be found
1557
1558 --with-hip-sm=<options>
1559 Comma-separated list of below options:
1560 auto - let HIPCC to auto detect the target_id
1561 <numeric> - specific target_id to use, see https://llvm.org/docs/AMDGPUUsage.html
1562
1563 --with-hip=PATH specify path where hip include directory and lib
1564 directory can be found
1565
1566 --with-hip-include=PATH specify path where hip include directory can be
1567 found
1568 --with-hip-lib=PATH specify path where hip lib directory can be found
1569
1570 Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
1578 CCAS assembler compiler command (defaults to CC)
1579 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1580 LT_SYS_LIBRARY_PATH
1581 User-defined run-time library search path.
1582 CPP C preprocessor
1583 NVCC nvcc compiler to use
1584
1585 Use these variables to override the choices made by `configure' or to help
1586 it to find libraries and programs with nonstandard names/locations.
1587
1588 Report bugs to the package provider.
1589 _ACEOF
1590 ac_status=$?
1591 fi
1592
1593 if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
1595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1598 continue
1599 ac_builddir=.
1600
1601 case "$ac_dir" in
1602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 *)
1604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610 esac ;;
1611 esac
1612 ac_abs_top_builddir=$ac_pwd
1613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir=$ac_top_build_prefix
1616
1617 case $srcdir in
1618 .) # We are building in place.
1619 ac_srcdir=.
1620 ac_top_srcdir=$ac_top_builddir_sub
1621 ac_abs_top_srcdir=$ac_pwd ;;
1622 [\\/]* | ?:[\\/]* ) # Absolute name.
1623 ac_srcdir=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir=$srcdir
1625 ac_abs_top_srcdir=$srcdir ;;
1626 *) # Relative name.
1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630 esac
1631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632
1633 cd "$ac_dir" || { ac_status=$?; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1636 echo &&
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure" --help=recursive
1641 else
1642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 fi || ac_status=$?
1644 cd "$ac_pwd" || { ac_status=$?; break; }
1645 done
1646 fi
1647
1648 test -n "$ac_init_help" && exit $ac_status
1649 if $ac_init_version; then
1650 cat <<\_ACEOF
1651 yaksa configure unreleased
1652 generated by GNU Autoconf 2.69
1653
1654 Copyright (C) 2012 Free Software Foundation, Inc.
1655 This configure script is free software; the Free Software Foundation
1656 gives unlimited permission to copy, distribute and modify it.
1657 _ACEOF
1658 exit
1659 fi
1660
1661 ## ------------------------ ##
1662 ## Autoconf initialization. ##
1663 ## ------------------------ ##
1664
1665 # ac_fn_c_try_compile LINENO
1666 # --------------------------
1667 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_compile ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 rm -f conftest.$ac_objext
1672 if { { ac_try="$ac_compile"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_compile") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest.$ac_objext; then :
1691 ac_retval=0
1692 else
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1
1697 fi
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_compile
1702
1703 # ac_fn_c_try_link LINENO
1704 # -----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_link ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext conftest$ac_exeext
1710 if { { ac_try="$ac_link"
1711 case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1723 fi
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest$ac_exeext && {
1729 test "$cross_compiling" = yes ||
1730 test -x conftest$ac_exeext
1731 }; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738 fi
1739 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1740 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1741 # interfere with the next link command; also delete a directory that is
1742 # left behind by Apple's compiler. We do this before executing the actions.
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1746
1747 } # ac_fn_c_try_link
1748
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1760 else
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 $4
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767 eval "$3=yes"
1768 else
1769 eval "$3=no"
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 fi
1773 eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_header_compile
1779
1780 # ac_fn_c_try_cpp LINENO
1781 # ----------------------
1782 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_cpp ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if { { ac_try="$ac_cpp conftest.$ac_ext"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } > conftest.i && {
1802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 }; then :
1805 ac_retval=0
1806 else
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=1
1811 fi
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1814
1815 } # ac_fn_c_try_cpp
1816
1817 # ac_fn_c_try_run LINENO
1818 # ----------------------
1819 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1820 # that executables *can* be run.
1821 ac_fn_c_try_run ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { { ac_try="$ac_link"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_link") 2>&5
1832 ac_status=$?
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1835 { { case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_try") 2>&5
1842 ac_status=$?
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; }; }; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: program exited with status $ac_status" >&5
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=$ac_status
1852 fi
1853 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1856
1857 } # ac_fn_c_try_run
1858
1859 # ac_fn_c_check_func LINENO FUNC VAR
1860 # ----------------------------------
1861 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1862 ac_fn_c_check_func ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1869 else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1874 #define $2 innocuous_$2
1875
1876 /* System header to define __stub macros and hopefully few prototypes,
1877 which can conflict with char $2 (); below.
1878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1879 <limits.h> exists even on freestanding compilers. */
1880
1881 #ifdef __STDC__
1882 # include <limits.h>
1883 #else
1884 # include <assert.h>
1885 #endif
1886
1887 #undef $2
1888
1889 /* Override any GCC internal prototype to avoid an error.
1890 Use char because int might match the return type of a GCC
1891 builtin and then its argument prototype would still apply. */
1892 #ifdef __cplusplus
1893 extern "C"
1894 #endif
1895 char $2 ();
1896 /* The GNU C library defines this for functions which it implements
1897 to always fail with ENOSYS. Some functions are actually named
1898 something starting with __ and the normal name is an alias. */
1899 #if defined __stub_$2 || defined __stub___$2
1900 choke me
1901 #endif
1902
1903 int
1904 main ()
1905 {
1906 return $2 ();
1907 ;
1908 return 0;
1909 }
1910 _ACEOF
1911 if ac_fn_c_try_link "$LINENO"; then :
1912 eval "$3=yes"
1913 else
1914 eval "$3=no"
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext \
1917 conftest$ac_exeext conftest.$ac_ext
1918 fi
1919 eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923
1924 } # ac_fn_c_check_func
1925
1926 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1927 # -------------------------------------------------------
1928 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1929 # the include files in INCLUDES and setting the cache variable VAR
1930 # accordingly.
1931 ac_fn_c_check_header_mongrel ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 if eval \${$3+:} false; then :
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939 fi
1940 eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 else
1944 # Is the header compilable?
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1946 $as_echo_n "checking $2 usability... " >&6; }
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1949 $4
1950 #include <$2>
1951 _ACEOF
1952 if ac_fn_c_try_compile "$LINENO"; then :
1953 ac_header_compiler=yes
1954 else
1955 ac_header_compiler=no
1956 fi
1957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1959 $as_echo "$ac_header_compiler" >&6; }
1960
1961 # Is the header present?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1963 $as_echo_n "checking $2 presence... " >&6; }
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 #include <$2>
1967 _ACEOF
1968 if ac_fn_c_try_cpp "$LINENO"; then :
1969 ac_header_preproc=yes
1970 else
1971 ac_header_preproc=no
1972 fi
1973 rm -f conftest.err conftest.i conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1975 $as_echo "$ac_header_preproc" >&6; }
1976
1977 # So? What about this header?
1978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1979 yes:no: )
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1981 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 ;;
1985 no:yes:* )
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1987 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1989 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1991 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1993 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 ;;
1997 esac
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2002 else
2003 eval "$3=\$ac_header_compiler"
2004 fi
2005 eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 fi
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011 } # ac_fn_c_check_header_mongrel
2012
2013 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2014 # --------------------------------------------
2015 # Tries to find the compile-time value of EXPR in a program that includes
2016 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2017 # computed
2018 ac_fn_c_compute_int ()
2019 {
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 if test "$cross_compiling" = yes; then
2022 # Depending upon the size, compute the lo and hi bounds.
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 int
2027 main ()
2028 {
2029 static int test_array [1 - 2 * !(($2) >= 0)];
2030 test_array [0] = 0;
2031 return test_array [0];
2032
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_lo=0 ac_mid=0
2039 while :; do
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 $4
2043 int
2044 main ()
2045 {
2046 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2047 test_array [0] = 0;
2048 return test_array [0];
2049
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_hi=$ac_mid; break
2056 else
2057 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2058 if test $ac_lo -le $ac_mid; then
2059 ac_lo= ac_hi=
2060 break
2061 fi
2062 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 done
2066 else
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 $4
2070 int
2071 main ()
2072 {
2073 static int test_array [1 - 2 * !(($2) < 0)];
2074 test_array [0] = 0;
2075 return test_array [0];
2076
2077 ;
2078 return 0;
2079 }
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_hi=-1 ac_mid=-1
2083 while :; do
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 $4
2087 int
2088 main ()
2089 {
2090 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2091 test_array [0] = 0;
2092 return test_array [0];
2093
2094 ;
2095 return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_lo=$ac_mid; break
2100 else
2101 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2102 if test $ac_mid -le $ac_hi; then
2103 ac_lo= ac_hi=
2104 break
2105 fi
2106 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 done
2110 else
2111 ac_lo= ac_hi=
2112 fi
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 fi
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 # Binary search between lo and hi bounds.
2117 while test "x$ac_lo" != "x$ac_hi"; do
2118 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2121 $4
2122 int
2123 main ()
2124 {
2125 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2126 test_array [0] = 0;
2127 return test_array [0];
2128
2129 ;
2130 return 0;
2131 }
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_hi=$ac_mid
2135 else
2136 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 done
2140 case $ac_lo in #((
2141 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2142 '') ac_retval=1 ;;
2143 esac
2144 else
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 $4
2148 static long int longval () { return $2; }
2149 static unsigned long int ulongval () { return $2; }
2150 #include <stdio.h>
2151 #include <stdlib.h>
2152 int
2153 main ()
2154 {
2155
2156 FILE *f = fopen ("conftest.val", "w");
2157 if (! f)
2158 return 1;
2159 if (($2) < 0)
2160 {
2161 long int i = longval ();
2162 if (i != ($2))
2163 return 1;
2164 fprintf (f, "%ld", i);
2165 }
2166 else
2167 {
2168 unsigned long int i = ulongval ();
2169 if (i != ($2))
2170 return 1;
2171 fprintf (f, "%lu", i);
2172 }
2173 /* Do not output a trailing newline, as this causes \r\n confusion
2174 on some platforms. */
2175 return ferror (f) || fclose (f) != 0;
2176
2177 ;
2178 return 0;
2179 }
2180 _ACEOF
2181 if ac_fn_c_try_run "$LINENO"; then :
2182 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2183 else
2184 ac_retval=1
2185 fi
2186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2187 conftest.$ac_objext conftest.beam conftest.$ac_ext
2188 rm -f conftest.val
2189
2190 fi
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192 as_fn_set_status $ac_retval
2193
2194 } # ac_fn_c_compute_int
2195
2196 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2197 # ----------------------------------------------------
2198 # Tries to find if the field MEMBER exists in type AGGR, after including
2199 # INCLUDES, setting cache variable VAR accordingly.
2200 ac_fn_c_check_member ()
2201 {
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2204 $as_echo_n "checking for $2.$3... " >&6; }
2205 if eval \${$4+:} false; then :
2206 $as_echo_n "(cached) " >&6
2207 else
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 $5
2211 int
2212 main ()
2213 {
2214 static $2 ac_aggr;
2215 if (ac_aggr.$3)
2216 return 0;
2217 ;
2218 return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222 eval "$4=yes"
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $5
2227 int
2228 main ()
2229 {
2230 static $2 ac_aggr;
2231 if (sizeof ac_aggr.$3)
2232 return 0;
2233 ;
2234 return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 eval "$4=yes"
2239 else
2240 eval "$4=no"
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 fi
2246 eval ac_res=\$$4
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250
2251 } # ac_fn_c_check_member
2252 cat >config.log <<_ACEOF
2253 This file contains any messages produced by compilers while
2254 running configure, to aid debugging if configure makes a mistake.
2255
2256 It was created by yaksa $as_me unreleased, which was
2257 generated by GNU Autoconf 2.69. Invocation command line was
2258
2259 $ $0 $@
2260
2261 _ACEOF
2262 exec 5>>config.log
2263 {
2264 cat <<_ASUNAME
2265 ## --------- ##
2266 ## Platform. ##
2267 ## --------- ##
2268
2269 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2270 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2271 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2272 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2273 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2274
2275 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2276 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2277
2278 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2279 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2280 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2281 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2282 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2283 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2284 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2285
2286 _ASUNAME
2287
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 $as_echo "PATH: $as_dir"
2294 done
2295 IFS=$as_save_IFS
2296
2297 } >&5
2298
2299 cat >&5 <<_ACEOF
2300
2301
2302 ## ----------- ##
2303 ## Core tests. ##
2304 ## ----------- ##
2305
2306 _ACEOF
2307
2308
2309 # Keep a trace of the command line.
2310 # Strip out --no-create and --no-recursion so they do not pile up.
2311 # Strip out --silent because we don't want to record it for future runs.
2312 # Also quote any args containing shell meta-characters.
2313 # Make two passes to allow for proper duplicate-argument suppression.
2314 ac_configure_args=
2315 ac_configure_args0=
2316 ac_configure_args1=
2317 ac_must_keep_next=false
2318 for ac_pass in 1 2
2319 do
2320 for ac_arg
2321 do
2322 case $ac_arg in
2323 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2325 | -silent | --silent | --silen | --sile | --sil)
2326 continue ;;
2327 *\'*)
2328 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2329 esac
2330 case $ac_pass in
2331 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2332 2)
2333 as_fn_append ac_configure_args1 " '$ac_arg'"
2334 if test $ac_must_keep_next = true; then
2335 ac_must_keep_next=false # Got value, back to normal.
2336 else
2337 case $ac_arg in
2338 *=* | --config-cache | -C | -disable-* | --disable-* \
2339 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2340 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2341 | -with-* | --with-* | -without-* | --without-* | --x)
2342 case "$ac_configure_args0 " in
2343 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2344 esac
2345 ;;
2346 -* ) ac_must_keep_next=true ;;
2347 esac
2348 fi
2349 as_fn_append ac_configure_args " '$ac_arg'"
2350 ;;
2351 esac
2352 done
2353 done
2354 { ac_configure_args0=; unset ac_configure_args0;}
2355 { ac_configure_args1=; unset ac_configure_args1;}
2356
2357 # When interrupted or exit'd, cleanup temporary files, and complete
2358 # config.log. We remove comments because anyway the quotes in there
2359 # would cause problems or look ugly.
2360 # WARNING: Use '\'' to represent an apostrophe within the trap.
2361 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2362 trap 'exit_status=$?
2363 # Save into config.log some information that might help in debugging.
2364 {
2365 echo
2366
2367 $as_echo "## ---------------- ##
2368 ## Cache variables. ##
2369 ## ---------------- ##"
2370 echo
2371 # The following way of writing the cache mishandles newlines in values,
2372 (
2373 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2374 eval ac_val=\$$ac_var
2375 case $ac_val in #(
2376 *${as_nl}*)
2377 case $ac_var in #(
2378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2379 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2380 esac
2381 case $ac_var in #(
2382 _ | IFS | as_nl) ;; #(
2383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2384 *) { eval $ac_var=; unset $ac_var;} ;;
2385 esac ;;
2386 esac
2387 done
2388 (set) 2>&1 |
2389 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2390 *${as_nl}ac_space=\ *)
2391 sed -n \
2392 "s/'\''/'\''\\\\'\'''\''/g;
2393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2394 ;; #(
2395 *)
2396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2397 ;;
2398 esac |
2399 sort
2400 )
2401 echo
2402
2403 $as_echo "## ----------------- ##
2404 ## Output variables. ##
2405 ## ----------------- ##"
2406 echo
2407 for ac_var in $ac_subst_vars
2408 do
2409 eval ac_val=\$$ac_var
2410 case $ac_val in
2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412 esac
2413 $as_echo "$ac_var='\''$ac_val'\''"
2414 done | sort
2415 echo
2416
2417 if test -n "$ac_subst_files"; then
2418 $as_echo "## ------------------- ##
2419 ## File substitutions. ##
2420 ## ------------------- ##"
2421 echo
2422 for ac_var in $ac_subst_files
2423 do
2424 eval ac_val=\$$ac_var
2425 case $ac_val in
2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 esac
2428 $as_echo "$ac_var='\''$ac_val'\''"
2429 done | sort
2430 echo
2431 fi
2432
2433 if test -s confdefs.h; then
2434 $as_echo "## ----------- ##
2435 ## confdefs.h. ##
2436 ## ----------- ##"
2437 echo
2438 cat confdefs.h
2439 echo
2440 fi
2441 test "$ac_signal" != 0 &&
2442 $as_echo "$as_me: caught signal $ac_signal"
2443 $as_echo "$as_me: exit $exit_status"
2444 } >&5
2445 rm -f core *.core core.conftest.* &&
2446 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2447 exit $exit_status
2448 ' 0
2449 for ac_signal in 1 2 13 15; do
2450 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2451 done
2452 ac_signal=0
2453
2454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2455 rm -f -r conftest* confdefs.h
2456
2457 $as_echo "/* confdefs.h */" > confdefs.h
2458
2459 # Predefined preprocessor variables.
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_NAME "$PACKAGE_NAME"
2463 _ACEOF
2464
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2467 _ACEOF
2468
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2471 _ACEOF
2472
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_STRING "$PACKAGE_STRING"
2475 _ACEOF
2476
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2479 _ACEOF
2480
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_URL "$PACKAGE_URL"
2483 _ACEOF
2484
2485
2486 # Let the site file select an alternate cache file if it wants to.
2487 # Prefer an explicitly selected file to automatically selected ones.
2488 ac_site_file1=NONE
2489 ac_site_file2=NONE
2490 if test -n "$CONFIG_SITE"; then
2491 # We do not want a PATH search for config.site.
2492 case $CONFIG_SITE in #((
2493 -*) ac_site_file1=./$CONFIG_SITE;;
2494 */*) ac_site_file1=$CONFIG_SITE;;
2495 *) ac_site_file1=./$CONFIG_SITE;;
2496 esac
2497 elif test "x$prefix" != xNONE; then
2498 ac_site_file1=$prefix/share/config.site
2499 ac_site_file2=$prefix/etc/config.site
2500 else
2501 ac_site_file1=$ac_default_prefix/share/config.site
2502 ac_site_file2=$ac_default_prefix/etc/config.site
2503 fi
2504 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2505 do
2506 test "x$ac_site_file" = xNONE && continue
2507 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2509 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2510 sed 's/^/| /' "$ac_site_file" >&5
2511 . "$ac_site_file" \
2512 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2514 as_fn_error $? "failed to load site script $ac_site_file
2515 See \`config.log' for more details" "$LINENO" 5; }
2516 fi
2517 done
2518
2519 if test -r "$cache_file"; then
2520 # Some versions of bash will fail to source /dev/null (special files
2521 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2522 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2524 $as_echo "$as_me: loading cache $cache_file" >&6;}
2525 case $cache_file in
2526 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2527 *) . "./$cache_file";;
2528 esac
2529 fi
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2532 $as_echo "$as_me: creating cache $cache_file" >&6;}
2533 >$cache_file
2534 fi
2535
2536 # Check that the precious variables saved in the cache have kept the same
2537 # value.
2538 ac_cache_corrupted=false
2539 for ac_var in $ac_precious_vars; do
2540 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2541 eval ac_new_set=\$ac_env_${ac_var}_set
2542 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2543 eval ac_new_val=\$ac_env_${ac_var}_value
2544 case $ac_old_set,$ac_new_set in
2545 set,)
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2547 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2548 ac_cache_corrupted=: ;;
2549 ,set)
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2551 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2552 ac_cache_corrupted=: ;;
2553 ,);;
2554 *)
2555 if test "x$ac_old_val" != "x$ac_new_val"; then
2556 # differences in whitespace do not lead to failure.
2557 ac_old_val_w=`echo x $ac_old_val`
2558 ac_new_val_w=`echo x $ac_new_val`
2559 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2561 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2562 ac_cache_corrupted=:
2563 else
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2565 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2566 eval $ac_var=\$ac_old_val
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2569 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2571 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2572 fi;;
2573 esac
2574 # Pass precious variables to config.status.
2575 if test "$ac_new_set" = set; then
2576 case $ac_new_val in
2577 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2578 *) ac_arg=$ac_var=$ac_new_val ;;
2579 esac
2580 case " $ac_configure_args " in
2581 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2582 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2583 esac
2584 fi
2585 done
2586 if $ac_cache_corrupted; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2590 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2591 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2592 fi
2593 ## -------------------- ##
2594 ## Main body of script. ##
2595 ## -------------------- ##
2596
2597 ac_ext=c
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602
2603
2604
2605 YAKSA_VERSION=unreleased
2606
2607
2608 libyaksa_so_version="0:0:0"
2609
2610
2611 # Produce a numeric version assuming the following format:
2612 # Version: [MAJ].[MIN].[REV][EXT][EXT_NUMBER]
2613 # Example: 1.0.7rc1 has
2614 # MAJ = 1
2615 # MIN = 0
2616 # REV = 7
2617 # EXT = rc
2618 # EXT_NUMBER = 1
2619 #
2620 # Converting to numeric version will convert EXT to a format number:
2621 # ALPHA (a) = 0
2622 # BETA (b) = 1
2623 # RC (rc) = 2
2624 # PATCH (p) = 3
2625 # Regular releases are treated as patch 0
2626 #
2627 # Numeric version will have 1 digit for MAJ, 2 digits for MIN,
2628 # 2 digits for REV, 1 digit for EXT and 2 digits for EXT_NUMBER.
2629 if test "${YAKSA_VERSION}" = "unreleased" ; then
2630 YAKSA_NUMVERSION=0
2631 else
2632
2633 V1=`expr $YAKSA_VERSION : '\([0-9]*\)\.[0-9]*\.*[0-9]*[a-zA-Z]*[0-9]*'`
2634 V2=`expr $YAKSA_VERSION : '[0-9]*\.\([0-9]*\)\.*[0-9]*[a-zA-Z]*[0-9]*'`
2635 V3=`expr $YAKSA_VERSION : '[0-9]*\.[0-9]*\.*\([0-9]*\)[a-zA-Z]*[0-9]*'`
2636 V4=`expr $YAKSA_VERSION : '[0-9]*\.[0-9]*\.*[0-9]*\([a-zA-Z]*\)[0-9]*'`
2637 V5=`expr $YAKSA_VERSION : '[0-9]*\.[0-9]*\.*[0-9]*[a-zA-Z]*\([0-9]*\)'`
2638
2639
2640 if test "$V2" -le 9 ; then V2="0$V2" ; fi
2641 if test "$V3" = "" ; then V3="0"; fi
2642 if test "$V3" -le 9 ; then V3="0$V3" ; fi
2643 if test "$V4" = "a" ; then
2644 V4=0
2645 elif test "$V4" = "b" ; then
2646 V4=1
2647 elif test "$V4" = "rc" ; then
2648 V4=2
2649 elif test "$V4" = "" ; then
2650 V4=3
2651 V5=0
2652 elif test "$V4" = "p" ; then
2653 V4=3
2654 fi
2655 if test "$V5" -le 9 ; then V5="0$V5" ; fi
2656
2657 YAKSA_NUMVERSION=`expr $V1$V2$V3$V4$V5 + 0`
2658 fi
2659
2660
2661 ac_aux_dir=
2662 for ac_dir in m4 "$srcdir"/m4; do
2663 if test -f "$ac_dir/install-sh"; then
2664 ac_aux_dir=$ac_dir
2665 ac_install_sh="$ac_aux_dir/install-sh -c"
2666 break
2667 elif test -f "$ac_dir/install.sh"; then
2668 ac_aux_dir=$ac_dir
2669 ac_install_sh="$ac_aux_dir/install.sh -c"
2670 break
2671 elif test -f "$ac_dir/shtool"; then
2672 ac_aux_dir=$ac_dir
2673 ac_install_sh="$ac_aux_dir/shtool install -c"
2674 break
2675 fi
2676 done
2677 if test -z "$ac_aux_dir"; then
2678 as_fn_error $? "cannot find install-sh, install.sh, or shtool in m4 \"$srcdir\"/m4" "$LINENO" 5
2679 fi
2680
2681 # These three variables are undocumented and unsupported,
2682 # and are intended to be withdrawn in a future Autoconf release.
2683 # They can cause serious problems if a builder's source tree is in a directory
2684 # whose full name contains unusual characters.
2685 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2686 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2687 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2688
2689
2690
2691
2692
2693 am__api_version='1.16'
2694
2695 # Find a good install program. We prefer a C program (faster),
2696 # so one script is as good as another. But avoid the broken or
2697 # incompatible versions:
2698 # SysV /etc/install, /usr/sbin/install
2699 # SunOS /usr/etc/install
2700 # IRIX /sbin/install
2701 # AIX /bin/install
2702 # AmigaOS /C/install, which installs bootblocks on floppy discs
2703 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2704 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2705 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2706 # OS/2's system install, which has a completely different semantic
2707 # ./install, which can be erroneously created by make from ./install.sh.
2708 # Reject install programs that cannot install multiple files.
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2710 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2711 if test -z "$INSTALL"; then
2712 if ${ac_cv_path_install+:} false; then :
2713 $as_echo_n "(cached) " >&6
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 # Account for people who put trailing slashes in PATH elements.
2721 case $as_dir/ in #((
2722 ./ | .// | /[cC]/* | \
2723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2724 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2725 /usr/ucb/* ) ;;
2726 *)
2727 # OSF1 and SCO ODT 3.0 have their own names for install.
2728 # Don't use installbsd from OSF since it installs stuff as root
2729 # by default.
2730 for ac_prog in ginstall scoinst install; do
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2733 if test $ac_prog = install &&
2734 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2735 # AIX install. It has an incompatible calling convention.
2736 :
2737 elif test $ac_prog = install &&
2738 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2739 # program-specific install script used by HP pwplus--don't use.
2740 :
2741 else
2742 rm -rf conftest.one conftest.two conftest.dir
2743 echo one > conftest.one
2744 echo two > conftest.two
2745 mkdir conftest.dir
2746 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2747 test -s conftest.one && test -s conftest.two &&
2748 test -s conftest.dir/conftest.one &&
2749 test -s conftest.dir/conftest.two
2750 then
2751 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2752 break 3
2753 fi
2754 fi
2755 fi
2756 done
2757 done
2758 ;;
2759 esac
2760
2761 done
2762 IFS=$as_save_IFS
2763
2764 rm -rf conftest.one conftest.two conftest.dir
2765
2766 fi
2767 if test "${ac_cv_path_install+set}" = set; then
2768 INSTALL=$ac_cv_path_install
2769 else
2770 # As a last resort, use the slow shell script. Don't cache a
2771 # value for INSTALL within a source directory, because that will
2772 # break other packages using the cache if that directory is
2773 # removed, or if the value is a relative name.
2774 INSTALL=$ac_install_sh
2775 fi
2776 fi
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2778 $as_echo "$INSTALL" >&6; }
2779
2780 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2781 # It thinks the first close brace ends the variable substitution.
2782 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2783
2784 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2785
2786 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2787
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2789 $as_echo_n "checking whether build environment is sane... " >&6; }
2790 # Reject unsafe characters in $srcdir or the absolute working directory
2791 # name. Accept space and tab only in the latter.
2792 am_lf='
2793 '
2794 case `pwd` in
2795 *[\\\"\#\$\&\'\`$am_lf]*)
2796 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2797 esac
2798 case $srcdir in
2799 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2800 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2801 esac
2802
2803 # Do 'set' in a subshell so we don't clobber the current shell's
2804 # arguments. Must try -L first in case configure is actually a
2805 # symlink; some systems play weird games with the mod time of symlinks
2806 # (eg FreeBSD returns the mod time of the symlink's containing
2807 # directory).
2808 if (
2809 am_has_slept=no
2810 for am_try in 1 2; do
2811 echo "timestamp, slept: $am_has_slept" > conftest.file
2812 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2813 if test "$*" = "X"; then
2814 # -L didn't work.
2815 set X `ls -t "$srcdir/configure" conftest.file`
2816 fi
2817 if test "$*" != "X $srcdir/configure conftest.file" \
2818 && test "$*" != "X conftest.file $srcdir/configure"; then
2819
2820 # If neither matched, then we have a broken ls. This can happen
2821 # if, for instance, CONFIG_SHELL is bash and it inherits a
2822 # broken ls alias from the environment. This has actually
2823 # happened. Such a system could not be considered "sane".
2824 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2825 alias in your environment" "$LINENO" 5
2826 fi
2827 if test "$2" = conftest.file || test $am_try -eq 2; then
2828 break
2829 fi
2830 # Just in case.
2831 sleep 1
2832 am_has_slept=yes
2833 done
2834 test "$2" = conftest.file
2835 )
2836 then
2837 # Ok.
2838 :
2839 else
2840 as_fn_error $? "newly created file is older than distributed files!
2841 Check your system clock" "$LINENO" 5
2842 fi
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2844 $as_echo "yes" >&6; }
2845 # If we didn't sleep, we still need to ensure time stamps of config.status and
2846 # generated files are strictly newer.
2847 am_sleep_pid=
2848 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2849 ( sleep 1 ) &
2850 am_sleep_pid=$!
2851 fi
2852
2853 rm -f conftest.file
2854
2855 test "$program_prefix" != NONE &&
2856 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2857 # Use a double $ so make ignores it.
2858 test "$program_suffix" != NONE &&
2859 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2860 # Double any \ or $.
2861 # By default was `s,x,x', remove it if useless.
2862 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2863 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2864
2865 # Expand $ac_aux_dir to an absolute path.
2866 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2867
2868 if test x"${MISSING+set}" != xset; then
2869 MISSING="\${SHELL} '$am_aux_dir/missing'"
2870 fi
2871 # Use eval to expand $SHELL
2872 if eval "$MISSING --is-lightweight"; then
2873 am_missing_run="$MISSING "
2874 else
2875 am_missing_run=
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2877 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2878 fi
2879
2880 if test x"${install_sh+set}" != xset; then
2881 case $am_aux_dir in
2882 *\ * | *\ *)
2883 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2884 *)
2885 install_sh="\${SHELL} $am_aux_dir/install-sh"
2886 esac
2887 fi
2888
2889 # Installed binaries are usually stripped using 'strip' when the user
2890 # run "make install-strip". However 'strip' might not be the right
2891 # tool to use in cross-compilation environments, therefore Automake
2892 # will honor the 'STRIP' environment variable to overrule this program.
2893 if test "$cross_compiling" != no; then
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}strip; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_STRIP+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$STRIP"; then
2903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2915 fi
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 STRIP=$ac_cv_prog_STRIP
2923 if test -n "$STRIP"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2925 $as_echo "$STRIP" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931
2932 fi
2933 if test -z "$ac_cv_prog_STRIP"; then
2934 ac_ct_STRIP=$STRIP
2935 # Extract the first word of "strip", so it can be a program name with args.
2936 set dummy strip; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$ac_ct_STRIP"; then
2943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 ac_cv_prog_ac_ct_STRIP="strip"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2963 if test -n "$ac_ct_STRIP"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2965 $as_echo "$ac_ct_STRIP" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2969 fi
2970
2971 if test "x$ac_ct_STRIP" = x; then
2972 STRIP=":"
2973 else
2974 case $cross_compiling:$ac_tool_warned in
2975 yes:)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2978 ac_tool_warned=yes ;;
2979 esac
2980 STRIP=$ac_ct_STRIP
2981 fi
2982 else
2983 STRIP="$ac_cv_prog_STRIP"
2984 fi
2985
2986 fi
2987 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2988
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2990 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2991 if test -z "$MKDIR_P"; then
2992 if ${ac_cv_path_mkdir+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_prog in mkdir gmkdir; do
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3003 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3004 'mkdir (GNU coreutils) '* | \
3005 'mkdir (coreutils) '* | \
3006 'mkdir (fileutils) '4.1*)
3007 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3008 break 3;;
3009 esac
3010 done
3011 done
3012 done
3013 IFS=$as_save_IFS
3014
3015 fi
3016
3017 test -d ./--version && rmdir ./--version
3018 if test "${ac_cv_path_mkdir+set}" = set; then
3019 MKDIR_P="$ac_cv_path_mkdir -p"
3020 else
3021 # As a last resort, use the slow shell script. Don't cache a
3022 # value for MKDIR_P within a source directory, because that will
3023 # break other packages using the cache if that directory is
3024 # removed, or if the value is a relative name.
3025 MKDIR_P="$ac_install_sh -d"
3026 fi
3027 fi
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3029 $as_echo "$MKDIR_P" >&6; }
3030
3031 for ac_prog in gawk mawk nawk awk
3032 do
3033 # Extract the first word of "$ac_prog", so it can be a program name with args.
3034 set dummy $ac_prog; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_AWK+:} false; then :
3038 $as_echo_n "(cached) " >&6
3039 else
3040 if test -n "$AWK"; then
3041 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050 ac_cv_prog_AWK="$ac_prog"
3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2
3053 fi
3054 done
3055 done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 AWK=$ac_cv_prog_AWK
3061 if test -n "$AWK"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3063 $as_echo "$AWK" >&6; }
3064 else
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070 test -n "$AWK" && break
3071 done
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3074 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3075 set x ${MAKE-make}
3076 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3077 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 cat >conftest.make <<\_ACEOF
3081 SHELL = /bin/sh
3082 all:
3083 @echo '@@@%%%=$(MAKE)=@@@%%%'
3084 _ACEOF
3085 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3086 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3087 *@@@%%%=?*=@@@%%%*)
3088 eval ac_cv_prog_make_${ac_make}_set=yes;;
3089 *)
3090 eval ac_cv_prog_make_${ac_make}_set=no;;
3091 esac
3092 rm -f conftest.make
3093 fi
3094 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096 $as_echo "yes" >&6; }
3097 SET_MAKE=
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 SET_MAKE="MAKE=${MAKE-make}"
3102 fi
3103
3104 rm -rf .tst 2>/dev/null
3105 mkdir .tst 2>/dev/null
3106 if test -d .tst; then
3107 am__leading_dot=.
3108 else
3109 am__leading_dot=_
3110 fi
3111 rmdir .tst 2>/dev/null
3112
3113 # Check whether --enable-silent-rules was given.
3114 if test "${enable_silent_rules+set}" = set; then :
3115 enableval=$enable_silent_rules;
3116 fi
3117
3118 case $enable_silent_rules in # (((
3119 yes) AM_DEFAULT_VERBOSITY=0;;
3120 no) AM_DEFAULT_VERBOSITY=1;;
3121 *) AM_DEFAULT_VERBOSITY=1;;
3122 esac
3123 am_make=${MAKE-make}
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3125 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3126 if ${am_cv_make_support_nested_variables+:} false; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 if $as_echo 'TRUE=$(BAR$(V))
3130 BAR0=false
3131 BAR1=true
3132 V=1
3133 am__doit:
3134 @$(TRUE)
3135 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3136 am_cv_make_support_nested_variables=yes
3137 else
3138 am_cv_make_support_nested_variables=no
3139 fi
3140 fi
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3142 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3143 if test $am_cv_make_support_nested_variables = yes; then
3144 AM_V='$(V)'
3145 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3146 else
3147 AM_V=$AM_DEFAULT_VERBOSITY
3148 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3149 fi
3150 AM_BACKSLASH='\'
3151
3152 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3153 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3154 # is not polluted with repeated "-I."
3155 am__isrc=' -I$(srcdir)'
3156 # test to see if srcdir already configured
3157 if test -f $srcdir/config.status; then
3158 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3159 fi
3160 fi
3161
3162 # test whether we have cygpath
3163 if test -z "$CYGPATH_W"; then
3164 if (cygpath --version) >/dev/null 2>/dev/null; then
3165 CYGPATH_W='cygpath -w'
3166 else
3167 CYGPATH_W=echo
3168 fi
3169 fi
3170
3171
3172 # Define the identity of the package.
3173 PACKAGE='yaksa'
3174 VERSION='unreleased'
3175
3176
3177 cat >>confdefs.h <<_ACEOF
3178 #define PACKAGE "$PACKAGE"
3179 _ACEOF
3180
3181
3182 cat >>confdefs.h <<_ACEOF
3183 #define VERSION "$VERSION"
3184 _ACEOF
3185
3186 # Some tools Automake needs.
3187
3188 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3189
3190
3191 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3192
3193
3194 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3195
3196
3197 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3198
3199
3200 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3201
3202 # For better backward compatibility. To be removed once Automake 1.9.x
3203 # dies out for good. For more background, see:
3204 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3205 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3206 mkdir_p='$(MKDIR_P)'
3207
3208 # We need awk for the "check" target (and possibly the TAP driver). The
3209 # system "awk" is bad on some platforms.
3210 # Always define AMTAR for backward compatibility. Yes, it's still used
3211 # in the wild :-( We should find a proper way to deprecate it ...
3212 AMTAR='$${TAR-tar}'
3213
3214
3215 # We'll loop over all known methods to create a tar archive until one works.
3216 _am_tools='gnutar pax cpio none'
3217
3218 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3219
3220
3221
3222
3223
3224 # Variables for tags utilities; see am/tags.am
3225 if test -z "$CTAGS"; then
3226 CTAGS=ctags
3227 fi
3228
3229 if test -z "$ETAGS"; then
3230 ETAGS=etags
3231 fi
3232
3233 if test -z "$CSCOPE"; then
3234 CSCOPE=cscope
3235 fi
3236
3237
3238
3239 # POSIX will say in a future version that running "rm -f" with no argument
3240 # is OK; and we want to be able to make that assumption in our Makefile
3241 # recipes. So use an aggressive probe to check that the usage we want is
3242 # actually supported "in the wild" to an acceptable degree.
3243 # See automake bug#10828.
3244 # To make any issue more visible, cause the running configure to be aborted
3245 # by default if the 'rm' program in use doesn't match our expectations; the
3246 # user can still override this though.
3247 if rm -f && rm -fr && rm -rf; then : OK; else
3248 cat >&2 <<'END'
3249 Oops!
3250
3251 Your 'rm' program seems unable to run without file operands specified
3252 on the command line, even when the '-f' option is present. This is contrary
3253 to the behaviour of most rm programs out there, and not conforming with
3254 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3255
3256 Please tell [email protected] about your system, including the value
3257 of your $PATH and any error possibly output before this message. This
3258 can help us improve future automake versions.
3259
3260 END
3261 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3262 echo 'Configuration will proceed anyway, since you have set the' >&2
3263 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3264 echo >&2
3265 else
3266 cat >&2 <<'END'
3267 Aborting the configuration process, to ensure you take notice of the issue.
3268
3269 You can download and install GNU coreutils to get an 'rm' implementation
3270 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3271
3272 If you want to complete the configuration process using your problematic
3273 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3274 to "yes", and re-run configure.
3275
3276 END
3277 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3278 fi
3279 fi
3280
3281 # Check whether --enable-silent-rules was given.
3282 if test "${enable_silent_rules+set}" = set; then :
3283 enableval=$enable_silent_rules;
3284 fi
3285
3286 case $enable_silent_rules in # (((
3287 yes) AM_DEFAULT_VERBOSITY=0;;
3288 no) AM_DEFAULT_VERBOSITY=1;;
3289 *) AM_DEFAULT_VERBOSITY=0;;
3290 esac
3291 am_make=${MAKE-make}
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3293 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3294 if ${am_cv_make_support_nested_variables+:} false; then :
3295 $as_echo_n "(cached) " >&6
3296 else
3297 if $as_echo 'TRUE=$(BAR$(V))
3298 BAR0=false
3299 BAR1=true
3300 V=1
3301 am__doit:
3302 @$(TRUE)
3303 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3304 am_cv_make_support_nested_variables=yes
3305 else
3306 am_cv_make_support_nested_variables=no
3307 fi
3308 fi
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3310 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3311 if test $am_cv_make_support_nested_variables = yes; then
3312 AM_V='$(V)'
3313 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3314 else
3315 AM_V=$AM_DEFAULT_VERBOSITY
3316 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3317 fi
3318 AM_BACKSLASH='\'
3319
3320
3321
3322 if test -z "${pac_save_CFLAGS_nesting}" ; then
3323 pac_save_CFLAGS_nesting=0
3324 fi
3325 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
3326 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
3327
3328 DEPDIR="${am__leading_dot}deps"
3329
3330 ac_config_commands="$ac_config_commands depfiles"
3331
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3333 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3334 cat > confinc.mk << 'END'
3335 am__doit:
3336 @echo this is the am__doit target >confinc.out
3337 .PHONY: am__doit
3338 END
3339 am__include="#"
3340 am__quote=
3341 # BSD make does it like this.
3342 echo '.include "confinc.mk" # ignored' > confmf.BSD
3343 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3344 echo 'include confinc.mk # ignored' > confmf.GNU
3345 _am_result=no
3346 for s in GNU BSD; do
3347 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3348 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }
3352 case $?:`cat confinc.out 2>/dev/null` in #(
3353 '0:this is the am__doit target') :
3354 case $s in #(
3355 BSD) :
3356 am__include='.include' am__quote='"' ;; #(
3357 *) :
3358 am__include='include' am__quote='' ;;
3359 esac ;; #(
3360 *) :
3361 ;;
3362 esac
3363 if test "$am__include" != "#"; then
3364 _am_result="yes ($s style)"
3365 break
3366 fi
3367 done
3368 rm -f confinc.* confmf.*
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3370 $as_echo "${_am_result}" >&6; }
3371
3372 # Check whether --enable-dependency-tracking was given.
3373 if test "${enable_dependency_tracking+set}" = set; then :
3374 enableval=$enable_dependency_tracking;
3375 fi
3376
3377 if test "x$enable_dependency_tracking" != xno; then
3378 am_depcomp="$ac_aux_dir/depcomp"
3379 AMDEPBACKSLASH='\'
3380 am__nodep='_no'
3381 fi
3382 if test "x$enable_dependency_tracking" != xno; then
3383 AMDEP_TRUE=
3384 AMDEP_FALSE='#'
3385 else
3386 AMDEP_TRUE='#'
3387 AMDEP_FALSE=
3388 fi
3389
3390
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396 if test -n "$ac_tool_prefix"; then
3397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_CC+:} false; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3409 do
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3417 fi
3418 done
3419 done
3420 IFS=$as_save_IFS
3421
3422 fi
3423 fi
3424 CC=$ac_cv_prog_CC
3425 if test -n "$CC"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3427 $as_echo "$CC" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3431 fi
3432
3433
3434 fi
3435 if test -z "$ac_cv_prog_CC"; then
3436 ac_ct_CC=$CC
3437 # Extract the first word of "gcc", so it can be a program name with args.
3438 set dummy gcc; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -n "$ac_ct_CC"; then
3445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_ac_ct_CC="gcc"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458 done
3459 done
3460 IFS=$as_save_IFS
3461
3462 fi
3463 fi
3464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3465 if test -n "$ac_ct_CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3467 $as_echo "$ac_ct_CC" >&6; }
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 fi
3472
3473 if test "x$ac_ct_CC" = x; then
3474 CC=""
3475 else
3476 case $cross_compiling:$ac_tool_warned in
3477 yes:)
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3480 ac_tool_warned=yes ;;
3481 esac
3482 CC=$ac_ct_CC
3483 fi
3484 else
3485 CC="$ac_cv_prog_CC"
3486 fi
3487
3488 if test -z "$CC"; then
3489 if test -n "$ac_tool_prefix"; then
3490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3491 set dummy ${ac_tool_prefix}cc; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if ${ac_cv_prog_CC+:} false; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_CC="${ac_tool_prefix}cc"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3510 fi
3511 done
3512 done
3513 IFS=$as_save_IFS
3514
3515 fi
3516 fi
3517 CC=$ac_cv_prog_CC
3518 if test -n "$CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3520 $as_echo "$CC" >&6; }
3521 else
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3524 fi
3525
3526
3527 fi
3528 fi
3529 if test -z "$CC"; then
3530 # Extract the first word of "cc", so it can be a program name with args.
3531 set dummy cc; ac_word=$2
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533 $as_echo_n "checking for $ac_word... " >&6; }
3534 if ${ac_cv_prog_CC+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 if test -n "$CC"; then
3538 ac_cv_prog_CC="$CC" # Let the user override the test.
3539 else
3540 ac_prog_rejected=no
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3549 ac_prog_rejected=yes
3550 continue
3551 fi
3552 ac_cv_prog_CC="cc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556 done
3557 done
3558 IFS=$as_save_IFS
3559
3560 if test $ac_prog_rejected = yes; then
3561 # We found a bogon in the path, so make sure we never use it.
3562 set dummy $ac_cv_prog_CC
3563 shift
3564 if test $# != 0; then
3565 # We chose a different compiler from the bogus one.
3566 # However, it has the same basename, so the bogon will be chosen
3567 # first if we set CC to just the basename; use the full file name.
3568 shift
3569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3570 fi
3571 fi
3572 fi
3573 fi
3574 CC=$ac_cv_prog_CC
3575 if test -n "$CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 $as_echo "$CC" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3581 fi
3582
3583
3584 fi
3585 if test -z "$CC"; then
3586 if test -n "$ac_tool_prefix"; then
3587 for ac_prog in cl.exe
3588 do
3589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if ${ac_cv_prog_CC+:} false; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 if test -n "$CC"; then
3597 ac_cv_prog_CC="$CC" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 break 2
3609 fi
3610 done
3611 done
3612 IFS=$as_save_IFS
3613
3614 fi
3615 fi
3616 CC=$ac_cv_prog_CC
3617 if test -n "$CC"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619 $as_echo "$CC" >&6; }
3620 else
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3623 fi
3624
3625
3626 test -n "$CC" && break
3627 done
3628 fi
3629 if test -z "$CC"; then
3630 ac_ct_CC=$CC
3631 for ac_prog in cl.exe
3632 do
3633 # Extract the first word of "$ac_prog", so it can be a program name with args.
3634 set dummy $ac_prog; ac_word=$2
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636 $as_echo_n "checking for $ac_word... " >&6; }
3637 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 if test -n "$ac_ct_CC"; then
3641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3645 do
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3650 ac_cv_prog_ac_ct_CC="$ac_prog"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3653 fi
3654 done
3655 done
3656 IFS=$as_save_IFS
3657
3658 fi
3659 fi
3660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3661 if test -n "$ac_ct_CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3663 $as_echo "$ac_ct_CC" >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3667 fi
3668
3669
3670 test -n "$ac_ct_CC" && break
3671 done
3672
3673 if test "x$ac_ct_CC" = x; then
3674 CC=""
3675 else
3676 case $cross_compiling:$ac_tool_warned in
3677 yes:)
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3680 ac_tool_warned=yes ;;
3681 esac
3682 CC=$ac_ct_CC
3683 fi
3684 fi
3685
3686 fi
3687
3688
3689 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "no acceptable C compiler found in \$PATH
3692 See \`config.log' for more details" "$LINENO" 5; }
3693
3694 # Provide some information about the compiler.
3695 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3696 set X $ac_compile
3697 ac_compiler=$2
3698 for ac_option in --version -v -V -qversion; do
3699 { { ac_try="$ac_compiler $ac_option >&5"
3700 case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 $as_echo "$ac_try_echo"; } >&5
3706 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3707 ac_status=$?
3708 if test -s conftest.err; then
3709 sed '10a\
3710 ... rest of stderr output deleted ...
3711 10q' conftest.err >conftest.er1
3712 cat conftest.er1 >&5
3713 fi
3714 rm -f conftest.er1 conftest.err
3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716 test $ac_status = 0; }
3717 done
3718
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721
3722 int
3723 main ()
3724 {
3725
3726 ;
3727 return 0;
3728 }
3729 _ACEOF
3730 ac_clean_files_save=$ac_clean_files
3731 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3732 # Try to create an executable without -o first, disregard a.out.
3733 # It will help us diagnose broken compilers, and finding out an intuition
3734 # of exeext.
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3736 $as_echo_n "checking whether the C compiler works... " >&6; }
3737 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3738
3739 # The possible output files:
3740 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3741
3742 ac_rmfiles=
3743 for ac_file in $ac_files
3744 do
3745 case $ac_file in
3746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3747 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3748 esac
3749 done
3750 rm -f $ac_rmfiles
3751
3752 if { { ac_try="$ac_link_default"
3753 case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_link_default") 2>&5
3760 ac_status=$?
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }; then :
3763 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3764 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3765 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3766 # so that the user can short-circuit this test for compilers unknown to
3767 # Autoconf.
3768 for ac_file in $ac_files ''
3769 do
3770 test -f "$ac_file" || continue
3771 case $ac_file in
3772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3773 ;;
3774 [ab].out )
3775 # We found the default executable, but exeext='' is most
3776 # certainly right.
3777 break;;
3778 *.* )
3779 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3780 then :; else
3781 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3782 fi
3783 # We set ac_cv_exeext here because the later test for it is not
3784 # safe: cross compilers may not add the suffix if given an `-o'
3785 # argument, so we may need to know it at that point already.
3786 # Even if this section looks crufty: it has the advantage of
3787 # actually working.
3788 break;;
3789 * )
3790 break;;
3791 esac
3792 done
3793 test "$ac_cv_exeext" = no && ac_cv_exeext=
3794
3795 else
3796 ac_file=''
3797 fi
3798 if test -z "$ac_file"; then :
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3801 $as_echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806 as_fn_error 77 "C compiler cannot create executables
3807 See \`config.log' for more details" "$LINENO" 5; }
3808 else
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3810 $as_echo "yes" >&6; }
3811 fi
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3813 $as_echo_n "checking for C compiler default output file name... " >&6; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3815 $as_echo "$ac_file" >&6; }
3816 ac_exeext=$ac_cv_exeext
3817
3818 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3819 ac_clean_files=$ac_clean_files_save
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3821 $as_echo_n "checking for suffix of executables... " >&6; }
3822 if { { ac_try="$ac_link"
3823 case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3826 esac
3827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3828 $as_echo "$ac_try_echo"; } >&5
3829 (eval "$ac_link") 2>&5
3830 ac_status=$?
3831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832 test $ac_status = 0; }; then :
3833 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3834 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3835 # work properly (i.e., refer to `conftest.exe'), while it won't with
3836 # `rm'.
3837 for ac_file in conftest.exe conftest conftest.*; do
3838 test -f "$ac_file" || continue
3839 case $ac_file in
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3842 break;;
3843 * ) break;;
3844 esac
3845 done
3846 else
3847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3849 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3850 See \`config.log' for more details" "$LINENO" 5; }
3851 fi
3852 rm -f conftest conftest$ac_cv_exeext
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3854 $as_echo "$ac_cv_exeext" >&6; }
3855
3856 rm -f conftest.$ac_ext
3857 EXEEXT=$ac_cv_exeext
3858 ac_exeext=$EXEEXT
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861 #include <stdio.h>
3862 int
3863 main ()
3864 {
3865 FILE *f = fopen ("conftest.out", "w");
3866 return ferror (f) || fclose (f) != 0;
3867
3868 ;
3869 return 0;
3870 }
3871 _ACEOF
3872 ac_clean_files="$ac_clean_files conftest.out"
3873 # Check that the compiler produces executables we can run. If not, either
3874 # the compiler is broken, or we cross compile.
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3876 $as_echo_n "checking whether we are cross compiling... " >&6; }
3877 if test "$cross_compiling" != yes; then
3878 { { ac_try="$ac_link"
3879 case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3882 esac
3883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3884 $as_echo "$ac_try_echo"; } >&5
3885 (eval "$ac_link") 2>&5
3886 ac_status=$?
3887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3888 test $ac_status = 0; }
3889 if { ac_try='./conftest$ac_cv_exeext'
3890 { { case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895 $as_echo "$ac_try_echo"; } >&5
3896 (eval "$ac_try") 2>&5
3897 ac_status=$?
3898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899 test $ac_status = 0; }; }; then
3900 cross_compiling=no
3901 else
3902 if test "$cross_compiling" = maybe; then
3903 cross_compiling=yes
3904 else
3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907 as_fn_error $? "cannot run C compiled programs.
3908 If you meant to cross compile, use \`--host'.
3909 See \`config.log' for more details" "$LINENO" 5; }
3910 fi
3911 fi
3912 fi
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3914 $as_echo "$cross_compiling" >&6; }
3915
3916 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3917 ac_clean_files=$ac_clean_files_save
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3919 $as_echo_n "checking for suffix of object files... " >&6; }
3920 if ${ac_cv_objext+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3925
3926 int
3927 main ()
3928 {
3929
3930 ;
3931 return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.o conftest.obj
3935 if { { ac_try="$ac_compile"
3936 case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941 $as_echo "$ac_try_echo"; } >&5
3942 (eval "$ac_compile") 2>&5
3943 ac_status=$?
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }; then :
3946 for ac_file in conftest.o conftest.obj conftest.*; do
3947 test -f "$ac_file" || continue;
3948 case $ac_file in
3949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3951 break;;
3952 esac
3953 done
3954 else
3955 $as_echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3957
3958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3960 as_fn_error $? "cannot compute suffix of object files: cannot compile
3961 See \`config.log' for more details" "$LINENO" 5; }
3962 fi
3963 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3964 fi
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3966 $as_echo "$ac_cv_objext" >&6; }
3967 OBJEXT=$ac_cv_objext
3968 ac_objext=$OBJEXT
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3970 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3971 if ${ac_cv_c_compiler_gnu+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3976
3977 int
3978 main ()
3979 {
3980 #ifndef __GNUC__
3981 choke me
3982 #endif
3983
3984 ;
3985 return 0;
3986 }
3987 _ACEOF
3988 if ac_fn_c_try_compile "$LINENO"; then :
3989 ac_compiler_gnu=yes
3990 else
3991 ac_compiler_gnu=no
3992 fi
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3995
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3998 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3999 if test $ac_compiler_gnu = yes; then
4000 GCC=yes
4001 else
4002 GCC=
4003 fi
4004 ac_test_CFLAGS=${CFLAGS+set}
4005 ac_save_CFLAGS=$CFLAGS
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4007 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4008 if ${ac_cv_prog_cc_g+:} false; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 ac_save_c_werror_flag=$ac_c_werror_flag
4012 ac_c_werror_flag=yes
4013 ac_cv_prog_cc_g=no
4014 CFLAGS="-g"
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4017
4018 int
4019 main ()
4020 {
4021
4022 ;
4023 return 0;
4024 }
4025 _ACEOF
4026 if ac_fn_c_try_compile "$LINENO"; then :
4027 ac_cv_prog_cc_g=yes
4028 else
4029 CFLAGS=""
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4032
4033 int
4034 main ()
4035 {
4036
4037 ;
4038 return 0;
4039 }
4040 _ACEOF
4041 if ac_fn_c_try_compile "$LINENO"; then :
4042
4043 else
4044 ac_c_werror_flag=$ac_save_c_werror_flag
4045 CFLAGS="-g"
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048
4049 int
4050 main ()
4051 {
4052
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 if ac_fn_c_try_compile "$LINENO"; then :
4058 ac_cv_prog_cc_g=yes
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_c_werror_flag=$ac_save_c_werror_flag
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4068 $as_echo "$ac_cv_prog_cc_g" >&6; }
4069 if test "$ac_test_CFLAGS" = set; then
4070 CFLAGS=$ac_save_CFLAGS
4071 elif test $ac_cv_prog_cc_g = yes; then
4072 if test "$GCC" = yes; then
4073 CFLAGS="-g -O2"
4074 else
4075 CFLAGS="-g"
4076 fi
4077 else
4078 if test "$GCC" = yes; then
4079 CFLAGS="-O2"
4080 else
4081 CFLAGS=
4082 fi
4083 fi
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4085 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4086 if ${ac_cv_prog_cc_c89+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 ac_cv_prog_cc_c89=no
4090 ac_save_CC=$CC
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093 #include <stdarg.h>
4094 #include <stdio.h>
4095 struct stat;
4096 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4097 struct buf { int x; };
4098 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4099 static char *e (p, i)
4100 char **p;
4101 int i;
4102 {
4103 return p[i];
4104 }
4105 static char *f (char * (*g) (char **, int), char **p, ...)
4106 {
4107 char *s;
4108 va_list v;
4109 va_start (v,p);
4110 s = g (p, va_arg (v,int));
4111 va_end (v);
4112 return s;
4113 }
4114
4115 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4116 function prototypes and stuff, but not '\xHH' hex character constants.
4117 These don't provoke an error unfortunately, instead are silently treated
4118 as 'x'. The following induces an error, until -std is added to get
4119 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4120 array size at least. It's necessary to write '\x00'==0 to get something
4121 that's true only with -std. */
4122 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4123
4124 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4125 inside strings and character constants. */
4126 #define FOO(x) 'x'
4127 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4128
4129 int test (int i, double x);
4130 struct s1 {int (*f) (int a);};
4131 struct s2 {int (*f) (double a);};
4132 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4133 int argc;
4134 char **argv;
4135 int
4136 main ()
4137 {
4138 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4139 ;
4140 return 0;
4141 }
4142 _ACEOF
4143 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4144 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4145 do
4146 CC="$ac_save_CC $ac_arg"
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_cv_prog_cc_c89=$ac_arg
4149 fi
4150 rm -f core conftest.err conftest.$ac_objext
4151 test "x$ac_cv_prog_cc_c89" != "xno" && break
4152 done
4153 rm -f conftest.$ac_ext
4154 CC=$ac_save_CC
4155
4156 fi
4157 # AC_CACHE_VAL
4158 case "x$ac_cv_prog_cc_c89" in
4159 x)
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4161 $as_echo "none needed" >&6; } ;;
4162 xno)
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4164 $as_echo "unsupported" >&6; } ;;
4165 *)
4166 CC="$CC $ac_cv_prog_cc_c89"
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4168 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4169 esac
4170 if test "x$ac_cv_prog_cc_c89" != xno; then :
4171
4172 fi
4173
4174 ac_ext=c
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179
4180 ac_ext=c
4181 ac_cpp='$CPP $CPPFLAGS'
4182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4186 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4187 if ${am_cv_prog_cc_c_o+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192
4193 int
4194 main ()
4195 {
4196
4197 ;
4198 return 0;
4199 }
4200 _ACEOF
4201 # Make sure it works both with $CC and with simple cc.
4202 # Following AC_PROG_CC_C_O, we do the test twice because some
4203 # compilers refuse to overwrite an existing .o file with -o,
4204 # though they will create one.
4205 am_cv_prog_cc_c_o=yes
4206 for am_i in 1 2; do
4207 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4208 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4209 ac_status=$?
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } \
4212 && test -f conftest2.$ac_objext; then
4213 : OK
4214 else
4215 am_cv_prog_cc_c_o=no
4216 break
4217 fi
4218 done
4219 rm -f core conftest*
4220 unset am_i
4221 fi
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4223 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4224 if test "$am_cv_prog_cc_c_o" != yes; then
4225 # Losing compiler, so override with the script.
4226 # FIXME: It is wrong to rewrite CC.
4227 # But if we don't then we get into trouble of one sort or another.
4228 # A longer-term fix would be to have automake use am__CC in this case,
4229 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4230 CC="$am_aux_dir/compile $CC"
4231 fi
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237
4238
4239 depcc="$CC" am_compiler_list=
4240
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4242 $as_echo_n "checking dependency style of $depcc... " >&6; }
4243 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4247 # We make a subdir and do the tests there. Otherwise we can end up
4248 # making bogus files that we don't know about and never remove. For
4249 # instance it was reported that on HP-UX the gcc test will end up
4250 # making a dummy file named 'D' -- because '-MD' means "put the output
4251 # in D".
4252 rm -rf conftest.dir
4253 mkdir conftest.dir
4254 # Copy depcomp to subdir because otherwise we won't find it if we're
4255 # using a relative directory.
4256 cp "$am_depcomp" conftest.dir
4257 cd conftest.dir
4258 # We will build objects and dependencies in a subdirectory because
4259 # it helps to detect inapplicable dependency modes. For instance
4260 # both Tru64's cc and ICC support -MD to output dependencies as a
4261 # side effect of compilation, but ICC will put the dependencies in
4262 # the current directory while Tru64 will put them in the object
4263 # directory.
4264 mkdir sub
4265
4266 am_cv_CC_dependencies_compiler_type=none
4267 if test "$am_compiler_list" = ""; then
4268 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4269 fi
4270 am__universal=false
4271 case " $depcc " in #(
4272 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4273 esac
4274
4275 for depmode in $am_compiler_list; do
4276 # Setup a source with many dependencies, because some compilers
4277 # like to wrap large dependency lists on column 80 (with \), and
4278 # we should not choose a depcomp mode which is confused by this.
4279 #
4280 # We need to recreate these files for each test, as the compiler may
4281 # overwrite some of them when testing with obscure command lines.
4282 # This happens at least with the AIX C compiler.
4283 : > sub/conftest.c
4284 for i in 1 2 3 4 5 6; do
4285 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4286 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4287 # Solaris 10 /bin/sh.
4288 echo '/* dummy */' > sub/conftst$i.h
4289 done
4290 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4291
4292 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4293 # mode. It turns out that the SunPro C++ compiler does not properly
4294 # handle '-M -o', and we need to detect this. Also, some Intel
4295 # versions had trouble with output in subdirs.
4296 am__obj=sub/conftest.${OBJEXT-o}
4297 am__minus_obj="-o $am__obj"
4298 case $depmode in
4299 gcc)
4300 # This depmode causes a compiler race in universal mode.
4301 test "$am__universal" = false || continue
4302 ;;
4303 nosideeffect)
4304 # After this tag, mechanisms are not by side-effect, so they'll
4305 # only be used when explicitly requested.
4306 if test "x$enable_dependency_tracking" = xyes; then
4307 continue
4308 else
4309 break
4310 fi
4311 ;;
4312 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4313 # This compiler won't grok '-c -o', but also, the minuso test has
4314 # not run yet. These depmodes are late enough in the game, and
4315 # so weak that their functioning should not be impacted.
4316 am__obj=conftest.${OBJEXT-o}
4317 am__minus_obj=
4318 ;;
4319 none) break ;;
4320 esac
4321 if depmode=$depmode \
4322 source=sub/conftest.c object=$am__obj \
4323 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4324 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4325 >/dev/null 2>conftest.err &&
4326 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4327 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4328 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4329 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4330 # icc doesn't choke on unknown options, it will just issue warnings
4331 # or remarks (even with -Werror). So we grep stderr for any message
4332 # that says an option was ignored or not supported.
4333 # When given -MP, icc 7.0 and 7.1 complain thusly:
4334 # icc: Command line warning: ignoring option '-M'; no argument required
4335 # The diagnosis changed in icc 8.0:
4336 # icc: Command line remark: option '-MP' not supported
4337 if (grep 'ignoring option' conftest.err ||
4338 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4339 am_cv_CC_dependencies_compiler_type=$depmode
4340 break
4341 fi
4342 fi
4343 done
4344
4345 cd ..
4346 rm -rf conftest.dir
4347 else
4348 am_cv_CC_dependencies_compiler_type=none
4349 fi
4350
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4353 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4354 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4355
4356 if
4357 test "x$enable_dependency_tracking" != xno \
4358 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4359 am__fastdepCC_TRUE=
4360 am__fastdepCC_FALSE='#'
4361 else
4362 am__fastdepCC_TRUE='#'
4363 am__fastdepCC_FALSE=
4364 fi
4365
4366
4367 # By default we simply use the C compiler to build assembly code.
4368
4369 test "${CCAS+set}" = set || CCAS=$CC
4370 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4371
4372
4373
4374 depcc="$CCAS" am_compiler_list=
4375
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4377 $as_echo_n "checking dependency style of $depcc... " >&6; }
4378 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4382 # We make a subdir and do the tests there. Otherwise we can end up
4383 # making bogus files that we don't know about and never remove. For
4384 # instance it was reported that on HP-UX the gcc test will end up
4385 # making a dummy file named 'D' -- because '-MD' means "put the output
4386 # in D".
4387 rm -rf conftest.dir
4388 mkdir conftest.dir
4389 # Copy depcomp to subdir because otherwise we won't find it if we're
4390 # using a relative directory.
4391 cp "$am_depcomp" conftest.dir
4392 cd conftest.dir
4393 # We will build objects and dependencies in a subdirectory because
4394 # it helps to detect inapplicable dependency modes. For instance
4395 # both Tru64's cc and ICC support -MD to output dependencies as a
4396 # side effect of compilation, but ICC will put the dependencies in
4397 # the current directory while Tru64 will put them in the object
4398 # directory.
4399 mkdir sub
4400
4401 am_cv_CCAS_dependencies_compiler_type=none
4402 if test "$am_compiler_list" = ""; then
4403 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4404 fi
4405 am__universal=false
4406
4407
4408 for depmode in $am_compiler_list; do
4409 # Setup a source with many dependencies, because some compilers
4410 # like to wrap large dependency lists on column 80 (with \), and
4411 # we should not choose a depcomp mode which is confused by this.
4412 #
4413 # We need to recreate these files for each test, as the compiler may
4414 # overwrite some of them when testing with obscure command lines.
4415 # This happens at least with the AIX C compiler.
4416 : > sub/conftest.c
4417 for i in 1 2 3 4 5 6; do
4418 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4419 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4420 # Solaris 10 /bin/sh.
4421 echo '/* dummy */' > sub/conftst$i.h
4422 done
4423 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4424
4425 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4426 # mode. It turns out that the SunPro C++ compiler does not properly
4427 # handle '-M -o', and we need to detect this. Also, some Intel
4428 # versions had trouble with output in subdirs.
4429 am__obj=sub/conftest.${OBJEXT-o}
4430 am__minus_obj="-o $am__obj"
4431 case $depmode in
4432 gcc)
4433 # This depmode causes a compiler race in universal mode.
4434 test "$am__universal" = false || continue
4435 ;;
4436 nosideeffect)
4437 # After this tag, mechanisms are not by side-effect, so they'll
4438 # only be used when explicitly requested.
4439 if test "x$enable_dependency_tracking" = xyes; then
4440 continue
4441 else
4442 break
4443 fi
4444 ;;
4445 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4446 # This compiler won't grok '-c -o', but also, the minuso test has
4447 # not run yet. These depmodes are late enough in the game, and
4448 # so weak that their functioning should not be impacted.
4449 am__obj=conftest.${OBJEXT-o}
4450 am__minus_obj=
4451 ;;
4452 none) break ;;
4453 esac
4454 if depmode=$depmode \
4455 source=sub/conftest.c object=$am__obj \
4456 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4457 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4458 >/dev/null 2>conftest.err &&
4459 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4460 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4461 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4462 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4463 # icc doesn't choke on unknown options, it will just issue warnings
4464 # or remarks (even with -Werror). So we grep stderr for any message
4465 # that says an option was ignored or not supported.
4466 # When given -MP, icc 7.0 and 7.1 complain thusly:
4467 # icc: Command line warning: ignoring option '-M'; no argument required
4468 # The diagnosis changed in icc 8.0:
4469 # icc: Command line remark: option '-MP' not supported
4470 if (grep 'ignoring option' conftest.err ||
4471 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4472 am_cv_CCAS_dependencies_compiler_type=$depmode
4473 break
4474 fi
4475 fi
4476 done
4477
4478 cd ..
4479 rm -rf conftest.dir
4480 else
4481 am_cv_CCAS_dependencies_compiler_type=none
4482 fi
4483
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4486 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4487 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4488
4489 if
4490 test "x$enable_dependency_tracking" != xno \
4491 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4492 am__fastdepCCAS_TRUE=
4493 am__fastdepCCAS_FALSE='#'
4494 else
4495 am__fastdepCCAS_TRUE='#'
4496 am__fastdepCCAS_FALSE=
4497 fi
4498
4499
4500
4501 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
4502 eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
4503 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
4504
4505
4506
4507 if test -n "$ac_tool_prefix"; then
4508 for ac_prog in ar lib "link -lib"
4509 do
4510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if ${ac_cv_prog_AR+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 if test -n "$AR"; then
4518 ac_cv_prog_AR="$AR" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531 done
4532 done
4533 IFS=$as_save_IFS
4534
4535 fi
4536 fi
4537 AR=$ac_cv_prog_AR
4538 if test -n "$AR"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4540 $as_echo "$AR" >&6; }
4541 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 fi
4545
4546
4547 test -n "$AR" && break
4548 done
4549 fi
4550 if test -z "$AR"; then
4551 ac_ct_AR=$AR
4552 for ac_prog in ar lib "link -lib"
4553 do
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -n "$ac_ct_AR"; then
4562 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_ac_ct_AR="$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 fi
4580 fi
4581 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4582 if test -n "$ac_ct_AR"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4584 $as_echo "$ac_ct_AR" >&6; }
4585 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4588 fi
4589
4590
4591 test -n "$ac_ct_AR" && break
4592 done
4593
4594 if test "x$ac_ct_AR" = x; then
4595 AR="false"
4596 else
4597 case $cross_compiling:$ac_tool_warned in
4598 yes:)
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601 ac_tool_warned=yes ;;
4602 esac
4603 AR=$ac_ct_AR
4604 fi
4605 fi
4606
4607 : ${AR=ar}
4608
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4610 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4611 if ${am_cv_ar_interface+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 ac_ext=c
4615 ac_cpp='$CPP $CPPFLAGS'
4616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619
4620 am_cv_ar_interface=ar
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623 int some_variable = 0;
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4628 (eval $am_ar_try) 2>&5
4629 ac_status=$?
4630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4631 test $ac_status = 0; }
4632 if test "$ac_status" -eq 0; then
4633 am_cv_ar_interface=ar
4634 else
4635 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4637 (eval $am_ar_try) 2>&5
4638 ac_status=$?
4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640 test $ac_status = 0; }
4641 if test "$ac_status" -eq 0; then
4642 am_cv_ar_interface=lib
4643 else
4644 am_cv_ar_interface=unknown
4645 fi
4646 fi
4647 rm -f conftest.lib libconftest.a
4648
4649 fi
4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4659 $as_echo "$am_cv_ar_interface" >&6; }
4660
4661 case $am_cv_ar_interface in
4662 ar)
4663 ;;
4664 lib)
4665 # Microsoft lib, so override with the ar-lib wrapper script.
4666 # FIXME: It is wrong to rewrite AR.
4667 # But if we don't then we get into trouble of one sort or another.
4668 # A longer-term fix would be to have automake use am__AR in this case,
4669 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4670 # similar.
4671 AR="$am_aux_dir/ar-lib $AR"
4672 ;;
4673 unknown)
4674 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4675 ;;
4676 esac
4677
4678
4679 case `pwd` in
4680 *\ * | *\ *)
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4682 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4683 esac
4684
4685
4686
4687 macro_version='2.4.6'
4688 macro_revision='2.4.6'
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702 ltmain=$ac_aux_dir/ltmain.sh
4703
4704 # Make sure we can run config.sub.
4705 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4706 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4707
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4709 $as_echo_n "checking build system type... " >&6; }
4710 if ${ac_cv_build+:} false; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 ac_build_alias=$build_alias
4714 test "x$ac_build_alias" = x &&
4715 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4716 test "x$ac_build_alias" = x &&
4717 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4718 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4719 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4720
4721 fi
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4723 $as_echo "$ac_cv_build" >&6; }
4724 case $ac_cv_build in
4725 *-*-*) ;;
4726 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4727 esac
4728 build=$ac_cv_build
4729 ac_save_IFS=$IFS; IFS='-'
4730 set x $ac_cv_build
4731 shift
4732 build_cpu=$1
4733 build_vendor=$2
4734 shift; shift
4735 # Remember, the first character of IFS is used to create $*,
4736 # except with old shells:
4737 build_os=$*
4738 IFS=$ac_save_IFS
4739 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4740
4741
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4743 $as_echo_n "checking host system type... " >&6; }
4744 if ${ac_cv_host+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 if test "x$host_alias" = x; then
4748 ac_cv_host=$ac_cv_build
4749 else
4750 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4751 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4752 fi
4753
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4756 $as_echo "$ac_cv_host" >&6; }
4757 case $ac_cv_host in
4758 *-*-*) ;;
4759 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4760 esac
4761 host=$ac_cv_host
4762 ac_save_IFS=$IFS; IFS='-'
4763 set x $ac_cv_host
4764 shift
4765 host_cpu=$1
4766 host_vendor=$2
4767 shift; shift
4768 # Remember, the first character of IFS is used to create $*,
4769 # except with old shells:
4770 host_os=$*
4771 IFS=$ac_save_IFS
4772 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4773
4774
4775 # Backslashify metacharacters that are still active within
4776 # double-quoted strings.
4777 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4778
4779 # Same as above, but do not quote variable references.
4780 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4781
4782 # Sed substitution to delay expansion of an escaped shell variable in a
4783 # double_quote_subst'ed string.
4784 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4785
4786 # Sed substitution to delay expansion of an escaped single quote.
4787 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4788
4789 # Sed substitution to avoid accidental globbing in evaled expressions
4790 no_glob_subst='s/\*/\\\*/g'
4791
4792 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4793 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4794 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4795
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4797 $as_echo_n "checking how to print strings... " >&6; }
4798 # Test print first, because it will be a builtin if present.
4799 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4800 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4801 ECHO='print -r --'
4802 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4803 ECHO='printf %s\n'
4804 else
4805 # Use this function as a fallback that always works.
4806 func_fallback_echo ()
4807 {
4808 eval 'cat <<_LTECHO_EOF
4809 $1
4810 _LTECHO_EOF'
4811 }
4812 ECHO='func_fallback_echo'
4813 fi
4814
4815 # func_echo_all arg...
4816 # Invoke $ECHO with all args, space-separated.
4817 func_echo_all ()
4818 {
4819 $ECHO ""
4820 }
4821
4822 case $ECHO in
4823 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4824 $as_echo "printf" >&6; } ;;
4825 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4826 $as_echo "print -r" >&6; } ;;
4827 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4828 $as_echo "cat" >&6; } ;;
4829 esac
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4845 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4846 if ${ac_cv_path_SED+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4850 for ac_i in 1 2 3 4 5 6 7; do
4851 ac_script="$ac_script$as_nl$ac_script"
4852 done
4853 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4854 { ac_script=; unset ac_script;}
4855 if test -z "$SED"; then
4856 ac_path_SED_found=false
4857 # Loop through the user's path and test for each of PROGNAME-LIST
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_prog in sed gsed; do
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4866 as_fn_executable_p "$ac_path_SED" || continue
4867 # Check for GNU ac_path_SED and select it if it is found.
4868 # Check for GNU $ac_path_SED
4869 case `"$ac_path_SED" --version 2>&1` in
4870 *GNU*)
4871 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4872 *)
4873 ac_count=0
4874 $as_echo_n 0123456789 >"conftest.in"
4875 while :
4876 do
4877 cat "conftest.in" "conftest.in" >"conftest.tmp"
4878 mv "conftest.tmp" "conftest.in"
4879 cp "conftest.in" "conftest.nl"
4880 $as_echo '' >> "conftest.nl"
4881 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4883 as_fn_arith $ac_count + 1 && ac_count=$as_val
4884 if test $ac_count -gt ${ac_path_SED_max-0}; then
4885 # Best one so far, save it but keep looking for a better one
4886 ac_cv_path_SED="$ac_path_SED"
4887 ac_path_SED_max=$ac_count
4888 fi
4889 # 10*(2^10) chars as input seems more than enough
4890 test $ac_count -gt 10 && break
4891 done
4892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4893 esac
4894
4895 $ac_path_SED_found && break 3
4896 done
4897 done
4898 done
4899 IFS=$as_save_IFS
4900 if test -z "$ac_cv_path_SED"; then
4901 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4902 fi
4903 else
4904 ac_cv_path_SED=$SED
4905 fi
4906
4907 fi
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4909 $as_echo "$ac_cv_path_SED" >&6; }
4910 SED="$ac_cv_path_SED"
4911 rm -f conftest.sed
4912
4913 test -z "$SED" && SED=sed
4914 Xsed="$SED -e 1s/^X//"
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4927 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4928 if ${ac_cv_path_GREP+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -z "$GREP"; then
4932 ac_path_GREP_found=false
4933 # Loop through the user's path and test for each of PROGNAME-LIST
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4936 do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_prog in grep ggrep; do
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4942 as_fn_executable_p "$ac_path_GREP" || continue
4943 # Check for GNU ac_path_GREP and select it if it is found.
4944 # Check for GNU $ac_path_GREP
4945 case `"$ac_path_GREP" --version 2>&1` in
4946 *GNU*)
4947 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4948 *)
4949 ac_count=0
4950 $as_echo_n 0123456789 >"conftest.in"
4951 while :
4952 do
4953 cat "conftest.in" "conftest.in" >"conftest.tmp"
4954 mv "conftest.tmp" "conftest.in"
4955 cp "conftest.in" "conftest.nl"
4956 $as_echo 'GREP' >> "conftest.nl"
4957 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4959 as_fn_arith $ac_count + 1 && ac_count=$as_val
4960 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4961 # Best one so far, save it but keep looking for a better one
4962 ac_cv_path_GREP="$ac_path_GREP"
4963 ac_path_GREP_max=$ac_count
4964 fi
4965 # 10*(2^10) chars as input seems more than enough
4966 test $ac_count -gt 10 && break
4967 done
4968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4969 esac
4970
4971 $ac_path_GREP_found && break 3
4972 done
4973 done
4974 done
4975 IFS=$as_save_IFS
4976 if test -z "$ac_cv_path_GREP"; then
4977 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4978 fi
4979 else
4980 ac_cv_path_GREP=$GREP
4981 fi
4982
4983 fi
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4985 $as_echo "$ac_cv_path_GREP" >&6; }
4986 GREP="$ac_cv_path_GREP"
4987
4988
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4990 $as_echo_n "checking for egrep... " >&6; }
4991 if ${ac_cv_path_EGREP+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4995 then ac_cv_path_EGREP="$GREP -E"
4996 else
4997 if test -z "$EGREP"; then
4998 ac_path_EGREP_found=false
4999 # Loop through the user's path and test for each of PROGNAME-LIST
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5002 do
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_prog in egrep; do
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5008 as_fn_executable_p "$ac_path_EGREP" || continue
5009 # Check for GNU ac_path_EGREP and select it if it is found.
5010 # Check for GNU $ac_path_EGREP
5011 case `"$ac_path_EGREP" --version 2>&1` in
5012 *GNU*)
5013 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5014 *)
5015 ac_count=0
5016 $as_echo_n 0123456789 >"conftest.in"
5017 while :
5018 do
5019 cat "conftest.in" "conftest.in" >"conftest.tmp"
5020 mv "conftest.tmp" "conftest.in"
5021 cp "conftest.in" "conftest.nl"
5022 $as_echo 'EGREP' >> "conftest.nl"
5023 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5024 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5025 as_fn_arith $ac_count + 1 && ac_count=$as_val
5026 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5027 # Best one so far, save it but keep looking for a better one
5028 ac_cv_path_EGREP="$ac_path_EGREP"
5029 ac_path_EGREP_max=$ac_count
5030 fi
5031 # 10*(2^10) chars as input seems more than enough
5032 test $ac_count -gt 10 && break
5033 done
5034 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5035 esac
5036
5037 $ac_path_EGREP_found && break 3
5038 done
5039 done
5040 done
5041 IFS=$as_save_IFS
5042 if test -z "$ac_cv_path_EGREP"; then
5043 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5044 fi
5045 else
5046 ac_cv_path_EGREP=$EGREP
5047 fi
5048
5049 fi
5050 fi
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5052 $as_echo "$ac_cv_path_EGREP" >&6; }
5053 EGREP="$ac_cv_path_EGREP"
5054
5055
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5057 $as_echo_n "checking for fgrep... " >&6; }
5058 if ${ac_cv_path_FGREP+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5062 then ac_cv_path_FGREP="$GREP -F"
5063 else
5064 if test -z "$FGREP"; then
5065 ac_path_FGREP_found=false
5066 # Loop through the user's path and test for each of PROGNAME-LIST
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5069 do
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_prog in fgrep; do
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5075 as_fn_executable_p "$ac_path_FGREP" || continue
5076 # Check for GNU ac_path_FGREP and select it if it is found.
5077 # Check for GNU $ac_path_FGREP
5078 case `"$ac_path_FGREP" --version 2>&1` in
5079 *GNU*)
5080 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5081 *)
5082 ac_count=0
5083 $as_echo_n 0123456789 >"conftest.in"
5084 while :
5085 do
5086 cat "conftest.in" "conftest.in" >"conftest.tmp"
5087 mv "conftest.tmp" "conftest.in"
5088 cp "conftest.in" "conftest.nl"
5089 $as_echo 'FGREP' >> "conftest.nl"
5090 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5092 as_fn_arith $ac_count + 1 && ac_count=$as_val
5093 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5094 # Best one so far, save it but keep looking for a better one
5095 ac_cv_path_FGREP="$ac_path_FGREP"
5096 ac_path_FGREP_max=$ac_count
5097 fi
5098 # 10*(2^10) chars as input seems more than enough
5099 test $ac_count -gt 10 && break
5100 done
5101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5102 esac
5103
5104 $ac_path_FGREP_found && break 3
5105 done
5106 done
5107 done
5108 IFS=$as_save_IFS
5109 if test -z "$ac_cv_path_FGREP"; then
5110 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5111 fi
5112 else
5113 ac_cv_path_FGREP=$FGREP
5114 fi
5115
5116 fi
5117 fi
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5119 $as_echo "$ac_cv_path_FGREP" >&6; }
5120 FGREP="$ac_cv_path_FGREP"
5121
5122
5123 test -z "$GREP" && GREP=grep
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143 # Check whether --with-gnu-ld was given.
5144 if test "${with_gnu_ld+set}" = set; then :
5145 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5146 else
5147 with_gnu_ld=no
5148 fi
5149
5150 ac_prog=ld
5151 if test yes = "$GCC"; then
5152 # Check if gcc -print-prog-name=ld gives a path.
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5154 $as_echo_n "checking for ld used by $CC... " >&6; }
5155 case $host in
5156 *-*-mingw*)
5157 # gcc leaves a trailing carriage return, which upsets mingw
5158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5159 *)
5160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5161 esac
5162 case $ac_prog in
5163 # Accept absolute paths.
5164 [\\/]* | ?:[\\/]*)
5165 re_direlt='/[^/][^/]*/\.\./'
5166 # Canonicalize the pathname of ld
5167 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5168 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5169 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5170 done
5171 test -z "$LD" && LD=$ac_prog
5172 ;;
5173 "")
5174 # If it fails, then pretend we aren't using GCC.
5175 ac_prog=ld
5176 ;;
5177 *)
5178 # If it is relative, then search for the first ld in PATH.
5179 with_gnu_ld=unknown
5180 ;;
5181 esac
5182 elif test yes = "$with_gnu_ld"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5184 $as_echo_n "checking for GNU ld... " >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5187 $as_echo_n "checking for non-GNU ld... " >&6; }
5188 fi
5189 if ${lt_cv_path_LD+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if test -z "$LD"; then
5193 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5194 for ac_dir in $PATH; do
5195 IFS=$lt_save_ifs
5196 test -z "$ac_dir" && ac_dir=.
5197 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5198 lt_cv_path_LD=$ac_dir/$ac_prog
5199 # Check to see if the program is GNU ld. I'd rather use --version,
5200 # but apparently some variants of GNU ld only accept -v.
5201 # Break only if it was the GNU/non-GNU ld that we prefer.
5202 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5203 *GNU* | *'with BFD'*)
5204 test no != "$with_gnu_ld" && break
5205 ;;
5206 *)
5207 test yes != "$with_gnu_ld" && break
5208 ;;
5209 esac
5210 fi
5211 done
5212 IFS=$lt_save_ifs
5213 else
5214 lt_cv_path_LD=$LD # Let the user override the test with a path.
5215 fi
5216 fi
5217
5218 LD=$lt_cv_path_LD
5219 if test -n "$LD"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5221 $as_echo "$LD" >&6; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5228 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5229 if ${lt_cv_prog_gnu_ld+:} false; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5233 case `$LD -v 2>&1 </dev/null` in
5234 *GNU* | *'with BFD'*)
5235 lt_cv_prog_gnu_ld=yes
5236 ;;
5237 *)
5238 lt_cv_prog_gnu_ld=no
5239 ;;
5240 esac
5241 fi
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5243 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5244 with_gnu_ld=$lt_cv_prog_gnu_ld
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5255 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5256 if ${lt_cv_path_NM+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 if test -n "$NM"; then
5260 # Let the user override the test.
5261 lt_cv_path_NM=$NM
5262 else
5263 lt_nm_to_check=${ac_tool_prefix}nm
5264 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5265 lt_nm_to_check="$lt_nm_to_check nm"
5266 fi
5267 for lt_tmp_nm in $lt_nm_to_check; do
5268 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5269 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5270 IFS=$lt_save_ifs
5271 test -z "$ac_dir" && ac_dir=.
5272 tmp_nm=$ac_dir/$lt_tmp_nm
5273 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5274 # Check to see if the nm accepts a BSD-compat flag.
5275 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5276 # nm: unknown option "B" ignored
5277 # Tru64's nm complains that /dev/null is an invalid object file
5278 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5279 case $build_os in
5280 mingw*) lt_bad_file=conftest.nm/nofile ;;
5281 *) lt_bad_file=/dev/null ;;
5282 esac
5283 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5284 *$lt_bad_file* | *'Invalid file or object type'*)
5285 lt_cv_path_NM="$tmp_nm -B"
5286 break 2
5287 ;;
5288 *)
5289 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5290 */dev/null*)
5291 lt_cv_path_NM="$tmp_nm -p"
5292 break 2
5293 ;;
5294 *)
5295 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5296 continue # so that we can try to find one that supports BSD flags
5297 ;;
5298 esac
5299 ;;
5300 esac
5301 fi
5302 done
5303 IFS=$lt_save_ifs
5304 done
5305 : ${lt_cv_path_NM=no}
5306 fi
5307 fi
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5309 $as_echo "$lt_cv_path_NM" >&6; }
5310 if test no != "$lt_cv_path_NM"; then
5311 NM=$lt_cv_path_NM
5312 else
5313 # Didn't find any BSD compatible name lister, look for dumpbin.
5314 if test -n "$DUMPBIN"; then :
5315 # Let the user override the test.
5316 else
5317 if test -n "$ac_tool_prefix"; then
5318 for ac_prog in dumpbin "link -dump"
5319 do
5320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if ${ac_cv_prog_DUMPBIN+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 if test -n "$DUMPBIN"; then
5328 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5329 else
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5332 do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5340 fi
5341 done
5342 done
5343 IFS=$as_save_IFS
5344
5345 fi
5346 fi
5347 DUMPBIN=$ac_cv_prog_DUMPBIN
5348 if test -n "$DUMPBIN"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5350 $as_echo "$DUMPBIN" >&6; }
5351 else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5355
5356
5357 test -n "$DUMPBIN" && break
5358 done
5359 fi
5360 if test -z "$DUMPBIN"; then
5361 ac_ct_DUMPBIN=$DUMPBIN
5362 for ac_prog in dumpbin "link -dump"
5363 do
5364 # Extract the first word of "$ac_prog", so it can be a program name with args.
5365 set dummy $ac_prog; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 if test -n "$ac_ct_DUMPBIN"; then
5372 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5384 fi
5385 done
5386 done
5387 IFS=$as_save_IFS
5388
5389 fi
5390 fi
5391 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5392 if test -n "$ac_ct_DUMPBIN"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5394 $as_echo "$ac_ct_DUMPBIN" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 fi
5399
5400
5401 test -n "$ac_ct_DUMPBIN" && break
5402 done
5403
5404 if test "x$ac_ct_DUMPBIN" = x; then
5405 DUMPBIN=":"
5406 else
5407 case $cross_compiling:$ac_tool_warned in
5408 yes:)
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5411 ac_tool_warned=yes ;;
5412 esac
5413 DUMPBIN=$ac_ct_DUMPBIN
5414 fi
5415 fi
5416
5417 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5418 *COFF*)
5419 DUMPBIN="$DUMPBIN -symbols -headers"
5420 ;;
5421 *)
5422 DUMPBIN=:
5423 ;;
5424 esac
5425 fi
5426
5427 if test : != "$DUMPBIN"; then
5428 NM=$DUMPBIN
5429 fi
5430 fi
5431 test -z "$NM" && NM=nm
5432
5433
5434
5435
5436
5437
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5439 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5440 if ${lt_cv_nm_interface+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 lt_cv_nm_interface="BSD nm"
5444 echo "int some_variable = 0;" > conftest.$ac_ext
5445 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5446 (eval "$ac_compile" 2>conftest.err)
5447 cat conftest.err >&5
5448 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5449 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5450 cat conftest.err >&5
5451 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5452 cat conftest.out >&5
5453 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5454 lt_cv_nm_interface="MS dumpbin"
5455 fi
5456 rm -f conftest*
5457 fi
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5459 $as_echo "$lt_cv_nm_interface" >&6; }
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5462 $as_echo_n "checking whether ln -s works... " >&6; }
5463 LN_S=$as_ln_s
5464 if test "$LN_S" = "ln -s"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5466 $as_echo "yes" >&6; }
5467 else
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5469 $as_echo "no, using $LN_S" >&6; }
5470 fi
5471
5472 # find the maximum length of command line arguments
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5474 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5475 if ${lt_cv_sys_max_cmd_len+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 i=0
5479 teststring=ABCD
5480
5481 case $build_os in
5482 msdosdjgpp*)
5483 # On DJGPP, this test can blow up pretty badly due to problems in libc
5484 # (any single argument exceeding 2000 bytes causes a buffer overrun
5485 # during glob expansion). Even if it were fixed, the result of this
5486 # check would be larger than it should be.
5487 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5488 ;;
5489
5490 gnu*)
5491 # Under GNU Hurd, this test is not required because there is
5492 # no limit to the length of command line arguments.
5493 # Libtool will interpret -1 as no limit whatsoever
5494 lt_cv_sys_max_cmd_len=-1;
5495 ;;
5496
5497 cygwin* | mingw* | cegcc*)
5498 # On Win9x/ME, this test blows up -- it succeeds, but takes
5499 # about 5 minutes as the teststring grows exponentially.
5500 # Worse, since 9x/ME are not pre-emptively multitasking,
5501 # you end up with a "frozen" computer, even though with patience
5502 # the test eventually succeeds (with a max line length of 256k).
5503 # Instead, let's just punt: use the minimum linelength reported by
5504 # all of the supported platforms: 8192 (on NT/2K/XP).
5505 lt_cv_sys_max_cmd_len=8192;
5506 ;;
5507
5508 mint*)
5509 # On MiNT this can take a long time and run out of memory.
5510 lt_cv_sys_max_cmd_len=8192;
5511 ;;
5512
5513 amigaos*)
5514 # On AmigaOS with pdksh, this test takes hours, literally.
5515 # So we just punt and use a minimum line length of 8192.
5516 lt_cv_sys_max_cmd_len=8192;
5517 ;;
5518
5519 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5520 # This has been around since 386BSD, at least. Likely further.
5521 if test -x /sbin/sysctl; then
5522 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5523 elif test -x /usr/sbin/sysctl; then
5524 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5525 else
5526 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5527 fi
5528 # And add a safety zone
5529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5531 ;;
5532
5533 interix*)
5534 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5535 lt_cv_sys_max_cmd_len=196608
5536 ;;
5537
5538 os2*)
5539 # The test takes a long time on OS/2.
5540 lt_cv_sys_max_cmd_len=8192
5541 ;;
5542
5543 osf*)
5544 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5545 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5546 # nice to cause kernel panics so lets avoid the loop below.
5547 # First set a reasonable default.
5548 lt_cv_sys_max_cmd_len=16384
5549 #
5550 if test -x /sbin/sysconfig; then
5551 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5552 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5553 esac
5554 fi
5555 ;;
5556 sco3.2v5*)
5557 lt_cv_sys_max_cmd_len=102400
5558 ;;
5559 sysv5* | sco5v6* | sysv4.2uw2*)
5560 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5561 if test -n "$kargmax"; then
5562 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5563 else
5564 lt_cv_sys_max_cmd_len=32768
5565 fi
5566 ;;
5567 *)
5568 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5569 if test -n "$lt_cv_sys_max_cmd_len" && \
5570 test undefined != "$lt_cv_sys_max_cmd_len"; then
5571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5573 else
5574 # Make teststring a little bigger before we do anything with it.
5575 # a 1K string should be a reasonable start.
5576 for i in 1 2 3 4 5 6 7 8; do
5577 teststring=$teststring$teststring
5578 done
5579 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5580 # If test is not a shell built-in, we'll probably end up computing a
5581 # maximum length that is only half of the actual maximum length, but
5582 # we can't tell.
5583 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5584 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5585 test 17 != "$i" # 1/2 MB should be enough
5586 do
5587 i=`expr $i + 1`
5588 teststring=$teststring$teststring
5589 done
5590 # Only check the string length outside the loop.
5591 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5592 teststring=
5593 # Add a significant safety factor because C++ compilers can tack on
5594 # massive amounts of additional arguments before passing them to the
5595 # linker. It appears as though 1/2 is a usable value.
5596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5597 fi
5598 ;;
5599 esac
5600
5601 fi
5602
5603 if test -n "$lt_cv_sys_max_cmd_len"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5605 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5608 $as_echo "none" >&6; }
5609 fi
5610 max_cmd_len=$lt_cv_sys_max_cmd_len
5611
5612
5613
5614
5615
5616
5617 : ${CP="cp -f"}
5618 : ${MV="mv -f"}
5619 : ${RM="rm -f"}
5620
5621 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5622 lt_unset=unset
5623 else
5624 lt_unset=false
5625 fi
5626
5627
5628
5629
5630
5631 # test EBCDIC or ASCII
5632 case `echo X|tr X '\101'` in
5633 A) # ASCII based system
5634 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5635 lt_SP2NL='tr \040 \012'
5636 lt_NL2SP='tr \015\012 \040\040'
5637 ;;
5638 *) # EBCDIC based system
5639 lt_SP2NL='tr \100 \n'
5640 lt_NL2SP='tr \r\n \100\100'
5641 ;;
5642 esac
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5653 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5654 if ${lt_cv_to_host_file_cmd+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 case $host in
5658 *-*-mingw* )
5659 case $build in
5660 *-*-mingw* ) # actually msys
5661 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5662 ;;
5663 *-*-cygwin* )
5664 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5665 ;;
5666 * ) # otherwise, assume *nix
5667 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5668 ;;
5669 esac
5670 ;;
5671 *-*-cygwin* )
5672 case $build in
5673 *-*-mingw* ) # actually msys
5674 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5675 ;;
5676 *-*-cygwin* )
5677 lt_cv_to_host_file_cmd=func_convert_file_noop
5678 ;;
5679 * ) # otherwise, assume *nix
5680 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5681 ;;
5682 esac
5683 ;;
5684 * ) # unhandled hosts (and "normal" native builds)
5685 lt_cv_to_host_file_cmd=func_convert_file_noop
5686 ;;
5687 esac
5688
5689 fi
5690
5691 to_host_file_cmd=$lt_cv_to_host_file_cmd
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5693 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5694
5695
5696
5697
5698
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5700 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5701 if ${lt_cv_to_tool_file_cmd+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 #assume ordinary cross tools, or native build.
5705 lt_cv_to_tool_file_cmd=func_convert_file_noop
5706 case $host in
5707 *-*-mingw* )
5708 case $build in
5709 *-*-mingw* ) # actually msys
5710 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5711 ;;
5712 esac
5713 ;;
5714 esac
5715
5716 fi
5717
5718 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5720 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5721
5722
5723
5724
5725
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5727 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5728 if ${lt_cv_ld_reload_flag+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 lt_cv_ld_reload_flag='-r'
5732 fi
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5734 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5735 reload_flag=$lt_cv_ld_reload_flag
5736 case $reload_flag in
5737 "" | " "*) ;;
5738 *) reload_flag=" $reload_flag" ;;
5739 esac
5740 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5741 case $host_os in
5742 cygwin* | mingw* | pw32* | cegcc*)
5743 if test yes != "$GCC"; then
5744 reload_cmds=false
5745 fi
5746 ;;
5747 darwin*)
5748 if test yes = "$GCC"; then
5749 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5750 else
5751 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5752 fi
5753 ;;
5754 esac
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764 if test -n "$ac_tool_prefix"; then
5765 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5766 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if ${ac_cv_prog_OBJDUMP+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 if test -n "$OBJDUMP"; then
5773 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786 done
5787 done
5788 IFS=$as_save_IFS
5789
5790 fi
5791 fi
5792 OBJDUMP=$ac_cv_prog_OBJDUMP
5793 if test -n "$OBJDUMP"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5795 $as_echo "$OBJDUMP" >&6; }
5796 else
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5799 fi
5800
5801
5802 fi
5803 if test -z "$ac_cv_prog_OBJDUMP"; then
5804 ac_ct_OBJDUMP=$OBJDUMP
5805 # Extract the first word of "objdump", so it can be a program name with args.
5806 set dummy objdump; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if test -n "$ac_ct_OBJDUMP"; then
5813 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818 IFS=$as_save_IFS
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 break 2
5825 fi
5826 done
5827 done
5828 IFS=$as_save_IFS
5829
5830 fi
5831 fi
5832 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5833 if test -n "$ac_ct_OBJDUMP"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5835 $as_echo "$ac_ct_OBJDUMP" >&6; }
5836 else
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840
5841 if test "x$ac_ct_OBJDUMP" = x; then
5842 OBJDUMP="false"
5843 else
5844 case $cross_compiling:$ac_tool_warned in
5845 yes:)
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5848 ac_tool_warned=yes ;;
5849 esac
5850 OBJDUMP=$ac_ct_OBJDUMP
5851 fi
5852 else
5853 OBJDUMP="$ac_cv_prog_OBJDUMP"
5854 fi
5855
5856 test -z "$OBJDUMP" && OBJDUMP=objdump
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5867 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5868 if ${lt_cv_deplibs_check_method+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 lt_cv_file_magic_cmd='$MAGIC_CMD'
5872 lt_cv_file_magic_test_file=
5873 lt_cv_deplibs_check_method='unknown'
5874 # Need to set the preceding variable on all platforms that support
5875 # interlibrary dependencies.
5876 # 'none' -- dependencies not supported.
5877 # 'unknown' -- same as none, but documents that we really don't know.
5878 # 'pass_all' -- all dependencies passed with no checks.
5879 # 'test_compile' -- check by making test program.
5880 # 'file_magic [[regex]]' -- check by looking for files in library path
5881 # that responds to the $file_magic_cmd with a given extended regex.
5882 # If you have 'file' or equivalent on your system and you're not sure
5883 # whether 'pass_all' will *always* work, you probably want this one.
5884
5885 case $host_os in
5886 aix[4-9]*)
5887 lt_cv_deplibs_check_method=pass_all
5888 ;;
5889
5890 beos*)
5891 lt_cv_deplibs_check_method=pass_all
5892 ;;
5893
5894 bsdi[45]*)
5895 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5896 lt_cv_file_magic_cmd='/usr/bin/file -L'
5897 lt_cv_file_magic_test_file=/shlib/libc.so
5898 ;;
5899
5900 cygwin*)
5901 # func_win32_libid is a shell function defined in ltmain.sh
5902 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5903 lt_cv_file_magic_cmd='func_win32_libid'
5904 ;;
5905
5906 mingw* | pw32*)
5907 # Base MSYS/MinGW do not provide the 'file' command needed by
5908 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5909 # unless we find 'file', for example because we are cross-compiling.
5910 if ( file / ) >/dev/null 2>&1; then
5911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5912 lt_cv_file_magic_cmd='func_win32_libid'
5913 else
5914 # Keep this pattern in sync with the one in func_win32_libid.
5915 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5916 lt_cv_file_magic_cmd='$OBJDUMP -f'
5917 fi
5918 ;;
5919
5920 cegcc*)
5921 # use the weaker test based on 'objdump'. See mingw*.
5922 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5923 lt_cv_file_magic_cmd='$OBJDUMP -f'
5924 ;;
5925
5926 darwin* | rhapsody*)
5927 lt_cv_deplibs_check_method=pass_all
5928 ;;
5929
5930 freebsd* | dragonfly*)
5931 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5932 case $host_cpu in
5933 i*86 )
5934 # Not sure whether the presence of OpenBSD here was a mistake.
5935 # Let's accept both of them until this is cleared up.
5936 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5937 lt_cv_file_magic_cmd=/usr/bin/file
5938 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5939 ;;
5940 esac
5941 else
5942 lt_cv_deplibs_check_method=pass_all
5943 fi
5944 ;;
5945
5946 haiku*)
5947 lt_cv_deplibs_check_method=pass_all
5948 ;;
5949
5950 hpux10.20* | hpux11*)
5951 lt_cv_file_magic_cmd=/usr/bin/file
5952 case $host_cpu in
5953 ia64*)
5954 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5955 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5956 ;;
5957 hppa*64*)
5958 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]'
5959 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5960 ;;
5961 *)
5962 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5963 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5964 ;;
5965 esac
5966 ;;
5967
5968 interix[3-9]*)
5969 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5971 ;;
5972
5973 irix5* | irix6* | nonstopux*)
5974 case $LD in
5975 *-32|*"-32 ") libmagic=32-bit;;
5976 *-n32|*"-n32 ") libmagic=N32;;
5977 *-64|*"-64 ") libmagic=64-bit;;
5978 *) libmagic=never-match;;
5979 esac
5980 lt_cv_deplibs_check_method=pass_all
5981 ;;
5982
5983 # This must be glibc/ELF.
5984 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5985 lt_cv_deplibs_check_method=pass_all
5986 ;;
5987
5988 netbsd*)
5989 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5991 else
5992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5993 fi
5994 ;;
5995
5996 newos6*)
5997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5998 lt_cv_file_magic_cmd=/usr/bin/file
5999 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6000 ;;
6001
6002 *nto* | *qnx*)
6003 lt_cv_deplibs_check_method=pass_all
6004 ;;
6005
6006 openbsd* | bitrig*)
6007 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6009 else
6010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6011 fi
6012 ;;
6013
6014 osf3* | osf4* | osf5*)
6015 lt_cv_deplibs_check_method=pass_all
6016 ;;
6017
6018 rdos*)
6019 lt_cv_deplibs_check_method=pass_all
6020 ;;
6021
6022 solaris*)
6023 lt_cv_deplibs_check_method=pass_all
6024 ;;
6025
6026 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6027 lt_cv_deplibs_check_method=pass_all
6028 ;;
6029
6030 sysv4 | sysv4.3*)
6031 case $host_vendor in
6032 motorola)
6033 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]'
6034 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6035 ;;
6036 ncr)
6037 lt_cv_deplibs_check_method=pass_all
6038 ;;
6039 sequent)
6040 lt_cv_file_magic_cmd='/bin/file'
6041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6042 ;;
6043 sni)
6044 lt_cv_file_magic_cmd='/bin/file'
6045 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6046 lt_cv_file_magic_test_file=/lib/libc.so
6047 ;;
6048 siemens)
6049 lt_cv_deplibs_check_method=pass_all
6050 ;;
6051 pc)
6052 lt_cv_deplibs_check_method=pass_all
6053 ;;
6054 esac
6055 ;;
6056
6057 tpf*)
6058 lt_cv_deplibs_check_method=pass_all
6059 ;;
6060 os2*)
6061 lt_cv_deplibs_check_method=pass_all
6062 ;;
6063 esac
6064
6065 fi
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6067 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6068
6069 file_magic_glob=
6070 want_nocaseglob=no
6071 if test "$build" = "$host"; then
6072 case $host_os in
6073 mingw* | pw32*)
6074 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6075 want_nocaseglob=yes
6076 else
6077 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6078 fi
6079 ;;
6080 esac
6081 fi
6082
6083 file_magic_cmd=$lt_cv_file_magic_cmd
6084 deplibs_check_method=$lt_cv_deplibs_check_method
6085 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108 if test -n "$ac_tool_prefix"; then
6109 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6110 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if ${ac_cv_prog_DLLTOOL+:} false; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 if test -n "$DLLTOOL"; then
6117 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6129 fi
6130 done
6131 done
6132 IFS=$as_save_IFS
6133
6134 fi
6135 fi
6136 DLLTOOL=$ac_cv_prog_DLLTOOL
6137 if test -n "$DLLTOOL"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6139 $as_echo "$DLLTOOL" >&6; }
6140 else
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6143 fi
6144
6145
6146 fi
6147 if test -z "$ac_cv_prog_DLLTOOL"; then
6148 ac_ct_DLLTOOL=$DLLTOOL
6149 # Extract the first word of "dlltool", so it can be a program name with args.
6150 set dummy dlltool; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 if test -n "$ac_ct_DLLTOOL"; then
6157 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170 done
6171 done
6172 IFS=$as_save_IFS
6173
6174 fi
6175 fi
6176 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6177 if test -n "$ac_ct_DLLTOOL"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6179 $as_echo "$ac_ct_DLLTOOL" >&6; }
6180 else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6183 fi
6184
6185 if test "x$ac_ct_DLLTOOL" = x; then
6186 DLLTOOL="false"
6187 else
6188 case $cross_compiling:$ac_tool_warned in
6189 yes:)
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6192 ac_tool_warned=yes ;;
6193 esac
6194 DLLTOOL=$ac_ct_DLLTOOL
6195 fi
6196 else
6197 DLLTOOL="$ac_cv_prog_DLLTOOL"
6198 fi
6199
6200 test -z "$DLLTOOL" && DLLTOOL=dlltool
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6212 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6213 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 lt_cv_sharedlib_from_linklib_cmd='unknown'
6217
6218 case $host_os in
6219 cygwin* | mingw* | pw32* | cegcc*)
6220 # two different shell functions defined in ltmain.sh;
6221 # decide which one to use based on capabilities of $DLLTOOL
6222 case `$DLLTOOL --help 2>&1` in
6223 *--identify-strict*)
6224 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6225 ;;
6226 *)
6227 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6228 ;;
6229 esac
6230 ;;
6231 *)
6232 # fallback: assume linklib IS sharedlib
6233 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6234 ;;
6235 esac
6236
6237 fi
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6239 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6240 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6241 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6242
6243
6244
6245
6246
6247
6248
6249 if test -n "$ac_tool_prefix"; then
6250 for ac_prog in ar
6251 do
6252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if ${ac_cv_prog_AR+:} false; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 if test -n "$AR"; then
6260 ac_cv_prog_AR="$AR" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 break 2
6272 fi
6273 done
6274 done
6275 IFS=$as_save_IFS
6276
6277 fi
6278 fi
6279 AR=$ac_cv_prog_AR
6280 if test -n "$AR"; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6282 $as_echo "$AR" >&6; }
6283 else
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6286 fi
6287
6288
6289 test -n "$AR" && break
6290 done
6291 fi
6292 if test -z "$AR"; then
6293 ac_ct_AR=$AR
6294 for ac_prog in ar
6295 do
6296 # Extract the first word of "$ac_prog", so it can be a program name with args.
6297 set dummy $ac_prog; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 if test -n "$ac_ct_AR"; then
6304 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6305 else
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH
6308 do
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_ac_ct_AR="$ac_prog"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6316 fi
6317 done
6318 done
6319 IFS=$as_save_IFS
6320
6321 fi
6322 fi
6323 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6324 if test -n "$ac_ct_AR"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6326 $as_echo "$ac_ct_AR" >&6; }
6327 else
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6330 fi
6331
6332
6333 test -n "$ac_ct_AR" && break
6334 done
6335
6336 if test "x$ac_ct_AR" = x; then
6337 AR="false"
6338 else
6339 case $cross_compiling:$ac_tool_warned in
6340 yes:)
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343 ac_tool_warned=yes ;;
6344 esac
6345 AR=$ac_ct_AR
6346 fi
6347 fi
6348
6349 : ${AR=ar}
6350 : ${AR_FLAGS=cru}
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6363 $as_echo_n "checking for archiver @FILE support... " >&6; }
6364 if ${lt_cv_ar_at_file+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 lt_cv_ar_at_file=no
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6370
6371 int
6372 main ()
6373 {
6374
6375 ;
6376 return 0;
6377 }
6378 _ACEOF
6379 if ac_fn_c_try_compile "$LINENO"; then :
6380 echo conftest.$ac_objext > conftest.lst
6381 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6383 (eval $lt_ar_try) 2>&5
6384 ac_status=$?
6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6386 test $ac_status = 0; }
6387 if test 0 -eq "$ac_status"; then
6388 # Ensure the archiver fails upon bogus file names.
6389 rm -f conftest.$ac_objext libconftest.a
6390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6391 (eval $lt_ar_try) 2>&5
6392 ac_status=$?
6393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6394 test $ac_status = 0; }
6395 if test 0 -ne "$ac_status"; then
6396 lt_cv_ar_at_file=@
6397 fi
6398 fi
6399 rm -f conftest.* libconftest.a
6400
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403
6404 fi
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6406 $as_echo "$lt_cv_ar_at_file" >&6; }
6407
6408 if test no = "$lt_cv_ar_at_file"; then
6409 archiver_list_spec=
6410 else
6411 archiver_list_spec=$lt_cv_ar_at_file
6412 fi
6413
6414
6415
6416
6417
6418
6419
6420 if test -n "$ac_tool_prefix"; then
6421 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6422 set dummy ${ac_tool_prefix}strip; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_STRIP+:} false; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 if test -n "$STRIP"; then
6429 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6441 fi
6442 done
6443 done
6444 IFS=$as_save_IFS
6445
6446 fi
6447 fi
6448 STRIP=$ac_cv_prog_STRIP
6449 if test -n "$STRIP"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6451 $as_echo "$STRIP" >&6; }
6452 else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6455 fi
6456
6457
6458 fi
6459 if test -z "$ac_cv_prog_STRIP"; then
6460 ac_ct_STRIP=$STRIP
6461 # Extract the first word of "strip", so it can be a program name with args.
6462 set dummy strip; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 if test -n "$ac_ct_STRIP"; then
6469 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6470 else
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474 IFS=$as_save_IFS
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6478 ac_cv_prog_ac_ct_STRIP="strip"
6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 break 2
6481 fi
6482 done
6483 done
6484 IFS=$as_save_IFS
6485
6486 fi
6487 fi
6488 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6489 if test -n "$ac_ct_STRIP"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6491 $as_echo "$ac_ct_STRIP" >&6; }
6492 else
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6495 fi
6496
6497 if test "x$ac_ct_STRIP" = x; then
6498 STRIP=":"
6499 else
6500 case $cross_compiling:$ac_tool_warned in
6501 yes:)
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504 ac_tool_warned=yes ;;
6505 esac
6506 STRIP=$ac_ct_STRIP
6507 fi
6508 else
6509 STRIP="$ac_cv_prog_STRIP"
6510 fi
6511
6512 test -z "$STRIP" && STRIP=:
6513
6514
6515
6516
6517
6518
6519 if test -n "$ac_tool_prefix"; then
6520 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6521 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if ${ac_cv_prog_RANLIB+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 if test -n "$RANLIB"; then
6528 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6540 fi
6541 done
6542 done
6543 IFS=$as_save_IFS
6544
6545 fi
6546 fi
6547 RANLIB=$ac_cv_prog_RANLIB
6548 if test -n "$RANLIB"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6550 $as_echo "$RANLIB" >&6; }
6551 else
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6554 fi
6555
6556
6557 fi
6558 if test -z "$ac_cv_prog_RANLIB"; then
6559 ac_ct_RANLIB=$RANLIB
6560 # Extract the first word of "ranlib", so it can be a program name with args.
6561 set dummy ranlib; ac_word=$2
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563 $as_echo_n "checking for $ac_word... " >&6; }
6564 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6567 if test -n "$ac_ct_RANLIB"; then
6568 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6569 else
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 for as_dir in $PATH
6572 do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577 ac_cv_prog_ac_ct_RANLIB="ranlib"
6578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 break 2
6580 fi
6581 done
6582 done
6583 IFS=$as_save_IFS
6584
6585 fi
6586 fi
6587 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6588 if test -n "$ac_ct_RANLIB"; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6590 $as_echo "$ac_ct_RANLIB" >&6; }
6591 else
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593 $as_echo "no" >&6; }
6594 fi
6595
6596 if test "x$ac_ct_RANLIB" = x; then
6597 RANLIB=":"
6598 else
6599 case $cross_compiling:$ac_tool_warned in
6600 yes:)
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6603 ac_tool_warned=yes ;;
6604 esac
6605 RANLIB=$ac_ct_RANLIB
6606 fi
6607 else
6608 RANLIB="$ac_cv_prog_RANLIB"
6609 fi
6610
6611 test -z "$RANLIB" && RANLIB=:
6612
6613
6614
6615
6616
6617
6618 # Determine commands to create old-style static archives.
6619 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6620 old_postinstall_cmds='chmod 644 $oldlib'
6621 old_postuninstall_cmds=
6622
6623 if test -n "$RANLIB"; then
6624 case $host_os in
6625 bitrig* | openbsd*)
6626 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6627 ;;
6628 *)
6629 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6630 ;;
6631 esac
6632 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6633 fi
6634
6635 case $host_os in
6636 darwin*)
6637 lock_old_archive_extraction=yes ;;
6638 *)
6639 lock_old_archive_extraction=no ;;
6640 esac
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680 # If no C compiler was specified, use CC.
6681 LTCC=${LTCC-"$CC"}
6682
6683 # If no C compiler flags were specified, use CFLAGS.
6684 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6685
6686 # Allow CC to be a program name with arguments.
6687 compiler=$CC
6688
6689
6690 # Check for command to grab the raw symbol name followed by C symbol from nm.
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6692 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6693 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696
6697 # These are sane defaults that work on at least a few old systems.
6698 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6699
6700 # Character class describing NM global symbol codes.
6701 symcode='[BCDEGRST]'
6702
6703 # Regexp to match symbols that can be accessed directly from C.
6704 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6705
6706 # Define system-specific variables.
6707 case $host_os in
6708 aix*)
6709 symcode='[BCDT]'
6710 ;;
6711 cygwin* | mingw* | pw32* | cegcc*)
6712 symcode='[ABCDGISTW]'
6713 ;;
6714 hpux*)
6715 if test ia64 = "$host_cpu"; then
6716 symcode='[ABCDEGRST]'
6717 fi
6718 ;;
6719 irix* | nonstopux*)
6720 symcode='[BCDEGRST]'
6721 ;;
6722 osf*)
6723 symcode='[BCDEGQRST]'
6724 ;;
6725 solaris*)
6726 symcode='[BDRT]'
6727 ;;
6728 sco3.2v5*)
6729 symcode='[DT]'
6730 ;;
6731 sysv4.2uw2*)
6732 symcode='[DT]'
6733 ;;
6734 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6735 symcode='[ABDT]'
6736 ;;
6737 sysv4)
6738 symcode='[DFNSTU]'
6739 ;;
6740 esac
6741
6742 # If we're using GNU nm, then use its standard symbol codes.
6743 case `$NM -V 2>&1` in
6744 *GNU* | *'with BFD'*)
6745 symcode='[ABCDGIRSTW]' ;;
6746 esac
6747
6748 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6749 # Gets list of data symbols to import.
6750 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6751 # Adjust the below global symbol transforms to fixup imported variables.
6752 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6753 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6754 lt_c_name_lib_hook="\
6755 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6756 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6757 else
6758 # Disable hooks by default.
6759 lt_cv_sys_global_symbol_to_import=
6760 lt_cdecl_hook=
6761 lt_c_name_hook=
6762 lt_c_name_lib_hook=
6763 fi
6764
6765 # Transform an extracted symbol line into a proper C declaration.
6766 # Some systems (esp. on ia64) link data and code symbols differently,
6767 # so use this general approach.
6768 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6769 $lt_cdecl_hook\
6770 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6771 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6772
6773 # Transform an extracted symbol line into symbol name and symbol address
6774 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6775 $lt_c_name_hook\
6776 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6777 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6778
6779 # Transform an extracted symbol line into symbol name with lib prefix and
6780 # symbol address.
6781 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6782 $lt_c_name_lib_hook\
6783 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6784 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6785 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6786
6787 # Handle CRLF in mingw tool chain
6788 opt_cr=
6789 case $build_os in
6790 mingw*)
6791 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6792 ;;
6793 esac
6794
6795 # Try without a prefix underscore, then with it.
6796 for ac_symprfx in "" "_"; do
6797
6798 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6799 symxfrm="\\1 $ac_symprfx\\2 \\2"
6800
6801 # Write the raw and C identifiers.
6802 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6803 # Fake it for dumpbin and say T for any non-static function,
6804 # D for any global variable and I for any imported variable.
6805 # Also find C++ and __fastcall symbols from MSVC++,
6806 # which start with @ or ?.
6807 lt_cv_sys_global_symbol_pipe="$AWK '"\
6808 " {last_section=section; section=\$ 3};"\
6809 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6810 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6811 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6812 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6813 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6814 " \$ 0!~/External *\|/{next};"\
6815 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6816 " {if(hide[section]) next};"\
6817 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6818 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6819 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6820 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6821 " ' prfx=^$ac_symprfx"
6822 else
6823 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6824 fi
6825 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6826
6827 # Check to see that the pipe works correctly.
6828 pipe_works=no
6829
6830 rm -f conftest*
6831 cat > conftest.$ac_ext <<_LT_EOF
6832 #ifdef __cplusplus
6833 extern "C" {
6834 #endif
6835 char nm_test_var;
6836 void nm_test_func(void);
6837 void nm_test_func(void){}
6838 #ifdef __cplusplus
6839 }
6840 #endif
6841 int main(){nm_test_var='a';nm_test_func();return(0);}
6842 _LT_EOF
6843
6844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6845 (eval $ac_compile) 2>&5
6846 ac_status=$?
6847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848 test $ac_status = 0; }; then
6849 # Now try to grab the symbols.
6850 nlist=conftest.nm
6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6852 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6853 ac_status=$?
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; } && test -s "$nlist"; then
6856 # Try sorting and uniquifying the output.
6857 if sort "$nlist" | uniq > "$nlist"T; then
6858 mv -f "$nlist"T "$nlist"
6859 else
6860 rm -f "$nlist"T
6861 fi
6862
6863 # Make sure that we snagged all the symbols we need.
6864 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6865 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6866 cat <<_LT_EOF > conftest.$ac_ext
6867 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6868 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6869 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6870 relocations are performed -- see ld's documentation on pseudo-relocs. */
6871 # define LT_DLSYM_CONST
6872 #elif defined __osf__
6873 /* This system does not cope well with relocations in const data. */
6874 # define LT_DLSYM_CONST
6875 #else
6876 # define LT_DLSYM_CONST const
6877 #endif
6878
6879 #ifdef __cplusplus
6880 extern "C" {
6881 #endif
6882
6883 _LT_EOF
6884 # Now generate the symbol file.
6885 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6886
6887 cat <<_LT_EOF >> conftest.$ac_ext
6888
6889 /* The mapping between symbol names and symbols. */
6890 LT_DLSYM_CONST struct {
6891 const char *name;
6892 void *address;
6893 }
6894 lt__PROGRAM__LTX_preloaded_symbols[] =
6895 {
6896 { "@PROGRAM@", (void *) 0 },
6897 _LT_EOF
6898 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6899 cat <<\_LT_EOF >> conftest.$ac_ext
6900 {0, (void *) 0}
6901 };
6902
6903 /* This works around a problem in FreeBSD linker */
6904 #ifdef FREEBSD_WORKAROUND
6905 static const void *lt_preloaded_setup() {
6906 return lt__PROGRAM__LTX_preloaded_symbols;
6907 }
6908 #endif
6909
6910 #ifdef __cplusplus
6911 }
6912 #endif
6913 _LT_EOF
6914 # Now try linking the two files.
6915 mv conftest.$ac_objext conftstm.$ac_objext
6916 lt_globsym_save_LIBS=$LIBS
6917 lt_globsym_save_CFLAGS=$CFLAGS
6918 LIBS=conftstm.$ac_objext
6919 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6921 (eval $ac_link) 2>&5
6922 ac_status=$?
6923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6924 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6925 pipe_works=yes
6926 fi
6927 LIBS=$lt_globsym_save_LIBS
6928 CFLAGS=$lt_globsym_save_CFLAGS
6929 else
6930 echo "cannot find nm_test_func in $nlist" >&5
6931 fi
6932 else
6933 echo "cannot find nm_test_var in $nlist" >&5
6934 fi
6935 else
6936 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6937 fi
6938 else
6939 echo "$progname: failed program was:" >&5
6940 cat conftest.$ac_ext >&5
6941 fi
6942 rm -rf conftest* conftst*
6943
6944 # Do not use the global_symbol_pipe unless it works.
6945 if test yes = "$pipe_works"; then
6946 break
6947 else
6948 lt_cv_sys_global_symbol_pipe=
6949 fi
6950 done
6951
6952 fi
6953
6954 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6955 lt_cv_sys_global_symbol_to_cdecl=
6956 fi
6957 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6959 $as_echo "failed" >&6; }
6960 else
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6962 $as_echo "ok" >&6; }
6963 fi
6964
6965 # Response file support.
6966 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6967 nm_file_list_spec='@'
6968 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6969 nm_file_list_spec='@'
6970 fi
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7009 $as_echo_n "checking for sysroot... " >&6; }
7010
7011 # Check whether --with-sysroot was given.
7012 if test "${with_sysroot+set}" = set; then :
7013 withval=$with_sysroot;
7014 else
7015 with_sysroot=no
7016 fi
7017
7018
7019 lt_sysroot=
7020 case $with_sysroot in #(
7021 yes)
7022 if test yes = "$GCC"; then
7023 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7024 fi
7025 ;; #(
7026 /*)
7027 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7028 ;; #(
7029 no|'')
7030 ;; #(
7031 *)
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7033 $as_echo "$with_sysroot" >&6; }
7034 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7035 ;;
7036 esac
7037
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7039 $as_echo "${lt_sysroot:-no}" >&6; }
7040
7041
7042
7043
7044
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7046 $as_echo_n "checking for a working dd... " >&6; }
7047 if ${ac_cv_path_lt_DD+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 printf 0123456789abcdef0123456789abcdef >conftest.i
7051 cat conftest.i conftest.i >conftest2.i
7052 : ${lt_DD:=$DD}
7053 if test -z "$lt_DD"; then
7054 ac_path_lt_DD_found=false
7055 # Loop through the user's path and test for each of PROGNAME-LIST
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_prog in dd; do
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7064 as_fn_executable_p "$ac_path_lt_DD" || continue
7065 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7066 cmp -s conftest.i conftest.out \
7067 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7068 fi
7069 $ac_path_lt_DD_found && break 3
7070 done
7071 done
7072 done
7073 IFS=$as_save_IFS
7074 if test -z "$ac_cv_path_lt_DD"; then
7075 :
7076 fi
7077 else
7078 ac_cv_path_lt_DD=$lt_DD
7079 fi
7080
7081 rm -f conftest.i conftest2.i conftest.out
7082 fi
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7084 $as_echo "$ac_cv_path_lt_DD" >&6; }
7085
7086
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7088 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7089 if ${lt_cv_truncate_bin+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 printf 0123456789abcdef0123456789abcdef >conftest.i
7093 cat conftest.i conftest.i >conftest2.i
7094 lt_cv_truncate_bin=
7095 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7096 cmp -s conftest.i conftest.out \
7097 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7098 fi
7099 rm -f conftest.i conftest2.i conftest.out
7100 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7101 fi
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7103 $as_echo "$lt_cv_truncate_bin" >&6; }
7104
7105
7106
7107
7108
7109
7110
7111 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7112 func_cc_basename ()
7113 {
7114 for cc_temp in $*""; do
7115 case $cc_temp in
7116 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7117 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7118 \-*) ;;
7119 *) break;;
7120 esac
7121 done
7122 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7123 }
7124
7125 # Check whether --enable-libtool-lock was given.
7126 if test "${enable_libtool_lock+set}" = set; then :
7127 enableval=$enable_libtool_lock;
7128 fi
7129
7130 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7131
7132 # Some flags need to be propagated to the compiler or linker for good
7133 # libtool support.
7134 case $host in
7135 ia64-*-hpux*)
7136 # Find out what ABI is being produced by ac_compile, and set mode
7137 # options accordingly.
7138 echo 'int i;' > conftest.$ac_ext
7139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7140 (eval $ac_compile) 2>&5
7141 ac_status=$?
7142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7143 test $ac_status = 0; }; then
7144 case `/usr/bin/file conftest.$ac_objext` in
7145 *ELF-32*)
7146 HPUX_IA64_MODE=32
7147 ;;
7148 *ELF-64*)
7149 HPUX_IA64_MODE=64
7150 ;;
7151 esac
7152 fi
7153 rm -rf conftest*
7154 ;;
7155 *-*-irix6*)
7156 # Find out what ABI is being produced by ac_compile, and set linker
7157 # options accordingly.
7158 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7160 (eval $ac_compile) 2>&5
7161 ac_status=$?
7162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7163 test $ac_status = 0; }; then
7164 if test yes = "$lt_cv_prog_gnu_ld"; then
7165 case `/usr/bin/file conftest.$ac_objext` in
7166 *32-bit*)
7167 LD="${LD-ld} -melf32bsmip"
7168 ;;
7169 *N32*)
7170 LD="${LD-ld} -melf32bmipn32"
7171 ;;
7172 *64-bit*)
7173 LD="${LD-ld} -melf64bmip"
7174 ;;
7175 esac
7176 else
7177 case `/usr/bin/file conftest.$ac_objext` in
7178 *32-bit*)
7179 LD="${LD-ld} -32"
7180 ;;
7181 *N32*)
7182 LD="${LD-ld} -n32"
7183 ;;
7184 *64-bit*)
7185 LD="${LD-ld} -64"
7186 ;;
7187 esac
7188 fi
7189 fi
7190 rm -rf conftest*
7191 ;;
7192
7193 mips64*-*linux*)
7194 # Find out what ABI is being produced by ac_compile, and set linker
7195 # options accordingly.
7196 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7198 (eval $ac_compile) 2>&5
7199 ac_status=$?
7200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201 test $ac_status = 0; }; then
7202 emul=elf
7203 case `/usr/bin/file conftest.$ac_objext` in
7204 *32-bit*)
7205 emul="${emul}32"
7206 ;;
7207 *64-bit*)
7208 emul="${emul}64"
7209 ;;
7210 esac
7211 case `/usr/bin/file conftest.$ac_objext` in
7212 *MSB*)
7213 emul="${emul}btsmip"
7214 ;;
7215 *LSB*)
7216 emul="${emul}ltsmip"
7217 ;;
7218 esac
7219 case `/usr/bin/file conftest.$ac_objext` in
7220 *N32*)
7221 emul="${emul}n32"
7222 ;;
7223 esac
7224 LD="${LD-ld} -m $emul"
7225 fi
7226 rm -rf conftest*
7227 ;;
7228
7229 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7230 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7231 # Find out what ABI is being produced by ac_compile, and set linker
7232 # options accordingly. Note that the listed cases only cover the
7233 # situations where additional linker options are needed (such as when
7234 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7235 # vice versa); the common cases where no linker options are needed do
7236 # not appear in the list.
7237 echo 'int i;' > conftest.$ac_ext
7238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7239 (eval $ac_compile) 2>&5
7240 ac_status=$?
7241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7242 test $ac_status = 0; }; then
7243 case `/usr/bin/file conftest.o` in
7244 *32-bit*)
7245 case $host in
7246 x86_64-*kfreebsd*-gnu)
7247 LD="${LD-ld} -m elf_i386_fbsd"
7248 ;;
7249 x86_64-*linux*)
7250 case `/usr/bin/file conftest.o` in
7251 *x86-64*)
7252 LD="${LD-ld} -m elf32_x86_64"
7253 ;;
7254 *)
7255 LD="${LD-ld} -m elf_i386"
7256 ;;
7257 esac
7258 ;;
7259 powerpc64le-*linux*)
7260 LD="${LD-ld} -m elf32lppclinux"
7261 ;;
7262 powerpc64-*linux*)
7263 LD="${LD-ld} -m elf32ppclinux"
7264 ;;
7265 s390x-*linux*)
7266 LD="${LD-ld} -m elf_s390"
7267 ;;
7268 sparc64-*linux*)
7269 LD="${LD-ld} -m elf32_sparc"
7270 ;;
7271 esac
7272 ;;
7273 *64-bit*)
7274 case $host in
7275 x86_64-*kfreebsd*-gnu)
7276 LD="${LD-ld} -m elf_x86_64_fbsd"
7277 ;;
7278 x86_64-*linux*)
7279 LD="${LD-ld} -m elf_x86_64"
7280 ;;
7281 powerpcle-*linux*)
7282 LD="${LD-ld} -m elf64lppc"
7283 ;;
7284 powerpc-*linux*)
7285 LD="${LD-ld} -m elf64ppc"
7286 ;;
7287 s390*-*linux*|s390*-*tpf*)
7288 LD="${LD-ld} -m elf64_s390"
7289 ;;
7290 sparc*-*linux*)
7291 LD="${LD-ld} -m elf64_sparc"
7292 ;;
7293 esac
7294 ;;
7295 esac
7296 fi
7297 rm -rf conftest*
7298 ;;
7299
7300 *-*-sco3.2v5*)
7301 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7302 SAVE_CFLAGS=$CFLAGS
7303 CFLAGS="$CFLAGS -belf"
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7305 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7306 if ${lt_cv_cc_needs_belf+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 ac_ext=c
7310 ac_cpp='$CPP $CPPFLAGS'
7311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7314
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317
7318 int
7319 main ()
7320 {
7321
7322 ;
7323 return 0;
7324 }
7325 _ACEOF
7326 if ac_fn_c_try_link "$LINENO"; then :
7327 lt_cv_cc_needs_belf=yes
7328 else
7329 lt_cv_cc_needs_belf=no
7330 fi
7331 rm -f core conftest.err conftest.$ac_objext \
7332 conftest$ac_exeext conftest.$ac_ext
7333 ac_ext=c
7334 ac_cpp='$CPP $CPPFLAGS'
7335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7338
7339 fi
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7341 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7342 if test yes != "$lt_cv_cc_needs_belf"; then
7343 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7344 CFLAGS=$SAVE_CFLAGS
7345 fi
7346 ;;
7347 *-*solaris*)
7348 # Find out what ABI is being produced by ac_compile, and set linker
7349 # options accordingly.
7350 echo 'int i;' > conftest.$ac_ext
7351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7352 (eval $ac_compile) 2>&5
7353 ac_status=$?
7354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355 test $ac_status = 0; }; then
7356 case `/usr/bin/file conftest.o` in
7357 *64-bit*)
7358 case $lt_cv_prog_gnu_ld in
7359 yes*)
7360 case $host in
7361 i?86-*-solaris*|x86_64-*-solaris*)
7362 LD="${LD-ld} -m elf_x86_64"
7363 ;;
7364 sparc*-*-solaris*)
7365 LD="${LD-ld} -m elf64_sparc"
7366 ;;
7367 esac
7368 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7369 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7370 LD=${LD-ld}_sol2
7371 fi
7372 ;;
7373 *)
7374 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7375 LD="${LD-ld} -64"
7376 fi
7377 ;;
7378 esac
7379 ;;
7380 esac
7381 fi
7382 rm -rf conftest*
7383 ;;
7384 esac
7385
7386 need_locks=$enable_libtool_lock
7387
7388 if test -n "$ac_tool_prefix"; then
7389 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7390 set dummy ${ac_tool_prefix}mt; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7394 $as_echo_n "(cached) " >&6
7395 else
7396 if test -n "$MANIFEST_TOOL"; then
7397 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410 done
7411 done
7412 IFS=$as_save_IFS
7413
7414 fi
7415 fi
7416 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7417 if test -n "$MANIFEST_TOOL"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7419 $as_echo "$MANIFEST_TOOL" >&6; }
7420 else
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7423 fi
7424
7425
7426 fi
7427 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7428 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7429 # Extract the first word of "mt", so it can be a program name with args.
7430 set dummy mt; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 if test -n "$ac_ct_MANIFEST_TOOL"; then
7437 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442 IFS=$as_save_IFS
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 break 2
7449 fi
7450 done
7451 done
7452 IFS=$as_save_IFS
7453
7454 fi
7455 fi
7456 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7457 if test -n "$ac_ct_MANIFEST_TOOL"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7459 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7460 else
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464
7465 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7466 MANIFEST_TOOL=":"
7467 else
7468 case $cross_compiling:$ac_tool_warned in
7469 yes:)
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7472 ac_tool_warned=yes ;;
7473 esac
7474 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7475 fi
7476 else
7477 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7478 fi
7479
7480 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7482 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7483 if ${lt_cv_path_mainfest_tool+:} false; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 lt_cv_path_mainfest_tool=no
7487 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7488 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7489 cat conftest.err >&5
7490 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7491 lt_cv_path_mainfest_tool=yes
7492 fi
7493 rm -f conftest*
7494 fi
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7496 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7497 if test yes != "$lt_cv_path_mainfest_tool"; then
7498 MANIFEST_TOOL=:
7499 fi
7500
7501
7502
7503
7504
7505
7506 case $host_os in
7507 rhapsody* | darwin*)
7508 if test -n "$ac_tool_prefix"; then
7509 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 if test -n "$DSYMUTIL"; then
7517 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 break 2
7529 fi
7530 done
7531 done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7537 if test -n "$DSYMUTIL"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7539 $as_echo "$DSYMUTIL" >&6; }
7540 else
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545
7546 fi
7547 if test -z "$ac_cv_prog_DSYMUTIL"; then
7548 ac_ct_DSYMUTIL=$DSYMUTIL
7549 # Extract the first word of "dsymutil", so it can be a program name with args.
7550 set dummy dsymutil; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 if test -n "$ac_ct_DSYMUTIL"; then
7557 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7569 fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7577 if test -n "$ac_ct_DSYMUTIL"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7579 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7580 else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7583 fi
7584
7585 if test "x$ac_ct_DSYMUTIL" = x; then
7586 DSYMUTIL=":"
7587 else
7588 case $cross_compiling:$ac_tool_warned in
7589 yes:)
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592 ac_tool_warned=yes ;;
7593 esac
7594 DSYMUTIL=$ac_ct_DSYMUTIL
7595 fi
7596 else
7597 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7598 fi
7599
7600 if test -n "$ac_tool_prefix"; then
7601 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if ${ac_cv_prog_NMEDIT+:} false; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 if test -n "$NMEDIT"; then
7609 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7613 do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7618 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7621 fi
7622 done
7623 done
7624 IFS=$as_save_IFS
7625
7626 fi
7627 fi
7628 NMEDIT=$ac_cv_prog_NMEDIT
7629 if test -n "$NMEDIT"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7631 $as_echo "$NMEDIT" >&6; }
7632 else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636
7637
7638 fi
7639 if test -z "$ac_cv_prog_NMEDIT"; then
7640 ac_ct_NMEDIT=$NMEDIT
7641 # Extract the first word of "nmedit", so it can be a program name with args.
7642 set dummy nmedit; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 if test -n "$ac_ct_NMEDIT"; then
7649 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7658 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 break 2
7661 fi
7662 done
7663 done
7664 IFS=$as_save_IFS
7665
7666 fi
7667 fi
7668 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7669 if test -n "$ac_ct_NMEDIT"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7671 $as_echo "$ac_ct_NMEDIT" >&6; }
7672 else
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7675 fi
7676
7677 if test "x$ac_ct_NMEDIT" = x; then
7678 NMEDIT=":"
7679 else
7680 case $cross_compiling:$ac_tool_warned in
7681 yes:)
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7684 ac_tool_warned=yes ;;
7685 esac
7686 NMEDIT=$ac_ct_NMEDIT
7687 fi
7688 else
7689 NMEDIT="$ac_cv_prog_NMEDIT"
7690 fi
7691
7692 if test -n "$ac_tool_prefix"; then
7693 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7694 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 $as_echo_n "checking for $ac_word... " >&6; }
7697 if ${ac_cv_prog_LIPO+:} false; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7700 if test -n "$LIPO"; then
7701 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7702 else
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $PATH
7705 do
7706 IFS=$as_save_IFS
7707 test -z "$as_dir" && as_dir=.
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7710 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 break 2
7713 fi
7714 done
7715 done
7716 IFS=$as_save_IFS
7717
7718 fi
7719 fi
7720 LIPO=$ac_cv_prog_LIPO
7721 if test -n "$LIPO"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7723 $as_echo "$LIPO" >&6; }
7724 else
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7727 fi
7728
7729
7730 fi
7731 if test -z "$ac_cv_prog_LIPO"; then
7732 ac_ct_LIPO=$LIPO
7733 # Extract the first word of "lipo", so it can be a program name with args.
7734 set dummy lipo; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 if test -n "$ac_ct_LIPO"; then
7741 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7742 else
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746 IFS=$as_save_IFS
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7750 ac_cv_prog_ac_ct_LIPO="lipo"
7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 break 2
7753 fi
7754 done
7755 done
7756 IFS=$as_save_IFS
7757
7758 fi
7759 fi
7760 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7761 if test -n "$ac_ct_LIPO"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7763 $as_echo "$ac_ct_LIPO" >&6; }
7764 else
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768
7769 if test "x$ac_ct_LIPO" = x; then
7770 LIPO=":"
7771 else
7772 case $cross_compiling:$ac_tool_warned in
7773 yes:)
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7776 ac_tool_warned=yes ;;
7777 esac
7778 LIPO=$ac_ct_LIPO
7779 fi
7780 else
7781 LIPO="$ac_cv_prog_LIPO"
7782 fi
7783
7784 if test -n "$ac_tool_prefix"; then
7785 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7786 set dummy ${ac_tool_prefix}otool; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if ${ac_cv_prog_OTOOL+:} false; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 if test -n "$OTOOL"; then
7793 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7797 do
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7802 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7805 fi
7806 done
7807 done
7808 IFS=$as_save_IFS
7809
7810 fi
7811 fi
7812 OTOOL=$ac_cv_prog_OTOOL
7813 if test -n "$OTOOL"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7815 $as_echo "$OTOOL" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7819 fi
7820
7821
7822 fi
7823 if test -z "$ac_cv_prog_OTOOL"; then
7824 ac_ct_OTOOL=$OTOOL
7825 # Extract the first word of "otool", so it can be a program name with args.
7826 set dummy otool; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 if test -n "$ac_ct_OTOOL"; then
7833 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842 ac_cv_prog_ac_ct_OTOOL="otool"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7845 fi
7846 done
7847 done
7848 IFS=$as_save_IFS
7849
7850 fi
7851 fi
7852 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7853 if test -n "$ac_ct_OTOOL"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7855 $as_echo "$ac_ct_OTOOL" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7859 fi
7860
7861 if test "x$ac_ct_OTOOL" = x; then
7862 OTOOL=":"
7863 else
7864 case $cross_compiling:$ac_tool_warned in
7865 yes:)
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7868 ac_tool_warned=yes ;;
7869 esac
7870 OTOOL=$ac_ct_OTOOL
7871 fi
7872 else
7873 OTOOL="$ac_cv_prog_OTOOL"
7874 fi
7875
7876 if test -n "$ac_tool_prefix"; then
7877 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7878 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 $as_echo_n "checking for $ac_word... " >&6; }
7881 if ${ac_cv_prog_OTOOL64+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 if test -n "$OTOOL64"; then
7885 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7886 else
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH
7889 do
7890 IFS=$as_save_IFS
7891 test -z "$as_dir" && as_dir=.
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7894 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 break 2
7897 fi
7898 done
7899 done
7900 IFS=$as_save_IFS
7901
7902 fi
7903 fi
7904 OTOOL64=$ac_cv_prog_OTOOL64
7905 if test -n "$OTOOL64"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7907 $as_echo "$OTOOL64" >&6; }
7908 else
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7911 fi
7912
7913
7914 fi
7915 if test -z "$ac_cv_prog_OTOOL64"; then
7916 ac_ct_OTOOL64=$OTOOL64
7917 # Extract the first word of "otool64", so it can be a program name with args.
7918 set dummy otool64; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 if test -n "$ac_ct_OTOOL64"; then
7925 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7926 else
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 for as_dir in $PATH
7929 do
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7934 ac_cv_prog_ac_ct_OTOOL64="otool64"
7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 break 2
7937 fi
7938 done
7939 done
7940 IFS=$as_save_IFS
7941
7942 fi
7943 fi
7944 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7945 if test -n "$ac_ct_OTOOL64"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7947 $as_echo "$ac_ct_OTOOL64" >&6; }
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7951 fi
7952
7953 if test "x$ac_ct_OTOOL64" = x; then
7954 OTOOL64=":"
7955 else
7956 case $cross_compiling:$ac_tool_warned in
7957 yes:)
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7960 ac_tool_warned=yes ;;
7961 esac
7962 OTOOL64=$ac_ct_OTOOL64
7963 fi
7964 else
7965 OTOOL64="$ac_cv_prog_OTOOL64"
7966 fi
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7995 $as_echo_n "checking for -single_module linker flag... " >&6; }
7996 if ${lt_cv_apple_cc_single_mod+:} false; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 lt_cv_apple_cc_single_mod=no
8000 if test -z "$LT_MULTI_MODULE"; then
8001 # By default we will add the -single_module flag. You can override
8002 # by either setting the environment variable LT_MULTI_MODULE
8003 # non-empty at configure time, or by adding -multi_module to the
8004 # link flags.
8005 rm -rf libconftest.dylib*
8006 echo "int foo(void){return 1;}" > conftest.c
8007 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8008 -dynamiclib -Wl,-single_module conftest.c" >&5
8009 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8010 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8011 _lt_result=$?
8012 # If there is a non-empty error log, and "single_module"
8013 # appears in it, assume the flag caused a linker warning
8014 if test -s conftest.err && $GREP single_module conftest.err; then
8015 cat conftest.err >&5
8016 # Otherwise, if the output was created with a 0 exit code from
8017 # the compiler, it worked.
8018 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8019 lt_cv_apple_cc_single_mod=yes
8020 else
8021 cat conftest.err >&5
8022 fi
8023 rm -rf libconftest.dylib*
8024 rm -f conftest.*
8025 fi
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8028 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8029
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8031 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8032 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 lt_cv_ld_exported_symbols_list=no
8036 save_LDFLAGS=$LDFLAGS
8037 echo "_main" > conftest.sym
8038 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8041
8042 int
8043 main ()
8044 {
8045
8046 ;
8047 return 0;
8048 }
8049 _ACEOF
8050 if ac_fn_c_try_link "$LINENO"; then :
8051 lt_cv_ld_exported_symbols_list=yes
8052 else
8053 lt_cv_ld_exported_symbols_list=no
8054 fi
8055 rm -f core conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8057 LDFLAGS=$save_LDFLAGS
8058
8059 fi
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8061 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8062
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8064 $as_echo_n "checking for -force_load linker flag... " >&6; }
8065 if ${lt_cv_ld_force_load+:} false; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 lt_cv_ld_force_load=no
8069 cat > conftest.c << _LT_EOF
8070 int forced_loaded() { return 2;}
8071 _LT_EOF
8072 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8073 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8074 echo "$AR cru libconftest.a conftest.o" >&5
8075 $AR cru libconftest.a conftest.o 2>&5
8076 echo "$RANLIB libconftest.a" >&5
8077 $RANLIB libconftest.a 2>&5
8078 cat > conftest.c << _LT_EOF
8079 int main() { return 0;}
8080 _LT_EOF
8081 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8082 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8083 _lt_result=$?
8084 if test -s conftest.err && $GREP force_load conftest.err; then
8085 cat conftest.err >&5
8086 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8087 lt_cv_ld_force_load=yes
8088 else
8089 cat conftest.err >&5
8090 fi
8091 rm -f conftest.err libconftest.a conftest conftest.c
8092 rm -rf conftest.dSYM
8093
8094 fi
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8096 $as_echo "$lt_cv_ld_force_load" >&6; }
8097 case $host_os in
8098 rhapsody* | darwin1.[012])
8099 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8100 darwin1.*)
8101 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8102 darwin*) # darwin 5.x on
8103 # if running on 10.5 or later, the deployment target defaults
8104 # to the OS version, if on x86, and 10.4, the deployment
8105 # target defaults to 10.4. Don't you love it?
8106 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8107 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8108 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8109 10.[012][,.]*)
8110 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8111 10.*)
8112 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8113 esac
8114 ;;
8115 esac
8116 if test yes = "$lt_cv_apple_cc_single_mod"; then
8117 _lt_dar_single_mod='$single_module'
8118 fi
8119 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8120 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8121 else
8122 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8123 fi
8124 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8125 _lt_dsymutil='~$DSYMUTIL $lib || :'
8126 else
8127 _lt_dsymutil=
8128 fi
8129 ;;
8130 esac
8131
8132 # func_munge_path_list VARIABLE PATH
8133 # -----------------------------------
8134 # VARIABLE is name of variable containing _space_ separated list of
8135 # directories to be munged by the contents of PATH, which is string
8136 # having a format:
8137 # "DIR[:DIR]:"
8138 # string "DIR[ DIR]" will be prepended to VARIABLE
8139 # ":DIR[:DIR]"
8140 # string "DIR[ DIR]" will be appended to VARIABLE
8141 # "DIRP[:DIRP]::[DIRA:]DIRA"
8142 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8143 # "DIRA[ DIRA]" will be appended to VARIABLE
8144 # "DIR[:DIR]"
8145 # VARIABLE will be replaced by "DIR[ DIR]"
8146 func_munge_path_list ()
8147 {
8148 case x$2 in
8149 x)
8150 ;;
8151 *:)
8152 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8153 ;;
8154 x:*)
8155 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8156 ;;
8157 *::*)
8158 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8159 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8160 ;;
8161 *)
8162 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8163 ;;
8164 esac
8165 }
8166
8167 ac_ext=c
8168 ac_cpp='$CPP $CPPFLAGS'
8169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8173 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8174 # On Suns, sometimes $CPP names a directory.
8175 if test -n "$CPP" && test -d "$CPP"; then
8176 CPP=
8177 fi
8178 if test -z "$CPP"; then
8179 if ${ac_cv_prog_CPP+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 # Double quotes because CPP needs to be expanded
8183 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8184 do
8185 ac_preproc_ok=false
8186 for ac_c_preproc_warn_flag in '' yes
8187 do
8188 # Use a header file that comes with gcc, so configuring glibc
8189 # with a fresh cross-compiler works.
8190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8191 # <limits.h> exists even on freestanding compilers.
8192 # On the NeXT, cc -E runs the code through the compiler's parser,
8193 # not just through cpp. "Syntax error" is here to catch this case.
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196 #ifdef __STDC__
8197 # include <limits.h>
8198 #else
8199 # include <assert.h>
8200 #endif
8201 Syntax error
8202 _ACEOF
8203 if ac_fn_c_try_cpp "$LINENO"; then :
8204
8205 else
8206 # Broken: fails on valid input.
8207 continue
8208 fi
8209 rm -f conftest.err conftest.i conftest.$ac_ext
8210
8211 # OK, works on sane cases. Now check whether nonexistent headers
8212 # can be detected and how.
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8215 #include <ac_nonexistent.h>
8216 _ACEOF
8217 if ac_fn_c_try_cpp "$LINENO"; then :
8218 # Broken: success on invalid input.
8219 continue
8220 else
8221 # Passes both tests.
8222 ac_preproc_ok=:
8223 break
8224 fi
8225 rm -f conftest.err conftest.i conftest.$ac_ext
8226
8227 done
8228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8229 rm -f conftest.i conftest.err conftest.$ac_ext
8230 if $ac_preproc_ok; then :
8231 break
8232 fi
8233
8234 done
8235 ac_cv_prog_CPP=$CPP
8236
8237 fi
8238 CPP=$ac_cv_prog_CPP
8239 else
8240 ac_cv_prog_CPP=$CPP
8241 fi
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8243 $as_echo "$CPP" >&6; }
8244 ac_preproc_ok=false
8245 for ac_c_preproc_warn_flag in '' yes
8246 do
8247 # Use a header file that comes with gcc, so configuring glibc
8248 # with a fresh cross-compiler works.
8249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8250 # <limits.h> exists even on freestanding compilers.
8251 # On the NeXT, cc -E runs the code through the compiler's parser,
8252 # not just through cpp. "Syntax error" is here to catch this case.
8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8255 #ifdef __STDC__
8256 # include <limits.h>
8257 #else
8258 # include <assert.h>
8259 #endif
8260 Syntax error
8261 _ACEOF
8262 if ac_fn_c_try_cpp "$LINENO"; then :
8263
8264 else
8265 # Broken: fails on valid input.
8266 continue
8267 fi
8268 rm -f conftest.err conftest.i conftest.$ac_ext
8269
8270 # OK, works on sane cases. Now check whether nonexistent headers
8271 # can be detected and how.
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8274 #include <ac_nonexistent.h>
8275 _ACEOF
8276 if ac_fn_c_try_cpp "$LINENO"; then :
8277 # Broken: success on invalid input.
8278 continue
8279 else
8280 # Passes both tests.
8281 ac_preproc_ok=:
8282 break
8283 fi
8284 rm -f conftest.err conftest.i conftest.$ac_ext
8285
8286 done
8287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8288 rm -f conftest.i conftest.err conftest.$ac_ext
8289 if $ac_preproc_ok; then :
8290
8291 else
8292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8294 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8295 See \`config.log' for more details" "$LINENO" 5; }
8296 fi
8297
8298 ac_ext=c
8299 ac_cpp='$CPP $CPPFLAGS'
8300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8303
8304
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8306 $as_echo_n "checking for ANSI C header files... " >&6; }
8307 if ${ac_cv_header_stdc+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8312 #include <stdlib.h>
8313 #include <stdarg.h>
8314 #include <string.h>
8315 #include <float.h>
8316
8317 int
8318 main ()
8319 {
8320
8321 ;
8322 return 0;
8323 }
8324 _ACEOF
8325 if ac_fn_c_try_compile "$LINENO"; then :
8326 ac_cv_header_stdc=yes
8327 else
8328 ac_cv_header_stdc=no
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331
8332 if test $ac_cv_header_stdc = yes; then
8333 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 #include <string.h>
8337
8338 _ACEOF
8339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8340 $EGREP "memchr" >/dev/null 2>&1; then :
8341
8342 else
8343 ac_cv_header_stdc=no
8344 fi
8345 rm -f conftest*
8346
8347 fi
8348
8349 if test $ac_cv_header_stdc = yes; then
8350 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 #include <stdlib.h>
8354
8355 _ACEOF
8356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8357 $EGREP "free" >/dev/null 2>&1; then :
8358
8359 else
8360 ac_cv_header_stdc=no
8361 fi
8362 rm -f conftest*
8363
8364 fi
8365
8366 if test $ac_cv_header_stdc = yes; then
8367 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8368 if test "$cross_compiling" = yes; then :
8369 :
8370 else
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h. */
8373 #include <ctype.h>
8374 #include <stdlib.h>
8375 #if ((' ' & 0x0FF) == 0x020)
8376 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8377 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8378 #else
8379 # define ISLOWER(c) \
8380 (('a' <= (c) && (c) <= 'i') \
8381 || ('j' <= (c) && (c) <= 'r') \
8382 || ('s' <= (c) && (c) <= 'z'))
8383 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8384 #endif
8385
8386 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8387 int
8388 main ()
8389 {
8390 int i;
8391 for (i = 0; i < 256; i++)
8392 if (XOR (islower (i), ISLOWER (i))
8393 || toupper (i) != TOUPPER (i))
8394 return 2;
8395 return 0;
8396 }
8397 _ACEOF
8398 if ac_fn_c_try_run "$LINENO"; then :
8399
8400 else
8401 ac_cv_header_stdc=no
8402 fi
8403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8404 conftest.$ac_objext conftest.beam conftest.$ac_ext
8405 fi
8406
8407 fi
8408 fi
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8410 $as_echo "$ac_cv_header_stdc" >&6; }
8411 if test $ac_cv_header_stdc = yes; then
8412
8413 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8414
8415 fi
8416
8417 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8418 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8419 inttypes.h stdint.h unistd.h
8420 do :
8421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8422 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8423 "
8424 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8425 cat >>confdefs.h <<_ACEOF
8426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8427 _ACEOF
8428
8429 fi
8430
8431 done
8432
8433
8434 for ac_header in dlfcn.h
8435 do :
8436 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8437 "
8438 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_DLFCN_H 1
8441 _ACEOF
8442
8443 fi
8444
8445 done
8446
8447
8448
8449
8450
8451 # Set options
8452
8453
8454
8455 enable_dlopen=no
8456
8457
8458 enable_win32_dll=no
8459
8460
8461 # Check whether --enable-shared was given.
8462 if test "${enable_shared+set}" = set; then :
8463 enableval=$enable_shared; p=${PACKAGE-default}
8464 case $enableval in
8465 yes) enable_shared=yes ;;
8466 no) enable_shared=no ;;
8467 *)
8468 enable_shared=no
8469 # Look at the argument we got. We use all the common list separators.
8470 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8471 for pkg in $enableval; do
8472 IFS=$lt_save_ifs
8473 if test "X$pkg" = "X$p"; then
8474 enable_shared=yes
8475 fi
8476 done
8477 IFS=$lt_save_ifs
8478 ;;
8479 esac
8480 else
8481 enable_shared=yes
8482 fi
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492 # Check whether --enable-static was given.
8493 if test "${enable_static+set}" = set; then :
8494 enableval=$enable_static; p=${PACKAGE-default}
8495 case $enableval in
8496 yes) enable_static=yes ;;
8497 no) enable_static=no ;;
8498 *)
8499 enable_static=no
8500 # Look at the argument we got. We use all the common list separators.
8501 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8502 for pkg in $enableval; do
8503 IFS=$lt_save_ifs
8504 if test "X$pkg" = "X$p"; then
8505 enable_static=yes
8506 fi
8507 done
8508 IFS=$lt_save_ifs
8509 ;;
8510 esac
8511 else
8512 enable_static=yes
8513 fi
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524 # Check whether --with-pic was given.
8525 if test "${with_pic+set}" = set; then :
8526 withval=$with_pic; lt_p=${PACKAGE-default}
8527 case $withval in
8528 yes|no) pic_mode=$withval ;;
8529 *)
8530 pic_mode=default
8531 # Look at the argument we got. We use all the common list separators.
8532 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8533 for lt_pkg in $withval; do
8534 IFS=$lt_save_ifs
8535 if test "X$lt_pkg" = "X$lt_p"; then
8536 pic_mode=yes
8537 fi
8538 done
8539 IFS=$lt_save_ifs
8540 ;;
8541 esac
8542 else
8543 pic_mode=default
8544 fi
8545
8546
8547
8548
8549
8550
8551
8552
8553 # Check whether --enable-fast-install was given.
8554 if test "${enable_fast_install+set}" = set; then :
8555 enableval=$enable_fast_install; p=${PACKAGE-default}
8556 case $enableval in
8557 yes) enable_fast_install=yes ;;
8558 no) enable_fast_install=no ;;
8559 *)
8560 enable_fast_install=no
8561 # Look at the argument we got. We use all the common list separators.
8562 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8563 for pkg in $enableval; do
8564 IFS=$lt_save_ifs
8565 if test "X$pkg" = "X$p"; then
8566 enable_fast_install=yes
8567 fi
8568 done
8569 IFS=$lt_save_ifs
8570 ;;
8571 esac
8572 else
8573 enable_fast_install=yes
8574 fi
8575
8576
8577
8578
8579
8580
8581
8582
8583 shared_archive_member_spec=
8584 case $host,$enable_shared in
8585 power*-*-aix[5-9]*,yes)
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8587 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8588
8589 # Check whether --with-aix-soname was given.
8590 if test "${with_aix_soname+set}" = set; then :
8591 withval=$with_aix_soname; case $withval in
8592 aix|svr4|both)
8593 ;;
8594 *)
8595 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8596 ;;
8597 esac
8598 lt_cv_with_aix_soname=$with_aix_soname
8599 else
8600 if ${lt_cv_with_aix_soname+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 lt_cv_with_aix_soname=aix
8604 fi
8605
8606 with_aix_soname=$lt_cv_with_aix_soname
8607 fi
8608
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8610 $as_echo "$with_aix_soname" >&6; }
8611 if test aix != "$with_aix_soname"; then
8612 # For the AIX way of multilib, we name the shared archive member
8613 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8614 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8615 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8616 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8617 if test 64 = "${OBJECT_MODE-32}"; then
8618 shared_archive_member_spec=shr_64
8619 else
8620 shared_archive_member_spec=shr
8621 fi
8622 fi
8623 ;;
8624 *)
8625 with_aix_soname=aix
8626 ;;
8627 esac
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638 # This can be used to rebuild libtool when needed
8639 LIBTOOL_DEPS=$ltmain
8640
8641 # Always use our own libtool.
8642 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673 test -z "$LN_S" && LN_S="ln -s"
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688 if test -n "${ZSH_VERSION+set}"; then
8689 setopt NO_GLOB_SUBST
8690 fi
8691
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8693 $as_echo_n "checking for objdir... " >&6; }
8694 if ${lt_cv_objdir+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 rm -f .libs 2>/dev/null
8698 mkdir .libs 2>/dev/null
8699 if test -d .libs; then
8700 lt_cv_objdir=.libs
8701 else
8702 # MS-DOS does not allow filenames that begin with a dot.
8703 lt_cv_objdir=_libs
8704 fi
8705 rmdir .libs 2>/dev/null
8706 fi
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8708 $as_echo "$lt_cv_objdir" >&6; }
8709 objdir=$lt_cv_objdir
8710
8711
8712
8713
8714
8715 cat >>confdefs.h <<_ACEOF
8716 #define LT_OBJDIR "$lt_cv_objdir/"
8717 _ACEOF
8718
8719
8720
8721
8722 case $host_os in
8723 aix3*)
8724 # AIX sometimes has problems with the GCC collect2 program. For some
8725 # reason, if we set the COLLECT_NAMES environment variable, the problems
8726 # vanish in a puff of smoke.
8727 if test set != "${COLLECT_NAMES+set}"; then
8728 COLLECT_NAMES=
8729 export COLLECT_NAMES
8730 fi
8731 ;;
8732 esac
8733
8734 # Global variables:
8735 ofile=libtool
8736 can_build_shared=yes
8737
8738 # All known linkers require a '.a' archive for static linking (except MSVC,
8739 # which needs '.lib').
8740 libext=a
8741
8742 with_gnu_ld=$lt_cv_prog_gnu_ld
8743
8744 old_CC=$CC
8745 old_CFLAGS=$CFLAGS
8746
8747 # Set sane defaults for various variables
8748 test -z "$CC" && CC=cc
8749 test -z "$LTCC" && LTCC=$CC
8750 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8751 test -z "$LD" && LD=ld
8752 test -z "$ac_objext" && ac_objext=o
8753
8754 func_cc_basename $compiler
8755 cc_basename=$func_cc_basename_result
8756
8757
8758 # Only perform the check for file, if the check method requires it
8759 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8760 case $deplibs_check_method in
8761 file_magic*)
8762 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8764 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8765 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8766 $as_echo_n "(cached) " >&6
8767 else
8768 case $MAGIC_CMD in
8769 [\\/*] | ?:[\\/]*)
8770 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8771 ;;
8772 *)
8773 lt_save_MAGIC_CMD=$MAGIC_CMD
8774 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8775 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8776 for ac_dir in $ac_dummy; do
8777 IFS=$lt_save_ifs
8778 test -z "$ac_dir" && ac_dir=.
8779 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8780 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8781 if test -n "$file_magic_test_file"; then
8782 case $deplibs_check_method in
8783 "file_magic "*)
8784 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8785 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8786 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8787 $EGREP "$file_magic_regex" > /dev/null; then
8788 :
8789 else
8790 cat <<_LT_EOF 1>&2
8791
8792 *** Warning: the command libtool uses to detect shared libraries,
8793 *** $file_magic_cmd, produces output that libtool cannot recognize.
8794 *** The result is that libtool may fail to recognize shared libraries
8795 *** as such. This will affect the creation of libtool libraries that
8796 *** depend on shared libraries, but programs linked with such libtool
8797 *** libraries will work regardless of this problem. Nevertheless, you
8798 *** may want to report the problem to your system manager and/or to
8799 *** [email protected]
8800
8801 _LT_EOF
8802 fi ;;
8803 esac
8804 fi
8805 break
8806 fi
8807 done
8808 IFS=$lt_save_ifs
8809 MAGIC_CMD=$lt_save_MAGIC_CMD
8810 ;;
8811 esac
8812 fi
8813
8814 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8815 if test -n "$MAGIC_CMD"; then
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8817 $as_echo "$MAGIC_CMD" >&6; }
8818 else
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8821 fi
8822
8823
8824
8825
8826
8827 if test -z "$lt_cv_path_MAGIC_CMD"; then
8828 if test -n "$ac_tool_prefix"; then
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8830 $as_echo_n "checking for file... " >&6; }
8831 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8832 $as_echo_n "(cached) " >&6
8833 else
8834 case $MAGIC_CMD in
8835 [\\/*] | ?:[\\/]*)
8836 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8837 ;;
8838 *)
8839 lt_save_MAGIC_CMD=$MAGIC_CMD
8840 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8841 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8842 for ac_dir in $ac_dummy; do
8843 IFS=$lt_save_ifs
8844 test -z "$ac_dir" && ac_dir=.
8845 if test -f "$ac_dir/file"; then
8846 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8847 if test -n "$file_magic_test_file"; then
8848 case $deplibs_check_method in
8849 "file_magic "*)
8850 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8851 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8852 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8853 $EGREP "$file_magic_regex" > /dev/null; then
8854 :
8855 else
8856 cat <<_LT_EOF 1>&2
8857
8858 *** Warning: the command libtool uses to detect shared libraries,
8859 *** $file_magic_cmd, produces output that libtool cannot recognize.
8860 *** The result is that libtool may fail to recognize shared libraries
8861 *** as such. This will affect the creation of libtool libraries that
8862 *** depend on shared libraries, but programs linked with such libtool
8863 *** libraries will work regardless of this problem. Nevertheless, you
8864 *** may want to report the problem to your system manager and/or to
8865 *** [email protected]
8866
8867 _LT_EOF
8868 fi ;;
8869 esac
8870 fi
8871 break
8872 fi
8873 done
8874 IFS=$lt_save_ifs
8875 MAGIC_CMD=$lt_save_MAGIC_CMD
8876 ;;
8877 esac
8878 fi
8879
8880 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8881 if test -n "$MAGIC_CMD"; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8883 $as_echo "$MAGIC_CMD" >&6; }
8884 else
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886 $as_echo "no" >&6; }
8887 fi
8888
8889
8890 else
8891 MAGIC_CMD=:
8892 fi
8893 fi
8894
8895 fi
8896 ;;
8897 esac
8898
8899 # Use C for the default configuration in the libtool script
8900
8901 lt_save_CC=$CC
8902 ac_ext=c
8903 ac_cpp='$CPP $CPPFLAGS'
8904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8907
8908
8909 # Source file extension for C test sources.
8910 ac_ext=c
8911
8912 # Object file extension for compiled C test sources.
8913 objext=o
8914 objext=$objext
8915
8916 # Code to be used in simple compile tests
8917 lt_simple_compile_test_code="int some_variable = 0;"
8918
8919 # Code to be used in simple link tests
8920 lt_simple_link_test_code='int main(){return(0);}'
8921
8922
8923
8924
8925
8926
8927
8928 # If no C compiler was specified, use CC.
8929 LTCC=${LTCC-"$CC"}
8930
8931 # If no C compiler flags were specified, use CFLAGS.
8932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8933
8934 # Allow CC to be a program name with arguments.
8935 compiler=$CC
8936
8937 # Save the default compiler, since it gets overwritten when the other
8938 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8939 compiler_DEFAULT=$CC
8940
8941 # save warnings/boilerplate of simple test code
8942 ac_outfile=conftest.$ac_objext
8943 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8944 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8945 _lt_compiler_boilerplate=`cat conftest.err`
8946 $RM conftest*
8947
8948 ac_outfile=conftest.$ac_objext
8949 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8950 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8951 _lt_linker_boilerplate=`cat conftest.err`
8952 $RM -r conftest*
8953
8954
8955 ## CAVEAT EMPTOR:
8956 ## There is no encapsulation within the following macros, do not change
8957 ## the running order or otherwise move them around unless you know exactly
8958 ## what you are doing...
8959 if test -n "$compiler"; then
8960
8961 lt_prog_compiler_no_builtin_flag=
8962
8963 if test yes = "$GCC"; then
8964 case $cc_basename in
8965 nvcc*)
8966 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8967 *)
8968 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8969 esac
8970
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8972 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8973 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 lt_cv_prog_compiler_rtti_exceptions=no
8977 ac_outfile=conftest.$ac_objext
8978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8979 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8980 # Insert the option either (1) after the last *FLAGS variable, or
8981 # (2) before a word containing "conftest.", or (3) at the end.
8982 # Note that $ac_compile itself does not contain backslashes and begins
8983 # with a dollar sign (not a hyphen), so the echo should work correctly.
8984 # The option is referenced via a variable to avoid confusing sed.
8985 lt_compile=`echo "$ac_compile" | $SED \
8986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8988 -e 's:$: $lt_compiler_flag:'`
8989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8990 (eval "$lt_compile" 2>conftest.err)
8991 ac_status=$?
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 if (exit $ac_status) && test -s "$ac_outfile"; then
8995 # The compiler can only warn and ignore the option if not recognized
8996 # So say no if there are warnings other than the usual output.
8997 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8999 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9000 lt_cv_prog_compiler_rtti_exceptions=yes
9001 fi
9002 fi
9003 $RM conftest*
9004
9005 fi
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9007 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9008
9009 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9010 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9011 else
9012 :
9013 fi
9014
9015 fi
9016
9017
9018
9019
9020
9021
9022 lt_prog_compiler_wl=
9023 lt_prog_compiler_pic=
9024 lt_prog_compiler_static=
9025
9026
9027 if test yes = "$GCC"; then
9028 lt_prog_compiler_wl='-Wl,'
9029 lt_prog_compiler_static='-static'
9030
9031 case $host_os in
9032 aix*)
9033 # All AIX code is PIC.
9034 if test ia64 = "$host_cpu"; then
9035 # AIX 5 now supports IA64 processor
9036 lt_prog_compiler_static='-Bstatic'
9037 fi
9038 lt_prog_compiler_pic='-fPIC'
9039 ;;
9040
9041 amigaos*)
9042 case $host_cpu in
9043 powerpc)
9044 # see comment about AmigaOS4 .so support
9045 lt_prog_compiler_pic='-fPIC'
9046 ;;
9047 m68k)
9048 # FIXME: we need at least 68020 code to build shared libraries, but
9049 # adding the '-m68020' flag to GCC prevents building anything better,
9050 # like '-m68040'.
9051 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9052 ;;
9053 esac
9054 ;;
9055
9056 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9057 # PIC is the default for these OSes.
9058 ;;
9059
9060 mingw* | cygwin* | pw32* | os2* | cegcc*)
9061 # This hack is so that the source file can tell whether it is being
9062 # built for inclusion in a dll (and should export symbols for example).
9063 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9064 # (--disable-auto-import) libraries
9065 lt_prog_compiler_pic='-DDLL_EXPORT'
9066 case $host_os in
9067 os2*)
9068 lt_prog_compiler_static='$wl-static'
9069 ;;
9070 esac
9071 ;;
9072
9073 darwin* | rhapsody*)
9074 # PIC is the default on this platform
9075 # Common symbols not allowed in MH_DYLIB files
9076 lt_prog_compiler_pic='-fno-common'
9077 ;;
9078
9079 haiku*)
9080 # PIC is the default for Haiku.
9081 # The "-static" flag exists, but is broken.
9082 lt_prog_compiler_static=
9083 ;;
9084
9085 hpux*)
9086 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9087 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9088 # sets the default TLS model and affects inlining.
9089 case $host_cpu in
9090 hppa*64*)
9091 # +Z the default
9092 ;;
9093 *)
9094 lt_prog_compiler_pic='-fPIC'
9095 ;;
9096 esac
9097 ;;
9098
9099 interix[3-9]*)
9100 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9101 # Instead, we relocate shared libraries at runtime.
9102 ;;
9103
9104 msdosdjgpp*)
9105 # Just because we use GCC doesn't mean we suddenly get shared libraries
9106 # on systems that don't support them.
9107 lt_prog_compiler_can_build_shared=no
9108 enable_shared=no
9109 ;;
9110
9111 *nto* | *qnx*)
9112 # QNX uses GNU C++, but need to define -shared option too, otherwise
9113 # it will coredump.
9114 lt_prog_compiler_pic='-fPIC -shared'
9115 ;;
9116
9117 sysv4*MP*)
9118 if test -d /usr/nec; then
9119 lt_prog_compiler_pic=-Kconform_pic
9120 fi
9121 ;;
9122
9123 *)
9124 lt_prog_compiler_pic='-fPIC'
9125 ;;
9126 esac
9127
9128 case $cc_basename in
9129 nvcc*) # Cuda Compiler Driver 2.2
9130 lt_prog_compiler_wl='-Xlinker '
9131 if test -n "$lt_prog_compiler_pic"; then
9132 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9133 fi
9134 ;;
9135 esac
9136 else
9137 # PORTME Check for flag to pass linker flags through the system compiler.
9138 case $host_os in
9139 aix*)
9140 lt_prog_compiler_wl='-Wl,'
9141 if test ia64 = "$host_cpu"; then
9142 # AIX 5 now supports IA64 processor
9143 lt_prog_compiler_static='-Bstatic'
9144 else
9145 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9146 fi
9147 ;;
9148
9149 darwin* | rhapsody*)
9150 # PIC is the default on this platform
9151 # Common symbols not allowed in MH_DYLIB files
9152 lt_prog_compiler_pic='-fno-common'
9153 case $cc_basename in
9154 nagfor*)
9155 # NAG Fortran compiler
9156 lt_prog_compiler_wl='-Wl,-Wl,,'
9157 lt_prog_compiler_pic='-PIC'
9158 lt_prog_compiler_static='-Bstatic'
9159 ;;
9160 esac
9161 ;;
9162
9163 mingw* | cygwin* | pw32* | os2* | cegcc*)
9164 # This hack is so that the source file can tell whether it is being
9165 # built for inclusion in a dll (and should export symbols for example).
9166 lt_prog_compiler_pic='-DDLL_EXPORT'
9167 case $host_os in
9168 os2*)
9169 lt_prog_compiler_static='$wl-static'
9170 ;;
9171 esac
9172 ;;
9173
9174 hpux9* | hpux10* | hpux11*)
9175 lt_prog_compiler_wl='-Wl,'
9176 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9177 # not for PA HP-UX.
9178 case $host_cpu in
9179 hppa*64*|ia64*)
9180 # +Z the default
9181 ;;
9182 *)
9183 lt_prog_compiler_pic='+Z'
9184 ;;
9185 esac
9186 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9187 lt_prog_compiler_static='$wl-a ${wl}archive'
9188 ;;
9189
9190 irix5* | irix6* | nonstopux*)
9191 lt_prog_compiler_wl='-Wl,'
9192 # PIC (with -KPIC) is the default.
9193 lt_prog_compiler_static='-non_shared'
9194 ;;
9195
9196 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9197 case $cc_basename in
9198 # old Intel for x86_64, which still supported -KPIC.
9199 ecc*)
9200 lt_prog_compiler_wl='-Wl,'
9201 lt_prog_compiler_pic='-KPIC'
9202 lt_prog_compiler_static='-static'
9203 ;;
9204 # icc used to be incompatible with GCC.
9205 # ICC 10 doesn't accept -KPIC any more.
9206 icc* | ifort*)
9207 lt_prog_compiler_wl='-Wl,'
9208 lt_prog_compiler_pic='-fPIC'
9209 lt_prog_compiler_static='-static'
9210 ;;
9211 # Lahey Fortran 8.1.
9212 lf95*)
9213 lt_prog_compiler_wl='-Wl,'
9214 lt_prog_compiler_pic='--shared'
9215 lt_prog_compiler_static='--static'
9216 ;;
9217 nagfor*)
9218 # NAG Fortran compiler
9219 lt_prog_compiler_wl='-Wl,-Wl,,'
9220 lt_prog_compiler_pic='-PIC'
9221 lt_prog_compiler_static='-Bstatic'
9222 ;;
9223 tcc*)
9224 # Fabrice Bellard et al's Tiny C Compiler
9225 lt_prog_compiler_wl='-Wl,'
9226 lt_prog_compiler_pic='-fPIC'
9227 lt_prog_compiler_static='-static'
9228 ;;
9229 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9230 # Portland Group compilers (*not* the Pentium gcc compiler,
9231 # which looks to be a dead project)
9232 lt_prog_compiler_wl='-Wl,'
9233 lt_prog_compiler_pic='-fpic'
9234 lt_prog_compiler_static='-Bstatic'
9235 ;;
9236 ccc*)
9237 lt_prog_compiler_wl='-Wl,'
9238 # All Alpha code is PIC.
9239 lt_prog_compiler_static='-non_shared'
9240 ;;
9241 xl* | bgxl* | bgf* | mpixl*)
9242 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9243 lt_prog_compiler_wl='-Wl,'
9244 lt_prog_compiler_pic='-qpic'
9245 lt_prog_compiler_static='-qstaticlink'
9246 ;;
9247 *)
9248 case `$CC -V 2>&1 | sed 5q` in
9249 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9250 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9251 lt_prog_compiler_pic='-KPIC'
9252 lt_prog_compiler_static='-Bstatic'
9253 lt_prog_compiler_wl=''
9254 ;;
9255 *Sun\ F* | *Sun*Fortran*)
9256 lt_prog_compiler_pic='-KPIC'
9257 lt_prog_compiler_static='-Bstatic'
9258 lt_prog_compiler_wl='-Qoption ld '
9259 ;;
9260 *Sun\ C*)
9261 # Sun C 5.9
9262 lt_prog_compiler_pic='-KPIC'
9263 lt_prog_compiler_static='-Bstatic'
9264 lt_prog_compiler_wl='-Wl,'
9265 ;;
9266 *Intel*\ [CF]*Compiler*)
9267 lt_prog_compiler_wl='-Wl,'
9268 lt_prog_compiler_pic='-fPIC'
9269 lt_prog_compiler_static='-static'
9270 ;;
9271 *Portland\ Group*)
9272 lt_prog_compiler_wl='-Wl,'
9273 lt_prog_compiler_pic='-fpic'
9274 lt_prog_compiler_static='-Bstatic'
9275 ;;
9276 esac
9277 ;;
9278 esac
9279 ;;
9280
9281 newsos6)
9282 lt_prog_compiler_pic='-KPIC'
9283 lt_prog_compiler_static='-Bstatic'
9284 ;;
9285
9286 *nto* | *qnx*)
9287 # QNX uses GNU C++, but need to define -shared option too, otherwise
9288 # it will coredump.
9289 lt_prog_compiler_pic='-fPIC -shared'
9290 ;;
9291
9292 osf3* | osf4* | osf5*)
9293 lt_prog_compiler_wl='-Wl,'
9294 # All OSF/1 code is PIC.
9295 lt_prog_compiler_static='-non_shared'
9296 ;;
9297
9298 rdos*)
9299 lt_prog_compiler_static='-non_shared'
9300 ;;
9301
9302 solaris*)
9303 lt_prog_compiler_pic='-KPIC'
9304 lt_prog_compiler_static='-Bstatic'
9305 case $cc_basename in
9306 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9307 lt_prog_compiler_wl='-Qoption ld ';;
9308 *)
9309 lt_prog_compiler_wl='-Wl,';;
9310 esac
9311 ;;
9312
9313 sunos4*)
9314 lt_prog_compiler_wl='-Qoption ld '
9315 lt_prog_compiler_pic='-PIC'
9316 lt_prog_compiler_static='-Bstatic'
9317 ;;
9318
9319 sysv4 | sysv4.2uw2* | sysv4.3*)
9320 lt_prog_compiler_wl='-Wl,'
9321 lt_prog_compiler_pic='-KPIC'
9322 lt_prog_compiler_static='-Bstatic'
9323 ;;
9324
9325 sysv4*MP*)
9326 if test -d /usr/nec; then
9327 lt_prog_compiler_pic='-Kconform_pic'
9328 lt_prog_compiler_static='-Bstatic'
9329 fi
9330 ;;
9331
9332 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9333 lt_prog_compiler_wl='-Wl,'
9334 lt_prog_compiler_pic='-KPIC'
9335 lt_prog_compiler_static='-Bstatic'
9336 ;;
9337
9338 unicos*)
9339 lt_prog_compiler_wl='-Wl,'
9340 lt_prog_compiler_can_build_shared=no
9341 ;;
9342
9343 uts4*)
9344 lt_prog_compiler_pic='-pic'
9345 lt_prog_compiler_static='-Bstatic'
9346 ;;
9347
9348 *)
9349 lt_prog_compiler_can_build_shared=no
9350 ;;
9351 esac
9352 fi
9353
9354 case $host_os in
9355 # For platforms that do not support PIC, -DPIC is meaningless:
9356 *djgpp*)
9357 lt_prog_compiler_pic=
9358 ;;
9359 *)
9360 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9361 ;;
9362 esac
9363
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9365 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9366 if ${lt_cv_prog_compiler_pic+:} false; then :
9367 $as_echo_n "(cached) " >&6
9368 else
9369 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9370 fi
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9372 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9373 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9374
9375 #
9376 # Check to make sure the PIC flag actually works.
9377 #
9378 if test -n "$lt_prog_compiler_pic"; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9380 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9381 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 lt_cv_prog_compiler_pic_works=no
9385 ac_outfile=conftest.$ac_objext
9386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9387 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9388 # Insert the option either (1) after the last *FLAGS variable, or
9389 # (2) before a word containing "conftest.", or (3) at the end.
9390 # Note that $ac_compile itself does not contain backslashes and begins
9391 # with a dollar sign (not a hyphen), so the echo should work correctly.
9392 # The option is referenced via a variable to avoid confusing sed.
9393 lt_compile=`echo "$ac_compile" | $SED \
9394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9396 -e 's:$: $lt_compiler_flag:'`
9397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9398 (eval "$lt_compile" 2>conftest.err)
9399 ac_status=$?
9400 cat conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 if (exit $ac_status) && test -s "$ac_outfile"; then
9403 # The compiler can only warn and ignore the option if not recognized
9404 # So say no if there are warnings other than the usual output.
9405 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9407 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9408 lt_cv_prog_compiler_pic_works=yes
9409 fi
9410 fi
9411 $RM conftest*
9412
9413 fi
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9415 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9416
9417 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9418 case $lt_prog_compiler_pic in
9419 "" | " "*) ;;
9420 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9421 esac
9422 else
9423 lt_prog_compiler_pic=
9424 lt_prog_compiler_can_build_shared=no
9425 fi
9426
9427 fi
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439 #
9440 # Check to make sure the static flag actually works.
9441 #
9442 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9444 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9445 if ${lt_cv_prog_compiler_static_works+:} false; then :
9446 $as_echo_n "(cached) " >&6
9447 else
9448 lt_cv_prog_compiler_static_works=no
9449 save_LDFLAGS=$LDFLAGS
9450 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9451 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9453 # The linker can only warn and ignore the option if not recognized
9454 # So say no if there are warnings
9455 if test -s conftest.err; then
9456 # Append any errors to the config.log.
9457 cat conftest.err 1>&5
9458 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9460 if diff conftest.exp conftest.er2 >/dev/null; then
9461 lt_cv_prog_compiler_static_works=yes
9462 fi
9463 else
9464 lt_cv_prog_compiler_static_works=yes
9465 fi
9466 fi
9467 $RM -r conftest*
9468 LDFLAGS=$save_LDFLAGS
9469
9470 fi
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9472 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9473
9474 if test yes = "$lt_cv_prog_compiler_static_works"; then
9475 :
9476 else
9477 lt_prog_compiler_static=
9478 fi
9479
9480
9481
9482
9483
9484
9485
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9487 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9488 if ${lt_cv_prog_compiler_c_o+:} false; then :
9489 $as_echo_n "(cached) " >&6
9490 else
9491 lt_cv_prog_compiler_c_o=no
9492 $RM -r conftest 2>/dev/null
9493 mkdir conftest
9494 cd conftest
9495 mkdir out
9496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9497
9498 lt_compiler_flag="-o out/conftest2.$ac_objext"
9499 # Insert the option either (1) after the last *FLAGS variable, or
9500 # (2) before a word containing "conftest.", or (3) at the end.
9501 # Note that $ac_compile itself does not contain backslashes and begins
9502 # with a dollar sign (not a hyphen), so the echo should work correctly.
9503 lt_compile=`echo "$ac_compile" | $SED \
9504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9506 -e 's:$: $lt_compiler_flag:'`
9507 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9508 (eval "$lt_compile" 2>out/conftest.err)
9509 ac_status=$?
9510 cat out/conftest.err >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9513 then
9514 # The compiler can only warn and ignore the option if not recognized
9515 # So say no if there are warnings
9516 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9517 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9518 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9519 lt_cv_prog_compiler_c_o=yes
9520 fi
9521 fi
9522 chmod u+w . 2>&5
9523 $RM conftest*
9524 # SGI C++ compiler will create directory out/ii_files/ for
9525 # template instantiation
9526 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9527 $RM out/* && rmdir out
9528 cd ..
9529 $RM -r conftest
9530 $RM conftest*
9531
9532 fi
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9534 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9535
9536
9537
9538
9539
9540
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9542 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9543 if ${lt_cv_prog_compiler_c_o+:} false; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 lt_cv_prog_compiler_c_o=no
9547 $RM -r conftest 2>/dev/null
9548 mkdir conftest
9549 cd conftest
9550 mkdir out
9551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9552
9553 lt_compiler_flag="-o out/conftest2.$ac_objext"
9554 # Insert the option either (1) after the last *FLAGS variable, or
9555 # (2) before a word containing "conftest.", or (3) at the end.
9556 # Note that $ac_compile itself does not contain backslashes and begins
9557 # with a dollar sign (not a hyphen), so the echo should work correctly.
9558 lt_compile=`echo "$ac_compile" | $SED \
9559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9561 -e 's:$: $lt_compiler_flag:'`
9562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9563 (eval "$lt_compile" 2>out/conftest.err)
9564 ac_status=$?
9565 cat out/conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9568 then
9569 # The compiler can only warn and ignore the option if not recognized
9570 # So say no if there are warnings
9571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9574 lt_cv_prog_compiler_c_o=yes
9575 fi
9576 fi
9577 chmod u+w . 2>&5
9578 $RM conftest*
9579 # SGI C++ compiler will create directory out/ii_files/ for
9580 # template instantiation
9581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9582 $RM out/* && rmdir out
9583 cd ..
9584 $RM -r conftest
9585 $RM conftest*
9586
9587 fi
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9589 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9590
9591
9592
9593
9594 hard_links=nottested
9595 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9596 # do not overwrite the value of need_locks provided by the user
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9598 $as_echo_n "checking if we can lock with hard links... " >&6; }
9599 hard_links=yes
9600 $RM conftest*
9601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9602 touch conftest.a
9603 ln conftest.a conftest.b 2>&5 || hard_links=no
9604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9606 $as_echo "$hard_links" >&6; }
9607 if test no = "$hard_links"; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9609 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9610 need_locks=warn
9611 fi
9612 else
9613 need_locks=no
9614 fi
9615
9616
9617
9618
9619
9620
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9622 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9623
9624 runpath_var=
9625 allow_undefined_flag=
9626 always_export_symbols=no
9627 archive_cmds=
9628 archive_expsym_cmds=
9629 compiler_needs_object=no
9630 enable_shared_with_static_runtimes=no
9631 export_dynamic_flag_spec=
9632 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9633 hardcode_automatic=no
9634 hardcode_direct=no
9635 hardcode_direct_absolute=no
9636 hardcode_libdir_flag_spec=
9637 hardcode_libdir_separator=
9638 hardcode_minus_L=no
9639 hardcode_shlibpath_var=unsupported
9640 inherit_rpath=no
9641 link_all_deplibs=unknown
9642 module_cmds=
9643 module_expsym_cmds=
9644 old_archive_from_new_cmds=
9645 old_archive_from_expsyms_cmds=
9646 thread_safe_flag_spec=
9647 whole_archive_flag_spec=
9648 # include_expsyms should be a list of space-separated symbols to be *always*
9649 # included in the symbol list
9650 include_expsyms=
9651 # exclude_expsyms can be an extended regexp of symbols to exclude
9652 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9653 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9654 # as well as any symbol that contains 'd'.
9655 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9656 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9657 # platforms (ab)use it in PIC code, but their linkers get confused if
9658 # the symbol is explicitly referenced. Since portable code cannot
9659 # rely on this symbol name, it's probably fine to never include it in
9660 # preloaded symbol tables.
9661 # Exclude shared library initialization/finalization symbols.
9662 extract_expsyms_cmds=
9663
9664 case $host_os in
9665 cygwin* | mingw* | pw32* | cegcc*)
9666 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9667 # When not using gcc, we currently assume that we are using
9668 # Microsoft Visual C++.
9669 if test yes != "$GCC"; then
9670 with_gnu_ld=no
9671 fi
9672 ;;
9673 interix*)
9674 # we just hope/assume this is gcc and not c89 (= MSVC++)
9675 with_gnu_ld=yes
9676 ;;
9677 openbsd* | bitrig*)
9678 with_gnu_ld=no
9679 ;;
9680 esac
9681
9682 ld_shlibs=yes
9683
9684 # On some targets, GNU ld is compatible enough with the native linker
9685 # that we're better off using the native interface for both.
9686 lt_use_gnu_ld_interface=no
9687 if test yes = "$with_gnu_ld"; then
9688 case $host_os in
9689 aix*)
9690 # The AIX port of GNU ld has always aspired to compatibility
9691 # with the native linker. However, as the warning in the GNU ld
9692 # block says, versions before 2.19.5* couldn't really create working
9693 # shared libraries, regardless of the interface used.
9694 case `$LD -v 2>&1` in
9695 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9696 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9697 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9698 *)
9699 lt_use_gnu_ld_interface=yes
9700 ;;
9701 esac
9702 ;;
9703 *)
9704 lt_use_gnu_ld_interface=yes
9705 ;;
9706 esac
9707 fi
9708
9709 if test yes = "$lt_use_gnu_ld_interface"; then
9710 # If archive_cmds runs LD, not CC, wlarc should be empty
9711 wlarc='$wl'
9712
9713 # Set some defaults for GNU ld with shared library support. These
9714 # are reset later if shared libraries are not supported. Putting them
9715 # here allows them to be overridden if necessary.
9716 runpath_var=LD_RUN_PATH
9717 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9718 export_dynamic_flag_spec='$wl--export-dynamic'
9719 # ancient GNU ld didn't support --whole-archive et. al.
9720 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9721 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9722 else
9723 whole_archive_flag_spec=
9724 fi
9725 supports_anon_versioning=no
9726 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9727 *GNU\ gold*) supports_anon_versioning=yes ;;
9728 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9729 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9730 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9731 *\ 2.11.*) ;; # other 2.11 versions
9732 *) supports_anon_versioning=yes ;;
9733 esac
9734
9735 # See if GNU ld supports shared libraries.
9736 case $host_os in
9737 aix[3-9]*)
9738 # On AIX/PPC, the GNU linker is very broken
9739 if test ia64 != "$host_cpu"; then
9740 ld_shlibs=no
9741 cat <<_LT_EOF 1>&2
9742
9743 *** Warning: the GNU linker, at least up to release 2.19, is reported
9744 *** to be unable to reliably create shared libraries on AIX.
9745 *** Therefore, libtool is disabling shared libraries support. If you
9746 *** really care for shared libraries, you may want to install binutils
9747 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9748 *** You will then need to restart the configuration process.
9749
9750 _LT_EOF
9751 fi
9752 ;;
9753
9754 amigaos*)
9755 case $host_cpu in
9756 powerpc)
9757 # see comment about AmigaOS4 .so support
9758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9759 archive_expsym_cmds=''
9760 ;;
9761 m68k)
9762 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)'
9763 hardcode_libdir_flag_spec='-L$libdir'
9764 hardcode_minus_L=yes
9765 ;;
9766 esac
9767 ;;
9768
9769 beos*)
9770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9771 allow_undefined_flag=unsupported
9772 # Joseph Beckenbach <[email protected]> says some releases of gcc
9773 # support --undefined. This deserves some investigation. FIXME
9774 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9775 else
9776 ld_shlibs=no
9777 fi
9778 ;;
9779
9780 cygwin* | mingw* | pw32* | cegcc*)
9781 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9782 # as there is no search path for DLLs.
9783 hardcode_libdir_flag_spec='-L$libdir'
9784 export_dynamic_flag_spec='$wl--export-all-symbols'
9785 allow_undefined_flag=unsupported
9786 always_export_symbols=no
9787 enable_shared_with_static_runtimes=yes
9788 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'
9789 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9790
9791 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9793 # If the export-symbols file already is a .def file, use it as
9794 # is; otherwise, prepend EXPORTS...
9795 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9796 cp $export_symbols $output_objdir/$soname.def;
9797 else
9798 echo EXPORTS > $output_objdir/$soname.def;
9799 cat $export_symbols >> $output_objdir/$soname.def;
9800 fi~
9801 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9802 else
9803 ld_shlibs=no
9804 fi
9805 ;;
9806
9807 haiku*)
9808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9809 link_all_deplibs=yes
9810 ;;
9811
9812 os2*)
9813 hardcode_libdir_flag_spec='-L$libdir'
9814 hardcode_minus_L=yes
9815 allow_undefined_flag=unsupported
9816 shrext_cmds=.dll
9817 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9818 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9819 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9820 $ECHO EXPORTS >> $output_objdir/$libname.def~
9821 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9822 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9823 emximp -o $lib $output_objdir/$libname.def'
9824 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9825 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9826 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9827 $ECHO EXPORTS >> $output_objdir/$libname.def~
9828 prefix_cmds="$SED"~
9829 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9830 prefix_cmds="$prefix_cmds -e 1d";
9831 fi~
9832 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9833 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9834 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9835 emximp -o $lib $output_objdir/$libname.def'
9836 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9837 enable_shared_with_static_runtimes=yes
9838 ;;
9839
9840 interix[3-9]*)
9841 hardcode_direct=no
9842 hardcode_shlibpath_var=no
9843 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9844 export_dynamic_flag_spec='$wl-E'
9845 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9846 # Instead, shared libraries are loaded at an image base (0x10000000 by
9847 # default) and relocated if they conflict, which is a slow very memory
9848 # consuming and fragmenting process. To avoid this, we pick a random,
9849 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9850 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9851 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9852 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'
9853 ;;
9854
9855 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9856 tmp_diet=no
9857 if test linux-dietlibc = "$host_os"; then
9858 case $cc_basename in
9859 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9860 esac
9861 fi
9862 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9863 && test no = "$tmp_diet"
9864 then
9865 tmp_addflag=' $pic_flag'
9866 tmp_sharedflag='-shared'
9867 case $cc_basename,$host_cpu in
9868 pgcc*) # Portland Group C compiler
9869 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'
9870 tmp_addflag=' $pic_flag'
9871 ;;
9872 pgf77* | pgf90* | pgf95* | pgfortran*)
9873 # Portland Group f77 and f90 compilers
9874 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'
9875 tmp_addflag=' $pic_flag -Mnomain' ;;
9876 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9877 tmp_addflag=' -i_dynamic' ;;
9878 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9879 tmp_addflag=' -i_dynamic -nofor_main' ;;
9880 ifc* | ifort*) # Intel Fortran compiler
9881 tmp_addflag=' -nofor_main' ;;
9882 lf95*) # Lahey Fortran 8.1
9883 whole_archive_flag_spec=
9884 tmp_sharedflag='--shared' ;;
9885 nagfor*) # NAGFOR 5.3
9886 tmp_sharedflag='-Wl,-shared' ;;
9887 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9888 tmp_sharedflag='-qmkshrobj'
9889 tmp_addflag= ;;
9890 nvcc*) # Cuda Compiler Driver 2.2
9891 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'
9892 compiler_needs_object=yes
9893 ;;
9894 esac
9895 case `$CC -V 2>&1 | sed 5q` in
9896 *Sun\ C*) # Sun C 5.9
9897 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'
9898 compiler_needs_object=yes
9899 tmp_sharedflag='-G' ;;
9900 *Sun\ F*) # Sun Fortran 8.3
9901 tmp_sharedflag='-G' ;;
9902 esac
9903 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9904
9905 if test yes = "$supports_anon_versioning"; then
9906 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9907 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9908 echo "local: *; };" >> $output_objdir/$libname.ver~
9909 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9910 fi
9911
9912 case $cc_basename in
9913 tcc*)
9914 export_dynamic_flag_spec='-rdynamic'
9915 ;;
9916 xlf* | bgf* | bgxlf* | mpixlf*)
9917 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9918 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9919 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9920 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9921 if test yes = "$supports_anon_versioning"; then
9922 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9923 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9924 echo "local: *; };" >> $output_objdir/$libname.ver~
9925 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9926 fi
9927 ;;
9928 esac
9929 else
9930 ld_shlibs=no
9931 fi
9932 ;;
9933
9934 netbsd*)
9935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9936 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9937 wlarc=
9938 else
9939 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9940 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9941 fi
9942 ;;
9943
9944 solaris*)
9945 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9946 ld_shlibs=no
9947 cat <<_LT_EOF 1>&2
9948
9949 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9950 *** create shared libraries on Solaris systems. Therefore, libtool
9951 *** is disabling shared libraries support. We urge you to upgrade GNU
9952 *** binutils to release 2.9.1 or newer. Another option is to modify
9953 *** your PATH or compiler configuration so that the native linker is
9954 *** used, and then restart.
9955
9956 _LT_EOF
9957 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9958 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9959 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9960 else
9961 ld_shlibs=no
9962 fi
9963 ;;
9964
9965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9966 case `$LD -v 2>&1` in
9967 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9968 ld_shlibs=no
9969 cat <<_LT_EOF 1>&2
9970
9971 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9972 *** reliably create shared libraries on SCO systems. Therefore, libtool
9973 *** is disabling shared libraries support. We urge you to upgrade GNU
9974 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9975 *** your PATH or compiler configuration so that the native linker is
9976 *** used, and then restart.
9977
9978 _LT_EOF
9979 ;;
9980 *)
9981 # For security reasons, it is highly recommended that you always
9982 # use absolute paths for naming shared libraries, and exclude the
9983 # DT_RUNPATH tag from executables and libraries. But doing so
9984 # requires that you compile everything twice, which is a pain.
9985 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9986 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9988 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9989 else
9990 ld_shlibs=no
9991 fi
9992 ;;
9993 esac
9994 ;;
9995
9996 sunos4*)
9997 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9998 wlarc=
9999 hardcode_direct=yes
10000 hardcode_shlibpath_var=no
10001 ;;
10002
10003 *)
10004 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10005 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10006 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10007 else
10008 ld_shlibs=no
10009 fi
10010 ;;
10011 esac
10012
10013 if test no = "$ld_shlibs"; then
10014 runpath_var=
10015 hardcode_libdir_flag_spec=
10016 export_dynamic_flag_spec=
10017 whole_archive_flag_spec=
10018 fi
10019 else
10020 # PORTME fill in a description of your system's linker (not GNU ld)
10021 case $host_os in
10022 aix3*)
10023 allow_undefined_flag=unsupported
10024 always_export_symbols=yes
10025 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'
10026 # Note: this linker hardcodes the directories in LIBPATH if there
10027 # are no directories specified by -L.
10028 hardcode_minus_L=yes
10029 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10030 # Neither direct hardcoding nor static linking is supported with a
10031 # broken collect2.
10032 hardcode_direct=unsupported
10033 fi
10034 ;;
10035
10036 aix[4-9]*)
10037 if test ia64 = "$host_cpu"; then
10038 # On IA64, the linker does run time linking by default, so we don't
10039 # have to do anything special.
10040 aix_use_runtimelinking=no
10041 exp_sym_flag='-Bexport'
10042 no_entry_flag=
10043 else
10044 # If we're using GNU nm, then we don't want the "-C" option.
10045 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10046 # Without the "-l" option, or with the "-B" option, AIX nm treats
10047 # weak defined symbols like other global defined symbols, whereas
10048 # GNU nm marks them as "W".
10049 # While the 'weak' keyword is ignored in the Export File, we need
10050 # it in the Import File for the 'aix-soname' feature, so we have
10051 # to replace the "-B" option with "-P" for AIX nm.
10052 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10053 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'
10054 else
10055 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10056 fi
10057 aix_use_runtimelinking=no
10058
10059 # Test if we are trying to use run time linking or normal
10060 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10061 # have runtime linking enabled, and use it for executables.
10062 # For shared libraries, we enable/disable runtime linking
10063 # depending on the kind of the shared library created -
10064 # when "with_aix_soname,aix_use_runtimelinking" is:
10065 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10066 # "aix,yes" lib.so shared, rtl:yes, for executables
10067 # lib.a static archive
10068 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10069 # lib.a(lib.so.V) shared, rtl:no, for executables
10070 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10071 # lib.a(lib.so.V) shared, rtl:no
10072 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10073 # lib.a static archive
10074 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10075 for ld_flag in $LDFLAGS; do
10076 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10077 aix_use_runtimelinking=yes
10078 break
10079 fi
10080 done
10081 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10082 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10083 # so we don't have lib.a shared libs to link our executables.
10084 # We have to force runtime linking in this case.
10085 aix_use_runtimelinking=yes
10086 LDFLAGS="$LDFLAGS -Wl,-brtl"
10087 fi
10088 ;;
10089 esac
10090
10091 exp_sym_flag='-bexport'
10092 no_entry_flag='-bnoentry'
10093 fi
10094
10095 # When large executables or shared objects are built, AIX ld can
10096 # have problems creating the table of contents. If linking a library
10097 # or program results in "error TOC overflow" add -mminimal-toc to
10098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10100
10101 archive_cmds=''
10102 hardcode_direct=yes
10103 hardcode_direct_absolute=yes
10104 hardcode_libdir_separator=':'
10105 link_all_deplibs=yes
10106 file_list_spec='$wl-f,'
10107 case $with_aix_soname,$aix_use_runtimelinking in
10108 aix,*) ;; # traditional, no import file
10109 svr4,* | *,yes) # use import file
10110 # The Import File defines what to hardcode.
10111 hardcode_direct=no
10112 hardcode_direct_absolute=no
10113 ;;
10114 esac
10115
10116 if test yes = "$GCC"; then
10117 case $host_os in aix4.[012]|aix4.[012].*)
10118 # We only want to do this on AIX 4.2 and lower, the check
10119 # below for broken collect2 doesn't work under 4.3+
10120 collect2name=`$CC -print-prog-name=collect2`
10121 if test -f "$collect2name" &&
10122 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10123 then
10124 # We have reworked collect2
10125 :
10126 else
10127 # We have old collect2
10128 hardcode_direct=unsupported
10129 # It fails to find uninstalled libraries when the uninstalled
10130 # path is not listed in the libpath. Setting hardcode_minus_L
10131 # to unsupported forces relinking
10132 hardcode_minus_L=yes
10133 hardcode_libdir_flag_spec='-L$libdir'
10134 hardcode_libdir_separator=
10135 fi
10136 ;;
10137 esac
10138 shared_flag='-shared'
10139 if test yes = "$aix_use_runtimelinking"; then
10140 shared_flag="$shared_flag "'$wl-G'
10141 fi
10142 # Need to ensure runtime linking is disabled for the traditional
10143 # shared library, or the linker may eventually find shared libraries
10144 # /with/ Import File - we do not want to mix them.
10145 shared_flag_aix='-shared'
10146 shared_flag_svr4='-shared $wl-G'
10147 else
10148 # not using gcc
10149 if test ia64 = "$host_cpu"; then
10150 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10151 # chokes on -Wl,-G. The following line is correct:
10152 shared_flag='-G'
10153 else
10154 if test yes = "$aix_use_runtimelinking"; then
10155 shared_flag='$wl-G'
10156 else
10157 shared_flag='$wl-bM:SRE'
10158 fi
10159 shared_flag_aix='$wl-bM:SRE'
10160 shared_flag_svr4='$wl-G'
10161 fi
10162 fi
10163
10164 export_dynamic_flag_spec='$wl-bexpall'
10165 # It seems that -bexpall does not export symbols beginning with
10166 # underscore (_), so it is better to generate a list of symbols to export.
10167 always_export_symbols=yes
10168 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10169 # Warning - without using the other runtime loading flags (-brtl),
10170 # -berok will link without error, but may produce a broken library.
10171 allow_undefined_flag='-berok'
10172 # Determine the default libpath from the value encoded in an
10173 # empty executable.
10174 if test set = "${lt_cv_aix_libpath+set}"; then
10175 aix_libpath=$lt_cv_aix_libpath
10176 else
10177 if ${lt_cv_aix_libpath_+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179 else
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10182
10183 int
10184 main ()
10185 {
10186
10187 ;
10188 return 0;
10189 }
10190 _ACEOF
10191 if ac_fn_c_try_link "$LINENO"; then :
10192
10193 lt_aix_libpath_sed='
10194 /Import File Strings/,/^$/ {
10195 /^0/ {
10196 s/^0 *\([^ ]*\) *$/\1/
10197 p
10198 }
10199 }'
10200 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10201 # Check for a 64-bit object if we didn't find anything.
10202 if test -z "$lt_cv_aix_libpath_"; then
10203 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10204 fi
10205 fi
10206 rm -f core conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10208 if test -z "$lt_cv_aix_libpath_"; then
10209 lt_cv_aix_libpath_=/usr/lib:/lib
10210 fi
10211
10212 fi
10213
10214 aix_libpath=$lt_cv_aix_libpath_
10215 fi
10216
10217 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10218 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
10219 else
10220 if test ia64 = "$host_cpu"; then
10221 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10222 allow_undefined_flag="-z nodefs"
10223 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"
10224 else
10225 # Determine the default libpath from the value encoded in an
10226 # empty executable.
10227 if test set = "${lt_cv_aix_libpath+set}"; then
10228 aix_libpath=$lt_cv_aix_libpath
10229 else
10230 if ${lt_cv_aix_libpath_+:} false; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10235
10236 int
10237 main ()
10238 {
10239
10240 ;
10241 return 0;
10242 }
10243 _ACEOF
10244 if ac_fn_c_try_link "$LINENO"; then :
10245
10246 lt_aix_libpath_sed='
10247 /Import File Strings/,/^$/ {
10248 /^0/ {
10249 s/^0 *\([^ ]*\) *$/\1/
10250 p
10251 }
10252 }'
10253 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10254 # Check for a 64-bit object if we didn't find anything.
10255 if test -z "$lt_cv_aix_libpath_"; then
10256 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10257 fi
10258 fi
10259 rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261 if test -z "$lt_cv_aix_libpath_"; then
10262 lt_cv_aix_libpath_=/usr/lib:/lib
10263 fi
10264
10265 fi
10266
10267 aix_libpath=$lt_cv_aix_libpath_
10268 fi
10269
10270 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10271 # Warning - without using the other run time loading flags,
10272 # -berok will link without error, but may produce a broken library.
10273 no_undefined_flag=' $wl-bernotok'
10274 allow_undefined_flag=' $wl-berok'
10275 if test yes = "$with_gnu_ld"; then
10276 # We only use this code for GNU lds that support --whole-archive.
10277 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10278 else
10279 # Exported symbols can be pulled into shared objects from archives
10280 whole_archive_flag_spec='$convenience'
10281 fi
10282 archive_cmds_need_lc=yes
10283 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10284 # -brtl affects multiple linker settings, -berok does not and is overridden later
10285 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10286 if test svr4 != "$with_aix_soname"; then
10287 # This is similar to how AIX traditionally builds its shared libraries.
10288 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'
10289 fi
10290 if test aix != "$with_aix_soname"; then
10291 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'
10292 else
10293 # used by -dlpreopen to get the symbols
10294 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10295 fi
10296 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10297 fi
10298 fi
10299 ;;
10300
10301 amigaos*)
10302 case $host_cpu in
10303 powerpc)
10304 # see comment about AmigaOS4 .so support
10305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10306 archive_expsym_cmds=''
10307 ;;
10308 m68k)
10309 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)'
10310 hardcode_libdir_flag_spec='-L$libdir'
10311 hardcode_minus_L=yes
10312 ;;
10313 esac
10314 ;;
10315
10316 bsdi[45]*)
10317 export_dynamic_flag_spec=-rdynamic
10318 ;;
10319
10320 cygwin* | mingw* | pw32* | cegcc*)
10321 # When not using gcc, we currently assume that we are using
10322 # Microsoft Visual C++.
10323 # hardcode_libdir_flag_spec is actually meaningless, as there is
10324 # no search path for DLLs.
10325 case $cc_basename in
10326 cl*)
10327 # Native MSVC
10328 hardcode_libdir_flag_spec=' '
10329 allow_undefined_flag=unsupported
10330 always_export_symbols=yes
10331 file_list_spec='@'
10332 # Tell ltmain to make .lib files, not .a files.
10333 libext=lib
10334 # Tell ltmain to make .dll files, not .so files.
10335 shrext_cmds=.dll
10336 # FIXME: Setting linknames here is a bad hack.
10337 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10338 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10339 cp "$export_symbols" "$output_objdir/$soname.def";
10340 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10341 else
10342 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10343 fi~
10344 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10345 linknames='
10346 # The linker will not automatically build a static lib if we build a DLL.
10347 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10348 enable_shared_with_static_runtimes=yes
10349 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10350 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10351 # Don't use ranlib
10352 old_postinstall_cmds='chmod 644 $oldlib'
10353 postlink_cmds='lt_outputfile="@OUTPUT@"~
10354 lt_tool_outputfile="@TOOL_OUTPUT@"~
10355 case $lt_outputfile in
10356 *.exe|*.EXE) ;;
10357 *)
10358 lt_outputfile=$lt_outputfile.exe
10359 lt_tool_outputfile=$lt_tool_outputfile.exe
10360 ;;
10361 esac~
10362 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10363 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10364 $RM "$lt_outputfile.manifest";
10365 fi'
10366 ;;
10367 *)
10368 # Assume MSVC wrapper
10369 hardcode_libdir_flag_spec=' '
10370 allow_undefined_flag=unsupported
10371 # Tell ltmain to make .lib files, not .a files.
10372 libext=lib
10373 # Tell ltmain to make .dll files, not .so files.
10374 shrext_cmds=.dll
10375 # FIXME: Setting linknames here is a bad hack.
10376 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10377 # The linker will automatically build a .lib file if we build a DLL.
10378 old_archive_from_new_cmds='true'
10379 # FIXME: Should let the user specify the lib program.
10380 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10381 enable_shared_with_static_runtimes=yes
10382 ;;
10383 esac
10384 ;;
10385
10386 darwin* | rhapsody*)
10387
10388
10389 archive_cmds_need_lc=no
10390 hardcode_direct=no
10391 hardcode_automatic=yes
10392 hardcode_shlibpath_var=unsupported
10393 if test yes = "$lt_cv_ld_force_load"; then
10394 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\"`'
10395
10396 else
10397 whole_archive_flag_spec=''
10398 fi
10399 link_all_deplibs=yes
10400 allow_undefined_flag=$_lt_dar_allow_undefined
10401 case $cc_basename in
10402 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10403 *) _lt_dar_can_shared=$GCC ;;
10404 esac
10405 if test yes = "$_lt_dar_can_shared"; then
10406 output_verbose_link_cmd=func_echo_all
10407 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10408 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10409 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"
10410 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"
10411
10412 else
10413 ld_shlibs=no
10414 fi
10415
10416 ;;
10417
10418 dgux*)
10419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10420 hardcode_libdir_flag_spec='-L$libdir'
10421 hardcode_shlibpath_var=no
10422 ;;
10423
10424 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10425 # support. Future versions do this automatically, but an explicit c++rt0.o
10426 # does not break anything, and helps significantly (at the cost of a little
10427 # extra space).
10428 freebsd2.2*)
10429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10430 hardcode_libdir_flag_spec='-R$libdir'
10431 hardcode_direct=yes
10432 hardcode_shlibpath_var=no
10433 ;;
10434
10435 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10436 freebsd2.*)
10437 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10438 hardcode_direct=yes
10439 hardcode_minus_L=yes
10440 hardcode_shlibpath_var=no
10441 ;;
10442
10443 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10444 freebsd* | dragonfly*)
10445 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10446 hardcode_libdir_flag_spec='-R$libdir'
10447 hardcode_direct=yes
10448 hardcode_shlibpath_var=no
10449 ;;
10450
10451 hpux9*)
10452 if test yes = "$GCC"; then
10453 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'
10454 else
10455 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'
10456 fi
10457 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10458 hardcode_libdir_separator=:
10459 hardcode_direct=yes
10460
10461 # hardcode_minus_L: Not really in the search PATH,
10462 # but as the default location of the library.
10463 hardcode_minus_L=yes
10464 export_dynamic_flag_spec='$wl-E'
10465 ;;
10466
10467 hpux10*)
10468 if test yes,no = "$GCC,$with_gnu_ld"; then
10469 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10470 else
10471 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10472 fi
10473 if test no = "$with_gnu_ld"; then
10474 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10475 hardcode_libdir_separator=:
10476 hardcode_direct=yes
10477 hardcode_direct_absolute=yes
10478 export_dynamic_flag_spec='$wl-E'
10479 # hardcode_minus_L: Not really in the search PATH,
10480 # but as the default location of the library.
10481 hardcode_minus_L=yes
10482 fi
10483 ;;
10484
10485 hpux11*)
10486 if test yes,no = "$GCC,$with_gnu_ld"; then
10487 case $host_cpu in
10488 hppa*64*)
10489 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10490 ;;
10491 ia64*)
10492 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10493 ;;
10494 *)
10495 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10496 ;;
10497 esac
10498 else
10499 case $host_cpu in
10500 hppa*64*)
10501 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10502 ;;
10503 ia64*)
10504 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10505 ;;
10506 *)
10507
10508 # Older versions of the 11.00 compiler do not understand -b yet
10509 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10511 $as_echo_n "checking if $CC understands -b... " >&6; }
10512 if ${lt_cv_prog_compiler__b+:} false; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 lt_cv_prog_compiler__b=no
10516 save_LDFLAGS=$LDFLAGS
10517 LDFLAGS="$LDFLAGS -b"
10518 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10519 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10520 # The linker can only warn and ignore the option if not recognized
10521 # So say no if there are warnings
10522 if test -s conftest.err; then
10523 # Append any errors to the config.log.
10524 cat conftest.err 1>&5
10525 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10527 if diff conftest.exp conftest.er2 >/dev/null; then
10528 lt_cv_prog_compiler__b=yes
10529 fi
10530 else
10531 lt_cv_prog_compiler__b=yes
10532 fi
10533 fi
10534 $RM -r conftest*
10535 LDFLAGS=$save_LDFLAGS
10536
10537 fi
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10539 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10540
10541 if test yes = "$lt_cv_prog_compiler__b"; then
10542 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10543 else
10544 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10545 fi
10546
10547 ;;
10548 esac
10549 fi
10550 if test no = "$with_gnu_ld"; then
10551 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10552 hardcode_libdir_separator=:
10553
10554 case $host_cpu in
10555 hppa*64*|ia64*)
10556 hardcode_direct=no
10557 hardcode_shlibpath_var=no
10558 ;;
10559 *)
10560 hardcode_direct=yes
10561 hardcode_direct_absolute=yes
10562 export_dynamic_flag_spec='$wl-E'
10563
10564 # hardcode_minus_L: Not really in the search PATH,
10565 # but as the default location of the library.
10566 hardcode_minus_L=yes
10567 ;;
10568 esac
10569 fi
10570 ;;
10571
10572 irix5* | irix6* | nonstopux*)
10573 if test yes = "$GCC"; then
10574 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'
10575 # Try to use the -exported_symbol ld option, if it does not
10576 # work, assume that -exports_file does not work either and
10577 # implicitly export all symbols.
10578 # This should be the same for all languages, so no per-tag cache variable.
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10580 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10581 if ${lt_cv_irix_exported_symbol+:} false; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10584 save_LDFLAGS=$LDFLAGS
10585 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10588 int foo (void) { return 0; }
10589 _ACEOF
10590 if ac_fn_c_try_link "$LINENO"; then :
10591 lt_cv_irix_exported_symbol=yes
10592 else
10593 lt_cv_irix_exported_symbol=no
10594 fi
10595 rm -f core conftest.err conftest.$ac_objext \
10596 conftest$ac_exeext conftest.$ac_ext
10597 LDFLAGS=$save_LDFLAGS
10598 fi
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10600 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10601 if test yes = "$lt_cv_irix_exported_symbol"; then
10602 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'
10603 fi
10604 else
10605 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'
10606 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'
10607 fi
10608 archive_cmds_need_lc='no'
10609 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10610 hardcode_libdir_separator=:
10611 inherit_rpath=yes
10612 link_all_deplibs=yes
10613 ;;
10614
10615 linux*)
10616 case $cc_basename in
10617 tcc*)
10618 # Fabrice Bellard et al's Tiny C Compiler
10619 ld_shlibs=yes
10620 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10621 ;;
10622 esac
10623 ;;
10624
10625 netbsd*)
10626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10628 else
10629 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10630 fi
10631 hardcode_libdir_flag_spec='-R$libdir'
10632 hardcode_direct=yes
10633 hardcode_shlibpath_var=no
10634 ;;
10635
10636 newsos6)
10637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10638 hardcode_direct=yes
10639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10640 hardcode_libdir_separator=:
10641 hardcode_shlibpath_var=no
10642 ;;
10643
10644 *nto* | *qnx*)
10645 ;;
10646
10647 openbsd* | bitrig*)
10648 if test -f /usr/libexec/ld.so; then
10649 hardcode_direct=yes
10650 hardcode_shlibpath_var=no
10651 hardcode_direct_absolute=yes
10652 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10653 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10654 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10655 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10656 export_dynamic_flag_spec='$wl-E'
10657 else
10658 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10659 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10660 fi
10661 else
10662 ld_shlibs=no
10663 fi
10664 ;;
10665
10666 os2*)
10667 hardcode_libdir_flag_spec='-L$libdir'
10668 hardcode_minus_L=yes
10669 allow_undefined_flag=unsupported
10670 shrext_cmds=.dll
10671 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10672 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10673 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10674 $ECHO EXPORTS >> $output_objdir/$libname.def~
10675 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10676 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10677 emximp -o $lib $output_objdir/$libname.def'
10678 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10679 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10680 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10681 $ECHO EXPORTS >> $output_objdir/$libname.def~
10682 prefix_cmds="$SED"~
10683 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10684 prefix_cmds="$prefix_cmds -e 1d";
10685 fi~
10686 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10687 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10688 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10689 emximp -o $lib $output_objdir/$libname.def'
10690 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10691 enable_shared_with_static_runtimes=yes
10692 ;;
10693
10694 osf3*)
10695 if test yes = "$GCC"; then
10696 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10697 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'
10698 else
10699 allow_undefined_flag=' -expect_unresolved \*'
10700 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'
10701 fi
10702 archive_cmds_need_lc='no'
10703 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10704 hardcode_libdir_separator=:
10705 ;;
10706
10707 osf4* | osf5*) # as osf3* with the addition of -msym flag
10708 if test yes = "$GCC"; then
10709 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10710 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'
10711 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10712 else
10713 allow_undefined_flag=' -expect_unresolved \*'
10714 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'
10715 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~
10716 $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'
10717
10718 # Both c and cxx compiler support -rpath directly
10719 hardcode_libdir_flag_spec='-rpath $libdir'
10720 fi
10721 archive_cmds_need_lc='no'
10722 hardcode_libdir_separator=:
10723 ;;
10724
10725 solaris*)
10726 no_undefined_flag=' -z defs'
10727 if test yes = "$GCC"; then
10728 wlarc='$wl'
10729 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10730 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10731 $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'
10732 else
10733 case `$CC -V 2>&1` in
10734 *"Compilers 5.0"*)
10735 wlarc=''
10736 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10737 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10738 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10739 ;;
10740 *)
10741 wlarc='$wl'
10742 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10743 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10744 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10745 ;;
10746 esac
10747 fi
10748 hardcode_libdir_flag_spec='-R$libdir'
10749 hardcode_shlibpath_var=no
10750 case $host_os in
10751 solaris2.[0-5] | solaris2.[0-5].*) ;;
10752 *)
10753 # The compiler driver will combine and reorder linker options,
10754 # but understands '-z linker_flag'. GCC discards it without '$wl',
10755 # but is careful enough not to reorder.
10756 # Supported since Solaris 2.6 (maybe 2.5.1?)
10757 if test yes = "$GCC"; then
10758 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10759 else
10760 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10761 fi
10762 ;;
10763 esac
10764 link_all_deplibs=yes
10765 ;;
10766
10767 sunos4*)
10768 if test sequent = "$host_vendor"; then
10769 # Use $CC to link under sequent, because it throws in some extra .o
10770 # files that make .init and .fini sections work.
10771 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10772 else
10773 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10774 fi
10775 hardcode_libdir_flag_spec='-L$libdir'
10776 hardcode_direct=yes
10777 hardcode_minus_L=yes
10778 hardcode_shlibpath_var=no
10779 ;;
10780
10781 sysv4)
10782 case $host_vendor in
10783 sni)
10784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10785 hardcode_direct=yes # is this really true???
10786 ;;
10787 siemens)
10788 ## LD is ld it makes a PLAMLIB
10789 ## CC just makes a GrossModule.
10790 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10791 reload_cmds='$CC -r -o $output$reload_objs'
10792 hardcode_direct=no
10793 ;;
10794 motorola)
10795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10796 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10797 ;;
10798 esac
10799 runpath_var='LD_RUN_PATH'
10800 hardcode_shlibpath_var=no
10801 ;;
10802
10803 sysv4.3*)
10804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10805 hardcode_shlibpath_var=no
10806 export_dynamic_flag_spec='-Bexport'
10807 ;;
10808
10809 sysv4*MP*)
10810 if test -d /usr/nec; then
10811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10812 hardcode_shlibpath_var=no
10813 runpath_var=LD_RUN_PATH
10814 hardcode_runpath_var=yes
10815 ld_shlibs=yes
10816 fi
10817 ;;
10818
10819 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10820 no_undefined_flag='$wl-z,text'
10821 archive_cmds_need_lc=no
10822 hardcode_shlibpath_var=no
10823 runpath_var='LD_RUN_PATH'
10824
10825 if test yes = "$GCC"; then
10826 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10827 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10828 else
10829 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10830 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10831 fi
10832 ;;
10833
10834 sysv5* | sco3.2v5* | sco5v6*)
10835 # Note: We CANNOT use -z defs as we might desire, because we do not
10836 # link with -lc, and that would cause any symbols used from libc to
10837 # always be unresolved, which means just about no library would
10838 # ever link correctly. If we're not using GNU ld we use -z text
10839 # though, which does catch some bad symbols but isn't as heavy-handed
10840 # as -z defs.
10841 no_undefined_flag='$wl-z,text'
10842 allow_undefined_flag='$wl-z,nodefs'
10843 archive_cmds_need_lc=no
10844 hardcode_shlibpath_var=no
10845 hardcode_libdir_flag_spec='$wl-R,$libdir'
10846 hardcode_libdir_separator=':'
10847 link_all_deplibs=yes
10848 export_dynamic_flag_spec='$wl-Bexport'
10849 runpath_var='LD_RUN_PATH'
10850
10851 if test yes = "$GCC"; then
10852 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10853 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10854 else
10855 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10856 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10857 fi
10858 ;;
10859
10860 uts4*)
10861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10862 hardcode_libdir_flag_spec='-L$libdir'
10863 hardcode_shlibpath_var=no
10864 ;;
10865
10866 *)
10867 ld_shlibs=no
10868 ;;
10869 esac
10870
10871 if test sni = "$host_vendor"; then
10872 case $host in
10873 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10874 export_dynamic_flag_spec='$wl-Blargedynsym'
10875 ;;
10876 esac
10877 fi
10878 fi
10879
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10881 $as_echo "$ld_shlibs" >&6; }
10882 test no = "$ld_shlibs" && can_build_shared=no
10883
10884 with_gnu_ld=$with_gnu_ld
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900 #
10901 # Do we need to explicitly link libc?
10902 #
10903 case "x$archive_cmds_need_lc" in
10904 x|xyes)
10905 # Assume -lc should be added
10906 archive_cmds_need_lc=yes
10907
10908 if test yes,yes = "$GCC,$enable_shared"; then
10909 case $archive_cmds in
10910 *'~'*)
10911 # FIXME: we may have to deal with multi-command sequences.
10912 ;;
10913 '$CC '*)
10914 # Test whether the compiler implicitly links with -lc since on some
10915 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10916 # to ld, don't add -lc before -lgcc.
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10918 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10919 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922 $RM conftest*
10923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10924
10925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10926 (eval $ac_compile) 2>&5
10927 ac_status=$?
10928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10929 test $ac_status = 0; } 2>conftest.err; then
10930 soname=conftest
10931 lib=conftest
10932 libobjs=conftest.$ac_objext
10933 deplibs=
10934 wl=$lt_prog_compiler_wl
10935 pic_flag=$lt_prog_compiler_pic
10936 compiler_flags=-v
10937 linker_flags=-v
10938 verstring=
10939 output_objdir=.
10940 libname=conftest
10941 lt_save_allow_undefined_flag=$allow_undefined_flag
10942 allow_undefined_flag=
10943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10944 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10945 ac_status=$?
10946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10947 test $ac_status = 0; }
10948 then
10949 lt_cv_archive_cmds_need_lc=no
10950 else
10951 lt_cv_archive_cmds_need_lc=yes
10952 fi
10953 allow_undefined_flag=$lt_save_allow_undefined_flag
10954 else
10955 cat conftest.err 1>&5
10956 fi
10957 $RM conftest*
10958
10959 fi
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10961 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10962 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10963 ;;
10964 esac
10965 fi
10966 ;;
10967 esac
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11121 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11122
11123 if test yes = "$GCC"; then
11124 case $host_os in
11125 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11126 *) lt_awk_arg='/^libraries:/' ;;
11127 esac
11128 case $host_os in
11129 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11130 *) lt_sed_strip_eq='s|=/|/|g' ;;
11131 esac
11132 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11133 case $lt_search_path_spec in
11134 *\;*)
11135 # if the path contains ";" then we assume it to be the separator
11136 # otherwise default to the standard path separator (i.e. ":") - it is
11137 # assumed that no part of a normal pathname contains ";" but that should
11138 # okay in the real world where ";" in dirpaths is itself problematic.
11139 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11140 ;;
11141 *)
11142 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11143 ;;
11144 esac
11145 # Ok, now we have the path, separated by spaces, we can step through it
11146 # and add multilib dir if necessary...
11147 lt_tmp_lt_search_path_spec=
11148 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11149 # ...but if some path component already ends with the multilib dir we assume
11150 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11151 case "$lt_multi_os_dir; $lt_search_path_spec " in
11152 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11153 lt_multi_os_dir=
11154 ;;
11155 esac
11156 for lt_sys_path in $lt_search_path_spec; do
11157 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11158 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11159 elif test -n "$lt_multi_os_dir"; then
11160 test -d "$lt_sys_path" && \
11161 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11162 fi
11163 done
11164 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11165 BEGIN {RS = " "; FS = "/|\n";} {
11166 lt_foo = "";
11167 lt_count = 0;
11168 for (lt_i = NF; lt_i > 0; lt_i--) {
11169 if ($lt_i != "" && $lt_i != ".") {
11170 if ($lt_i == "..") {
11171 lt_count++;
11172 } else {
11173 if (lt_count == 0) {
11174 lt_foo = "/" $lt_i lt_foo;
11175 } else {
11176 lt_count--;
11177 }
11178 }
11179 }
11180 }
11181 if (lt_foo != "") { lt_freq[lt_foo]++; }
11182 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11183 }'`
11184 # AWK program above erroneously prepends '/' to C:/dos/paths
11185 # for these hosts.
11186 case $host_os in
11187 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11188 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11189 esac
11190 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11191 else
11192 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11193 fi
11194 library_names_spec=
11195 libname_spec='lib$name'
11196 soname_spec=
11197 shrext_cmds=.so
11198 postinstall_cmds=
11199 postuninstall_cmds=
11200 finish_cmds=
11201 finish_eval=
11202 shlibpath_var=
11203 shlibpath_overrides_runpath=unknown
11204 version_type=none
11205 dynamic_linker="$host_os ld.so"
11206 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11207 need_lib_prefix=unknown
11208 hardcode_into_libs=no
11209
11210 # when you set need_version to no, make sure it does not cause -set_version
11211 # flags to be left without arguments
11212 need_version=unknown
11213
11214
11215
11216 case $host_os in
11217 aix3*)
11218 version_type=linux # correct to gnu/linux during the next big refactor
11219 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11220 shlibpath_var=LIBPATH
11221
11222 # AIX 3 has no versioning support, so we append a major version to the name.
11223 soname_spec='$libname$release$shared_ext$major'
11224 ;;
11225
11226 aix[4-9]*)
11227 version_type=linux # correct to gnu/linux during the next big refactor
11228 need_lib_prefix=no
11229 need_version=no
11230 hardcode_into_libs=yes
11231 if test ia64 = "$host_cpu"; then
11232 # AIX 5 supports IA64
11233 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11234 shlibpath_var=LD_LIBRARY_PATH
11235 else
11236 # With GCC up to 2.95.x, collect2 would create an import file
11237 # for dependence libraries. The import file would start with
11238 # the line '#! .'. This would cause the generated library to
11239 # depend on '.', always an invalid library. This was fixed in
11240 # development snapshots of GCC prior to 3.0.
11241 case $host_os in
11242 aix4 | aix4.[01] | aix4.[01].*)
11243 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11244 echo ' yes '
11245 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11246 :
11247 else
11248 can_build_shared=no
11249 fi
11250 ;;
11251 esac
11252 # Using Import Files as archive members, it is possible to support
11253 # filename-based versioning of shared library archives on AIX. While
11254 # this would work for both with and without runtime linking, it will
11255 # prevent static linking of such archives. So we do filename-based
11256 # shared library versioning with .so extension only, which is used
11257 # when both runtime linking and shared linking is enabled.
11258 # Unfortunately, runtime linking may impact performance, so we do
11259 # not want this to be the default eventually. Also, we use the
11260 # versioned .so libs for executables only if there is the -brtl
11261 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11262 # To allow for filename-based versioning support, we need to create
11263 # libNAME.so.V as an archive file, containing:
11264 # *) an Import File, referring to the versioned filename of the
11265 # archive as well as the shared archive member, telling the
11266 # bitwidth (32 or 64) of that shared object, and providing the
11267 # list of exported symbols of that shared object, eventually
11268 # decorated with the 'weak' keyword
11269 # *) the shared object with the F_LOADONLY flag set, to really avoid
11270 # it being seen by the linker.
11271 # At run time we better use the real file rather than another symlink,
11272 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11273
11274 case $with_aix_soname,$aix_use_runtimelinking in
11275 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11276 # soname into executable. Probably we can add versioning support to
11277 # collect2, so additional links can be useful in future.
11278 aix,yes) # traditional libtool
11279 dynamic_linker='AIX unversionable lib.so'
11280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11281 # instead of lib<name>.a to let people know that these are not
11282 # typical AIX shared libraries.
11283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11284 ;;
11285 aix,no) # traditional AIX only
11286 dynamic_linker='AIX lib.a(lib.so.V)'
11287 # We preserve .a as extension for shared libraries through AIX4.2
11288 # and later when we are not doing run time linking.
11289 library_names_spec='$libname$release.a $libname.a'
11290 soname_spec='$libname$release$shared_ext$major'
11291 ;;
11292 svr4,*) # full svr4 only
11293 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11294 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11295 # We do not specify a path in Import Files, so LIBPATH fires.
11296 shlibpath_overrides_runpath=yes
11297 ;;
11298 *,yes) # both, prefer svr4
11299 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11300 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11301 # unpreferred sharedlib libNAME.a needs extra handling
11302 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"'
11303 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"'
11304 # We do not specify a path in Import Files, so LIBPATH fires.
11305 shlibpath_overrides_runpath=yes
11306 ;;
11307 *,no) # both, prefer aix
11308 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11309 library_names_spec='$libname$release.a $libname.a'
11310 soname_spec='$libname$release$shared_ext$major'
11311 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11312 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)'
11313 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"'
11314 ;;
11315 esac
11316 shlibpath_var=LIBPATH
11317 fi
11318 ;;
11319
11320 amigaos*)
11321 case $host_cpu in
11322 powerpc)
11323 # Since July 2007 AmigaOS4 officially supports .so libraries.
11324 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11326 ;;
11327 m68k)
11328 library_names_spec='$libname.ixlibrary $libname.a'
11329 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11330 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'
11331 ;;
11332 esac
11333 ;;
11334
11335 beos*)
11336 library_names_spec='$libname$shared_ext'
11337 dynamic_linker="$host_os ld.so"
11338 shlibpath_var=LIBRARY_PATH
11339 ;;
11340
11341 bsdi[45]*)
11342 version_type=linux # correct to gnu/linux during the next big refactor
11343 need_version=no
11344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11345 soname_spec='$libname$release$shared_ext$major'
11346 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11347 shlibpath_var=LD_LIBRARY_PATH
11348 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11349 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11350 # the default ld.so.conf also contains /usr/contrib/lib and
11351 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11352 # libtool to hard-code these into programs
11353 ;;
11354
11355 cygwin* | mingw* | pw32* | cegcc*)
11356 version_type=windows
11357 shrext_cmds=.dll
11358 need_version=no
11359 need_lib_prefix=no
11360
11361 case $GCC,$cc_basename in
11362 yes,*)
11363 # gcc
11364 library_names_spec='$libname.dll.a'
11365 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11366 postinstall_cmds='base_file=`basename \$file`~
11367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11368 dldir=$destdir/`dirname \$dlpath`~
11369 test -d \$dldir || mkdir -p \$dldir~
11370 $install_prog $dir/$dlname \$dldir/$dlname~
11371 chmod a+x \$dldir/$dlname~
11372 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11373 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11374 fi'
11375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11376 dlpath=$dir/\$dldll~
11377 $RM \$dlpath'
11378 shlibpath_overrides_runpath=yes
11379
11380 case $host_os in
11381 cygwin*)
11382 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11383 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11384
11385 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11386 ;;
11387 mingw* | cegcc*)
11388 # MinGW DLLs use traditional 'lib' prefix
11389 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11390 ;;
11391 pw32*)
11392 # pw32 DLLs use 'pw' prefix rather than 'lib'
11393 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11394 ;;
11395 esac
11396 dynamic_linker='Win32 ld.exe'
11397 ;;
11398
11399 *,cl*)
11400 # Native MSVC
11401 libname_spec='$name'
11402 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11403 library_names_spec='$libname.dll.lib'
11404
11405 case $build_os in
11406 mingw*)
11407 sys_lib_search_path_spec=
11408 lt_save_ifs=$IFS
11409 IFS=';'
11410 for lt_path in $LIB
11411 do
11412 IFS=$lt_save_ifs
11413 # Let DOS variable expansion print the short 8.3 style file name.
11414 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11415 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11416 done
11417 IFS=$lt_save_ifs
11418 # Convert to MSYS style.
11419 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11420 ;;
11421 cygwin*)
11422 # Convert to unix form, then to dos form, then back to unix form
11423 # but this time dos style (no spaces!) so that the unix form looks
11424 # like /cygdrive/c/PROGRA~1:/cygdr...
11425 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11426 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11427 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11428 ;;
11429 *)
11430 sys_lib_search_path_spec=$LIB
11431 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11432 # It is most probably a Windows format PATH.
11433 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11434 else
11435 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11436 fi
11437 # FIXME: find the short name or the path components, as spaces are
11438 # common. (e.g. "Program Files" -> "PROGRA~1")
11439 ;;
11440 esac
11441
11442 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11443 postinstall_cmds='base_file=`basename \$file`~
11444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11445 dldir=$destdir/`dirname \$dlpath`~
11446 test -d \$dldir || mkdir -p \$dldir~
11447 $install_prog $dir/$dlname \$dldir/$dlname'
11448 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11449 dlpath=$dir/\$dldll~
11450 $RM \$dlpath'
11451 shlibpath_overrides_runpath=yes
11452 dynamic_linker='Win32 link.exe'
11453 ;;
11454
11455 *)
11456 # Assume MSVC wrapper
11457 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11458 dynamic_linker='Win32 ld.exe'
11459 ;;
11460 esac
11461 # FIXME: first we should search . and the directory the executable is in
11462 shlibpath_var=PATH
11463 ;;
11464
11465 darwin* | rhapsody*)
11466 dynamic_linker="$host_os dyld"
11467 version_type=darwin
11468 need_lib_prefix=no
11469 need_version=no
11470 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11471 soname_spec='$libname$release$major$shared_ext'
11472 shlibpath_overrides_runpath=yes
11473 shlibpath_var=DYLD_LIBRARY_PATH
11474 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11475
11476 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11477 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11478 ;;
11479
11480 dgux*)
11481 version_type=linux # correct to gnu/linux during the next big refactor
11482 need_lib_prefix=no
11483 need_version=no
11484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11485 soname_spec='$libname$release$shared_ext$major'
11486 shlibpath_var=LD_LIBRARY_PATH
11487 ;;
11488
11489 freebsd* | dragonfly*)
11490 # DragonFly does not have aout. When/if they implement a new
11491 # versioning mechanism, adjust this.
11492 if test -x /usr/bin/objformat; then
11493 objformat=`/usr/bin/objformat`
11494 else
11495 case $host_os in
11496 freebsd[23].*) objformat=aout ;;
11497 *) objformat=elf ;;
11498 esac
11499 fi
11500 version_type=freebsd-$objformat
11501 case $version_type in
11502 freebsd-elf*)
11503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11504 soname_spec='$libname$release$shared_ext$major'
11505 need_version=no
11506 need_lib_prefix=no
11507 ;;
11508 freebsd-*)
11509 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11510 need_version=yes
11511 ;;
11512 esac
11513 shlibpath_var=LD_LIBRARY_PATH
11514 case $host_os in
11515 freebsd2.*)
11516 shlibpath_overrides_runpath=yes
11517 ;;
11518 freebsd3.[01]* | freebsdelf3.[01]*)
11519 shlibpath_overrides_runpath=yes
11520 hardcode_into_libs=yes
11521 ;;
11522 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11523 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11524 shlibpath_overrides_runpath=no
11525 hardcode_into_libs=yes
11526 ;;
11527 *) # from 4.6 on, and DragonFly
11528 shlibpath_overrides_runpath=yes
11529 hardcode_into_libs=yes
11530 ;;
11531 esac
11532 ;;
11533
11534 haiku*)
11535 version_type=linux # correct to gnu/linux during the next big refactor
11536 need_lib_prefix=no
11537 need_version=no
11538 dynamic_linker="$host_os runtime_loader"
11539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11540 soname_spec='$libname$release$shared_ext$major'
11541 shlibpath_var=LIBRARY_PATH
11542 shlibpath_overrides_runpath=no
11543 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11544 hardcode_into_libs=yes
11545 ;;
11546
11547 hpux9* | hpux10* | hpux11*)
11548 # Give a soname corresponding to the major version so that dld.sl refuses to
11549 # link against other versions.
11550 version_type=sunos
11551 need_lib_prefix=no
11552 need_version=no
11553 case $host_cpu in
11554 ia64*)
11555 shrext_cmds='.so'
11556 hardcode_into_libs=yes
11557 dynamic_linker="$host_os dld.so"
11558 shlibpath_var=LD_LIBRARY_PATH
11559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11561 soname_spec='$libname$release$shared_ext$major'
11562 if test 32 = "$HPUX_IA64_MODE"; then
11563 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11564 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11565 else
11566 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11567 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11568 fi
11569 ;;
11570 hppa*64*)
11571 shrext_cmds='.sl'
11572 hardcode_into_libs=yes
11573 dynamic_linker="$host_os dld.sl"
11574 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11577 soname_spec='$libname$release$shared_ext$major'
11578 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11580 ;;
11581 *)
11582 shrext_cmds='.sl'
11583 dynamic_linker="$host_os dld.sl"
11584 shlibpath_var=SHLIB_PATH
11585 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11587 soname_spec='$libname$release$shared_ext$major'
11588 ;;
11589 esac
11590 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11591 postinstall_cmds='chmod 555 $lib'
11592 # or fails outright, so override atomically:
11593 install_override_mode=555
11594 ;;
11595
11596 interix[3-9]*)
11597 version_type=linux # correct to gnu/linux during the next big refactor
11598 need_lib_prefix=no
11599 need_version=no
11600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11601 soname_spec='$libname$release$shared_ext$major'
11602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11603 shlibpath_var=LD_LIBRARY_PATH
11604 shlibpath_overrides_runpath=no
11605 hardcode_into_libs=yes
11606 ;;
11607
11608 irix5* | irix6* | nonstopux*)
11609 case $host_os in
11610 nonstopux*) version_type=nonstopux ;;
11611 *)
11612 if test yes = "$lt_cv_prog_gnu_ld"; then
11613 version_type=linux # correct to gnu/linux during the next big refactor
11614 else
11615 version_type=irix
11616 fi ;;
11617 esac
11618 need_lib_prefix=no
11619 need_version=no
11620 soname_spec='$libname$release$shared_ext$major'
11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11622 case $host_os in
11623 irix5* | nonstopux*)
11624 libsuff= shlibsuff=
11625 ;;
11626 *)
11627 case $LD in # libtool.m4 will add one of these switches to LD
11628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11629 libsuff= shlibsuff= libmagic=32-bit;;
11630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11631 libsuff=32 shlibsuff=N32 libmagic=N32;;
11632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11634 *) libsuff= shlibsuff= libmagic=never-match;;
11635 esac
11636 ;;
11637 esac
11638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11639 shlibpath_overrides_runpath=no
11640 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11641 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11642 hardcode_into_libs=yes
11643 ;;
11644
11645 # No shared lib support for Linux oldld, aout, or coff.
11646 linux*oldld* | linux*aout* | linux*coff*)
11647 dynamic_linker=no
11648 ;;
11649
11650 linux*android*)
11651 version_type=none # Android doesn't support versioned libraries.
11652 need_lib_prefix=no
11653 need_version=no
11654 library_names_spec='$libname$release$shared_ext'
11655 soname_spec='$libname$release$shared_ext'
11656 finish_cmds=
11657 shlibpath_var=LD_LIBRARY_PATH
11658 shlibpath_overrides_runpath=yes
11659
11660 # This implies no fast_install, which is unacceptable.
11661 # Some rework will be needed to allow for fast_install
11662 # before this can be enabled.
11663 hardcode_into_libs=yes
11664
11665 dynamic_linker='Android linker'
11666 # Don't embed -rpath directories since the linker doesn't support them.
11667 hardcode_libdir_flag_spec='-L$libdir'
11668 ;;
11669
11670 # This must be glibc/ELF.
11671 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11672 version_type=linux # correct to gnu/linux during the next big refactor
11673 need_lib_prefix=no
11674 need_version=no
11675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11676 soname_spec='$libname$release$shared_ext$major'
11677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11678 shlibpath_var=LD_LIBRARY_PATH
11679 shlibpath_overrides_runpath=no
11680
11681 # Some binutils ld are patched to set DT_RUNPATH
11682 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 lt_cv_shlibpath_overrides_runpath=no
11686 save_LDFLAGS=$LDFLAGS
11687 save_libdir=$libdir
11688 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11689 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691 /* end confdefs.h. */
11692
11693 int
11694 main ()
11695 {
11696
11697 ;
11698 return 0;
11699 }
11700 _ACEOF
11701 if ac_fn_c_try_link "$LINENO"; then :
11702 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11703 lt_cv_shlibpath_overrides_runpath=yes
11704 fi
11705 fi
11706 rm -f core conftest.err conftest.$ac_objext \
11707 conftest$ac_exeext conftest.$ac_ext
11708 LDFLAGS=$save_LDFLAGS
11709 libdir=$save_libdir
11710
11711 fi
11712
11713 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11714
11715 # This implies no fast_install, which is unacceptable.
11716 # Some rework will be needed to allow for fast_install
11717 # before this can be enabled.
11718 hardcode_into_libs=yes
11719
11720 # Ideally, we could use ldconfig to report *all* directores which are
11721 # searched for libraries, however this is still not possible. Aside from not
11722 # being certain /sbin/ldconfig is available, command
11723 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11724 # even though it is searched at run-time. Try to do the best guess by
11725 # appending ld.so.conf contents (and includes) to the search path.
11726 if test -f /etc/ld.so.conf; then
11727 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' ' '`
11728 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11729 fi
11730
11731 # We used to test for /lib/ld.so.1 and disable shared libraries on
11732 # powerpc, because MkLinux only supported shared libraries with the
11733 # GNU dynamic linker. Since this was broken with cross compilers,
11734 # most powerpc-linux boxes support dynamic linking these days and
11735 # people can always --disable-shared, the test was removed, and we
11736 # assume the GNU/Linux dynamic linker is in use.
11737 dynamic_linker='GNU/Linux ld.so'
11738 ;;
11739
11740 netbsd*)
11741 version_type=sunos
11742 need_lib_prefix=no
11743 need_version=no
11744 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11745 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11747 dynamic_linker='NetBSD (a.out) ld.so'
11748 else
11749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11750 soname_spec='$libname$release$shared_ext$major'
11751 dynamic_linker='NetBSD ld.elf_so'
11752 fi
11753 shlibpath_var=LD_LIBRARY_PATH
11754 shlibpath_overrides_runpath=yes
11755 hardcode_into_libs=yes
11756 ;;
11757
11758 newsos6)
11759 version_type=linux # correct to gnu/linux during the next big refactor
11760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath=yes
11763 ;;
11764
11765 *nto* | *qnx*)
11766 version_type=qnx
11767 need_lib_prefix=no
11768 need_version=no
11769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11770 soname_spec='$libname$release$shared_ext$major'
11771 shlibpath_var=LD_LIBRARY_PATH
11772 shlibpath_overrides_runpath=no
11773 hardcode_into_libs=yes
11774 dynamic_linker='ldqnx.so'
11775 ;;
11776
11777 openbsd* | bitrig*)
11778 version_type=sunos
11779 sys_lib_dlsearch_path_spec=/usr/lib
11780 need_lib_prefix=no
11781 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11782 need_version=no
11783 else
11784 need_version=yes
11785 fi
11786 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11788 shlibpath_var=LD_LIBRARY_PATH
11789 shlibpath_overrides_runpath=yes
11790 ;;
11791
11792 os2*)
11793 libname_spec='$name'
11794 version_type=windows
11795 shrext_cmds=.dll
11796 need_version=no
11797 need_lib_prefix=no
11798 # OS/2 can only load a DLL with a base name of 8 characters or less.
11799 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11800 v=$($ECHO $release$versuffix | tr -d .-);
11801 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11802 $ECHO $n$v`$shared_ext'
11803 library_names_spec='${libname}_dll.$libext'
11804 dynamic_linker='OS/2 ld.exe'
11805 shlibpath_var=BEGINLIBPATH
11806 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11808 postinstall_cmds='base_file=`basename \$file`~
11809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11810 dldir=$destdir/`dirname \$dlpath`~
11811 test -d \$dldir || mkdir -p \$dldir~
11812 $install_prog $dir/$dlname \$dldir/$dlname~
11813 chmod a+x \$dldir/$dlname~
11814 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11815 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11816 fi'
11817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11818 dlpath=$dir/\$dldll~
11819 $RM \$dlpath'
11820 ;;
11821
11822 osf3* | osf4* | osf5*)
11823 version_type=osf
11824 need_lib_prefix=no
11825 need_version=no
11826 soname_spec='$libname$release$shared_ext$major'
11827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11831 ;;
11832
11833 rdos*)
11834 dynamic_linker=no
11835 ;;
11836
11837 solaris*)
11838 version_type=linux # correct to gnu/linux during the next big refactor
11839 need_lib_prefix=no
11840 need_version=no
11841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11842 soname_spec='$libname$release$shared_ext$major'
11843 shlibpath_var=LD_LIBRARY_PATH
11844 shlibpath_overrides_runpath=yes
11845 hardcode_into_libs=yes
11846 # ldd complains unless libraries are executable
11847 postinstall_cmds='chmod +x $lib'
11848 ;;
11849
11850 sunos4*)
11851 version_type=sunos
11852 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11853 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11854 shlibpath_var=LD_LIBRARY_PATH
11855 shlibpath_overrides_runpath=yes
11856 if test yes = "$with_gnu_ld"; then
11857 need_lib_prefix=no
11858 fi
11859 need_version=yes
11860 ;;
11861
11862 sysv4 | sysv4.3*)
11863 version_type=linux # correct to gnu/linux during the next big refactor
11864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11865 soname_spec='$libname$release$shared_ext$major'
11866 shlibpath_var=LD_LIBRARY_PATH
11867 case $host_vendor in
11868 sni)
11869 shlibpath_overrides_runpath=no
11870 need_lib_prefix=no
11871 runpath_var=LD_RUN_PATH
11872 ;;
11873 siemens)
11874 need_lib_prefix=no
11875 ;;
11876 motorola)
11877 need_lib_prefix=no
11878 need_version=no
11879 shlibpath_overrides_runpath=no
11880 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11881 ;;
11882 esac
11883 ;;
11884
11885 sysv4*MP*)
11886 if test -d /usr/nec; then
11887 version_type=linux # correct to gnu/linux during the next big refactor
11888 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11889 soname_spec='$libname$shared_ext.$major'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 fi
11892 ;;
11893
11894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11895 version_type=sco
11896 need_lib_prefix=no
11897 need_version=no
11898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11899 soname_spec='$libname$release$shared_ext$major'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 shlibpath_overrides_runpath=yes
11902 hardcode_into_libs=yes
11903 if test yes = "$with_gnu_ld"; then
11904 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11905 else
11906 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11907 case $host_os in
11908 sco3.2v5*)
11909 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11910 ;;
11911 esac
11912 fi
11913 sys_lib_dlsearch_path_spec='/usr/lib'
11914 ;;
11915
11916 tpf*)
11917 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11918 version_type=linux # correct to gnu/linux during the next big refactor
11919 need_lib_prefix=no
11920 need_version=no
11921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11922 shlibpath_var=LD_LIBRARY_PATH
11923 shlibpath_overrides_runpath=no
11924 hardcode_into_libs=yes
11925 ;;
11926
11927 uts4*)
11928 version_type=linux # correct to gnu/linux during the next big refactor
11929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11930 soname_spec='$libname$release$shared_ext$major'
11931 shlibpath_var=LD_LIBRARY_PATH
11932 ;;
11933
11934 *)
11935 dynamic_linker=no
11936 ;;
11937 esac
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11939 $as_echo "$dynamic_linker" >&6; }
11940 test no = "$dynamic_linker" && can_build_shared=no
11941
11942 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11943 if test yes = "$GCC"; then
11944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11945 fi
11946
11947 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11948 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11949 fi
11950
11951 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11952 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11953 fi
11954
11955 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11956 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11957
11958 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11959 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11960
11961 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11962 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12061 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12062 hardcode_action=
12063 if test -n "$hardcode_libdir_flag_spec" ||
12064 test -n "$runpath_var" ||
12065 test yes = "$hardcode_automatic"; then
12066
12067 # We can hardcode non-existent directories.
12068 if test no != "$hardcode_direct" &&
12069 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12070 # have to relink, otherwise we might link with an installed library
12071 # when we should be linking with a yet-to-be-installed one
12072 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12073 test no != "$hardcode_minus_L"; then
12074 # Linking always hardcodes the temporary library directory.
12075 hardcode_action=relink
12076 else
12077 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12078 hardcode_action=immediate
12079 fi
12080 else
12081 # We cannot hardcode anything, or else we can only hardcode existing
12082 # directories.
12083 hardcode_action=unsupported
12084 fi
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12086 $as_echo "$hardcode_action" >&6; }
12087
12088 if test relink = "$hardcode_action" ||
12089 test yes = "$inherit_rpath"; then
12090 # Fast installation is not supported
12091 enable_fast_install=no
12092 elif test yes = "$shlibpath_overrides_runpath" ||
12093 test no = "$enable_shared"; then
12094 # Fast installation is not necessary
12095 enable_fast_install=needless
12096 fi
12097
12098
12099
12100
12101
12102
12103 if test yes != "$enable_dlopen"; then
12104 enable_dlopen=unknown
12105 enable_dlopen_self=unknown
12106 enable_dlopen_self_static=unknown
12107 else
12108 lt_cv_dlopen=no
12109 lt_cv_dlopen_libs=
12110
12111 case $host_os in
12112 beos*)
12113 lt_cv_dlopen=load_add_on
12114 lt_cv_dlopen_libs=
12115 lt_cv_dlopen_self=yes
12116 ;;
12117
12118 mingw* | pw32* | cegcc*)
12119 lt_cv_dlopen=LoadLibrary
12120 lt_cv_dlopen_libs=
12121 ;;
12122
12123 cygwin*)
12124 lt_cv_dlopen=dlopen
12125 lt_cv_dlopen_libs=
12126 ;;
12127
12128 darwin*)
12129 # if libdl is installed we need to link against it
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12131 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12132 if ${ac_cv_lib_dl_dlopen+:} false; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12135 ac_check_lib_save_LIBS=$LIBS
12136 LIBS="-ldl $LIBS"
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12139
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 char dlopen ();
12147 int
12148 main ()
12149 {
12150 return dlopen ();
12151 ;
12152 return 0;
12153 }
12154 _ACEOF
12155 if ac_fn_c_try_link "$LINENO"; then :
12156 ac_cv_lib_dl_dlopen=yes
12157 else
12158 ac_cv_lib_dl_dlopen=no
12159 fi
12160 rm -f core conftest.err conftest.$ac_objext \
12161 conftest$ac_exeext conftest.$ac_ext
12162 LIBS=$ac_check_lib_save_LIBS
12163 fi
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12165 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12166 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12167 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12168 else
12169
12170 lt_cv_dlopen=dyld
12171 lt_cv_dlopen_libs=
12172 lt_cv_dlopen_self=yes
12173
12174 fi
12175
12176 ;;
12177
12178 tpf*)
12179 # Don't try to run any link tests for TPF. We know it's impossible
12180 # because TPF is a cross-compiler, and we know how we open DSOs.
12181 lt_cv_dlopen=dlopen
12182 lt_cv_dlopen_libs=
12183 lt_cv_dlopen_self=no
12184 ;;
12185
12186 *)
12187 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12188 if test "x$ac_cv_func_shl_load" = xyes; then :
12189 lt_cv_dlopen=shl_load
12190 else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12192 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12193 if ${ac_cv_lib_dld_shl_load+:} false; then :
12194 $as_echo_n "(cached) " >&6
12195 else
12196 ac_check_lib_save_LIBS=$LIBS
12197 LIBS="-ldld $LIBS"
12198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h. */
12200
12201 /* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12204 #ifdef __cplusplus
12205 extern "C"
12206 #endif
12207 char shl_load ();
12208 int
12209 main ()
12210 {
12211 return shl_load ();
12212 ;
12213 return 0;
12214 }
12215 _ACEOF
12216 if ac_fn_c_try_link "$LINENO"; then :
12217 ac_cv_lib_dld_shl_load=yes
12218 else
12219 ac_cv_lib_dld_shl_load=no
12220 fi
12221 rm -f core conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext conftest.$ac_ext
12223 LIBS=$ac_check_lib_save_LIBS
12224 fi
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12226 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12227 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12228 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12229 else
12230 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12231 if test "x$ac_cv_func_dlopen" = xyes; then :
12232 lt_cv_dlopen=dlopen
12233 else
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12235 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12236 if ${ac_cv_lib_dl_dlopen+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 ac_check_lib_save_LIBS=$LIBS
12240 LIBS="-ldl $LIBS"
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12243
12244 /* Override any GCC internal prototype to avoid an error.
12245 Use char because int might match the return type of a GCC
12246 builtin and then its argument prototype would still apply. */
12247 #ifdef __cplusplus
12248 extern "C"
12249 #endif
12250 char dlopen ();
12251 int
12252 main ()
12253 {
12254 return dlopen ();
12255 ;
12256 return 0;
12257 }
12258 _ACEOF
12259 if ac_fn_c_try_link "$LINENO"; then :
12260 ac_cv_lib_dl_dlopen=yes
12261 else
12262 ac_cv_lib_dl_dlopen=no
12263 fi
12264 rm -f core conftest.err conftest.$ac_objext \
12265 conftest$ac_exeext conftest.$ac_ext
12266 LIBS=$ac_check_lib_save_LIBS
12267 fi
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12269 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12270 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12271 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12272 else
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12274 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12275 if ${ac_cv_lib_svld_dlopen+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 ac_check_lib_save_LIBS=$LIBS
12279 LIBS="-lsvld $LIBS"
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12282
12283 /* Override any GCC internal prototype to avoid an error.
12284 Use char because int might match the return type of a GCC
12285 builtin and then its argument prototype would still apply. */
12286 #ifdef __cplusplus
12287 extern "C"
12288 #endif
12289 char dlopen ();
12290 int
12291 main ()
12292 {
12293 return dlopen ();
12294 ;
12295 return 0;
12296 }
12297 _ACEOF
12298 if ac_fn_c_try_link "$LINENO"; then :
12299 ac_cv_lib_svld_dlopen=yes
12300 else
12301 ac_cv_lib_svld_dlopen=no
12302 fi
12303 rm -f core conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12306 fi
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12308 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12309 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12310 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12311 else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12313 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12314 if ${ac_cv_lib_dld_dld_link+:} false; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 ac_check_lib_save_LIBS=$LIBS
12318 LIBS="-ldld $LIBS"
12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12321
12322 /* Override any GCC internal prototype to avoid an error.
12323 Use char because int might match the return type of a GCC
12324 builtin and then its argument prototype would still apply. */
12325 #ifdef __cplusplus
12326 extern "C"
12327 #endif
12328 char dld_link ();
12329 int
12330 main ()
12331 {
12332 return dld_link ();
12333 ;
12334 return 0;
12335 }
12336 _ACEOF
12337 if ac_fn_c_try_link "$LINENO"; then :
12338 ac_cv_lib_dld_dld_link=yes
12339 else
12340 ac_cv_lib_dld_dld_link=no
12341 fi
12342 rm -f core conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344 LIBS=$ac_check_lib_save_LIBS
12345 fi
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12347 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12348 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12349 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12350 fi
12351
12352
12353 fi
12354
12355
12356 fi
12357
12358
12359 fi
12360
12361
12362 fi
12363
12364
12365 fi
12366
12367 ;;
12368 esac
12369
12370 if test no = "$lt_cv_dlopen"; then
12371 enable_dlopen=no
12372 else
12373 enable_dlopen=yes
12374 fi
12375
12376 case $lt_cv_dlopen in
12377 dlopen)
12378 save_CPPFLAGS=$CPPFLAGS
12379 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12380
12381 save_LDFLAGS=$LDFLAGS
12382 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12383
12384 save_LIBS=$LIBS
12385 LIBS="$lt_cv_dlopen_libs $LIBS"
12386
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12388 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12389 if ${lt_cv_dlopen_self+:} false; then :
12390 $as_echo_n "(cached) " >&6
12391 else
12392 if test yes = "$cross_compiling"; then :
12393 lt_cv_dlopen_self=cross
12394 else
12395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12396 lt_status=$lt_dlunknown
12397 cat > conftest.$ac_ext <<_LT_EOF
12398 #line $LINENO "configure"
12399 #include "confdefs.h"
12400
12401 #if HAVE_DLFCN_H
12402 #include <dlfcn.h>
12403 #endif
12404
12405 #include <stdio.h>
12406
12407 #ifdef RTLD_GLOBAL
12408 # define LT_DLGLOBAL RTLD_GLOBAL
12409 #else
12410 # ifdef DL_GLOBAL
12411 # define LT_DLGLOBAL DL_GLOBAL
12412 # else
12413 # define LT_DLGLOBAL 0
12414 # endif
12415 #endif
12416
12417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12418 find out it does not work in some platform. */
12419 #ifndef LT_DLLAZY_OR_NOW
12420 # ifdef RTLD_LAZY
12421 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12422 # else
12423 # ifdef DL_LAZY
12424 # define LT_DLLAZY_OR_NOW DL_LAZY
12425 # else
12426 # ifdef RTLD_NOW
12427 # define LT_DLLAZY_OR_NOW RTLD_NOW
12428 # else
12429 # ifdef DL_NOW
12430 # define LT_DLLAZY_OR_NOW DL_NOW
12431 # else
12432 # define LT_DLLAZY_OR_NOW 0
12433 # endif
12434 # endif
12435 # endif
12436 # endif
12437 #endif
12438
12439 /* When -fvisibility=hidden is used, assume the code has been annotated
12440 correspondingly for the symbols needed. */
12441 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12442 int fnord () __attribute__((visibility("default")));
12443 #endif
12444
12445 int fnord () { return 42; }
12446 int main ()
12447 {
12448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12449 int status = $lt_dlunknown;
12450
12451 if (self)
12452 {
12453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12454 else
12455 {
12456 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12457 else puts (dlerror ());
12458 }
12459 /* dlclose (self); */
12460 }
12461 else
12462 puts (dlerror ());
12463
12464 return status;
12465 }
12466 _LT_EOF
12467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12468 (eval $ac_link) 2>&5
12469 ac_status=$?
12470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12471 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12472 (./conftest; exit; ) >&5 2>/dev/null
12473 lt_status=$?
12474 case x$lt_status in
12475 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12476 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12477 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12478 esac
12479 else :
12480 # compilation failed
12481 lt_cv_dlopen_self=no
12482 fi
12483 fi
12484 rm -fr conftest*
12485
12486
12487 fi
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12489 $as_echo "$lt_cv_dlopen_self" >&6; }
12490
12491 if test yes = "$lt_cv_dlopen_self"; then
12492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12494 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12495 if ${lt_cv_dlopen_self_static+:} false; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498 if test yes = "$cross_compiling"; then :
12499 lt_cv_dlopen_self_static=cross
12500 else
12501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12502 lt_status=$lt_dlunknown
12503 cat > conftest.$ac_ext <<_LT_EOF
12504 #line $LINENO "configure"
12505 #include "confdefs.h"
12506
12507 #if HAVE_DLFCN_H
12508 #include <dlfcn.h>
12509 #endif
12510
12511 #include <stdio.h>
12512
12513 #ifdef RTLD_GLOBAL
12514 # define LT_DLGLOBAL RTLD_GLOBAL
12515 #else
12516 # ifdef DL_GLOBAL
12517 # define LT_DLGLOBAL DL_GLOBAL
12518 # else
12519 # define LT_DLGLOBAL 0
12520 # endif
12521 #endif
12522
12523 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12524 find out it does not work in some platform. */
12525 #ifndef LT_DLLAZY_OR_NOW
12526 # ifdef RTLD_LAZY
12527 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12528 # else
12529 # ifdef DL_LAZY
12530 # define LT_DLLAZY_OR_NOW DL_LAZY
12531 # else
12532 # ifdef RTLD_NOW
12533 # define LT_DLLAZY_OR_NOW RTLD_NOW
12534 # else
12535 # ifdef DL_NOW
12536 # define LT_DLLAZY_OR_NOW DL_NOW
12537 # else
12538 # define LT_DLLAZY_OR_NOW 0
12539 # endif
12540 # endif
12541 # endif
12542 # endif
12543 #endif
12544
12545 /* When -fvisibility=hidden is used, assume the code has been annotated
12546 correspondingly for the symbols needed. */
12547 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12548 int fnord () __attribute__((visibility("default")));
12549 #endif
12550
12551 int fnord () { return 42; }
12552 int main ()
12553 {
12554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12555 int status = $lt_dlunknown;
12556
12557 if (self)
12558 {
12559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12560 else
12561 {
12562 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12563 else puts (dlerror ());
12564 }
12565 /* dlclose (self); */
12566 }
12567 else
12568 puts (dlerror ());
12569
12570 return status;
12571 }
12572 _LT_EOF
12573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12574 (eval $ac_link) 2>&5
12575 ac_status=$?
12576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12577 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12578 (./conftest; exit; ) >&5 2>/dev/null
12579 lt_status=$?
12580 case x$lt_status in
12581 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12582 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12583 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12584 esac
12585 else :
12586 # compilation failed
12587 lt_cv_dlopen_self_static=no
12588 fi
12589 fi
12590 rm -fr conftest*
12591
12592
12593 fi
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12595 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12596 fi
12597
12598 CPPFLAGS=$save_CPPFLAGS
12599 LDFLAGS=$save_LDFLAGS
12600 LIBS=$save_LIBS
12601 ;;
12602 esac
12603
12604 case $lt_cv_dlopen_self in
12605 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12606 *) enable_dlopen_self=unknown ;;
12607 esac
12608
12609 case $lt_cv_dlopen_self_static in
12610 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12611 *) enable_dlopen_self_static=unknown ;;
12612 esac
12613 fi
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631 striplib=
12632 old_striplib=
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12634 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12635 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12636 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12637 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12639 $as_echo "yes" >&6; }
12640 else
12641 # FIXME - insert some real tests, host_os isn't really good enough
12642 case $host_os in
12643 darwin*)
12644 if test -n "$STRIP"; then
12645 striplib="$STRIP -x"
12646 old_striplib="$STRIP -S"
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12648 $as_echo "yes" >&6; }
12649 else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651 $as_echo "no" >&6; }
12652 fi
12653 ;;
12654 *)
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656 $as_echo "no" >&6; }
12657 ;;
12658 esac
12659 fi
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672 # Report what library types will actually be built
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12674 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12676 $as_echo "$can_build_shared" >&6; }
12677
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12679 $as_echo_n "checking whether to build shared libraries... " >&6; }
12680 test no = "$can_build_shared" && enable_shared=no
12681
12682 # On AIX, shared libraries and static libraries use the same namespace, and
12683 # are all built from PIC.
12684 case $host_os in
12685 aix3*)
12686 test yes = "$enable_shared" && enable_static=no
12687 if test -n "$RANLIB"; then
12688 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12689 postinstall_cmds='$RANLIB $lib'
12690 fi
12691 ;;
12692
12693 aix[4-9]*)
12694 if test ia64 != "$host_cpu"; then
12695 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12696 yes,aix,yes) ;; # shared object as lib.so file only
12697 yes,svr4,*) ;; # shared object as lib.so archive member only
12698 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12699 esac
12700 fi
12701 ;;
12702 esac
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12704 $as_echo "$enable_shared" >&6; }
12705
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12707 $as_echo_n "checking whether to build static libraries... " >&6; }
12708 # Make sure either enable_shared or enable_static is yes.
12709 test yes = "$enable_shared" || enable_static=yes
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12711 $as_echo "$enable_static" >&6; }
12712
12713
12714
12715
12716 fi
12717 ac_ext=c
12718 ac_cpp='$CPP $CPPFLAGS'
12719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12722
12723 CC=$lt_save_CC
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739 ac_config_commands="$ac_config_commands libtool"
12740
12741
12742
12743
12744 # Only expand once:
12745
12746
12747
12748
12749
12750
12751
12752 if test -z "${pac_save_CFLAGS_nesting}" ; then
12753 pac_save_CFLAGS_nesting=0
12754 fi
12755 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
12756 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
12757
12758 ac_ext=c
12759 ac_cpp='$CPP $CPPFLAGS'
12760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12763 if test -n "$ac_tool_prefix"; then
12764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767 $as_echo_n "checking for $ac_word... " >&6; }
12768 if ${ac_cv_prog_CC+:} false; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 if test -n "$CC"; then
12772 ac_cv_prog_CC="$CC" # Let the user override the test.
12773 else
12774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775 for as_dir in $PATH
12776 do
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
12780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12784 fi
12785 done
12786 done
12787 IFS=$as_save_IFS
12788
12789 fi
12790 fi
12791 CC=$ac_cv_prog_CC
12792 if test -n "$CC"; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12794 $as_echo "$CC" >&6; }
12795 else
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797 $as_echo "no" >&6; }
12798 fi
12799
12800
12801 fi
12802 if test -z "$ac_cv_prog_CC"; then
12803 ac_ct_CC=$CC
12804 # Extract the first word of "gcc", so it can be a program name with args.
12805 set dummy gcc; ac_word=$2
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807 $as_echo_n "checking for $ac_word... " >&6; }
12808 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12809 $as_echo_n "(cached) " >&6
12810 else
12811 if test -n "$ac_ct_CC"; then
12812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12813 else
12814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12815 for as_dir in $PATH
12816 do
12817 IFS=$as_save_IFS
12818 test -z "$as_dir" && as_dir=.
12819 for ac_exec_ext in '' $ac_executable_extensions; do
12820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12821 ac_cv_prog_ac_ct_CC="gcc"
12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12823 break 2
12824 fi
12825 done
12826 done
12827 IFS=$as_save_IFS
12828
12829 fi
12830 fi
12831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12832 if test -n "$ac_ct_CC"; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12834 $as_echo "$ac_ct_CC" >&6; }
12835 else
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837 $as_echo "no" >&6; }
12838 fi
12839
12840 if test "x$ac_ct_CC" = x; then
12841 CC=""
12842 else
12843 case $cross_compiling:$ac_tool_warned in
12844 yes:)
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12847 ac_tool_warned=yes ;;
12848 esac
12849 CC=$ac_ct_CC
12850 fi
12851 else
12852 CC="$ac_cv_prog_CC"
12853 fi
12854
12855 if test -z "$CC"; then
12856 if test -n "$ac_tool_prefix"; then
12857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12858 set dummy ${ac_tool_prefix}cc; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if ${ac_cv_prog_CC+:} false; then :
12862 $as_echo_n "(cached) " >&6
12863 else
12864 if test -n "$CC"; then
12865 ac_cv_prog_CC="$CC" # Let the user override the test.
12866 else
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12869 do
12870 IFS=$as_save_IFS
12871 test -z "$as_dir" && as_dir=.
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12874 ac_cv_prog_CC="${ac_tool_prefix}cc"
12875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12876 break 2
12877 fi
12878 done
12879 done
12880 IFS=$as_save_IFS
12881
12882 fi
12883 fi
12884 CC=$ac_cv_prog_CC
12885 if test -n "$CC"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12887 $as_echo "$CC" >&6; }
12888 else
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12891 fi
12892
12893
12894 fi
12895 fi
12896 if test -z "$CC"; then
12897 # Extract the first word of "cc", so it can be a program name with args.
12898 set dummy cc; ac_word=$2
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12900 $as_echo_n "checking for $ac_word... " >&6; }
12901 if ${ac_cv_prog_CC+:} false; then :
12902 $as_echo_n "(cached) " >&6
12903 else
12904 if test -n "$CC"; then
12905 ac_cv_prog_CC="$CC" # Let the user override the test.
12906 else
12907 ac_prog_rejected=no
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12910 do
12911 IFS=$as_save_IFS
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12916 ac_prog_rejected=yes
12917 continue
12918 fi
12919 ac_cv_prog_CC="cc"
12920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12921 break 2
12922 fi
12923 done
12924 done
12925 IFS=$as_save_IFS
12926
12927 if test $ac_prog_rejected = yes; then
12928 # We found a bogon in the path, so make sure we never use it.
12929 set dummy $ac_cv_prog_CC
12930 shift
12931 if test $# != 0; then
12932 # We chose a different compiler from the bogus one.
12933 # However, it has the same basename, so the bogon will be chosen
12934 # first if we set CC to just the basename; use the full file name.
12935 shift
12936 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12937 fi
12938 fi
12939 fi
12940 fi
12941 CC=$ac_cv_prog_CC
12942 if test -n "$CC"; then
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12944 $as_echo "$CC" >&6; }
12945 else
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947 $as_echo "no" >&6; }
12948 fi
12949
12950
12951 fi
12952 if test -z "$CC"; then
12953 if test -n "$ac_tool_prefix"; then
12954 for ac_prog in cl.exe
12955 do
12956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12959 $as_echo_n "checking for $ac_word... " >&6; }
12960 if ${ac_cv_prog_CC+:} false; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 if test -n "$CC"; then
12964 ac_cv_prog_CC="$CC" # Let the user override the test.
12965 else
12966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12967 for as_dir in $PATH
12968 do
12969 IFS=$as_save_IFS
12970 test -z "$as_dir" && as_dir=.
12971 for ac_exec_ext in '' $ac_executable_extensions; do
12972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12975 break 2
12976 fi
12977 done
12978 done
12979 IFS=$as_save_IFS
12980
12981 fi
12982 fi
12983 CC=$ac_cv_prog_CC
12984 if test -n "$CC"; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12986 $as_echo "$CC" >&6; }
12987 else
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12990 fi
12991
12992
12993 test -n "$CC" && break
12994 done
12995 fi
12996 if test -z "$CC"; then
12997 ac_ct_CC=$CC
12998 for ac_prog in cl.exe
12999 do
13000 # Extract the first word of "$ac_prog", so it can be a program name with args.
13001 set dummy $ac_prog; ac_word=$2
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13003 $as_echo_n "checking for $ac_word... " >&6; }
13004 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13005 $as_echo_n "(cached) " >&6
13006 else
13007 if test -n "$ac_ct_CC"; then
13008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13009 else
13010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13011 for as_dir in $PATH
13012 do
13013 IFS=$as_save_IFS
13014 test -z "$as_dir" && as_dir=.
13015 for ac_exec_ext in '' $ac_executable_extensions; do
13016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13017 ac_cv_prog_ac_ct_CC="$ac_prog"
13018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13019 break 2
13020 fi
13021 done
13022 done
13023 IFS=$as_save_IFS
13024
13025 fi
13026 fi
13027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13028 if test -n "$ac_ct_CC"; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13030 $as_echo "$ac_ct_CC" >&6; }
13031 else
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 $as_echo "no" >&6; }
13034 fi
13035
13036
13037 test -n "$ac_ct_CC" && break
13038 done
13039
13040 if test "x$ac_ct_CC" = x; then
13041 CC=""
13042 else
13043 case $cross_compiling:$ac_tool_warned in
13044 yes:)
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13047 ac_tool_warned=yes ;;
13048 esac
13049 CC=$ac_ct_CC
13050 fi
13051 fi
13052
13053 fi
13054
13055
13056 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13058 as_fn_error $? "no acceptable C compiler found in \$PATH
13059 See \`config.log' for more details" "$LINENO" 5; }
13060
13061 # Provide some information about the compiler.
13062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13063 set X $ac_compile
13064 ac_compiler=$2
13065 for ac_option in --version -v -V -qversion; do
13066 { { ac_try="$ac_compiler $ac_option >&5"
13067 case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070 esac
13071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13072 $as_echo "$ac_try_echo"; } >&5
13073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13074 ac_status=$?
13075 if test -s conftest.err; then
13076 sed '10a\
13077 ... rest of stderr output deleted ...
13078 10q' conftest.err >conftest.er1
13079 cat conftest.er1 >&5
13080 fi
13081 rm -f conftest.er1 conftest.err
13082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13083 test $ac_status = 0; }
13084 done
13085
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13087 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13088 if ${ac_cv_c_compiler_gnu+:} false; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093
13094 int
13095 main ()
13096 {
13097 #ifndef __GNUC__
13098 choke me
13099 #endif
13100
13101 ;
13102 return 0;
13103 }
13104 _ACEOF
13105 if ac_fn_c_try_compile "$LINENO"; then :
13106 ac_compiler_gnu=yes
13107 else
13108 ac_compiler_gnu=no
13109 fi
13110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13112
13113 fi
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13115 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13116 if test $ac_compiler_gnu = yes; then
13117 GCC=yes
13118 else
13119 GCC=
13120 fi
13121 ac_test_CFLAGS=${CFLAGS+set}
13122 ac_save_CFLAGS=$CFLAGS
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13124 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13125 if ${ac_cv_prog_cc_g+:} false; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 ac_save_c_werror_flag=$ac_c_werror_flag
13129 ac_c_werror_flag=yes
13130 ac_cv_prog_cc_g=no
13131 CFLAGS="-g"
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13134
13135 int
13136 main ()
13137 {
13138
13139 ;
13140 return 0;
13141 }
13142 _ACEOF
13143 if ac_fn_c_try_compile "$LINENO"; then :
13144 ac_cv_prog_cc_g=yes
13145 else
13146 CFLAGS=""
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13149
13150 int
13151 main ()
13152 {
13153
13154 ;
13155 return 0;
13156 }
13157 _ACEOF
13158 if ac_fn_c_try_compile "$LINENO"; then :
13159
13160 else
13161 ac_c_werror_flag=$ac_save_c_werror_flag
13162 CFLAGS="-g"
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13165
13166 int
13167 main ()
13168 {
13169
13170 ;
13171 return 0;
13172 }
13173 _ACEOF
13174 if ac_fn_c_try_compile "$LINENO"; then :
13175 ac_cv_prog_cc_g=yes
13176 fi
13177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178 fi
13179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 fi
13181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13182 ac_c_werror_flag=$ac_save_c_werror_flag
13183 fi
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13185 $as_echo "$ac_cv_prog_cc_g" >&6; }
13186 if test "$ac_test_CFLAGS" = set; then
13187 CFLAGS=$ac_save_CFLAGS
13188 elif test $ac_cv_prog_cc_g = yes; then
13189 if test "$GCC" = yes; then
13190 CFLAGS="-g -O2"
13191 else
13192 CFLAGS="-g"
13193 fi
13194 else
13195 if test "$GCC" = yes; then
13196 CFLAGS="-O2"
13197 else
13198 CFLAGS=
13199 fi
13200 fi
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13202 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13203 if ${ac_cv_prog_cc_c89+:} false; then :
13204 $as_echo_n "(cached) " >&6
13205 else
13206 ac_cv_prog_cc_c89=no
13207 ac_save_CC=$CC
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210 #include <stdarg.h>
13211 #include <stdio.h>
13212 struct stat;
13213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13214 struct buf { int x; };
13215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13216 static char *e (p, i)
13217 char **p;
13218 int i;
13219 {
13220 return p[i];
13221 }
13222 static char *f (char * (*g) (char **, int), char **p, ...)
13223 {
13224 char *s;
13225 va_list v;
13226 va_start (v,p);
13227 s = g (p, va_arg (v,int));
13228 va_end (v);
13229 return s;
13230 }
13231
13232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13233 function prototypes and stuff, but not '\xHH' hex character constants.
13234 These don't provoke an error unfortunately, instead are silently treated
13235 as 'x'. The following induces an error, until -std is added to get
13236 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13237 array size at least. It's necessary to write '\x00'==0 to get something
13238 that's true only with -std. */
13239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13240
13241 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13242 inside strings and character constants. */
13243 #define FOO(x) 'x'
13244 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13245
13246 int test (int i, double x);
13247 struct s1 {int (*f) (int a);};
13248 struct s2 {int (*f) (double a);};
13249 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13250 int argc;
13251 char **argv;
13252 int
13253 main ()
13254 {
13255 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13256 ;
13257 return 0;
13258 }
13259 _ACEOF
13260 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13261 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13262 do
13263 CC="$ac_save_CC $ac_arg"
13264 if ac_fn_c_try_compile "$LINENO"; then :
13265 ac_cv_prog_cc_c89=$ac_arg
13266 fi
13267 rm -f core conftest.err conftest.$ac_objext
13268 test "x$ac_cv_prog_cc_c89" != "xno" && break
13269 done
13270 rm -f conftest.$ac_ext
13271 CC=$ac_save_CC
13272
13273 fi
13274 # AC_CACHE_VAL
13275 case "x$ac_cv_prog_cc_c89" in
13276 x)
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13278 $as_echo "none needed" >&6; } ;;
13279 xno)
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13281 $as_echo "unsupported" >&6; } ;;
13282 *)
13283 CC="$CC $ac_cv_prog_cc_c89"
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13285 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13286 esac
13287 if test "x$ac_cv_prog_cc_c89" != xno; then :
13288
13289 fi
13290
13291 ac_ext=c
13292 ac_cpp='$CPP $CPPFLAGS'
13293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13296
13297 ac_ext=c
13298 ac_cpp='$CPP $CPPFLAGS'
13299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13303 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13304 if ${am_cv_prog_cc_c_o+:} false; then :
13305 $as_echo_n "(cached) " >&6
13306 else
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309
13310 int
13311 main ()
13312 {
13313
13314 ;
13315 return 0;
13316 }
13317 _ACEOF
13318 # Make sure it works both with $CC and with simple cc.
13319 # Following AC_PROG_CC_C_O, we do the test twice because some
13320 # compilers refuse to overwrite an existing .o file with -o,
13321 # though they will create one.
13322 am_cv_prog_cc_c_o=yes
13323 for am_i in 1 2; do
13324 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13325 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } \
13329 && test -f conftest2.$ac_objext; then
13330 : OK
13331 else
13332 am_cv_prog_cc_c_o=no
13333 break
13334 fi
13335 done
13336 rm -f core conftest*
13337 unset am_i
13338 fi
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13340 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13341 if test "$am_cv_prog_cc_c_o" != yes; then
13342 # Losing compiler, so override with the script.
13343 # FIXME: It is wrong to rewrite CC.
13344 # But if we don't then we get into trouble of one sort or another.
13345 # A longer-term fix would be to have automake use am__CC in this case,
13346 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13347 CC="$am_aux_dir/compile $CC"
13348 fi
13349 ac_ext=c
13350 ac_cpp='$CPP $CPPFLAGS'
13351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13354
13355
13356 depcc="$CC" am_compiler_list=
13357
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13359 $as_echo_n "checking dependency style of $depcc... " >&6; }
13360 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13361 $as_echo_n "(cached) " >&6
13362 else
13363 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13364 # We make a subdir and do the tests there. Otherwise we can end up
13365 # making bogus files that we don't know about and never remove. For
13366 # instance it was reported that on HP-UX the gcc test will end up
13367 # making a dummy file named 'D' -- because '-MD' means "put the output
13368 # in D".
13369 rm -rf conftest.dir
13370 mkdir conftest.dir
13371 # Copy depcomp to subdir because otherwise we won't find it if we're
13372 # using a relative directory.
13373 cp "$am_depcomp" conftest.dir
13374 cd conftest.dir
13375 # We will build objects and dependencies in a subdirectory because
13376 # it helps to detect inapplicable dependency modes. For instance
13377 # both Tru64's cc and ICC support -MD to output dependencies as a
13378 # side effect of compilation, but ICC will put the dependencies in
13379 # the current directory while Tru64 will put them in the object
13380 # directory.
13381 mkdir sub
13382
13383 am_cv_CC_dependencies_compiler_type=none
13384 if test "$am_compiler_list" = ""; then
13385 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13386 fi
13387 am__universal=false
13388 case " $depcc " in #(
13389 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13390 esac
13391
13392 for depmode in $am_compiler_list; do
13393 # Setup a source with many dependencies, because some compilers
13394 # like to wrap large dependency lists on column 80 (with \), and
13395 # we should not choose a depcomp mode which is confused by this.
13396 #
13397 # We need to recreate these files for each test, as the compiler may
13398 # overwrite some of them when testing with obscure command lines.
13399 # This happens at least with the AIX C compiler.
13400 : > sub/conftest.c
13401 for i in 1 2 3 4 5 6; do
13402 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13403 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13404 # Solaris 10 /bin/sh.
13405 echo '/* dummy */' > sub/conftst$i.h
13406 done
13407 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13408
13409 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13410 # mode. It turns out that the SunPro C++ compiler does not properly
13411 # handle '-M -o', and we need to detect this. Also, some Intel
13412 # versions had trouble with output in subdirs.
13413 am__obj=sub/conftest.${OBJEXT-o}
13414 am__minus_obj="-o $am__obj"
13415 case $depmode in
13416 gcc)
13417 # This depmode causes a compiler race in universal mode.
13418 test "$am__universal" = false || continue
13419 ;;
13420 nosideeffect)
13421 # After this tag, mechanisms are not by side-effect, so they'll
13422 # only be used when explicitly requested.
13423 if test "x$enable_dependency_tracking" = xyes; then
13424 continue
13425 else
13426 break
13427 fi
13428 ;;
13429 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13430 # This compiler won't grok '-c -o', but also, the minuso test has
13431 # not run yet. These depmodes are late enough in the game, and
13432 # so weak that their functioning should not be impacted.
13433 am__obj=conftest.${OBJEXT-o}
13434 am__minus_obj=
13435 ;;
13436 none) break ;;
13437 esac
13438 if depmode=$depmode \
13439 source=sub/conftest.c object=$am__obj \
13440 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13441 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13442 >/dev/null 2>conftest.err &&
13443 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13444 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13445 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13446 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13447 # icc doesn't choke on unknown options, it will just issue warnings
13448 # or remarks (even with -Werror). So we grep stderr for any message
13449 # that says an option was ignored or not supported.
13450 # When given -MP, icc 7.0 and 7.1 complain thusly:
13451 # icc: Command line warning: ignoring option '-M'; no argument required
13452 # The diagnosis changed in icc 8.0:
13453 # icc: Command line remark: option '-MP' not supported
13454 if (grep 'ignoring option' conftest.err ||
13455 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13456 am_cv_CC_dependencies_compiler_type=$depmode
13457 break
13458 fi
13459 fi
13460 done
13461
13462 cd ..
13463 rm -rf conftest.dir
13464 else
13465 am_cv_CC_dependencies_compiler_type=none
13466 fi
13467
13468 fi
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13470 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13471 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13472
13473 if
13474 test "x$enable_dependency_tracking" != xno \
13475 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13476 am__fastdepCC_TRUE=
13477 am__fastdepCC_FALSE='#'
13478 else
13479 am__fastdepCC_TRUE='#'
13480 am__fastdepCC_FALSE=
13481 fi
13482
13483
13484
13485 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
13486 eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
13487 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
13488
13489
13490 # see if C11 is available (for atomics)
13491
13492 if test -z "${pac_save_CFLAGS_nesting}" ; then
13493 pac_save_CFLAGS_nesting=0
13494 fi
13495 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
13496 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
13497
13498
13499
13500 if echo "$CFLAGS" | $FGREP -e '-std=c11' >/dev/null 2>&1; then :
13501 echo "CFLAGS(='$CFLAGS') contains '-std=c11', not appending" >&5
13502 else
13503 echo "CFLAGS(='$CFLAGS') does not contain '-std=c11', appending" >&5
13504 CFLAGS="$CFLAGS -std=c11"
13505
13506 fi
13507
13508
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts option -std=c11" >&5
13510 $as_echo_n "checking whether C compiler accepts option -std=c11... " >&6; }
13511 pac_opt="-std=c11"
13512 ac_ext=c
13513 ac_cpp='$CPP $CPPFLAGS'
13514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13517
13518 CFLAGS_orig="$CFLAGS"
13519 CFLAGS_opt="$pac_opt $CFLAGS"
13520 pac_result="unknown"
13521
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13524
13525 int
13526 main ()
13527 {
13528
13529 ;
13530 return 0;
13531 }
13532 _ACEOF
13533 CFLAGS="$CFLAGS_orig"
13534 rm -f pac_test1.log
13535
13536
13537 # START of PUSHVAL
13538
13539 if ${pac_stk_ac_link_level+:} false; then :
13540
13541 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
13542
13543 else
13544
13545 pac_stk_ac_link_level=0
13546
13547 fi
13548 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
13549 if test "x$pac_stk_ac_link_level" = x0; then :
13550
13551 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
13552
13553 fi
13554
13555 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
13556
13557
13558 # END of PUSHVAL
13559
13560 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`"
13561 if ac_fn_c_try_link "$LINENO"; then :
13562
13563
13564 CFLAGS="$CFLAGS_opt"
13565 rm -f pac_test2.log
13566
13567
13568 # START of PUSHVAL
13569
13570 if ${pac_stk_ac_link_level+:} false; then :
13571
13572 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
13573
13574 else
13575
13576 pac_stk_ac_link_level=0
13577
13578 fi
13579 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
13580 if test "x$pac_stk_ac_link_level" = x0; then :
13581
13582 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
13583
13584 fi
13585
13586 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
13587
13588
13589 # END of PUSHVAL
13590
13591 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`"
13592 if ac_fn_c_try_link "$LINENO"; then :
13593
13594
13595
13596 pac_TESTLOG="pac_test.log"
13597 rm -f $pac_TESTLOG
13598
13599 if
13600 { $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5
13601 (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5
13602 ac_status=$?
13603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 test $ac_status = 0; }; then :
13605
13606
13607 pac_result=yes
13608
13609
13610 else
13611
13612 $as_echo "$as_me: program exited with status $ac_status" >&5
13613
13614 (exit $ac_status)
13615
13616 $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5
13617 cat $pac_TESTLOG >&5
13618 pac_result=no
13619
13620
13621
13622
13623 fi
13624
13625 rm -f $pac_TESTLOG
13626
13627
13628
13629 else
13630
13631
13632 pac_result=no
13633
13634
13635 fi
13636 rm -f core conftest.err conftest.$ac_objext \
13637 conftest$ac_exeext
13638
13639 # START of POPVAL
13640
13641 if ${pac_stk_ac_link_level+:} false; then :
13642
13643 if test "x$pac_stk_ac_link_level" = x-1; then :
13644
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
13646 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
13647
13648 else
13649
13650 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
13651 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
13652
13653 fi
13654
13655 else
13656
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
13658 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
13659
13660 fi
13661
13662 # END of POPVAL
13663
13664
13665
13666
13667 else
13668
13669
13670 pac_result=no
13671
13672
13673 fi
13674 rm -f core conftest.err conftest.$ac_objext \
13675 conftest$ac_exeext
13676
13677 # START of POPVAL
13678
13679 if ${pac_stk_ac_link_level+:} false; then :
13680
13681 if test "x$pac_stk_ac_link_level" = x-1; then :
13682
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
13684 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
13685
13686 else
13687
13688 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
13689 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
13690
13691 fi
13692
13693 else
13694
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
13696 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
13697
13698 fi
13699
13700 # END of POPVAL
13701
13702
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
13704 $as_echo "$pac_result" >&6; }
13705 rm -f conftest.$ac_ext
13706
13707 # gcc 4.2.4 on 32-bit does not complain about the -Wno-type-limits option
13708 # even though it doesn't support it. However, when another warning is
13709 # triggered, it gives an error that the option is not recognized. So we
13710 # need to test with a conftest file that will generate warnings.
13711 #
13712 # add an extra switch, pac_c_check_compiler_option_prototest, to
13713 # disable this test just in case some new compiler does not like it.
13714 #
13715 # Linking with a program with an invalid prototype to ensure a compiler warning.
13716
13717 if test "$pac_result" = "yes" \
13718 -a "$pac_c_check_compiler_option_prototest" != "no" ; then
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler option -std=c11 works with an invalid prototype program" >&5
13720 $as_echo_n "checking whether C compiler option -std=c11 works with an invalid prototype program... " >&6; }
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13723
13724 int main(int argc, char **argv){ int foo, bar = 0; foo += 1; return foo; }
13725
13726 _ACEOF
13727 if ac_fn_c_try_link "$LINENO"; then :
13728 pac_result=yes
13729 else
13730 pac_result=no
13731 fi
13732 rm -f core conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
13735 $as_echo "$pac_result" >&6; }
13736 fi
13737 #
13738 if test "$pac_result" = "yes" ; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5
13740 $as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; }
13741 pac_result=unknown
13742 CFLAGS="$CFLAGS_orig"
13743 rm -f pac_test3.log
13744
13745
13746 # START of PUSHVAL
13747
13748 if ${pac_stk_ac_compile_level+:} false; then :
13749
13750 as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val
13751
13752 else
13753
13754 pac_stk_ac_compile_level=0
13755
13756 fi
13757 eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile"
13758 if test "x$pac_stk_ac_compile_level" = x0; then :
13759
13760 eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
13761
13762 fi
13763
13764 eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
13765
13766
13767 # END of PUSHVAL
13768
13769 ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`"
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13772
13773
13774 int foo(void);
13775 int foo(void){return 0;}
13776
13777
13778 _ACEOF
13779 if ac_fn_c_try_compile "$LINENO"; then :
13780
13781
13782
13783 { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
13784 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
13785 ac_status=$?
13786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 test $ac_status = 0; }
13788 saved_LIBS="$LIBS"
13789 LIBS="pac_conftest.$OBJEXT $LIBS"
13790
13791 rm -f pac_test4.log
13792
13793
13794 # START of PUSHVAL
13795
13796 if ${pac_stk_ac_link_level+:} false; then :
13797
13798 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
13799
13800 else
13801
13802 pac_stk_ac_link_level=0
13803
13804 fi
13805 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
13806 if test "x$pac_stk_ac_link_level" = x0; then :
13807
13808 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
13809
13810 fi
13811
13812 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
13813
13814
13815 # END of PUSHVAL
13816
13817 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`"
13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13820
13821 int
13822 main ()
13823 {
13824
13825 ;
13826 return 0;
13827 }
13828 _ACEOF
13829 if ac_fn_c_try_link "$LINENO"; then :
13830
13831
13832 CFLAGS="$CFLAGS_opt"
13833 rm -f pac_test5.log
13834
13835
13836 # START of PUSHVAL
13837
13838 if ${pac_stk_ac_link_level+:} false; then :
13839
13840 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
13841
13842 else
13843
13844 pac_stk_ac_link_level=0
13845
13846 fi
13847 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
13848 if test "x$pac_stk_ac_link_level" = x0; then :
13849
13850 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
13851
13852 fi
13853
13854 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
13855
13856
13857 # END of PUSHVAL
13858
13859 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test5.log 2>\&1|g'`"
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13862
13863 int
13864 main ()
13865 {
13866
13867 ;
13868 return 0;
13869 }
13870 _ACEOF
13871 if ac_fn_c_try_link "$LINENO"; then :
13872
13873
13874
13875 pac_TESTLOG="pac_test.log"
13876 rm -f $pac_TESTLOG
13877
13878 if
13879 { $as_echo "$as_me:$LINENO: diff -b pac_test4.log pac_test5.log > $pac_TESTLOG" >&5
13880 (eval diff -b pac_test4.log pac_test5.log > $pac_TESTLOG) 2>&5
13881 ac_status=$?
13882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 test $ac_status = 0; }; then :
13884
13885
13886 pac_result=yes
13887
13888
13889 else
13890
13891 $as_echo "$as_me: program exited with status $ac_status" >&5
13892
13893 (exit $ac_status)
13894
13895 $as_echo "*** diff -b pac_test4.log pac_test5.log :" >&5
13896 cat $pac_TESTLOG >&5
13897 pac_result=no
13898
13899
13900
13901
13902 fi
13903
13904 rm -f $pac_TESTLOG
13905
13906
13907
13908 else
13909
13910
13911 pac_result=no
13912
13913
13914 fi
13915 rm -f core conftest.err conftest.$ac_objext \
13916 conftest$ac_exeext conftest.$ac_ext
13917
13918 # START of POPVAL
13919
13920 if ${pac_stk_ac_link_level+:} false; then :
13921
13922 if test "x$pac_stk_ac_link_level" = x-1; then :
13923
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
13925 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
13926
13927 else
13928
13929 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
13930 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
13931
13932 fi
13933
13934 else
13935
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
13937 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
13938
13939 fi
13940
13941 # END of POPVAL
13942
13943
13944
13945
13946 else
13947
13948
13949 pac_result=no
13950
13951
13952 fi
13953 rm -f core conftest.err conftest.$ac_objext \
13954 conftest$ac_exeext conftest.$ac_ext
13955
13956 # START of POPVAL
13957
13958 if ${pac_stk_ac_link_level+:} false; then :
13959
13960 if test "x$pac_stk_ac_link_level" = x-1; then :
13961
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
13963 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
13964
13965 else
13966
13967 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
13968 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
13969
13970 fi
13971
13972 else
13973
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
13975 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
13976
13977 fi
13978
13979 # END of POPVAL
13980
13981
13982 LIBS="$saved_LIBS"
13983 rm -f pac_conftest.$OBJEXT
13984
13985
13986 else
13987
13988
13989 pac_result=no
13990
13991
13992 fi
13993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13994
13995 # START of POPVAL
13996
13997 if ${pac_stk_ac_compile_level+:} false; then :
13998
13999 if test "x$pac_stk_ac_compile_level" = x-1; then :
14000
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5
14002 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;}
14003
14004 else
14005
14006 eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
14007 as_fn_arith $pac_stk_ac_compile_level - 1 && pac_stk_ac_compile_level=$as_val
14008
14009 fi
14010
14011 else
14012
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5
14014 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;}
14015
14016 fi
14017
14018 # END of POPVAL
14019
14020
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
14022 $as_echo "$pac_result" >&6; }
14023 rm -f pac_test3.log pac_test4.log pac_test5.log
14024 fi
14025 rm -f pac_test1.log pac_test2.log
14026
14027 CFLAGS="$CFLAGS_orig"
14028 if test "$pac_result" = "yes" ; then
14029 c11_available=yes
14030 else
14031 c11_available=no
14032 fi
14033 ac_ext=c
14034 ac_cpp='$CPP $CPPFLAGS'
14035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14038
14039
14040
14041 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
14042 eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
14043 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
14044
14045 if test "${c11_available}" = "yes" ; then
14046
14047
14048 if echo "$CFLAGS" | $FGREP -e '-std=c11' >/dev/null 2>&1; then :
14049 echo "CFLAGS(='$CFLAGS') contains '-std=c11', not appending" >&5
14050 else
14051 echo "CFLAGS(='$CFLAGS') does not contain '-std=c11', appending" >&5
14052 CFLAGS="$CFLAGS -std=c11"
14053
14054 fi
14055
14056 else
14057 # PGI does not support -std option, it uses -c11 for C11
14058
14059 if test -z "${pac_save_CFLAGS_nesting}" ; then
14060 pac_save_CFLAGS_nesting=0
14061 fi
14062 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
14063 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
14064
14065
14066
14067 if echo "$CFLAGS" | $FGREP -e '-c11' >/dev/null 2>&1; then :
14068 echo "CFLAGS(='$CFLAGS') contains '-c11', not appending" >&5
14069 else
14070 echo "CFLAGS(='$CFLAGS') does not contain '-c11', appending" >&5
14071 CFLAGS="$CFLAGS -c11"
14072
14073 fi
14074
14075
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts option -c11" >&5
14077 $as_echo_n "checking whether C compiler accepts option -c11... " >&6; }
14078 pac_opt="-c11"
14079 ac_ext=c
14080 ac_cpp='$CPP $CPPFLAGS'
14081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14084
14085 CFLAGS_orig="$CFLAGS"
14086 CFLAGS_opt="$pac_opt $CFLAGS"
14087 pac_result="unknown"
14088
14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h. */
14091
14092 int
14093 main ()
14094 {
14095
14096 ;
14097 return 0;
14098 }
14099 _ACEOF
14100 CFLAGS="$CFLAGS_orig"
14101 rm -f pac_test1.log
14102
14103
14104 # START of PUSHVAL
14105
14106 if ${pac_stk_ac_link_level+:} false; then :
14107
14108 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
14109
14110 else
14111
14112 pac_stk_ac_link_level=0
14113
14114 fi
14115 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
14116 if test "x$pac_stk_ac_link_level" = x0; then :
14117
14118 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
14119
14120 fi
14121
14122 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
14123
14124
14125 # END of PUSHVAL
14126
14127 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`"
14128 if ac_fn_c_try_link "$LINENO"; then :
14129
14130
14131 CFLAGS="$CFLAGS_opt"
14132 rm -f pac_test2.log
14133
14134
14135 # START of PUSHVAL
14136
14137 if ${pac_stk_ac_link_level+:} false; then :
14138
14139 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
14140
14141 else
14142
14143 pac_stk_ac_link_level=0
14144
14145 fi
14146 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
14147 if test "x$pac_stk_ac_link_level" = x0; then :
14148
14149 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
14150
14151 fi
14152
14153 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
14154
14155
14156 # END of PUSHVAL
14157
14158 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`"
14159 if ac_fn_c_try_link "$LINENO"; then :
14160
14161
14162
14163 pac_TESTLOG="pac_test.log"
14164 rm -f $pac_TESTLOG
14165
14166 if
14167 { $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5
14168 (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5
14169 ac_status=$?
14170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 test $ac_status = 0; }; then :
14172
14173
14174 pac_result=yes
14175
14176
14177 else
14178
14179 $as_echo "$as_me: program exited with status $ac_status" >&5
14180
14181 (exit $ac_status)
14182
14183 $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5
14184 cat $pac_TESTLOG >&5
14185 pac_result=no
14186
14187
14188
14189
14190 fi
14191
14192 rm -f $pac_TESTLOG
14193
14194
14195
14196 else
14197
14198
14199 pac_result=no
14200
14201
14202 fi
14203 rm -f core conftest.err conftest.$ac_objext \
14204 conftest$ac_exeext
14205
14206 # START of POPVAL
14207
14208 if ${pac_stk_ac_link_level+:} false; then :
14209
14210 if test "x$pac_stk_ac_link_level" = x-1; then :
14211
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
14213 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
14214
14215 else
14216
14217 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
14218 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
14219
14220 fi
14221
14222 else
14223
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
14225 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
14226
14227 fi
14228
14229 # END of POPVAL
14230
14231
14232
14233
14234 else
14235
14236
14237 pac_result=no
14238
14239
14240 fi
14241 rm -f core conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext
14243
14244 # START of POPVAL
14245
14246 if ${pac_stk_ac_link_level+:} false; then :
14247
14248 if test "x$pac_stk_ac_link_level" = x-1; then :
14249
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
14251 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
14252
14253 else
14254
14255 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
14256 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
14257
14258 fi
14259
14260 else
14261
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
14263 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
14264
14265 fi
14266
14267 # END of POPVAL
14268
14269
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
14271 $as_echo "$pac_result" >&6; }
14272 rm -f conftest.$ac_ext
14273
14274 # gcc 4.2.4 on 32-bit does not complain about the -Wno-type-limits option
14275 # even though it doesn't support it. However, when another warning is
14276 # triggered, it gives an error that the option is not recognized. So we
14277 # need to test with a conftest file that will generate warnings.
14278 #
14279 # add an extra switch, pac_c_check_compiler_option_prototest, to
14280 # disable this test just in case some new compiler does not like it.
14281 #
14282 # Linking with a program with an invalid prototype to ensure a compiler warning.
14283
14284 if test "$pac_result" = "yes" \
14285 -a "$pac_c_check_compiler_option_prototest" != "no" ; then
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler option -c11 works with an invalid prototype program" >&5
14287 $as_echo_n "checking whether C compiler option -c11 works with an invalid prototype program... " >&6; }
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290
14291 int main(int argc, char **argv){ int foo, bar = 0; foo += 1; return foo; }
14292
14293 _ACEOF
14294 if ac_fn_c_try_link "$LINENO"; then :
14295 pac_result=yes
14296 else
14297 pac_result=no
14298 fi
14299 rm -f core conftest.err conftest.$ac_objext \
14300 conftest$ac_exeext conftest.$ac_ext
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
14302 $as_echo "$pac_result" >&6; }
14303 fi
14304 #
14305 if test "$pac_result" = "yes" ; then
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5
14307 $as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; }
14308 pac_result=unknown
14309 CFLAGS="$CFLAGS_orig"
14310 rm -f pac_test3.log
14311
14312
14313 # START of PUSHVAL
14314
14315 if ${pac_stk_ac_compile_level+:} false; then :
14316
14317 as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val
14318
14319 else
14320
14321 pac_stk_ac_compile_level=0
14322
14323 fi
14324 eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile"
14325 if test "x$pac_stk_ac_compile_level" = x0; then :
14326
14327 eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
14328
14329 fi
14330
14331 eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
14332
14333
14334 # END of PUSHVAL
14335
14336 ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`"
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14339
14340
14341 int foo(void);
14342 int foo(void){return 0;}
14343
14344
14345 _ACEOF
14346 if ac_fn_c_try_compile "$LINENO"; then :
14347
14348
14349
14350 { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
14351 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
14352 ac_status=$?
14353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 test $ac_status = 0; }
14355 saved_LIBS="$LIBS"
14356 LIBS="pac_conftest.$OBJEXT $LIBS"
14357
14358 rm -f pac_test4.log
14359
14360
14361 # START of PUSHVAL
14362
14363 if ${pac_stk_ac_link_level+:} false; then :
14364
14365 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
14366
14367 else
14368
14369 pac_stk_ac_link_level=0
14370
14371 fi
14372 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
14373 if test "x$pac_stk_ac_link_level" = x0; then :
14374
14375 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
14376
14377 fi
14378
14379 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
14380
14381
14382 # END of PUSHVAL
14383
14384 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`"
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14387
14388 int
14389 main ()
14390 {
14391
14392 ;
14393 return 0;
14394 }
14395 _ACEOF
14396 if ac_fn_c_try_link "$LINENO"; then :
14397
14398
14399 CFLAGS="$CFLAGS_opt"
14400 rm -f pac_test5.log
14401
14402
14403 # START of PUSHVAL
14404
14405 if ${pac_stk_ac_link_level+:} false; then :
14406
14407 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
14408
14409 else
14410
14411 pac_stk_ac_link_level=0
14412
14413 fi
14414 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
14415 if test "x$pac_stk_ac_link_level" = x0; then :
14416
14417 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
14418
14419 fi
14420
14421 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
14422
14423
14424 # END of PUSHVAL
14425
14426 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test5.log 2>\&1|g'`"
14427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h. */
14429
14430 int
14431 main ()
14432 {
14433
14434 ;
14435 return 0;
14436 }
14437 _ACEOF
14438 if ac_fn_c_try_link "$LINENO"; then :
14439
14440
14441
14442 pac_TESTLOG="pac_test.log"
14443 rm -f $pac_TESTLOG
14444
14445 if
14446 { $as_echo "$as_me:$LINENO: diff -b pac_test4.log pac_test5.log > $pac_TESTLOG" >&5
14447 (eval diff -b pac_test4.log pac_test5.log > $pac_TESTLOG) 2>&5
14448 ac_status=$?
14449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 test $ac_status = 0; }; then :
14451
14452
14453 pac_result=yes
14454
14455
14456 else
14457
14458 $as_echo "$as_me: program exited with status $ac_status" >&5
14459
14460 (exit $ac_status)
14461
14462 $as_echo "*** diff -b pac_test4.log pac_test5.log :" >&5
14463 cat $pac_TESTLOG >&5
14464 pac_result=no
14465
14466
14467
14468
14469 fi
14470
14471 rm -f $pac_TESTLOG
14472
14473
14474
14475 else
14476
14477
14478 pac_result=no
14479
14480
14481 fi
14482 rm -f core conftest.err conftest.$ac_objext \
14483 conftest$ac_exeext conftest.$ac_ext
14484
14485 # START of POPVAL
14486
14487 if ${pac_stk_ac_link_level+:} false; then :
14488
14489 if test "x$pac_stk_ac_link_level" = x-1; then :
14490
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
14492 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
14493
14494 else
14495
14496 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
14497 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
14498
14499 fi
14500
14501 else
14502
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
14504 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
14505
14506 fi
14507
14508 # END of POPVAL
14509
14510
14511
14512
14513 else
14514
14515
14516 pac_result=no
14517
14518
14519 fi
14520 rm -f core conftest.err conftest.$ac_objext \
14521 conftest$ac_exeext conftest.$ac_ext
14522
14523 # START of POPVAL
14524
14525 if ${pac_stk_ac_link_level+:} false; then :
14526
14527 if test "x$pac_stk_ac_link_level" = x-1; then :
14528
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
14530 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
14531
14532 else
14533
14534 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
14535 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
14536
14537 fi
14538
14539 else
14540
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
14542 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
14543
14544 fi
14545
14546 # END of POPVAL
14547
14548
14549 LIBS="$saved_LIBS"
14550 rm -f pac_conftest.$OBJEXT
14551
14552
14553 else
14554
14555
14556 pac_result=no
14557
14558
14559 fi
14560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14561
14562 # START of POPVAL
14563
14564 if ${pac_stk_ac_compile_level+:} false; then :
14565
14566 if test "x$pac_stk_ac_compile_level" = x-1; then :
14567
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5
14569 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;}
14570
14571 else
14572
14573 eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
14574 as_fn_arith $pac_stk_ac_compile_level - 1 && pac_stk_ac_compile_level=$as_val
14575
14576 fi
14577
14578 else
14579
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5
14581 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;}
14582
14583 fi
14584
14585 # END of POPVAL
14586
14587
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
14589 $as_echo "$pac_result" >&6; }
14590 rm -f pac_test3.log pac_test4.log pac_test5.log
14591 fi
14592 rm -f pac_test1.log pac_test2.log
14593
14594 CFLAGS="$CFLAGS_orig"
14595 if test "$pac_result" = "yes" ; then
14596 c11_available=yes
14597 else
14598 c11_available=no
14599 fi
14600 ac_ext=c
14601 ac_cpp='$CPP $CPPFLAGS'
14602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14605
14606
14607
14608 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
14609 eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
14610 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
14611
14612 if test "${c11_available}" = "yes" ; then
14613
14614
14615 if echo "$CFLAGS" | $FGREP -e '-c11' >/dev/null 2>&1; then :
14616 echo "CFLAGS(='$CFLAGS') contains '-c11', not appending" >&5
14617 else
14618 echo "CFLAGS(='$CFLAGS') does not contain '-c11', appending" >&5
14619 CFLAGS="$CFLAGS -c11"
14620
14621 fi
14622
14623 fi
14624 fi
14625
14626
14627 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
14628
14629
14630 # Check if the compiler has support for visibility, like some
14631 # versions of gcc, icc, Sun Studio cc.
14632 # Check whether --enable-visibility was given.
14633 if test "${enable_visibility+set}" = set; then :
14634 enableval=$enable_visibility;
14635 fi
14636
14637
14638 case ${target} in
14639 *-*-aix*|*-*-mingw*|*-*-cygwin*|*-*-hpux*)
14640 enable_visibility=no
14641 ;;
14642 esac
14643
14644 yaksa_visibility_define=0
14645 yaksa_msg="whether to enable symbol visibility"
14646 if test "$enable_visibility" = "no"; then
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $yaksa_msg" >&5
14648 $as_echo_n "checking $yaksa_msg... " >&6; }
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled)" >&5
14650 $as_echo "no (disabled)" >&6; }
14651 else
14652 CFLAGS_orig=$CFLAGS
14653 yaksa_add=-fvisibility=hidden
14654 CFLAGS="$CFLAGS_orig $yaksa_add -Werror"
14655
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $yaksa_add" >&5
14657 $as_echo_n "checking if $CC supports $yaksa_add... " >&6; }
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14660
14661 #include <stdio.h>
14662 __attribute__((visibility("default"))) int foo;
14663
14664 int
14665 main ()
14666 {
14667 fprintf(stderr, "Hello, world\n");
14668 ;
14669 return 0;
14670 }
14671 _ACEOF
14672 if ac_fn_c_try_link "$LINENO"; then :
14673 if test -s conftest.err; then :
14674 $GREP -iq visibility conftest.err
14675 # If we find "visibility" in the stderr, then
14676 # assume it doesn't work
14677 if test "$?" = "0"; then :
14678 yaksa_add=
14679 fi
14680 fi
14681
14682 else
14683 yaksa_add=
14684 fi
14685 rm -f core conftest.err conftest.$ac_objext \
14686 conftest$ac_exeext conftest.$ac_ext
14687 if test "$yaksa_add" = ""; then :
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14689 $as_echo "no" >&6; }
14690 else
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14692 $as_echo "yes" >&6; }
14693 fi
14694
14695 CFLAGS=$CFLAGS_orig
14696 YAKSA_VISIBILITY_CFLAGS=$yaksa_add
14697
14698 if test "$yaksa_add" != "" ; then
14699 yaksa_visibility_define=1
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $yaksa_msg" >&5
14701 $as_echo_n "checking $yaksa_msg... " >&6; }
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (via $yaksa_add)" >&5
14703 $as_echo "yes (via $yaksa_add)" >&6; }
14704 elif test "$enable_visibility" = "yes"; then
14705 as_fn_error $? "Symbol visibility support requested but compiler does not seem to support it. Aborting" "$LINENO" 5
14706 else
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $yaksa_msg" >&5
14708 $as_echo_n "checking $yaksa_msg... " >&6; }
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (unsupported)" >&5
14710 $as_echo "no (unsupported)" >&6; }
14711 fi
14712 unset yaksa_add
14713 fi
14714
14715
14716 cat >>confdefs.h <<_ACEOF
14717 #define YAKSA_C_HAVE_VISIBILITY $yaksa_visibility_define
14718 _ACEOF
14719
14720
14721
14722
14723 if echo "$CFLAGS" | $FGREP -e '$YAKSA_VISIBILITY_CFLAGS' >/dev/null 2>&1; then :
14724 echo "CFLAGS(='$CFLAGS') contains '$YAKSA_VISIBILITY_CFLAGS', not appending" >&5
14725 else
14726 echo "CFLAGS(='$CFLAGS') does not contain '$YAKSA_VISIBILITY_CFLAGS', appending" >&5
14727 CFLAGS="$CFLAGS $YAKSA_VISIBILITY_CFLAGS"
14728
14729 fi
14730
14731
14732 # required pre-Automake-1.14
14733
14734
14735 # strict
14736
14737 # Check whether --enable-strict was given.
14738 if test "${enable_strict+set}" = set; then :
14739 enableval=$enable_strict;
14740 fi
14741
14742
14743 export enable_strict_done
14744 if test "$enable_strict_done" != "yes" ; then
14745
14746 # Some comments on strict warning options.
14747 # These were added to reduce warnings:
14748 # -Wno-missing-field-initializers -- We want to allow a struct to be
14749 # initialized to zero using "struct x y = {0};" and not require
14750 # each field to be initialized individually.
14751 # -Wno-unused-parameter -- For portability, some parameters go unused
14752 # when we have different implementations of functions for
14753 # different platforms
14754 # -Wno-unused-label -- We add fn_exit: and fn_fail: on all functions,
14755 # but fn_fail may not be used if the function doesn't return an
14756 # error.
14757 # -Wno-sign-compare -- read() and write() return bytes read/written
14758 # as a signed value, but we often compare this to uintptr_t (or
14759 # msg_sz_t) variables.
14760 # -Wno-format-zero-length -- this warning is irritating and useless, since
14761 # a zero-length format string is very well defined
14762 # -Wno-type-limits -- There are places where we compare an unsigned to
14763 # a constant that happens to be zero e.g., if x is unsigned and
14764 # MIN_VAL is zero, we'd like to do "MPIU_Assert(x >= MIN_VAL);".
14765 # Note this option is not supported by gcc 4.2. This needs to be added
14766 # after most other warning flags, so that we catch a gcc bug on 32-bit
14767 # that doesn't give a warning that this is unsupported, unless another
14768 # warning is triggered, and then if gives an error.
14769 # These were removed to reduce warnings:
14770 # -Wcast-qual -- Sometimes we need to cast "volatile char*" to
14771 # "char*", e.g., for memcpy.
14772 # -Wpadded -- We catch struct padding with asserts when we need to
14773 # -Wredundant-decls -- Having redundant declarations is benign and the
14774 # code already has some.
14775 # -Waggregate-return -- This seems to be a performance-related warning
14776 # aggregate return values are legal in ANSI C, but they may be returned
14777 # in memory rather than through a register. We do use aggregate return
14778 # values, but they are structs of a single basic type (used to enforce
14779 # type checking for relative vs. absolute ptrs), and with optimization
14780 # the aggregate value is converted to a scalar.
14781 # -Wdeclaration-after-statement -- This is a C89
14782 # requirement. When compiling with C99, this should be
14783 # disabled.
14784 # -Wfloat-equal -- There are places in hwloc that set a float var to 0, then
14785 # compare it to 0 later to see if it was updated. Also when using strtod()
14786 # one needs to compare the return value with 0 to see whether a conversion
14787 # was performed.
14788 # -Werror-implicit-function-declaration -- implicit function declarations
14789 # should never be tolerated. This also ensures that we get quick
14790 # compilation failures rather than later link failures that usually
14791 # come from a function name typo.
14792 # -Wcast-align -- Casting alignment warnings. This is an
14793 # important check, but is temporarily disabled, since it is
14794 # throwing too many (correct) warnings currently, causing us
14795 # to miss other warnings.
14796 # -Wshorten-64-to-32 -- Bad type-casting warnings. This is an
14797 # important check, but is temporarily disabled, since it is
14798 # throwing too many (correct) warnings currently, causing us
14799 # to miss other warnings.
14800 # the embedded newlines in this string are safe because we evaluate each
14801 # argument in the for-loop below and append them to the CFLAGS with a space
14802 # as the separator instead
14803 pac_common_strict_flags="
14804 -Wall
14805 -Wextra
14806 -Wno-missing-field-initializers
14807 -Wstrict-prototypes
14808 -Wmissing-prototypes
14809 -DGCC_WALL
14810 -Wno-unused-parameter
14811 -Wno-unused-label
14812 -Wshadow
14813 -Wmissing-declarations
14814 -Wno-long-long
14815 -Wundef
14816 -Wno-endif-labels
14817 -Wpointer-arith
14818 -Wbad-function-cast
14819 -Wwrite-strings
14820 -Wno-sign-compare
14821 -Wold-style-definition
14822 -Wno-multichar
14823 -Wno-deprecated-declarations
14824 -Wnested-externs
14825 -Winvalid-pch
14826 -Wno-pointer-sign
14827 -Wvariadic-macros
14828 -Wtype-limits
14829 -Werror-implicit-function-declaration
14830 -Wstack-usage=262144
14831 -Wredundant-decls
14832 -Waggregate-return
14833 -Werror-implicit-function-declaration
14834 -Wcast-align
14835 -Wpacked
14836 -Wshorten-64-to-32
14837 -diag-disable=all
14838 "
14839
14840 enable_c89=no
14841 enable_c99=no
14842 enable_c11=no
14843 enable_posix=2001
14844 enable_opt=yes
14845 flags="`echo $enable_strict | sed -e 's/:/ /g' -e 's/,/ /g'`"
14846 for flag in ${flags}; do
14847 case "$flag" in
14848 c89)
14849 enable_strict_done="yes"
14850 enable_c89=yes
14851 enable_c99=no
14852 enable_c11=no
14853 ;;
14854 c99)
14855 enable_strict_done="yes"
14856 enable_c89=no
14857 enable_c99=yes
14858 enable_c11=no
14859 ;;
14860 c11)
14861 enable_strict_done="yes"
14862 enable_c89=no
14863 enable_c99=no
14864 enable_c11=yes
14865 ;;
14866 posix1995)
14867 enable_strict_done="yes"
14868 enable_posix=1995
14869 ;;
14870 posix|posix2001)
14871 enable_strict_done="yes"
14872 enable_posix=2001
14873 ;;
14874 posix2008)
14875 enable_strict_done="yes"
14876 enable_posix=2008
14877 ;;
14878 noposix)
14879 enable_strict_done="yes"
14880 enable_posix=no
14881 ;;
14882 opt)
14883 enable_strict_done="yes"
14884 enable_opt=yes
14885 ;;
14886 noopt)
14887 enable_strict_done="yes"
14888 enable_opt=no
14889 ;;
14890 all|yes)
14891 enable_strict_done="yes"
14892 enable_posix=2001
14893 enable_opt=yes
14894 ;;
14895 no)
14896 # Accept and ignore this value
14897 :
14898 ;;
14899 *)
14900 if test -n "$flag" ; then
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized value for enable-strict:$flag" >&5
14902 $as_echo "$as_me: WARNING: Unrecognized value for enable-strict:$flag" >&2;}
14903 fi
14904 ;;
14905 esac
14906 done
14907
14908 pac_cc_strict_flags=""
14909 if test "${enable_strict_done}" = "yes" ; then
14910 if test "${enable_opt}" = "yes" ; then
14911 pac_cc_strict_flags="-O2"
14912 fi
14913 pac_cc_strict_flags="$pac_cc_strict_flags $pac_common_strict_flags"
14914 case "$enable_posix" in
14915 no) : ;;
14916 1995)
14917
14918 if echo "$pac_cc_strict_flags" | $FGREP -e '-D_POSIX_C_SOURCE=199506L' >/dev/null 2>&1; then :
14919 echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-D_POSIX_C_SOURCE=199506L', not appending" >&5
14920 else
14921 echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-D_POSIX_C_SOURCE=199506L', appending" >&5
14922 pac_cc_strict_flags="$pac_cc_strict_flags -D_POSIX_C_SOURCE=199506L"
14923
14924 fi
14925 ;;
14926 2001)
14927
14928 if echo "$pac_cc_strict_flags" | $FGREP -e '-D_POSIX_C_SOURCE=200112L' >/dev/null 2>&1; then :
14929 echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-D_POSIX_C_SOURCE=200112L', not appending" >&5
14930 else
14931 echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-D_POSIX_C_SOURCE=200112L', appending" >&5
14932 pac_cc_strict_flags="$pac_cc_strict_flags -D_POSIX_C_SOURCE=200112L"
14933
14934 fi
14935 ;;
14936 2008)
14937
14938 if echo "$pac_cc_strict_flags" | $FGREP -e '-D_POSIX_C_SOURCE=200809L' >/dev/null 2>&1; then :
14939 echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-D_POSIX_C_SOURCE=200809L', not appending" >&5
14940 else
14941 echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-D_POSIX_C_SOURCE=200809L', appending" >&5
14942 pac_cc_strict_flags="$pac_cc_strict_flags -D_POSIX_C_SOURCE=200809L"
14943
14944 fi
14945 ;;
14946 *) as_fn_error $? "internal error, unexpected POSIX version: '$enable_posix'" "$LINENO" 5 ;;
14947 esac
14948 # We only allow one of strict-C11, strict-C99 or strict-C89 to be
14949 # enabled.
14950 if test "${enable_c11}" = "yes" ; then
14951
14952
14953 if echo "$pac_cc_strict_flags" | $FGREP -e '-std=c11' >/dev/null 2>&1; then :
14954 echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-std=c11', not appending" >&5
14955 else
14956 echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-std=c11', appending" >&5
14957 pac_cc_strict_flags="$pac_cc_strict_flags -std=c11"
14958
14959 fi
14960
14961 elif test "${enable_c99}" = "yes" ; then
14962
14963
14964 if echo "$pac_cc_strict_flags" | $FGREP -e '-std=c99' >/dev/null 2>&1; then :
14965 echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-std=c99', not appending" >&5
14966 else
14967 echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-std=c99', appending" >&5
14968 pac_cc_strict_flags="$pac_cc_strict_flags -std=c99"
14969
14970 fi
14971
14972 elif test "${enable_c89}" = "yes" ; then
14973
14974
14975 if echo "$pac_cc_strict_flags" | $FGREP -e '-std=c89' >/dev/null 2>&1; then :
14976 echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-std=c89', not appending" >&5
14977 else
14978 echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-std=c89', appending" >&5
14979 pac_cc_strict_flags="$pac_cc_strict_flags -std=c89"
14980
14981 fi
14982
14983
14984
14985 if echo "$pac_cc_strict_flags" | $FGREP -e '-Wdeclaration-after-statement' >/dev/null 2>&1; then :
14986 echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-Wdeclaration-after-statement', not appending" >&5
14987 else
14988 echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-Wdeclaration-after-statement', appending" >&5
14989 pac_cc_strict_flags="$pac_cc_strict_flags -Wdeclaration-after-statement"
14990
14991 fi
14992
14993 fi
14994 fi
14995
14996 # See if the above options work with the compiler
14997 accepted_flags=""
14998 for flag in $pac_cc_strict_flags ; do
14999
15000 if test -z "${pac_save_CFLAGS_nesting}" ; then
15001 pac_save_CFLAGS_nesting=0
15002 fi
15003 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
15004 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
15005
15006 CFLAGS="$CFLAGS $accepted_flags"
15007
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts option $flag" >&5
15009 $as_echo_n "checking whether C compiler accepts option $flag... " >&6; }
15010 pac_opt="$flag"
15011 ac_ext=c
15012 ac_cpp='$CPP $CPPFLAGS'
15013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15016
15017 CFLAGS_orig="$CFLAGS"
15018 CFLAGS_opt="$pac_opt $CFLAGS"
15019 pac_result="unknown"
15020
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023
15024 int
15025 main ()
15026 {
15027
15028 ;
15029 return 0;
15030 }
15031 _ACEOF
15032 CFLAGS="$CFLAGS_orig"
15033 rm -f pac_test1.log
15034
15035
15036 # START of PUSHVAL
15037
15038 if ${pac_stk_ac_link_level+:} false; then :
15039
15040 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
15041
15042 else
15043
15044 pac_stk_ac_link_level=0
15045
15046 fi
15047 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
15048 if test "x$pac_stk_ac_link_level" = x0; then :
15049
15050 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15051
15052 fi
15053
15054 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15055
15056
15057 # END of PUSHVAL
15058
15059 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`"
15060 if ac_fn_c_try_link "$LINENO"; then :
15061
15062
15063 CFLAGS="$CFLAGS_opt"
15064 rm -f pac_test2.log
15065
15066
15067 # START of PUSHVAL
15068
15069 if ${pac_stk_ac_link_level+:} false; then :
15070
15071 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
15072
15073 else
15074
15075 pac_stk_ac_link_level=0
15076
15077 fi
15078 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
15079 if test "x$pac_stk_ac_link_level" = x0; then :
15080
15081 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15082
15083 fi
15084
15085 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15086
15087
15088 # END of PUSHVAL
15089
15090 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`"
15091 if ac_fn_c_try_link "$LINENO"; then :
15092
15093
15094
15095 pac_TESTLOG="pac_test.log"
15096 rm -f $pac_TESTLOG
15097
15098 if
15099 { $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5
15100 (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5
15101 ac_status=$?
15102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 test $ac_status = 0; }; then :
15104
15105
15106 pac_result=yes
15107
15108
15109 else
15110
15111 $as_echo "$as_me: program exited with status $ac_status" >&5
15112
15113 (exit $ac_status)
15114
15115 $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5
15116 cat $pac_TESTLOG >&5
15117 pac_result=no
15118
15119
15120
15121
15122 fi
15123
15124 rm -f $pac_TESTLOG
15125
15126
15127
15128 else
15129
15130
15131 pac_result=no
15132
15133
15134 fi
15135 rm -f core conftest.err conftest.$ac_objext \
15136 conftest$ac_exeext
15137
15138 # START of POPVAL
15139
15140 if ${pac_stk_ac_link_level+:} false; then :
15141
15142 if test "x$pac_stk_ac_link_level" = x-1; then :
15143
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
15145 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
15146
15147 else
15148
15149 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15150 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
15151
15152 fi
15153
15154 else
15155
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
15157 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
15158
15159 fi
15160
15161 # END of POPVAL
15162
15163
15164
15165
15166 else
15167
15168
15169 pac_result=no
15170
15171
15172 fi
15173 rm -f core conftest.err conftest.$ac_objext \
15174 conftest$ac_exeext
15175
15176 # START of POPVAL
15177
15178 if ${pac_stk_ac_link_level+:} false; then :
15179
15180 if test "x$pac_stk_ac_link_level" = x-1; then :
15181
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
15183 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
15184
15185 else
15186
15187 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15188 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
15189
15190 fi
15191
15192 else
15193
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
15195 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
15196
15197 fi
15198
15199 # END of POPVAL
15200
15201
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
15203 $as_echo "$pac_result" >&6; }
15204 rm -f conftest.$ac_ext
15205
15206 # gcc 4.2.4 on 32-bit does not complain about the -Wno-type-limits option
15207 # even though it doesn't support it. However, when another warning is
15208 # triggered, it gives an error that the option is not recognized. So we
15209 # need to test with a conftest file that will generate warnings.
15210 #
15211 # add an extra switch, pac_c_check_compiler_option_prototest, to
15212 # disable this test just in case some new compiler does not like it.
15213 #
15214 # Linking with a program with an invalid prototype to ensure a compiler warning.
15215
15216 if test "$pac_result" = "yes" \
15217 -a "$pac_c_check_compiler_option_prototest" != "no" ; then
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler option $flag works with an invalid prototype program" >&5
15219 $as_echo_n "checking whether C compiler option $flag works with an invalid prototype program... " >&6; }
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15222
15223 int main(int argc, char **argv){ int foo, bar = 0; foo += 1; return foo; }
15224
15225 _ACEOF
15226 if ac_fn_c_try_link "$LINENO"; then :
15227 pac_result=yes
15228 else
15229 pac_result=no
15230 fi
15231 rm -f core conftest.err conftest.$ac_objext \
15232 conftest$ac_exeext conftest.$ac_ext
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
15234 $as_echo "$pac_result" >&6; }
15235 fi
15236 #
15237 if test "$pac_result" = "yes" ; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5
15239 $as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; }
15240 pac_result=unknown
15241 CFLAGS="$CFLAGS_orig"
15242 rm -f pac_test3.log
15243
15244
15245 # START of PUSHVAL
15246
15247 if ${pac_stk_ac_compile_level+:} false; then :
15248
15249 as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val
15250
15251 else
15252
15253 pac_stk_ac_compile_level=0
15254
15255 fi
15256 eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile"
15257 if test "x$pac_stk_ac_compile_level" = x0; then :
15258
15259 eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
15260
15261 fi
15262
15263 eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
15264
15265
15266 # END of PUSHVAL
15267
15268 ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`"
15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h. */
15271
15272
15273 int foo(void);
15274 int foo(void){return 0;}
15275
15276
15277 _ACEOF
15278 if ac_fn_c_try_compile "$LINENO"; then :
15279
15280
15281
15282 { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
15283 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
15284 ac_status=$?
15285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 test $ac_status = 0; }
15287 saved_LIBS="$LIBS"
15288 LIBS="pac_conftest.$OBJEXT $LIBS"
15289
15290 rm -f pac_test4.log
15291
15292
15293 # START of PUSHVAL
15294
15295 if ${pac_stk_ac_link_level+:} false; then :
15296
15297 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
15298
15299 else
15300
15301 pac_stk_ac_link_level=0
15302
15303 fi
15304 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
15305 if test "x$pac_stk_ac_link_level" = x0; then :
15306
15307 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15308
15309 fi
15310
15311 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15312
15313
15314 # END of PUSHVAL
15315
15316 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`"
15317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15318 /* end confdefs.h. */
15319
15320 int
15321 main ()
15322 {
15323
15324 ;
15325 return 0;
15326 }
15327 _ACEOF
15328 if ac_fn_c_try_link "$LINENO"; then :
15329
15330
15331 CFLAGS="$CFLAGS_opt"
15332 rm -f pac_test5.log
15333
15334
15335 # START of PUSHVAL
15336
15337 if ${pac_stk_ac_link_level+:} false; then :
15338
15339 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
15340
15341 else
15342
15343 pac_stk_ac_link_level=0
15344
15345 fi
15346 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
15347 if test "x$pac_stk_ac_link_level" = x0; then :
15348
15349 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15350
15351 fi
15352
15353 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15354
15355
15356 # END of PUSHVAL
15357
15358 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test5.log 2>\&1|g'`"
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15361
15362 int
15363 main ()
15364 {
15365
15366 ;
15367 return 0;
15368 }
15369 _ACEOF
15370 if ac_fn_c_try_link "$LINENO"; then :
15371
15372
15373
15374 pac_TESTLOG="pac_test.log"
15375 rm -f $pac_TESTLOG
15376
15377 if
15378 { $as_echo "$as_me:$LINENO: diff -b pac_test4.log pac_test5.log > $pac_TESTLOG" >&5
15379 (eval diff -b pac_test4.log pac_test5.log > $pac_TESTLOG) 2>&5
15380 ac_status=$?
15381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 test $ac_status = 0; }; then :
15383
15384
15385 pac_result=yes
15386
15387
15388 else
15389
15390 $as_echo "$as_me: program exited with status $ac_status" >&5
15391
15392 (exit $ac_status)
15393
15394 $as_echo "*** diff -b pac_test4.log pac_test5.log :" >&5
15395 cat $pac_TESTLOG >&5
15396 pac_result=no
15397
15398
15399
15400
15401 fi
15402
15403 rm -f $pac_TESTLOG
15404
15405
15406
15407 else
15408
15409
15410 pac_result=no
15411
15412
15413 fi
15414 rm -f core conftest.err conftest.$ac_objext \
15415 conftest$ac_exeext conftest.$ac_ext
15416
15417 # START of POPVAL
15418
15419 if ${pac_stk_ac_link_level+:} false; then :
15420
15421 if test "x$pac_stk_ac_link_level" = x-1; then :
15422
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
15424 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
15425
15426 else
15427
15428 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15429 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
15430
15431 fi
15432
15433 else
15434
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
15436 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
15437
15438 fi
15439
15440 # END of POPVAL
15441
15442
15443
15444
15445 else
15446
15447
15448 pac_result=no
15449
15450
15451 fi
15452 rm -f core conftest.err conftest.$ac_objext \
15453 conftest$ac_exeext conftest.$ac_ext
15454
15455 # START of POPVAL
15456
15457 if ${pac_stk_ac_link_level+:} false; then :
15458
15459 if test "x$pac_stk_ac_link_level" = x-1; then :
15460
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
15462 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
15463
15464 else
15465
15466 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15467 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
15468
15469 fi
15470
15471 else
15472
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
15474 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
15475
15476 fi
15477
15478 # END of POPVAL
15479
15480
15481 LIBS="$saved_LIBS"
15482 rm -f pac_conftest.$OBJEXT
15483
15484
15485 else
15486
15487
15488 pac_result=no
15489
15490
15491 fi
15492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15493
15494 # START of POPVAL
15495
15496 if ${pac_stk_ac_compile_level+:} false; then :
15497
15498 if test "x$pac_stk_ac_compile_level" = x-1; then :
15499
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5
15501 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;}
15502
15503 else
15504
15505 eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
15506 as_fn_arith $pac_stk_ac_compile_level - 1 && pac_stk_ac_compile_level=$as_val
15507
15508 fi
15509
15510 else
15511
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5
15513 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;}
15514
15515 fi
15516
15517 # END of POPVAL
15518
15519
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
15521 $as_echo "$pac_result" >&6; }
15522 rm -f pac_test3.log pac_test4.log pac_test5.log
15523 fi
15524 rm -f pac_test1.log pac_test2.log
15525
15526 CFLAGS="$CFLAGS_orig"
15527 if test "$pac_result" = "yes" ; then
15528 accepted_flags="$accepted_flags $flag"
15529 else
15530 :
15531 fi
15532 ac_ext=c
15533 ac_cpp='$CPP $CPPFLAGS'
15534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15537
15538
15539
15540 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
15541 eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
15542 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
15543
15544 done
15545 pac_cc_strict_flags=$accepted_flags
15546 fi
15547
15548 CFLAGS="$CFLAGS $pac_cc_strict_flags"
15549 export CFLAGS
15550
15551
15552 # Add options that suppress default warnings, especially those from PGI compilers (now nvc)
15553
15554 pac_cc_defaut_flags="
15555 --diag_suppress=incompatible_param
15556 "
15557 # See if the above options work with the compiler
15558 accepted_flags=""
15559 for flag in $pac_cc_defaut_flags ; do
15560
15561 if test -z "${pac_save_CFLAGS_nesting}" ; then
15562 pac_save_CFLAGS_nesting=0
15563 fi
15564 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
15565 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
15566
15567 CFLAGS="$CFLAGS $accepted_flags"
15568
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts option $flag" >&5
15570 $as_echo_n "checking whether C compiler accepts option $flag... " >&6; }
15571 pac_opt="$flag"
15572 ac_ext=c
15573 ac_cpp='$CPP $CPPFLAGS'
15574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15577
15578 CFLAGS_orig="$CFLAGS"
15579 CFLAGS_opt="$pac_opt $CFLAGS"
15580 pac_result="unknown"
15581
15582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15583 /* end confdefs.h. */
15584
15585 int
15586 main ()
15587 {
15588
15589 ;
15590 return 0;
15591 }
15592 _ACEOF
15593 CFLAGS="$CFLAGS_orig"
15594 rm -f pac_test1.log
15595
15596
15597 # START of PUSHVAL
15598
15599 if ${pac_stk_ac_link_level+:} false; then :
15600
15601 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
15602
15603 else
15604
15605 pac_stk_ac_link_level=0
15606
15607 fi
15608 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
15609 if test "x$pac_stk_ac_link_level" = x0; then :
15610
15611 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15612
15613 fi
15614
15615 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15616
15617
15618 # END of PUSHVAL
15619
15620 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`"
15621 if ac_fn_c_try_link "$LINENO"; then :
15622
15623
15624 CFLAGS="$CFLAGS_opt"
15625 rm -f pac_test2.log
15626
15627
15628 # START of PUSHVAL
15629
15630 if ${pac_stk_ac_link_level+:} false; then :
15631
15632 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
15633
15634 else
15635
15636 pac_stk_ac_link_level=0
15637
15638 fi
15639 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
15640 if test "x$pac_stk_ac_link_level" = x0; then :
15641
15642 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15643
15644 fi
15645
15646 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15647
15648
15649 # END of PUSHVAL
15650
15651 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`"
15652 if ac_fn_c_try_link "$LINENO"; then :
15653
15654
15655
15656 pac_TESTLOG="pac_test.log"
15657 rm -f $pac_TESTLOG
15658
15659 if
15660 { $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5
15661 (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5
15662 ac_status=$?
15663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 test $ac_status = 0; }; then :
15665
15666
15667 pac_result=yes
15668
15669
15670 else
15671
15672 $as_echo "$as_me: program exited with status $ac_status" >&5
15673
15674 (exit $ac_status)
15675
15676 $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5
15677 cat $pac_TESTLOG >&5
15678 pac_result=no
15679
15680
15681
15682
15683 fi
15684
15685 rm -f $pac_TESTLOG
15686
15687
15688
15689 else
15690
15691
15692 pac_result=no
15693
15694
15695 fi
15696 rm -f core conftest.err conftest.$ac_objext \
15697 conftest$ac_exeext
15698
15699 # START of POPVAL
15700
15701 if ${pac_stk_ac_link_level+:} false; then :
15702
15703 if test "x$pac_stk_ac_link_level" = x-1; then :
15704
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
15706 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
15707
15708 else
15709
15710 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15711 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
15712
15713 fi
15714
15715 else
15716
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
15718 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
15719
15720 fi
15721
15722 # END of POPVAL
15723
15724
15725
15726
15727 else
15728
15729
15730 pac_result=no
15731
15732
15733 fi
15734 rm -f core conftest.err conftest.$ac_objext \
15735 conftest$ac_exeext
15736
15737 # START of POPVAL
15738
15739 if ${pac_stk_ac_link_level+:} false; then :
15740
15741 if test "x$pac_stk_ac_link_level" = x-1; then :
15742
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
15744 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
15745
15746 else
15747
15748 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15749 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
15750
15751 fi
15752
15753 else
15754
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
15756 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
15757
15758 fi
15759
15760 # END of POPVAL
15761
15762
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
15764 $as_echo "$pac_result" >&6; }
15765 rm -f conftest.$ac_ext
15766
15767 # gcc 4.2.4 on 32-bit does not complain about the -Wno-type-limits option
15768 # even though it doesn't support it. However, when another warning is
15769 # triggered, it gives an error that the option is not recognized. So we
15770 # need to test with a conftest file that will generate warnings.
15771 #
15772 # add an extra switch, pac_c_check_compiler_option_prototest, to
15773 # disable this test just in case some new compiler does not like it.
15774 #
15775 # Linking with a program with an invalid prototype to ensure a compiler warning.
15776
15777 if test "$pac_result" = "yes" \
15778 -a "$pac_c_check_compiler_option_prototest" != "no" ; then
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler option $flag works with an invalid prototype program" >&5
15780 $as_echo_n "checking whether C compiler option $flag works with an invalid prototype program... " >&6; }
15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h. */
15783
15784 int main(int argc, char **argv){ int foo, bar = 0; foo += 1; return foo; }
15785
15786 _ACEOF
15787 if ac_fn_c_try_link "$LINENO"; then :
15788 pac_result=yes
15789 else
15790 pac_result=no
15791 fi
15792 rm -f core conftest.err conftest.$ac_objext \
15793 conftest$ac_exeext conftest.$ac_ext
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
15795 $as_echo "$pac_result" >&6; }
15796 fi
15797 #
15798 if test "$pac_result" = "yes" ; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5
15800 $as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; }
15801 pac_result=unknown
15802 CFLAGS="$CFLAGS_orig"
15803 rm -f pac_test3.log
15804
15805
15806 # START of PUSHVAL
15807
15808 if ${pac_stk_ac_compile_level+:} false; then :
15809
15810 as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val
15811
15812 else
15813
15814 pac_stk_ac_compile_level=0
15815
15816 fi
15817 eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile"
15818 if test "x$pac_stk_ac_compile_level" = x0; then :
15819
15820 eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
15821
15822 fi
15823
15824 eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
15825
15826
15827 # END of PUSHVAL
15828
15829 ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`"
15830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15831 /* end confdefs.h. */
15832
15833
15834 int foo(void);
15835 int foo(void){return 0;}
15836
15837
15838 _ACEOF
15839 if ac_fn_c_try_compile "$LINENO"; then :
15840
15841
15842
15843 { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
15844 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
15845 ac_status=$?
15846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 test $ac_status = 0; }
15848 saved_LIBS="$LIBS"
15849 LIBS="pac_conftest.$OBJEXT $LIBS"
15850
15851 rm -f pac_test4.log
15852
15853
15854 # START of PUSHVAL
15855
15856 if ${pac_stk_ac_link_level+:} false; then :
15857
15858 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
15859
15860 else
15861
15862 pac_stk_ac_link_level=0
15863
15864 fi
15865 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
15866 if test "x$pac_stk_ac_link_level" = x0; then :
15867
15868 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15869
15870 fi
15871
15872 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15873
15874
15875 # END of PUSHVAL
15876
15877 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`"
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880
15881 int
15882 main ()
15883 {
15884
15885 ;
15886 return 0;
15887 }
15888 _ACEOF
15889 if ac_fn_c_try_link "$LINENO"; then :
15890
15891
15892 CFLAGS="$CFLAGS_opt"
15893 rm -f pac_test5.log
15894
15895
15896 # START of PUSHVAL
15897
15898 if ${pac_stk_ac_link_level+:} false; then :
15899
15900 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
15901
15902 else
15903
15904 pac_stk_ac_link_level=0
15905
15906 fi
15907 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
15908 if test "x$pac_stk_ac_link_level" = x0; then :
15909
15910 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15911
15912 fi
15913
15914 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15915
15916
15917 # END of PUSHVAL
15918
15919 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test5.log 2>\&1|g'`"
15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921 /* end confdefs.h. */
15922
15923 int
15924 main ()
15925 {
15926
15927 ;
15928 return 0;
15929 }
15930 _ACEOF
15931 if ac_fn_c_try_link "$LINENO"; then :
15932
15933
15934
15935 pac_TESTLOG="pac_test.log"
15936 rm -f $pac_TESTLOG
15937
15938 if
15939 { $as_echo "$as_me:$LINENO: diff -b pac_test4.log pac_test5.log > $pac_TESTLOG" >&5
15940 (eval diff -b pac_test4.log pac_test5.log > $pac_TESTLOG) 2>&5
15941 ac_status=$?
15942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 test $ac_status = 0; }; then :
15944
15945
15946 pac_result=yes
15947
15948
15949 else
15950
15951 $as_echo "$as_me: program exited with status $ac_status" >&5
15952
15953 (exit $ac_status)
15954
15955 $as_echo "*** diff -b pac_test4.log pac_test5.log :" >&5
15956 cat $pac_TESTLOG >&5
15957 pac_result=no
15958
15959
15960
15961
15962 fi
15963
15964 rm -f $pac_TESTLOG
15965
15966
15967
15968 else
15969
15970
15971 pac_result=no
15972
15973
15974 fi
15975 rm -f core conftest.err conftest.$ac_objext \
15976 conftest$ac_exeext conftest.$ac_ext
15977
15978 # START of POPVAL
15979
15980 if ${pac_stk_ac_link_level+:} false; then :
15981
15982 if test "x$pac_stk_ac_link_level" = x-1; then :
15983
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
15985 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
15986
15987 else
15988
15989 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15990 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
15991
15992 fi
15993
15994 else
15995
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
15997 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
15998
15999 fi
16000
16001 # END of POPVAL
16002
16003
16004
16005
16006 else
16007
16008
16009 pac_result=no
16010
16011
16012 fi
16013 rm -f core conftest.err conftest.$ac_objext \
16014 conftest$ac_exeext conftest.$ac_ext
16015
16016 # START of POPVAL
16017
16018 if ${pac_stk_ac_link_level+:} false; then :
16019
16020 if test "x$pac_stk_ac_link_level" = x-1; then :
16021
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
16023 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
16024
16025 else
16026
16027 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
16028 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
16029
16030 fi
16031
16032 else
16033
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
16035 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
16036
16037 fi
16038
16039 # END of POPVAL
16040
16041
16042 LIBS="$saved_LIBS"
16043 rm -f pac_conftest.$OBJEXT
16044
16045
16046 else
16047
16048
16049 pac_result=no
16050
16051
16052 fi
16053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054
16055 # START of POPVAL
16056
16057 if ${pac_stk_ac_compile_level+:} false; then :
16058
16059 if test "x$pac_stk_ac_compile_level" = x-1; then :
16060
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5
16062 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;}
16063
16064 else
16065
16066 eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
16067 as_fn_arith $pac_stk_ac_compile_level - 1 && pac_stk_ac_compile_level=$as_val
16068
16069 fi
16070
16071 else
16072
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5
16074 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;}
16075
16076 fi
16077
16078 # END of POPVAL
16079
16080
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
16082 $as_echo "$pac_result" >&6; }
16083 rm -f pac_test3.log pac_test4.log pac_test5.log
16084 fi
16085 rm -f pac_test1.log pac_test2.log
16086
16087 CFLAGS="$CFLAGS_orig"
16088 if test "$pac_result" = "yes" ; then
16089 accepted_flags="$accepted_flags $flag"
16090 else
16091 :
16092 fi
16093 ac_ext=c
16094 ac_cpp='$CPP $CPPFLAGS'
16095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16098
16099
16100
16101 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
16102 eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
16103 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
16104
16105 done
16106 if test -n "$accepted_flags" ; then
16107 CFLAGS="$CFLAGS $accepted_flags"
16108 export CFLAGS
16109 fi
16110
16111
16112 # embedded builds
16113 # Check whether --enable-embedded was given.
16114 if test "${enable_embedded+set}" = set; then :
16115 enableval=$enable_embedded;
16116 else
16117 enable_embedded=no
16118 fi
16119
16120 if test x${enable_embedded} = xyes; then
16121 EMBEDDED_BUILD_TRUE=
16122 EMBEDDED_BUILD_FALSE='#'
16123 else
16124 EMBEDDED_BUILD_TRUE='#'
16125 EMBEDDED_BUILD_FALSE=
16126 fi
16127
16128 if test x${enable_embedded} = xyes; then
16129
16130 $as_echo "#define YAKSA_EMBEDDED_BUILD 1" >>confdefs.h
16131
16132 fi
16133
16134 # --enable-debug
16135 # Check whether --enable-g was given.
16136 if test "${enable_g+set}" = set; then :
16137 enableval=$enable_g;
16138 else
16139 enable_g=no
16140 fi
16141
16142 # Check whether --enable-debug was given.
16143 if test "${enable_debug+set}" = set; then :
16144 enableval=$enable_debug;
16145 else
16146 enable_debug=${enable_g}
16147 fi
16148
16149 if test "${enable_debug}" != "no" ; then
16150
16151
16152 if echo "$CFLAGS" | $FGREP -e '-g' >/dev/null 2>&1; then :
16153 echo "CFLAGS(='$CFLAGS') contains '-g', not appending" >&5
16154 else
16155 echo "CFLAGS(='$CFLAGS') does not contain '-g', appending" >&5
16156 CFLAGS="$CFLAGS -g"
16157
16158 fi
16159
16160
16161 $as_echo "#define YAKSA_DEBUG 1" >>confdefs.h
16162
16163 fi
16164
16165 # --enable-fast
16166 # Check whether --enable-fast was given.
16167 if test "${enable_fast+set}" = set; then :
16168 enableval=$enable_fast;
16169 else
16170 enable_fast=O2
16171 fi
16172
16173
16174 if test -z "${pac_save_IFS_nesting}" ; then
16175 pac_save_IFS_nesting=0
16176 fi
16177 eval pac_save_IFS_${pac_save_IFS_nesting}='"$IFS"'
16178 pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} + 1`
16179
16180 IFS=","
16181 for option in ${enable_fast} ; do
16182 case "$option" in
16183 O*)
16184
16185
16186 if echo "$CFLAGS" | $FGREP -e '-${option}' >/dev/null 2>&1; then :
16187 echo "CFLAGS(='$CFLAGS') contains '-${option}', not appending" >&5
16188 else
16189 echo "CFLAGS(='$CFLAGS') does not contain '-${option}', appending" >&5
16190 CFLAGS="$CFLAGS -${option}"
16191
16192 fi
16193
16194 ;;
16195 ndebug)
16196
16197
16198 if echo "$CFLAGS" | $FGREP -e '-DNDEBUG' >/dev/null 2>&1; then :
16199 echo "CFLAGS(='$CFLAGS') contains '-DNDEBUG', not appending" >&5
16200 else
16201 echo "CFLAGS(='$CFLAGS') does not contain '-DNDEBUG', appending" >&5
16202 CFLAGS="$CFLAGS -DNDEBUG"
16203
16204 fi
16205
16206 ;;
16207 all|yes)
16208
16209
16210 if echo "$CFLAGS" | $FGREP -e '-O2' >/dev/null 2>&1; then :
16211 echo "CFLAGS(='$CFLAGS') contains '-O2', not appending" >&5
16212 else
16213 echo "CFLAGS(='$CFLAGS') does not contain '-O2', appending" >&5
16214 CFLAGS="$CFLAGS -O2"
16215
16216 fi
16217
16218
16219
16220 if echo "$CFLAGS" | $FGREP -e '-DNDEBUG' >/dev/null 2>&1; then :
16221 echo "CFLAGS(='$CFLAGS') contains '-DNDEBUG', not appending" >&5
16222 else
16223 echo "CFLAGS(='$CFLAGS') does not contain '-DNDEBUG', appending" >&5
16224 CFLAGS="$CFLAGS -DNDEBUG"
16225
16226 fi
16227
16228 ;;
16229 none|no)
16230
16231
16232 if echo "$CFLAGS" | $FGREP -e '-O0' >/dev/null 2>&1; then :
16233 echo "CFLAGS(='$CFLAGS') contains '-O0', not appending" >&5
16234 else
16235 echo "CFLAGS(='$CFLAGS') does not contain '-O0', appending" >&5
16236 CFLAGS="$CFLAGS -O0"
16237
16238 fi
16239
16240 ;;
16241 *)
16242 # ignore unknown options
16243 ;;
16244 esac
16245 done
16246
16247 pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} - 1`
16248 eval IFS="\$pac_save_IFS_${pac_save_IFS_nesting}"
16249 eval pac_save_IFS_${pac_save_IFS_nesting}=""
16250
16251
16252
16253
16254
16255
16256 if test "$GCC" = "yes" ; then
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ allowed" >&5
16258 $as_echo_n "checking whether __attribute__ allowed... " >&6; }
16259 if ${pac_cv_gnu_attr_pure+:} false; then :
16260 $as_echo_n "(cached) " >&6
16261 else
16262
16263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16264 /* end confdefs.h. */
16265 int foo(int) __attribute__ ((pure));
16266 _ACEOF
16267 if ac_fn_c_try_compile "$LINENO"; then :
16268 pac_cv_gnu_attr_pure=yes
16269 else
16270 pac_cv_gnu_attr_pure=no
16271 fi
16272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273 fi
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_pure" >&5
16275 $as_echo "$pac_cv_gnu_attr_pure" >&6; }
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) allowed" >&5
16277 $as_echo_n "checking whether __attribute__((format)) allowed... " >&6; }
16278 if ${pac_cv_gnu_attr_format+:} false; then :
16279 $as_echo_n "(cached) " >&6
16280 else
16281
16282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16283 /* end confdefs.h. */
16284 int foo(char *,...) __attribute__ ((format(printf,1,2)));
16285 _ACEOF
16286 if ac_fn_c_try_compile "$LINENO"; then :
16287 pac_cv_gnu_attr_format=yes
16288 else
16289 pac_cv_gnu_attr_format=no
16290 fi
16291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16292 fi
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_format" >&5
16294 $as_echo "$pac_cv_gnu_attr_format" >&6; }
16295 if test "$pac_cv_gnu_attr_pure" = "yes" -a "$pac_cv_gnu_attr_format" = "yes" ; then
16296
16297 $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
16298
16299 fi
16300 fi
16301
16302
16303 # look for stdatomic
16304 for ac_header in stdatomic.h
16305 do :
16306 ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
16307 if test "x$ac_cv_header_stdatomic_h" = xyes; then :
16308 cat >>confdefs.h <<_ACEOF
16309 #define HAVE_STDATOMIC_H 1
16310 _ACEOF
16311 have_c11_atomics=yes
16312 else
16313 have_c11_atomics=no
16314 fi
16315
16316 done
16317
16318 if test "${have_c11_atomics}" = "yes"; then
16319
16320 $as_echo "#define HAVE_C11_ATOMICS 1" >>confdefs.h
16321
16322 fi
16323 if test x${have_c11_atomics} = xyes; then
16324 HAVE_C11_ATOMICS_TRUE=
16325 HAVE_C11_ATOMICS_FALSE='#'
16326 else
16327 HAVE_C11_ATOMICS_TRUE='#'
16328 HAVE_C11_ATOMICS_FALSE=
16329 fi
16330
16331
16332 # look for pthreads
16333 for ac_header in pthread.h
16334 do :
16335 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16336 if test "x$ac_cv_header_pthread_h" = xyes; then :
16337 cat >>confdefs.h <<_ACEOF
16338 #define HAVE_PTHREAD_H 1
16339 _ACEOF
16340
16341 fi
16342
16343 done
16344
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_key_create in -lpthread" >&5
16346 $as_echo_n "checking for pthread_key_create in -lpthread... " >&6; }
16347 if ${ac_cv_lib_pthread_pthread_key_create+:} false; then :
16348 $as_echo_n "(cached) " >&6
16349 else
16350 ac_check_lib_save_LIBS=$LIBS
16351 LIBS="-lpthread $LIBS"
16352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354
16355 /* Override any GCC internal prototype to avoid an error.
16356 Use char because int might match the return type of a GCC
16357 builtin and then its argument prototype would still apply. */
16358 #ifdef __cplusplus
16359 extern "C"
16360 #endif
16361 char pthread_key_create ();
16362 int
16363 main ()
16364 {
16365 return pthread_key_create ();
16366 ;
16367 return 0;
16368 }
16369 _ACEOF
16370 if ac_fn_c_try_link "$LINENO"; then :
16371 ac_cv_lib_pthread_pthread_key_create=yes
16372 else
16373 ac_cv_lib_pthread_pthread_key_create=no
16374 fi
16375 rm -f core conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
16377 LIBS=$ac_check_lib_save_LIBS
16378 fi
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_key_create" >&5
16380 $as_echo "$ac_cv_lib_pthread_pthread_key_create" >&6; }
16381 if test "x$ac_cv_lib_pthread_pthread_key_create" = xyes; then :
16382 have_pthreads=yes
16383 fi
16384
16385 if test "$have_pthreads" = "yes" ; then
16386
16387
16388 if echo "$LIBS" | $FGREP -e '-lpthread' >/dev/null 2>&1; then :
16389 echo "LIBS(='$LIBS') contains '-lpthread', not prepending" >&5
16390 else
16391 echo "LIBS(='$LIBS') does not contain '-lpthread', prepending" >&5
16392 LIBS="-lpthread $LIBS"
16393
16394 fi
16395
16396 else
16397 as_fn_error $? "pthreads not found on the system" "$LINENO" 5
16398 fi
16399
16400 # check alignments
16401 # The cast to long int works around a bug in the HP C Compiler,
16402 # see AC_CHECK_SIZEOF for more information.
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of _Bool" >&5
16404 $as_echo_n "checking alignment of _Bool... " >&6; }
16405 if ${ac_cv_alignof__Bool+:} false; then :
16406 $as_echo_n "(cached) " >&6
16407 else
16408 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof__Bool" "$ac_includes_default
16409 #ifndef offsetof
16410 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16411 #endif
16412 typedef struct { char x; _Bool y; } ac__type_alignof_;"; then :
16413
16414 else
16415 if test "$ac_cv_type__Bool" = yes; then
16416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16418 as_fn_error 77 "cannot compute alignment of _Bool
16419 See \`config.log' for more details" "$LINENO" 5; }
16420 else
16421 ac_cv_alignof__Bool=0
16422 fi
16423 fi
16424
16425 fi
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof__Bool" >&5
16427 $as_echo "$ac_cv_alignof__Bool" >&6; }
16428
16429
16430
16431 cat >>confdefs.h <<_ACEOF
16432 #define ALIGNOF__BOOL $ac_cv_alignof__Bool
16433 _ACEOF
16434
16435
16436 # The cast to long int works around a bug in the HP C Compiler,
16437 # see AC_CHECK_SIZEOF for more information.
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of char" >&5
16439 $as_echo_n "checking alignment of char... " >&6; }
16440 if ${ac_cv_alignof_char+:} false; then :
16441 $as_echo_n "(cached) " >&6
16442 else
16443 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_char" "$ac_includes_default
16444 #ifndef offsetof
16445 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16446 #endif
16447 typedef struct { char x; char y; } ac__type_alignof_;"; then :
16448
16449 else
16450 if test "$ac_cv_type_char" = yes; then
16451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16453 as_fn_error 77 "cannot compute alignment of char
16454 See \`config.log' for more details" "$LINENO" 5; }
16455 else
16456 ac_cv_alignof_char=0
16457 fi
16458 fi
16459
16460 fi
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_char" >&5
16462 $as_echo "$ac_cv_alignof_char" >&6; }
16463
16464
16465
16466 cat >>confdefs.h <<_ACEOF
16467 #define ALIGNOF_CHAR $ac_cv_alignof_char
16468 _ACEOF
16469
16470
16471 # The cast to long int works around a bug in the HP C Compiler,
16472 # see AC_CHECK_SIZEOF for more information.
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of signed char" >&5
16474 $as_echo_n "checking alignment of signed char... " >&6; }
16475 if ${ac_cv_alignof_signed_char+:} false; then :
16476 $as_echo_n "(cached) " >&6
16477 else
16478 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_signed_char" "$ac_includes_default
16479 #ifndef offsetof
16480 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16481 #endif
16482 typedef struct { char x; signed char y; } ac__type_alignof_;"; then :
16483
16484 else
16485 if test "$ac_cv_type_signed_char" = yes; then
16486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16488 as_fn_error 77 "cannot compute alignment of signed char
16489 See \`config.log' for more details" "$LINENO" 5; }
16490 else
16491 ac_cv_alignof_signed_char=0
16492 fi
16493 fi
16494
16495 fi
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_signed_char" >&5
16497 $as_echo "$ac_cv_alignof_signed_char" >&6; }
16498
16499
16500
16501 cat >>confdefs.h <<_ACEOF
16502 #define ALIGNOF_SIGNED_CHAR $ac_cv_alignof_signed_char
16503 _ACEOF
16504
16505
16506 # The cast to long int works around a bug in the HP C Compiler,
16507 # see AC_CHECK_SIZEOF for more information.
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of unsigned char" >&5
16509 $as_echo_n "checking alignment of unsigned char... " >&6; }
16510 if ${ac_cv_alignof_unsigned_char+:} false; then :
16511 $as_echo_n "(cached) " >&6
16512 else
16513 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_unsigned_char" "$ac_includes_default
16514 #ifndef offsetof
16515 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16516 #endif
16517 typedef struct { char x; unsigned char y; } ac__type_alignof_;"; then :
16518
16519 else
16520 if test "$ac_cv_type_unsigned_char" = yes; then
16521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16523 as_fn_error 77 "cannot compute alignment of unsigned char
16524 See \`config.log' for more details" "$LINENO" 5; }
16525 else
16526 ac_cv_alignof_unsigned_char=0
16527 fi
16528 fi
16529
16530 fi
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_unsigned_char" >&5
16532 $as_echo "$ac_cv_alignof_unsigned_char" >&6; }
16533
16534
16535
16536 cat >>confdefs.h <<_ACEOF
16537 #define ALIGNOF_UNSIGNED_CHAR $ac_cv_alignof_unsigned_char
16538 _ACEOF
16539
16540
16541 # The cast to long int works around a bug in the HP C Compiler,
16542 # see AC_CHECK_SIZEOF for more information.
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of wchar_t" >&5
16544 $as_echo_n "checking alignment of wchar_t... " >&6; }
16545 if ${ac_cv_alignof_wchar_t+:} false; then :
16546 $as_echo_n "(cached) " >&6
16547 else
16548 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_wchar_t" "$ac_includes_default
16549 #ifndef offsetof
16550 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16551 #endif
16552 typedef struct { char x; wchar_t y; } ac__type_alignof_;"; then :
16553
16554 else
16555 if test "$ac_cv_type_wchar_t" = yes; then
16556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16558 as_fn_error 77 "cannot compute alignment of wchar_t
16559 See \`config.log' for more details" "$LINENO" 5; }
16560 else
16561 ac_cv_alignof_wchar_t=0
16562 fi
16563 fi
16564
16565 fi
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_wchar_t" >&5
16567 $as_echo "$ac_cv_alignof_wchar_t" >&6; }
16568
16569
16570
16571 cat >>confdefs.h <<_ACEOF
16572 #define ALIGNOF_WCHAR_T $ac_cv_alignof_wchar_t
16573 _ACEOF
16574
16575
16576 # The cast to long int works around a bug in the HP C Compiler,
16577 # see AC_CHECK_SIZEOF for more information.
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int8_t" >&5
16579 $as_echo_n "checking alignment of int8_t... " >&6; }
16580 if ${ac_cv_alignof_int8_t+:} false; then :
16581 $as_echo_n "(cached) " >&6
16582 else
16583 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int8_t" "$ac_includes_default
16584 #ifndef offsetof
16585 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16586 #endif
16587 typedef struct { char x; int8_t y; } ac__type_alignof_;"; then :
16588
16589 else
16590 if test "$ac_cv_type_int8_t" = yes; then
16591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16593 as_fn_error 77 "cannot compute alignment of int8_t
16594 See \`config.log' for more details" "$LINENO" 5; }
16595 else
16596 ac_cv_alignof_int8_t=0
16597 fi
16598 fi
16599
16600 fi
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int8_t" >&5
16602 $as_echo "$ac_cv_alignof_int8_t" >&6; }
16603
16604
16605
16606 cat >>confdefs.h <<_ACEOF
16607 #define ALIGNOF_INT8_T $ac_cv_alignof_int8_t
16608 _ACEOF
16609
16610
16611 # The cast to long int works around a bug in the HP C Compiler,
16612 # see AC_CHECK_SIZEOF for more information.
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int16_t" >&5
16614 $as_echo_n "checking alignment of int16_t... " >&6; }
16615 if ${ac_cv_alignof_int16_t+:} false; then :
16616 $as_echo_n "(cached) " >&6
16617 else
16618 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int16_t" "$ac_includes_default
16619 #ifndef offsetof
16620 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16621 #endif
16622 typedef struct { char x; int16_t y; } ac__type_alignof_;"; then :
16623
16624 else
16625 if test "$ac_cv_type_int16_t" = yes; then
16626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16628 as_fn_error 77 "cannot compute alignment of int16_t
16629 See \`config.log' for more details" "$LINENO" 5; }
16630 else
16631 ac_cv_alignof_int16_t=0
16632 fi
16633 fi
16634
16635 fi
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int16_t" >&5
16637 $as_echo "$ac_cv_alignof_int16_t" >&6; }
16638
16639
16640
16641 cat >>confdefs.h <<_ACEOF
16642 #define ALIGNOF_INT16_T $ac_cv_alignof_int16_t
16643 _ACEOF
16644
16645
16646 # The cast to long int works around a bug in the HP C Compiler,
16647 # see AC_CHECK_SIZEOF for more information.
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int32_t" >&5
16649 $as_echo_n "checking alignment of int32_t... " >&6; }
16650 if ${ac_cv_alignof_int32_t+:} false; then :
16651 $as_echo_n "(cached) " >&6
16652 else
16653 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int32_t" "$ac_includes_default
16654 #ifndef offsetof
16655 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16656 #endif
16657 typedef struct { char x; int32_t y; } ac__type_alignof_;"; then :
16658
16659 else
16660 if test "$ac_cv_type_int32_t" = yes; then
16661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16663 as_fn_error 77 "cannot compute alignment of int32_t
16664 See \`config.log' for more details" "$LINENO" 5; }
16665 else
16666 ac_cv_alignof_int32_t=0
16667 fi
16668 fi
16669
16670 fi
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int32_t" >&5
16672 $as_echo "$ac_cv_alignof_int32_t" >&6; }
16673
16674
16675
16676 cat >>confdefs.h <<_ACEOF
16677 #define ALIGNOF_INT32_T $ac_cv_alignof_int32_t
16678 _ACEOF
16679
16680
16681 # The cast to long int works around a bug in the HP C Compiler,
16682 # see AC_CHECK_SIZEOF for more information.
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int64_t" >&5
16684 $as_echo_n "checking alignment of int64_t... " >&6; }
16685 if ${ac_cv_alignof_int64_t+:} false; then :
16686 $as_echo_n "(cached) " >&6
16687 else
16688 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int64_t" "$ac_includes_default
16689 #ifndef offsetof
16690 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16691 #endif
16692 typedef struct { char x; int64_t y; } ac__type_alignof_;"; then :
16693
16694 else
16695 if test "$ac_cv_type_int64_t" = yes; then
16696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16698 as_fn_error 77 "cannot compute alignment of int64_t
16699 See \`config.log' for more details" "$LINENO" 5; }
16700 else
16701 ac_cv_alignof_int64_t=0
16702 fi
16703 fi
16704
16705 fi
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int64_t" >&5
16707 $as_echo "$ac_cv_alignof_int64_t" >&6; }
16708
16709
16710
16711 cat >>confdefs.h <<_ACEOF
16712 #define ALIGNOF_INT64_T $ac_cv_alignof_int64_t
16713 _ACEOF
16714
16715
16716 # The cast to long int works around a bug in the HP C Compiler,
16717 # see AC_CHECK_SIZEOF for more information.
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint8_t" >&5
16719 $as_echo_n "checking alignment of uint8_t... " >&6; }
16720 if ${ac_cv_alignof_uint8_t+:} false; then :
16721 $as_echo_n "(cached) " >&6
16722 else
16723 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint8_t" "$ac_includes_default
16724 #ifndef offsetof
16725 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16726 #endif
16727 typedef struct { char x; uint8_t y; } ac__type_alignof_;"; then :
16728
16729 else
16730 if test "$ac_cv_type_uint8_t" = yes; then
16731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16733 as_fn_error 77 "cannot compute alignment of uint8_t
16734 See \`config.log' for more details" "$LINENO" 5; }
16735 else
16736 ac_cv_alignof_uint8_t=0
16737 fi
16738 fi
16739
16740 fi
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint8_t" >&5
16742 $as_echo "$ac_cv_alignof_uint8_t" >&6; }
16743
16744
16745
16746 cat >>confdefs.h <<_ACEOF
16747 #define ALIGNOF_UINT8_T $ac_cv_alignof_uint8_t
16748 _ACEOF
16749
16750
16751 # The cast to long int works around a bug in the HP C Compiler,
16752 # see AC_CHECK_SIZEOF for more information.
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint16_t" >&5
16754 $as_echo_n "checking alignment of uint16_t... " >&6; }
16755 if ${ac_cv_alignof_uint16_t+:} false; then :
16756 $as_echo_n "(cached) " >&6
16757 else
16758 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint16_t" "$ac_includes_default
16759 #ifndef offsetof
16760 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16761 #endif
16762 typedef struct { char x; uint16_t y; } ac__type_alignof_;"; then :
16763
16764 else
16765 if test "$ac_cv_type_uint16_t" = yes; then
16766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16768 as_fn_error 77 "cannot compute alignment of uint16_t
16769 See \`config.log' for more details" "$LINENO" 5; }
16770 else
16771 ac_cv_alignof_uint16_t=0
16772 fi
16773 fi
16774
16775 fi
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint16_t" >&5
16777 $as_echo "$ac_cv_alignof_uint16_t" >&6; }
16778
16779
16780
16781 cat >>confdefs.h <<_ACEOF
16782 #define ALIGNOF_UINT16_T $ac_cv_alignof_uint16_t
16783 _ACEOF
16784
16785
16786 # The cast to long int works around a bug in the HP C Compiler,
16787 # see AC_CHECK_SIZEOF for more information.
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint32_t" >&5
16789 $as_echo_n "checking alignment of uint32_t... " >&6; }
16790 if ${ac_cv_alignof_uint32_t+:} false; then :
16791 $as_echo_n "(cached) " >&6
16792 else
16793 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint32_t" "$ac_includes_default
16794 #ifndef offsetof
16795 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16796 #endif
16797 typedef struct { char x; uint32_t y; } ac__type_alignof_;"; then :
16798
16799 else
16800 if test "$ac_cv_type_uint32_t" = yes; then
16801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16803 as_fn_error 77 "cannot compute alignment of uint32_t
16804 See \`config.log' for more details" "$LINENO" 5; }
16805 else
16806 ac_cv_alignof_uint32_t=0
16807 fi
16808 fi
16809
16810 fi
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint32_t" >&5
16812 $as_echo "$ac_cv_alignof_uint32_t" >&6; }
16813
16814
16815
16816 cat >>confdefs.h <<_ACEOF
16817 #define ALIGNOF_UINT32_T $ac_cv_alignof_uint32_t
16818 _ACEOF
16819
16820
16821 # The cast to long int works around a bug in the HP C Compiler,
16822 # see AC_CHECK_SIZEOF for more information.
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint64_t" >&5
16824 $as_echo_n "checking alignment of uint64_t... " >&6; }
16825 if ${ac_cv_alignof_uint64_t+:} false; then :
16826 $as_echo_n "(cached) " >&6
16827 else
16828 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint64_t" "$ac_includes_default
16829 #ifndef offsetof
16830 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16831 #endif
16832 typedef struct { char x; uint64_t y; } ac__type_alignof_;"; then :
16833
16834 else
16835 if test "$ac_cv_type_uint64_t" = yes; then
16836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16838 as_fn_error 77 "cannot compute alignment of uint64_t
16839 See \`config.log' for more details" "$LINENO" 5; }
16840 else
16841 ac_cv_alignof_uint64_t=0
16842 fi
16843 fi
16844
16845 fi
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint64_t" >&5
16847 $as_echo "$ac_cv_alignof_uint64_t" >&6; }
16848
16849
16850
16851 cat >>confdefs.h <<_ACEOF
16852 #define ALIGNOF_UINT64_T $ac_cv_alignof_uint64_t
16853 _ACEOF
16854
16855
16856 # The cast to long int works around a bug in the HP C Compiler,
16857 # see AC_CHECK_SIZEOF for more information.
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
16859 $as_echo_n "checking alignment of int... " >&6; }
16860 if ${ac_cv_alignof_int+:} false; then :
16861 $as_echo_n "(cached) " >&6
16862 else
16863 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
16864 #ifndef offsetof
16865 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16866 #endif
16867 typedef struct { char x; int y; } ac__type_alignof_;"; then :
16868
16869 else
16870 if test "$ac_cv_type_int" = yes; then
16871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16873 as_fn_error 77 "cannot compute alignment of int
16874 See \`config.log' for more details" "$LINENO" 5; }
16875 else
16876 ac_cv_alignof_int=0
16877 fi
16878 fi
16879
16880 fi
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
16882 $as_echo "$ac_cv_alignof_int" >&6; }
16883
16884
16885
16886 cat >>confdefs.h <<_ACEOF
16887 #define ALIGNOF_INT $ac_cv_alignof_int
16888 _ACEOF
16889
16890
16891 # The cast to long int works around a bug in the HP C Compiler,
16892 # see AC_CHECK_SIZEOF for more information.
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of unsigned" >&5
16894 $as_echo_n "checking alignment of unsigned... " >&6; }
16895 if ${ac_cv_alignof_unsigned+:} false; then :
16896 $as_echo_n "(cached) " >&6
16897 else
16898 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_unsigned" "$ac_includes_default
16899 #ifndef offsetof
16900 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16901 #endif
16902 typedef struct { char x; unsigned y; } ac__type_alignof_;"; then :
16903
16904 else
16905 if test "$ac_cv_type_unsigned" = yes; then
16906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16908 as_fn_error 77 "cannot compute alignment of unsigned
16909 See \`config.log' for more details" "$LINENO" 5; }
16910 else
16911 ac_cv_alignof_unsigned=0
16912 fi
16913 fi
16914
16915 fi
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_unsigned" >&5
16917 $as_echo "$ac_cv_alignof_unsigned" >&6; }
16918
16919
16920
16921 cat >>confdefs.h <<_ACEOF
16922 #define ALIGNOF_UNSIGNED $ac_cv_alignof_unsigned
16923 _ACEOF
16924
16925
16926 # The cast to long int works around a bug in the HP C Compiler,
16927 # see AC_CHECK_SIZEOF for more information.
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
16929 $as_echo_n "checking alignment of short... " >&6; }
16930 if ${ac_cv_alignof_short+:} false; then :
16931 $as_echo_n "(cached) " >&6
16932 else
16933 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
16934 #ifndef offsetof
16935 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16936 #endif
16937 typedef struct { char x; short y; } ac__type_alignof_;"; then :
16938
16939 else
16940 if test "$ac_cv_type_short" = yes; then
16941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16943 as_fn_error 77 "cannot compute alignment of short
16944 See \`config.log' for more details" "$LINENO" 5; }
16945 else
16946 ac_cv_alignof_short=0
16947 fi
16948 fi
16949
16950 fi
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
16952 $as_echo "$ac_cv_alignof_short" >&6; }
16953
16954
16955
16956 cat >>confdefs.h <<_ACEOF
16957 #define ALIGNOF_SHORT $ac_cv_alignof_short
16958 _ACEOF
16959
16960
16961 # The cast to long int works around a bug in the HP C Compiler,
16962 # see AC_CHECK_SIZEOF for more information.
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of unsigned short" >&5
16964 $as_echo_n "checking alignment of unsigned short... " >&6; }
16965 if ${ac_cv_alignof_unsigned_short+:} false; then :
16966 $as_echo_n "(cached) " >&6
16967 else
16968 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_unsigned_short" "$ac_includes_default
16969 #ifndef offsetof
16970 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16971 #endif
16972 typedef struct { char x; unsigned short y; } ac__type_alignof_;"; then :
16973
16974 else
16975 if test "$ac_cv_type_unsigned_short" = yes; then
16976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16978 as_fn_error 77 "cannot compute alignment of unsigned short
16979 See \`config.log' for more details" "$LINENO" 5; }
16980 else
16981 ac_cv_alignof_unsigned_short=0
16982 fi
16983 fi
16984
16985 fi
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_unsigned_short" >&5
16987 $as_echo "$ac_cv_alignof_unsigned_short" >&6; }
16988
16989
16990
16991 cat >>confdefs.h <<_ACEOF
16992 #define ALIGNOF_UNSIGNED_SHORT $ac_cv_alignof_unsigned_short
16993 _ACEOF
16994
16995
16996 # The cast to long int works around a bug in the HP C Compiler,
16997 # see AC_CHECK_SIZEOF for more information.
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
16999 $as_echo_n "checking alignment of long... " >&6; }
17000 if ${ac_cv_alignof_long+:} false; then :
17001 $as_echo_n "(cached) " >&6
17002 else
17003 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
17004 #ifndef offsetof
17005 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17006 #endif
17007 typedef struct { char x; long y; } ac__type_alignof_;"; then :
17008
17009 else
17010 if test "$ac_cv_type_long" = yes; then
17011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17013 as_fn_error 77 "cannot compute alignment of long
17014 See \`config.log' for more details" "$LINENO" 5; }
17015 else
17016 ac_cv_alignof_long=0
17017 fi
17018 fi
17019
17020 fi
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
17022 $as_echo "$ac_cv_alignof_long" >&6; }
17023
17024
17025
17026 cat >>confdefs.h <<_ACEOF
17027 #define ALIGNOF_LONG $ac_cv_alignof_long
17028 _ACEOF
17029
17030
17031 # The cast to long int works around a bug in the HP C Compiler,
17032 # see AC_CHECK_SIZEOF for more information.
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of unsigned long" >&5
17034 $as_echo_n "checking alignment of unsigned long... " >&6; }
17035 if ${ac_cv_alignof_unsigned_long+:} false; then :
17036 $as_echo_n "(cached) " >&6
17037 else
17038 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_unsigned_long" "$ac_includes_default
17039 #ifndef offsetof
17040 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17041 #endif
17042 typedef struct { char x; unsigned long y; } ac__type_alignof_;"; then :
17043
17044 else
17045 if test "$ac_cv_type_unsigned_long" = yes; then
17046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17048 as_fn_error 77 "cannot compute alignment of unsigned long
17049 See \`config.log' for more details" "$LINENO" 5; }
17050 else
17051 ac_cv_alignof_unsigned_long=0
17052 fi
17053 fi
17054
17055 fi
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_unsigned_long" >&5
17057 $as_echo "$ac_cv_alignof_unsigned_long" >&6; }
17058
17059
17060
17061 cat >>confdefs.h <<_ACEOF
17062 #define ALIGNOF_UNSIGNED_LONG $ac_cv_alignof_unsigned_long
17063 _ACEOF
17064
17065
17066 # The cast to long int works around a bug in the HP C Compiler,
17067 # see AC_CHECK_SIZEOF for more information.
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long" >&5
17069 $as_echo_n "checking alignment of long long... " >&6; }
17070 if ${ac_cv_alignof_long_long+:} false; then :
17071 $as_echo_n "(cached) " >&6
17072 else
17073 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long" "$ac_includes_default
17074 #ifndef offsetof
17075 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17076 #endif
17077 typedef struct { char x; long long y; } ac__type_alignof_;"; then :
17078
17079 else
17080 if test "$ac_cv_type_long_long" = yes; then
17081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17083 as_fn_error 77 "cannot compute alignment of long long
17084 See \`config.log' for more details" "$LINENO" 5; }
17085 else
17086 ac_cv_alignof_long_long=0
17087 fi
17088 fi
17089
17090 fi
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long" >&5
17092 $as_echo "$ac_cv_alignof_long_long" >&6; }
17093
17094
17095
17096 cat >>confdefs.h <<_ACEOF
17097 #define ALIGNOF_LONG_LONG $ac_cv_alignof_long_long
17098 _ACEOF
17099
17100
17101 # The cast to long int works around a bug in the HP C Compiler,
17102 # see AC_CHECK_SIZEOF for more information.
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of unsigned long long" >&5
17104 $as_echo_n "checking alignment of unsigned long long... " >&6; }
17105 if ${ac_cv_alignof_unsigned_long_long+:} false; then :
17106 $as_echo_n "(cached) " >&6
17107 else
17108 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_unsigned_long_long" "$ac_includes_default
17109 #ifndef offsetof
17110 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17111 #endif
17112 typedef struct { char x; unsigned long long y; } ac__type_alignof_;"; then :
17113
17114 else
17115 if test "$ac_cv_type_unsigned_long_long" = yes; then
17116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17118 as_fn_error 77 "cannot compute alignment of unsigned long long
17119 See \`config.log' for more details" "$LINENO" 5; }
17120 else
17121 ac_cv_alignof_unsigned_long_long=0
17122 fi
17123 fi
17124
17125 fi
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_unsigned_long_long" >&5
17127 $as_echo "$ac_cv_alignof_unsigned_long_long" >&6; }
17128
17129
17130
17131 cat >>confdefs.h <<_ACEOF
17132 #define ALIGNOF_UNSIGNED_LONG_LONG $ac_cv_alignof_unsigned_long_long
17133 _ACEOF
17134
17135
17136 # The cast to long int works around a bug in the HP C Compiler,
17137 # see AC_CHECK_SIZEOF for more information.
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int_fast8_t" >&5
17139 $as_echo_n "checking alignment of int_fast8_t... " >&6; }
17140 if ${ac_cv_alignof_int_fast8_t+:} false; then :
17141 $as_echo_n "(cached) " >&6
17142 else
17143 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int_fast8_t" "$ac_includes_default
17144 #ifndef offsetof
17145 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17146 #endif
17147 typedef struct { char x; int_fast8_t y; } ac__type_alignof_;"; then :
17148
17149 else
17150 if test "$ac_cv_type_int_fast8_t" = yes; then
17151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17153 as_fn_error 77 "cannot compute alignment of int_fast8_t
17154 See \`config.log' for more details" "$LINENO" 5; }
17155 else
17156 ac_cv_alignof_int_fast8_t=0
17157 fi
17158 fi
17159
17160 fi
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int_fast8_t" >&5
17162 $as_echo "$ac_cv_alignof_int_fast8_t" >&6; }
17163
17164
17165
17166 cat >>confdefs.h <<_ACEOF
17167 #define ALIGNOF_INT_FAST8_T $ac_cv_alignof_int_fast8_t
17168 _ACEOF
17169
17170
17171 # The cast to long int works around a bug in the HP C Compiler,
17172 # see AC_CHECK_SIZEOF for more information.
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int_fast16_t" >&5
17174 $as_echo_n "checking alignment of int_fast16_t... " >&6; }
17175 if ${ac_cv_alignof_int_fast16_t+:} false; then :
17176 $as_echo_n "(cached) " >&6
17177 else
17178 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int_fast16_t" "$ac_includes_default
17179 #ifndef offsetof
17180 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17181 #endif
17182 typedef struct { char x; int_fast16_t y; } ac__type_alignof_;"; then :
17183
17184 else
17185 if test "$ac_cv_type_int_fast16_t" = yes; then
17186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17188 as_fn_error 77 "cannot compute alignment of int_fast16_t
17189 See \`config.log' for more details" "$LINENO" 5; }
17190 else
17191 ac_cv_alignof_int_fast16_t=0
17192 fi
17193 fi
17194
17195 fi
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int_fast16_t" >&5
17197 $as_echo "$ac_cv_alignof_int_fast16_t" >&6; }
17198
17199
17200
17201 cat >>confdefs.h <<_ACEOF
17202 #define ALIGNOF_INT_FAST16_T $ac_cv_alignof_int_fast16_t
17203 _ACEOF
17204
17205
17206 # The cast to long int works around a bug in the HP C Compiler,
17207 # see AC_CHECK_SIZEOF for more information.
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int_fast32_t" >&5
17209 $as_echo_n "checking alignment of int_fast32_t... " >&6; }
17210 if ${ac_cv_alignof_int_fast32_t+:} false; then :
17211 $as_echo_n "(cached) " >&6
17212 else
17213 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int_fast32_t" "$ac_includes_default
17214 #ifndef offsetof
17215 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17216 #endif
17217 typedef struct { char x; int_fast32_t y; } ac__type_alignof_;"; then :
17218
17219 else
17220 if test "$ac_cv_type_int_fast32_t" = yes; then
17221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17223 as_fn_error 77 "cannot compute alignment of int_fast32_t
17224 See \`config.log' for more details" "$LINENO" 5; }
17225 else
17226 ac_cv_alignof_int_fast32_t=0
17227 fi
17228 fi
17229
17230 fi
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int_fast32_t" >&5
17232 $as_echo "$ac_cv_alignof_int_fast32_t" >&6; }
17233
17234
17235
17236 cat >>confdefs.h <<_ACEOF
17237 #define ALIGNOF_INT_FAST32_T $ac_cv_alignof_int_fast32_t
17238 _ACEOF
17239
17240
17241 # The cast to long int works around a bug in the HP C Compiler,
17242 # see AC_CHECK_SIZEOF for more information.
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int_fast64_t" >&5
17244 $as_echo_n "checking alignment of int_fast64_t... " >&6; }
17245 if ${ac_cv_alignof_int_fast64_t+:} false; then :
17246 $as_echo_n "(cached) " >&6
17247 else
17248 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int_fast64_t" "$ac_includes_default
17249 #ifndef offsetof
17250 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17251 #endif
17252 typedef struct { char x; int_fast64_t y; } ac__type_alignof_;"; then :
17253
17254 else
17255 if test "$ac_cv_type_int_fast64_t" = yes; then
17256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17258 as_fn_error 77 "cannot compute alignment of int_fast64_t
17259 See \`config.log' for more details" "$LINENO" 5; }
17260 else
17261 ac_cv_alignof_int_fast64_t=0
17262 fi
17263 fi
17264
17265 fi
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int_fast64_t" >&5
17267 $as_echo "$ac_cv_alignof_int_fast64_t" >&6; }
17268
17269
17270
17271 cat >>confdefs.h <<_ACEOF
17272 #define ALIGNOF_INT_FAST64_T $ac_cv_alignof_int_fast64_t
17273 _ACEOF
17274
17275
17276 # The cast to long int works around a bug in the HP C Compiler,
17277 # see AC_CHECK_SIZEOF for more information.
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint_fast8_t" >&5
17279 $as_echo_n "checking alignment of uint_fast8_t... " >&6; }
17280 if ${ac_cv_alignof_uint_fast8_t+:} false; then :
17281 $as_echo_n "(cached) " >&6
17282 else
17283 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint_fast8_t" "$ac_includes_default
17284 #ifndef offsetof
17285 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17286 #endif
17287 typedef struct { char x; uint_fast8_t y; } ac__type_alignof_;"; then :
17288
17289 else
17290 if test "$ac_cv_type_uint_fast8_t" = yes; then
17291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17293 as_fn_error 77 "cannot compute alignment of uint_fast8_t
17294 See \`config.log' for more details" "$LINENO" 5; }
17295 else
17296 ac_cv_alignof_uint_fast8_t=0
17297 fi
17298 fi
17299
17300 fi
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint_fast8_t" >&5
17302 $as_echo "$ac_cv_alignof_uint_fast8_t" >&6; }
17303
17304
17305
17306 cat >>confdefs.h <<_ACEOF
17307 #define ALIGNOF_UINT_FAST8_T $ac_cv_alignof_uint_fast8_t
17308 _ACEOF
17309
17310
17311 # The cast to long int works around a bug in the HP C Compiler,
17312 # see AC_CHECK_SIZEOF for more information.
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint_fast16_t" >&5
17314 $as_echo_n "checking alignment of uint_fast16_t... " >&6; }
17315 if ${ac_cv_alignof_uint_fast16_t+:} false; then :
17316 $as_echo_n "(cached) " >&6
17317 else
17318 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint_fast16_t" "$ac_includes_default
17319 #ifndef offsetof
17320 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17321 #endif
17322 typedef struct { char x; uint_fast16_t y; } ac__type_alignof_;"; then :
17323
17324 else
17325 if test "$ac_cv_type_uint_fast16_t" = yes; then
17326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17328 as_fn_error 77 "cannot compute alignment of uint_fast16_t
17329 See \`config.log' for more details" "$LINENO" 5; }
17330 else
17331 ac_cv_alignof_uint_fast16_t=0
17332 fi
17333 fi
17334
17335 fi
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint_fast16_t" >&5
17337 $as_echo "$ac_cv_alignof_uint_fast16_t" >&6; }
17338
17339
17340
17341 cat >>confdefs.h <<_ACEOF
17342 #define ALIGNOF_UINT_FAST16_T $ac_cv_alignof_uint_fast16_t
17343 _ACEOF
17344
17345
17346 # The cast to long int works around a bug in the HP C Compiler,
17347 # see AC_CHECK_SIZEOF for more information.
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint_fast32_t" >&5
17349 $as_echo_n "checking alignment of uint_fast32_t... " >&6; }
17350 if ${ac_cv_alignof_uint_fast32_t+:} false; then :
17351 $as_echo_n "(cached) " >&6
17352 else
17353 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint_fast32_t" "$ac_includes_default
17354 #ifndef offsetof
17355 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17356 #endif
17357 typedef struct { char x; uint_fast32_t y; } ac__type_alignof_;"; then :
17358
17359 else
17360 if test "$ac_cv_type_uint_fast32_t" = yes; then
17361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17363 as_fn_error 77 "cannot compute alignment of uint_fast32_t
17364 See \`config.log' for more details" "$LINENO" 5; }
17365 else
17366 ac_cv_alignof_uint_fast32_t=0
17367 fi
17368 fi
17369
17370 fi
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint_fast32_t" >&5
17372 $as_echo "$ac_cv_alignof_uint_fast32_t" >&6; }
17373
17374
17375
17376 cat >>confdefs.h <<_ACEOF
17377 #define ALIGNOF_UINT_FAST32_T $ac_cv_alignof_uint_fast32_t
17378 _ACEOF
17379
17380
17381 # The cast to long int works around a bug in the HP C Compiler,
17382 # see AC_CHECK_SIZEOF for more information.
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint_fast64_t" >&5
17384 $as_echo_n "checking alignment of uint_fast64_t... " >&6; }
17385 if ${ac_cv_alignof_uint_fast64_t+:} false; then :
17386 $as_echo_n "(cached) " >&6
17387 else
17388 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint_fast64_t" "$ac_includes_default
17389 #ifndef offsetof
17390 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17391 #endif
17392 typedef struct { char x; uint_fast64_t y; } ac__type_alignof_;"; then :
17393
17394 else
17395 if test "$ac_cv_type_uint_fast64_t" = yes; then
17396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17398 as_fn_error 77 "cannot compute alignment of uint_fast64_t
17399 See \`config.log' for more details" "$LINENO" 5; }
17400 else
17401 ac_cv_alignof_uint_fast64_t=0
17402 fi
17403 fi
17404
17405 fi
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint_fast64_t" >&5
17407 $as_echo "$ac_cv_alignof_uint_fast64_t" >&6; }
17408
17409
17410
17411 cat >>confdefs.h <<_ACEOF
17412 #define ALIGNOF_UINT_FAST64_T $ac_cv_alignof_uint_fast64_t
17413 _ACEOF
17414
17415
17416 # The cast to long int works around a bug in the HP C Compiler,
17417 # see AC_CHECK_SIZEOF for more information.
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int_least8_t" >&5
17419 $as_echo_n "checking alignment of int_least8_t... " >&6; }
17420 if ${ac_cv_alignof_int_least8_t+:} false; then :
17421 $as_echo_n "(cached) " >&6
17422 else
17423 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int_least8_t" "$ac_includes_default
17424 #ifndef offsetof
17425 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17426 #endif
17427 typedef struct { char x; int_least8_t y; } ac__type_alignof_;"; then :
17428
17429 else
17430 if test "$ac_cv_type_int_least8_t" = yes; then
17431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17433 as_fn_error 77 "cannot compute alignment of int_least8_t
17434 See \`config.log' for more details" "$LINENO" 5; }
17435 else
17436 ac_cv_alignof_int_least8_t=0
17437 fi
17438 fi
17439
17440 fi
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int_least8_t" >&5
17442 $as_echo "$ac_cv_alignof_int_least8_t" >&6; }
17443
17444
17445
17446 cat >>confdefs.h <<_ACEOF
17447 #define ALIGNOF_INT_LEAST8_T $ac_cv_alignof_int_least8_t
17448 _ACEOF
17449
17450
17451 # The cast to long int works around a bug in the HP C Compiler,
17452 # see AC_CHECK_SIZEOF for more information.
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int_least16_t" >&5
17454 $as_echo_n "checking alignment of int_least16_t... " >&6; }
17455 if ${ac_cv_alignof_int_least16_t+:} false; then :
17456 $as_echo_n "(cached) " >&6
17457 else
17458 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int_least16_t" "$ac_includes_default
17459 #ifndef offsetof
17460 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17461 #endif
17462 typedef struct { char x; int_least16_t y; } ac__type_alignof_;"; then :
17463
17464 else
17465 if test "$ac_cv_type_int_least16_t" = yes; then
17466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17468 as_fn_error 77 "cannot compute alignment of int_least16_t
17469 See \`config.log' for more details" "$LINENO" 5; }
17470 else
17471 ac_cv_alignof_int_least16_t=0
17472 fi
17473 fi
17474
17475 fi
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int_least16_t" >&5
17477 $as_echo "$ac_cv_alignof_int_least16_t" >&6; }
17478
17479
17480
17481 cat >>confdefs.h <<_ACEOF
17482 #define ALIGNOF_INT_LEAST16_T $ac_cv_alignof_int_least16_t
17483 _ACEOF
17484
17485
17486 # The cast to long int works around a bug in the HP C Compiler,
17487 # see AC_CHECK_SIZEOF for more information.
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int_least32_t" >&5
17489 $as_echo_n "checking alignment of int_least32_t... " >&6; }
17490 if ${ac_cv_alignof_int_least32_t+:} false; then :
17491 $as_echo_n "(cached) " >&6
17492 else
17493 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int_least32_t" "$ac_includes_default
17494 #ifndef offsetof
17495 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17496 #endif
17497 typedef struct { char x; int_least32_t y; } ac__type_alignof_;"; then :
17498
17499 else
17500 if test "$ac_cv_type_int_least32_t" = yes; then
17501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17503 as_fn_error 77 "cannot compute alignment of int_least32_t
17504 See \`config.log' for more details" "$LINENO" 5; }
17505 else
17506 ac_cv_alignof_int_least32_t=0
17507 fi
17508 fi
17509
17510 fi
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int_least32_t" >&5
17512 $as_echo "$ac_cv_alignof_int_least32_t" >&6; }
17513
17514
17515
17516 cat >>confdefs.h <<_ACEOF
17517 #define ALIGNOF_INT_LEAST32_T $ac_cv_alignof_int_least32_t
17518 _ACEOF
17519
17520
17521 # The cast to long int works around a bug in the HP C Compiler,
17522 # see AC_CHECK_SIZEOF for more information.
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int_least64_t" >&5
17524 $as_echo_n "checking alignment of int_least64_t... " >&6; }
17525 if ${ac_cv_alignof_int_least64_t+:} false; then :
17526 $as_echo_n "(cached) " >&6
17527 else
17528 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int_least64_t" "$ac_includes_default
17529 #ifndef offsetof
17530 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17531 #endif
17532 typedef struct { char x; int_least64_t y; } ac__type_alignof_;"; then :
17533
17534 else
17535 if test "$ac_cv_type_int_least64_t" = yes; then
17536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17538 as_fn_error 77 "cannot compute alignment of int_least64_t
17539 See \`config.log' for more details" "$LINENO" 5; }
17540 else
17541 ac_cv_alignof_int_least64_t=0
17542 fi
17543 fi
17544
17545 fi
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int_least64_t" >&5
17547 $as_echo "$ac_cv_alignof_int_least64_t" >&6; }
17548
17549
17550
17551 cat >>confdefs.h <<_ACEOF
17552 #define ALIGNOF_INT_LEAST64_T $ac_cv_alignof_int_least64_t
17553 _ACEOF
17554
17555
17556 # The cast to long int works around a bug in the HP C Compiler,
17557 # see AC_CHECK_SIZEOF for more information.
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint_least8_t" >&5
17559 $as_echo_n "checking alignment of uint_least8_t... " >&6; }
17560 if ${ac_cv_alignof_uint_least8_t+:} false; then :
17561 $as_echo_n "(cached) " >&6
17562 else
17563 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint_least8_t" "$ac_includes_default
17564 #ifndef offsetof
17565 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17566 #endif
17567 typedef struct { char x; uint_least8_t y; } ac__type_alignof_;"; then :
17568
17569 else
17570 if test "$ac_cv_type_uint_least8_t" = yes; then
17571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17573 as_fn_error 77 "cannot compute alignment of uint_least8_t
17574 See \`config.log' for more details" "$LINENO" 5; }
17575 else
17576 ac_cv_alignof_uint_least8_t=0
17577 fi
17578 fi
17579
17580 fi
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint_least8_t" >&5
17582 $as_echo "$ac_cv_alignof_uint_least8_t" >&6; }
17583
17584
17585
17586 cat >>confdefs.h <<_ACEOF
17587 #define ALIGNOF_UINT_LEAST8_T $ac_cv_alignof_uint_least8_t
17588 _ACEOF
17589
17590
17591 # The cast to long int works around a bug in the HP C Compiler,
17592 # see AC_CHECK_SIZEOF for more information.
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint_least16_t" >&5
17594 $as_echo_n "checking alignment of uint_least16_t... " >&6; }
17595 if ${ac_cv_alignof_uint_least16_t+:} false; then :
17596 $as_echo_n "(cached) " >&6
17597 else
17598 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint_least16_t" "$ac_includes_default
17599 #ifndef offsetof
17600 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17601 #endif
17602 typedef struct { char x; uint_least16_t y; } ac__type_alignof_;"; then :
17603
17604 else
17605 if test "$ac_cv_type_uint_least16_t" = yes; then
17606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17608 as_fn_error 77 "cannot compute alignment of uint_least16_t
17609 See \`config.log' for more details" "$LINENO" 5; }
17610 else
17611 ac_cv_alignof_uint_least16_t=0
17612 fi
17613 fi
17614
17615 fi
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint_least16_t" >&5
17617 $as_echo "$ac_cv_alignof_uint_least16_t" >&6; }
17618
17619
17620
17621 cat >>confdefs.h <<_ACEOF
17622 #define ALIGNOF_UINT_LEAST16_T $ac_cv_alignof_uint_least16_t
17623 _ACEOF
17624
17625
17626 # The cast to long int works around a bug in the HP C Compiler,
17627 # see AC_CHECK_SIZEOF for more information.
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint_least32_t" >&5
17629 $as_echo_n "checking alignment of uint_least32_t... " >&6; }
17630 if ${ac_cv_alignof_uint_least32_t+:} false; then :
17631 $as_echo_n "(cached) " >&6
17632 else
17633 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint_least32_t" "$ac_includes_default
17634 #ifndef offsetof
17635 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17636 #endif
17637 typedef struct { char x; uint_least32_t y; } ac__type_alignof_;"; then :
17638
17639 else
17640 if test "$ac_cv_type_uint_least32_t" = yes; then
17641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17643 as_fn_error 77 "cannot compute alignment of uint_least32_t
17644 See \`config.log' for more details" "$LINENO" 5; }
17645 else
17646 ac_cv_alignof_uint_least32_t=0
17647 fi
17648 fi
17649
17650 fi
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint_least32_t" >&5
17652 $as_echo "$ac_cv_alignof_uint_least32_t" >&6; }
17653
17654
17655
17656 cat >>confdefs.h <<_ACEOF
17657 #define ALIGNOF_UINT_LEAST32_T $ac_cv_alignof_uint_least32_t
17658 _ACEOF
17659
17660
17661 # The cast to long int works around a bug in the HP C Compiler,
17662 # see AC_CHECK_SIZEOF for more information.
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint_least64_t" >&5
17664 $as_echo_n "checking alignment of uint_least64_t... " >&6; }
17665 if ${ac_cv_alignof_uint_least64_t+:} false; then :
17666 $as_echo_n "(cached) " >&6
17667 else
17668 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint_least64_t" "$ac_includes_default
17669 #ifndef offsetof
17670 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17671 #endif
17672 typedef struct { char x; uint_least64_t y; } ac__type_alignof_;"; then :
17673
17674 else
17675 if test "$ac_cv_type_uint_least64_t" = yes; then
17676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17678 as_fn_error 77 "cannot compute alignment of uint_least64_t
17679 See \`config.log' for more details" "$LINENO" 5; }
17680 else
17681 ac_cv_alignof_uint_least64_t=0
17682 fi
17683 fi
17684
17685 fi
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint_least64_t" >&5
17687 $as_echo "$ac_cv_alignof_uint_least64_t" >&6; }
17688
17689
17690
17691 cat >>confdefs.h <<_ACEOF
17692 #define ALIGNOF_UINT_LEAST64_T $ac_cv_alignof_uint_least64_t
17693 _ACEOF
17694
17695
17696 # The cast to long int works around a bug in the HP C Compiler,
17697 # see AC_CHECK_SIZEOF for more information.
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of byte" >&5
17699 $as_echo_n "checking alignment of byte... " >&6; }
17700 if ${ac_cv_alignof_byte+:} false; then :
17701 $as_echo_n "(cached) " >&6
17702 else
17703 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_byte" "$ac_includes_default
17704 #ifndef offsetof
17705 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17706 #endif
17707 typedef struct { char x; byte y; } ac__type_alignof_;"; then :
17708
17709 else
17710 if test "$ac_cv_type_byte" = yes; then
17711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17713 as_fn_error 77 "cannot compute alignment of byte
17714 See \`config.log' for more details" "$LINENO" 5; }
17715 else
17716 ac_cv_alignof_byte=0
17717 fi
17718 fi
17719
17720 fi
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_byte" >&5
17722 $as_echo "$ac_cv_alignof_byte" >&6; }
17723
17724
17725
17726 cat >>confdefs.h <<_ACEOF
17727 #define ALIGNOF_BYTE $ac_cv_alignof_byte
17728 _ACEOF
17729
17730
17731 # The cast to long int works around a bug in the HP C Compiler,
17732 # see AC_CHECK_SIZEOF for more information.
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of intmax_t" >&5
17734 $as_echo_n "checking alignment of intmax_t... " >&6; }
17735 if ${ac_cv_alignof_intmax_t+:} false; then :
17736 $as_echo_n "(cached) " >&6
17737 else
17738 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_intmax_t" "$ac_includes_default
17739 #ifndef offsetof
17740 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17741 #endif
17742 typedef struct { char x; intmax_t y; } ac__type_alignof_;"; then :
17743
17744 else
17745 if test "$ac_cv_type_intmax_t" = yes; then
17746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17748 as_fn_error 77 "cannot compute alignment of intmax_t
17749 See \`config.log' for more details" "$LINENO" 5; }
17750 else
17751 ac_cv_alignof_intmax_t=0
17752 fi
17753 fi
17754
17755 fi
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_intmax_t" >&5
17757 $as_echo "$ac_cv_alignof_intmax_t" >&6; }
17758
17759
17760
17761 cat >>confdefs.h <<_ACEOF
17762 #define ALIGNOF_INTMAX_T $ac_cv_alignof_intmax_t
17763 _ACEOF
17764
17765
17766 # The cast to long int works around a bug in the HP C Compiler,
17767 # see AC_CHECK_SIZEOF for more information.
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uintmax_t" >&5
17769 $as_echo_n "checking alignment of uintmax_t... " >&6; }
17770 if ${ac_cv_alignof_uintmax_t+:} false; then :
17771 $as_echo_n "(cached) " >&6
17772 else
17773 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uintmax_t" "$ac_includes_default
17774 #ifndef offsetof
17775 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17776 #endif
17777 typedef struct { char x; uintmax_t y; } ac__type_alignof_;"; then :
17778
17779 else
17780 if test "$ac_cv_type_uintmax_t" = yes; then
17781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17783 as_fn_error 77 "cannot compute alignment of uintmax_t
17784 See \`config.log' for more details" "$LINENO" 5; }
17785 else
17786 ac_cv_alignof_uintmax_t=0
17787 fi
17788 fi
17789
17790 fi
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uintmax_t" >&5
17792 $as_echo "$ac_cv_alignof_uintmax_t" >&6; }
17793
17794
17795
17796 cat >>confdefs.h <<_ACEOF
17797 #define ALIGNOF_UINTMAX_T $ac_cv_alignof_uintmax_t
17798 _ACEOF
17799
17800
17801 # The cast to long int works around a bug in the HP C Compiler,
17802 # see AC_CHECK_SIZEOF for more information.
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5
17804 $as_echo_n "checking alignment of size_t... " >&6; }
17805 if ${ac_cv_alignof_size_t+:} false; then :
17806 $as_echo_n "(cached) " >&6
17807 else
17808 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_size_t" "$ac_includes_default
17809 #ifndef offsetof
17810 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17811 #endif
17812 typedef struct { char x; size_t y; } ac__type_alignof_;"; then :
17813
17814 else
17815 if test "$ac_cv_type_size_t" = yes; then
17816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17818 as_fn_error 77 "cannot compute alignment of size_t
17819 See \`config.log' for more details" "$LINENO" 5; }
17820 else
17821 ac_cv_alignof_size_t=0
17822 fi
17823 fi
17824
17825 fi
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_size_t" >&5
17827 $as_echo "$ac_cv_alignof_size_t" >&6; }
17828
17829
17830
17831 cat >>confdefs.h <<_ACEOF
17832 #define ALIGNOF_SIZE_T $ac_cv_alignof_size_t
17833 _ACEOF
17834
17835
17836 # The cast to long int works around a bug in the HP C Compiler,
17837 # see AC_CHECK_SIZEOF for more information.
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of intptr_t" >&5
17839 $as_echo_n "checking alignment of intptr_t... " >&6; }
17840 if ${ac_cv_alignof_intptr_t+:} false; then :
17841 $as_echo_n "(cached) " >&6
17842 else
17843 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_intptr_t" "$ac_includes_default
17844 #ifndef offsetof
17845 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17846 #endif
17847 typedef struct { char x; intptr_t y; } ac__type_alignof_;"; then :
17848
17849 else
17850 if test "$ac_cv_type_intptr_t" = yes; then
17851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17853 as_fn_error 77 "cannot compute alignment of intptr_t
17854 See \`config.log' for more details" "$LINENO" 5; }
17855 else
17856 ac_cv_alignof_intptr_t=0
17857 fi
17858 fi
17859
17860 fi
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_intptr_t" >&5
17862 $as_echo "$ac_cv_alignof_intptr_t" >&6; }
17863
17864
17865
17866 cat >>confdefs.h <<_ACEOF
17867 #define ALIGNOF_INTPTR_T $ac_cv_alignof_intptr_t
17868 _ACEOF
17869
17870
17871 # The cast to long int works around a bug in the HP C Compiler,
17872 # see AC_CHECK_SIZEOF for more information.
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uintptr_t" >&5
17874 $as_echo_n "checking alignment of uintptr_t... " >&6; }
17875 if ${ac_cv_alignof_uintptr_t+:} false; then :
17876 $as_echo_n "(cached) " >&6
17877 else
17878 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uintptr_t" "$ac_includes_default
17879 #ifndef offsetof
17880 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17881 #endif
17882 typedef struct { char x; uintptr_t y; } ac__type_alignof_;"; then :
17883
17884 else
17885 if test "$ac_cv_type_uintptr_t" = yes; then
17886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17888 as_fn_error 77 "cannot compute alignment of uintptr_t
17889 See \`config.log' for more details" "$LINENO" 5; }
17890 else
17891 ac_cv_alignof_uintptr_t=0
17892 fi
17893 fi
17894
17895 fi
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uintptr_t" >&5
17897 $as_echo "$ac_cv_alignof_uintptr_t" >&6; }
17898
17899
17900
17901 cat >>confdefs.h <<_ACEOF
17902 #define ALIGNOF_UINTPTR_T $ac_cv_alignof_uintptr_t
17903 _ACEOF
17904
17905
17906 # The cast to long int works around a bug in the HP C Compiler,
17907 # see AC_CHECK_SIZEOF for more information.
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of ptrdiff_t" >&5
17909 $as_echo_n "checking alignment of ptrdiff_t... " >&6; }
17910 if ${ac_cv_alignof_ptrdiff_t+:} false; then :
17911 $as_echo_n "(cached) " >&6
17912 else
17913 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_ptrdiff_t" "$ac_includes_default
17914 #ifndef offsetof
17915 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17916 #endif
17917 typedef struct { char x; ptrdiff_t y; } ac__type_alignof_;"; then :
17918
17919 else
17920 if test "$ac_cv_type_ptrdiff_t" = yes; then
17921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17923 as_fn_error 77 "cannot compute alignment of ptrdiff_t
17924 See \`config.log' for more details" "$LINENO" 5; }
17925 else
17926 ac_cv_alignof_ptrdiff_t=0
17927 fi
17928 fi
17929
17930 fi
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_ptrdiff_t" >&5
17932 $as_echo "$ac_cv_alignof_ptrdiff_t" >&6; }
17933
17934
17935
17936 cat >>confdefs.h <<_ACEOF
17937 #define ALIGNOF_PTRDIFF_T $ac_cv_alignof_ptrdiff_t
17938 _ACEOF
17939
17940
17941 # The cast to long int works around a bug in the HP C Compiler,
17942 # see AC_CHECK_SIZEOF for more information.
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of float" >&5
17944 $as_echo_n "checking alignment of float... " >&6; }
17945 if ${ac_cv_alignof_float+:} false; then :
17946 $as_echo_n "(cached) " >&6
17947 else
17948 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_float" "$ac_includes_default
17949 #ifndef offsetof
17950 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17951 #endif
17952 typedef struct { char x; float y; } ac__type_alignof_;"; then :
17953
17954 else
17955 if test "$ac_cv_type_float" = yes; then
17956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17958 as_fn_error 77 "cannot compute alignment of float
17959 See \`config.log' for more details" "$LINENO" 5; }
17960 else
17961 ac_cv_alignof_float=0
17962 fi
17963 fi
17964
17965 fi
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_float" >&5
17967 $as_echo "$ac_cv_alignof_float" >&6; }
17968
17969
17970
17971 cat >>confdefs.h <<_ACEOF
17972 #define ALIGNOF_FLOAT $ac_cv_alignof_float
17973 _ACEOF
17974
17975
17976 # The cast to long int works around a bug in the HP C Compiler,
17977 # see AC_CHECK_SIZEOF for more information.
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
17979 $as_echo_n "checking alignment of double... " >&6; }
17980 if ${ac_cv_alignof_double+:} false; then :
17981 $as_echo_n "(cached) " >&6
17982 else
17983 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
17984 #ifndef offsetof
17985 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17986 #endif
17987 typedef struct { char x; double y; } ac__type_alignof_;"; then :
17988
17989 else
17990 if test "$ac_cv_type_double" = yes; then
17991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17993 as_fn_error 77 "cannot compute alignment of double
17994 See \`config.log' for more details" "$LINENO" 5; }
17995 else
17996 ac_cv_alignof_double=0
17997 fi
17998 fi
17999
18000 fi
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
18002 $as_echo "$ac_cv_alignof_double" >&6; }
18003
18004
18005
18006 cat >>confdefs.h <<_ACEOF
18007 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
18008 _ACEOF
18009
18010
18011 # The cast to long int works around a bug in the HP C Compiler,
18012 # see AC_CHECK_SIZEOF for more information.
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long double" >&5
18014 $as_echo_n "checking alignment of long double... " >&6; }
18015 if ${ac_cv_alignof_long_double+:} false; then :
18016 $as_echo_n "(cached) " >&6
18017 else
18018 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_double" "$ac_includes_default
18019 #ifndef offsetof
18020 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18021 #endif
18022 typedef struct { char x; long double y; } ac__type_alignof_;"; then :
18023
18024 else
18025 if test "$ac_cv_type_long_double" = yes; then
18026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18028 as_fn_error 77 "cannot compute alignment of long double
18029 See \`config.log' for more details" "$LINENO" 5; }
18030 else
18031 ac_cv_alignof_long_double=0
18032 fi
18033 fi
18034
18035 fi
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_double" >&5
18037 $as_echo "$ac_cv_alignof_long_double" >&6; }
18038
18039
18040
18041 cat >>confdefs.h <<_ACEOF
18042 #define ALIGNOF_LONG_DOUBLE $ac_cv_alignof_long_double
18043 _ACEOF
18044
18045
18046
18047 # backend devices
18048 supported_backends="seq"
18049 ##
18050 ## Copyright (C) by Argonne National Laboratory
18051 ## See COPYRIGHT in top-level directory
18052 ##
18053
18054
18055 ##########################################################################
18056 ##### capture user arguments
18057 ##########################################################################
18058
18059 # --with-cuda-sm
18060
18061 # Check whether --with-cuda-sm was given.
18062 if test "${with_cuda_sm+set}" = set; then :
18063 withval=$with_cuda_sm;
18064 else
18065 with_cuda_sm=auto
18066 fi
18067
18068
18069
18070 # --with-cuda
18071
18072
18073
18074 # Check whether --with-cuda was given.
18075 if test "${with_cuda+set}" = set; then :
18076 withval=$with_cuda;
18077 fi
18078
18079
18080 # Check whether --with-cuda-include was given.
18081 if test "${with_cuda_include+set}" = set; then :
18082 withval=$with_cuda_include; case "$withval" in #(
18083 yes|no|'') :
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-cuda-include=PATH expects a valid PATH" >&5
18085 $as_echo "$as_me: WARNING: --without-cuda-include=PATH expects a valid PATH" >&2;}
18086 with_cuda_include="" ;; #(
18087 *) :
18088 ;;
18089 esac
18090 fi
18091
18092
18093 # Check whether --with-cuda-lib was given.
18094 if test "${with_cuda_lib+set}" = set; then :
18095 withval=$with_cuda_lib; case "$withval" in #(
18096 yes|no|'') :
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-cuda-lib=PATH expects a valid PATH" >&5
18098 $as_echo "$as_me: WARNING: --without-cuda-lib=PATH expects a valid PATH" >&2;}
18099 with_cuda_lib="" ;; #(
18100 *) :
18101 ;;
18102 esac
18103 fi
18104
18105
18106 # The args have been sanitized into empty/non-empty values above.
18107 # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
18108 # taking priority
18109
18110 if test "x$with_cuda" != "xno" ; then
18111 if test -n "${with_cuda_include}"; then :
18112
18113
18114 if echo "$CPPFLAGS" | $FGREP -e '-I${with_cuda_include}' >/dev/null 2>&1; then :
18115 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_cuda_include}', not appending" >&5
18116 else
18117 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_cuda_include}', appending" >&5
18118 CPPFLAGS="$CPPFLAGS -I${with_cuda_include}"
18119
18120 fi
18121
18122 else
18123 if test -n "${with_cuda}" -a "${with_cuda}" != "yes"; then :
18124
18125
18126 if echo "$CPPFLAGS" | $FGREP -e '-I${with_cuda}/include' >/dev/null 2>&1; then :
18127 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_cuda}/include', not appending" >&5
18128 else
18129 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_cuda}/include', appending" >&5
18130 CPPFLAGS="$CPPFLAGS -I${with_cuda}/include"
18131
18132 fi
18133
18134 fi
18135 fi
18136
18137 if test -n "${with_cuda_lib}"; then :
18138
18139
18140 if echo "$LDFLAGS" | $FGREP -e '-L${with_cuda_lib}' >/dev/null 2>&1; then :
18141 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_cuda_lib}', not appending" >&5
18142 else
18143 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_cuda_lib}', appending" >&5
18144 LDFLAGS="$LDFLAGS -L${with_cuda_lib}"
18145
18146 fi
18147
18148 else
18149 if test -n "${with_cuda}" -a "${with_cuda}" != "yes"; then :
18150
18151
18152 if echo "$LDFLAGS" | $FGREP -e '-L${with_cuda}/lib64' >/dev/null 2>&1; then :
18153 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_cuda}/lib64', not appending" >&5
18154 else
18155 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_cuda}/lib64', appending" >&5
18156 LDFLAGS="$LDFLAGS -L${with_cuda}/lib64"
18157
18158 fi
18159
18160
18161
18162 if echo "$LDFLAGS" | $FGREP -e '-L${with_cuda}/lib' >/dev/null 2>&1; then :
18163 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_cuda}/lib', not appending" >&5
18164 else
18165 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_cuda}/lib', appending" >&5
18166 LDFLAGS="$LDFLAGS -L${with_cuda}/lib"
18167
18168 fi
18169
18170 fi
18171 fi
18172
18173 fi
18174
18175 if test "$with_cuda" != "no" ; then
18176
18177 failure=no
18178 ac_fn_c_check_header_mongrel "$LINENO" "cuda_runtime_api.h" "ac_cv_header_cuda_runtime_api_h" "$ac_includes_default"
18179 if test "x$ac_cv_header_cuda_runtime_api_h" = xyes; then :
18180
18181 else
18182 failure=yes
18183 fi
18184
18185
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaStreamSynchronize in -lcudart" >&5
18187 $as_echo_n "checking for cudaStreamSynchronize in -lcudart... " >&6; }
18188 if ${ac_cv_lib_cudart_cudaStreamSynchronize+:} false; then :
18189 $as_echo_n "(cached) " >&6
18190 else
18191 ac_check_lib_save_LIBS=$LIBS
18192 LIBS="-lcudart $LIBS"
18193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h. */
18195
18196 /* Override any GCC internal prototype to avoid an error.
18197 Use char because int might match the return type of a GCC
18198 builtin and then its argument prototype would still apply. */
18199 #ifdef __cplusplus
18200 extern "C"
18201 #endif
18202 char cudaStreamSynchronize ();
18203 int
18204 main ()
18205 {
18206 return cudaStreamSynchronize ();
18207 ;
18208 return 0;
18209 }
18210 _ACEOF
18211 if ac_fn_c_try_link "$LINENO"; then :
18212 ac_cv_lib_cudart_cudaStreamSynchronize=yes
18213 else
18214 ac_cv_lib_cudart_cudaStreamSynchronize=no
18215 fi
18216 rm -f core conftest.err conftest.$ac_objext \
18217 conftest$ac_exeext conftest.$ac_ext
18218 LIBS=$ac_check_lib_save_LIBS
18219 fi
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaStreamSynchronize" >&5
18221 $as_echo "$ac_cv_lib_cudart_cudaStreamSynchronize" >&6; }
18222 if test "x$ac_cv_lib_cudart_cudaStreamSynchronize" = xyes; then :
18223 cat >>confdefs.h <<_ACEOF
18224 #define HAVE_LIBCUDART 1
18225 _ACEOF
18226
18227 LIBS="-lcudart $LIBS"
18228
18229 else
18230 failure=yes
18231 fi
18232
18233 if test "$failure" = "no" ; then
18234 have_cuda=yes
18235 else
18236 have_cuda=no
18237 fi
18238
18239 if test "${have_cuda}" = "yes" ; then
18240 # check if NVCC has been set by the user
18241 if test -z "$NVCC" ; then
18242 if test -n "$ac_save_CC" ; then
18243 NVCC_FLAGS="$NVCC_FLAGS -ccbin $ac_save_CC"
18244 # - pgcc/nvc doesn't work, use pgc++/nvc++ instead
18245 # - Extra options such as `gcc -std=gnu99` doesn't work, strip the option
18246 NVCC_FLAGS=$(echo $NVCC_FLAGS | sed -e 's/nvc/nvc++/g' -e 's/pgcc/pgc++/g' -e's/ -std=.*//g')
18247 fi
18248
18249 # try nvcc from PATH if 'with-cuda' does not contain a valid path
18250 if test -d ${with_cuda} ; then
18251 nvcc_bin=${with_cuda}/bin/nvcc
18252 else
18253 nvcc_bin=nvcc
18254 fi
18255
18256 # append the flags to be passed to nvcc
18257 NVCC="$nvcc_bin $NVCC_FLAGS"
18258 else
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using user-provided nvcc: '${NVCC}'" >&5
18260 $as_echo "$as_me: WARNING: Using user-provided nvcc: '${NVCC}'" >&2;}
18261 fi
18262
18263
18264
18265 # save language settings, customize ac_ext and ac_compile to support CUDA
18266 ac_ext=c
18267 ac_cpp='$CPP $CPPFLAGS'
18268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18271
18272 ac_ext=cu
18273 ac_compile="$NVCC -c conftest.$ac_ext >&5"
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nvcc works" >&5
18275 $as_echo_n "checking whether nvcc works... " >&6; }
18276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18277 /* end confdefs.h. */
18278 __global__ void foo(int x) {}
18279 int
18280 main ()
18281 {
18282
18283 ;
18284 return 0;
18285 }
18286 _ACEOF
18287 if ac_fn_c_try_compile "$LINENO"; then :
18288
18289
18290 $as_echo "#define HAVE_CUDA 1" >>confdefs.h
18291
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18293 $as_echo "yes" >&6; }
18294
18295 else
18296
18297 have_cuda=no
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18299 $as_echo "no" >&6; }
18300
18301 fi
18302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18303
18304 # done with CUDA, back to C
18305 ac_ext=c
18306 ac_cpp='$CPP $CPPFLAGS'
18307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18310
18311
18312 if test "${have_cuda}" != "no" ; then
18313 # nvcc compiled applications need libstdc++ to be able to link
18314 # with a C compiler
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can link libstdc++" >&5
18316 $as_echo_n "checking if $CC can link libstdc++... " >&6; }
18317
18318 if test -z "${pac_save_LIBS_nesting}" ; then
18319 pac_save_LIBS_nesting=0
18320 fi
18321 eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
18322 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
18323
18324
18325
18326 if echo "$LIBS" | $FGREP -e '-lstdc++' >/dev/null 2>&1; then :
18327 echo "LIBS(='$LIBS') contains '-lstdc++', not appending" >&5
18328 else
18329 echo "LIBS(='$LIBS') does not contain '-lstdc++', appending" >&5
18330 LIBS="$LIBS -lstdc++"
18331
18332 fi
18333
18334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18335 /* end confdefs.h. */
18336 int x = 5;
18337 int
18338 main ()
18339 {
18340 x++;
18341 ;
18342 return 0;
18343 }
18344 _ACEOF
18345 if ac_fn_c_try_link "$LINENO"; then :
18346 libstdcpp_works=yes
18347 else
18348 libstdcpp_works=no
18349 fi
18350 rm -f core conftest.err conftest.$ac_objext \
18351 conftest$ac_exeext conftest.$ac_ext
18352
18353 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
18354 eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
18355 eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
18356
18357 if test "${libstdcpp_works}" = "yes" ; then
18358
18359
18360 if echo "$LIBS" | $FGREP -e '-lstdc++' >/dev/null 2>&1; then :
18361 echo "LIBS(='$LIBS') contains '-lstdc++', not appending" >&5
18362 else
18363 echo "LIBS(='$LIBS') does not contain '-lstdc++', appending" >&5
18364 LIBS="$LIBS -lstdc++"
18365
18366 fi
18367
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18369 $as_echo "yes" >&6; }
18370 else
18371 have_cuda=no
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18373 $as_echo "no" >&6; }
18374 fi
18375 fi
18376 fi
18377
18378 # if the user requested CUDA and it didn't work, throw an error
18379 if test "${have_cuda}" = "no" -a "$with_cuda" != ""; then
18380 as_fn_error $? "CUDA was requested but it is not functional" "$LINENO" 5
18381 fi
18382 fi
18383 if test x${have_cuda} = xyes; then
18384 BUILD_CUDA_BACKEND_TRUE=
18385 BUILD_CUDA_BACKEND_FALSE='#'
18386 else
18387 BUILD_CUDA_BACKEND_TRUE='#'
18388 BUILD_CUDA_BACKEND_FALSE=
18389 fi
18390
18391 if test x${have_cuda} = xyes; then
18392 BUILD_CUDA_TESTS_TRUE=
18393 BUILD_CUDA_TESTS_FALSE='#'
18394 else
18395 BUILD_CUDA_TESTS_TRUE='#'
18396 BUILD_CUDA_TESTS_FALSE=
18397 fi
18398
18399
18400
18401 # --with-cuda-p2p
18402 # Check whether --enable-cuda-p2p was given.
18403 if test "${enable_cuda_p2p+set}" = set; then :
18404 enableval=$enable_cuda_p2p;
18405 else
18406 enable_cuda_p2p=yes
18407 fi
18408
18409 if test "${enable_cuda_p2p}" = "yes" ; then
18410
18411 $as_echo "#define CUDA_P2P CUDA_P2P_ENABLED" >>confdefs.h
18412
18413 elif test "${enable_cuda_p2p}" = "cliques" ; then
18414
18415 $as_echo "#define CUDA_P2P CUDA_P2P_CLIQUES" >>confdefs.h
18416
18417 else
18418
18419 $as_echo "#define CUDA_P2P CUDA_P2P_DISABLED" >>confdefs.h
18420
18421 fi
18422
18423
18424 ##########################################################################
18425 ##### analyze the user arguments and setup internal infrastructure
18426 ##########################################################################
18427
18428 if test "${have_cuda}" = "yes" ; then
18429 for version in 13000 12000 11080 11050 11010 11000 10000 9000 8000 7000 6000 5000 ; do
18430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431 /* end confdefs.h. */
18432
18433 #include <cuda.h>
18434 int x[CUDA_VERSION - $version];
18435
18436 int
18437 main ()
18438 {
18439
18440 ;
18441 return 0;
18442 }
18443 _ACEOF
18444 if ac_fn_c_try_compile "$LINENO"; then :
18445 cuda_version=${version}
18446 fi
18447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18448 if test ! -z ${cuda_version} ; then break ; fi
18449 done
18450
18451 CUDA_SM=
18452 case "$with_cuda_sm" in
18453 *auto*)
18454
18455 if test -z "${pac_save_IFS_nesting}" ; then
18456 pac_save_IFS_nesting=0
18457 fi
18458 eval pac_save_IFS_${pac_save_IFS_nesting}='"$IFS"'
18459 pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} + 1`
18460
18461 IFS=" "
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA compute capability auto detection" >&5
18463 $as_echo_n "checking for CUDA compute capability auto detection... " >&6; }
18464 ac_ext=c
18465 ac_cpp='$CPP $CPPFLAGS'
18466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18469
18470 if test "$cross_compiling" = yes; then :
18471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18473 as_fn_error $? "cannot run test program while cross compiling
18474 See \`config.log' for more details" "$LINENO" 5; }
18475 else
18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h. */
18478
18479 #include <cuda_runtime.h>
18480 #include <stdio.h>
18481
18482 int
18483 main ()
18484 {
18485
18486 int count = 0;
18487 if (cudaSuccess != cudaGetDeviceCount(&count)) return -1;
18488 if (count == 0) return -1;
18489 for (int device = 0; device < count; ++device)
18490 {
18491 struct cudaDeviceProp prop;
18492 if (cudaSuccess == cudaGetDeviceProperties(&prop, device))
18493 printf("%d.%d ", prop.major, prop.minor);
18494 }
18495 return 0;
18496
18497
18498 ;
18499 return 0;
18500 }
18501 _ACEOF
18502 if ac_fn_c_try_run "$LINENO"; then :
18503
18504 cuda_output=$(./conftest$EXEEXT | xargs -n1 | sort -u | xargs)
18505 for sm in $cuda_output; do
18506 sm_no_decimal=`echo $sm | tr -d '.'`
18507
18508
18509 if echo "$CUDA_SM" | $FGREP -e '$sm_no_decimal' >/dev/null 2>&1; then :
18510 echo "CUDA_SM(='$CUDA_SM') contains '$sm_no_decimal', not appending" >&5
18511 else
18512 echo "CUDA_SM(='$CUDA_SM') does not contain '$sm_no_decimal', appending" >&5
18513 CUDA_SM="$CUDA_SM $sm_no_decimal"
18514
18515 fi
18516
18517 done
18518 with_cuda_sm=
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18520 $as_echo "yes" >&6; }
18521
18522 else
18523
18524 with_cuda_sm=all-major
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18526 $as_echo "no" >&6; }
18527
18528
18529 fi
18530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18531 conftest.$ac_objext conftest.beam conftest.$ac_ext
18532 fi
18533
18534 ac_ext=c
18535 ac_cpp='$CPP $CPPFLAGS'
18536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18539
18540
18541 pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} - 1`
18542 eval IFS="\$pac_save_IFS_${pac_save_IFS_nesting}"
18543 eval pac_save_IFS_${pac_save_IFS_nesting}=""
18544
18545 ;;
18546 *)
18547 ;;
18548 esac
18549
18550
18551 if test -z "${pac_save_IFS_nesting}" ; then
18552 pac_save_IFS_nesting=0
18553 fi
18554 eval pac_save_IFS_${pac_save_IFS_nesting}='"$IFS"'
18555 pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} + 1`
18556
18557 IFS=","
18558 for sm in ${with_cuda_sm} ; do
18559 case "$sm" in
18560 all-major)
18561 if test ${cuda_version} -ge 13000; then
18562 # ampere (80) to blackwell (120)
18563 supported_cuda_sms="80 100 120"
18564 elif test ${cuda_version} -ge 11080 ; then
18565 # maxwell (52) to hopper (90)
18566 supported_cuda_sms="52 60 70 80 90"
18567 elif test ${cuda_version} -ge 11010 ; then
18568 # maxwell (52) to ampere (80)
18569 supported_cuda_sms="52 60 70 80"
18570 elif test ${cuda_version} -ge 11000 ; then
18571 # maxwell (52) to ampere (80)
18572 supported_cuda_sms="52 60 70 80"
18573 elif test ${cuda_version} -ge 10000 ; then
18574 # kepler (30) to volta (70)
18575 supported_cuda_sms="30 50 60 70"
18576 elif test ${cuda_version} -ge 9000 ; then
18577 # kepler (30) to volta (70)
18578 supported_cuda_sms="30 50 60 70"
18579 elif test ${cuda_version} -ge 8000 ; then
18580 # kepler (30) to pascal (60)
18581 supported_cuda_sms="30 50 60"
18582 elif test ${cuda_version} -ge 6000 ; then
18583 # kepler (30) to maxwell (50)
18584 supported_cuda_sms="30 50"
18585 elif test ${cuda_version} -ge 5000 ; then
18586 # kepler (30)
18587 supported_cuda_sms="30"
18588 fi
18589
18590 for supported_cuda_sm in $supported_cuda_sms ; do
18591
18592
18593 if echo "$CUDA_SM" | $FGREP -e '$supported_cuda_sm' >/dev/null 2>&1; then :
18594 echo "CUDA_SM(='$CUDA_SM') contains '$supported_cuda_sm', not appending" >&5
18595 else
18596 echo "CUDA_SM(='$CUDA_SM') does not contain '$supported_cuda_sm', appending" >&5
18597 CUDA_SM="$CUDA_SM $supported_cuda_sm"
18598
18599 fi
18600
18601 done
18602 ;;
18603
18604 kepler)
18605
18606
18607 if echo "$CUDA_SM" | $FGREP -e '30' >/dev/null 2>&1; then :
18608 echo "CUDA_SM(='$CUDA_SM') contains '30', not appending" >&5
18609 else
18610 echo "CUDA_SM(='$CUDA_SM') does not contain '30', appending" >&5
18611 CUDA_SM="$CUDA_SM 30"
18612
18613 fi
18614
18615
18616
18617 if echo "$CUDA_SM" | $FGREP -e '35' >/dev/null 2>&1; then :
18618 echo "CUDA_SM(='$CUDA_SM') contains '35', not appending" >&5
18619 else
18620 echo "CUDA_SM(='$CUDA_SM') does not contain '35', appending" >&5
18621 CUDA_SM="$CUDA_SM 35"
18622
18623 fi
18624
18625
18626
18627 if echo "$CUDA_SM" | $FGREP -e '37' >/dev/null 2>&1; then :
18628 echo "CUDA_SM(='$CUDA_SM') contains '37', not appending" >&5
18629 else
18630 echo "CUDA_SM(='$CUDA_SM') does not contain '37', appending" >&5
18631 CUDA_SM="$CUDA_SM 37"
18632
18633 fi
18634
18635 ;;
18636
18637 maxwell)
18638
18639
18640 if echo "$CUDA_SM" | $FGREP -e '50' >/dev/null 2>&1; then :
18641 echo "CUDA_SM(='$CUDA_SM') contains '50', not appending" >&5
18642 else
18643 echo "CUDA_SM(='$CUDA_SM') does not contain '50', appending" >&5
18644 CUDA_SM="$CUDA_SM 50"
18645
18646 fi
18647
18648
18649
18650 if echo "$CUDA_SM" | $FGREP -e '52' >/dev/null 2>&1; then :
18651 echo "CUDA_SM(='$CUDA_SM') contains '52', not appending" >&5
18652 else
18653 echo "CUDA_SM(='$CUDA_SM') does not contain '52', appending" >&5
18654 CUDA_SM="$CUDA_SM 52"
18655
18656 fi
18657
18658
18659
18660 if echo "$CUDA_SM" | $FGREP -e '53' >/dev/null 2>&1; then :
18661 echo "CUDA_SM(='$CUDA_SM') contains '53', not appending" >&5
18662 else
18663 echo "CUDA_SM(='$CUDA_SM') does not contain '53', appending" >&5
18664 CUDA_SM="$CUDA_SM 53"
18665
18666 fi
18667
18668 ;;
18669
18670 pascal)
18671
18672
18673 if echo "$CUDA_SM" | $FGREP -e '60' >/dev/null 2>&1; then :
18674 echo "CUDA_SM(='$CUDA_SM') contains '60', not appending" >&5
18675 else
18676 echo "CUDA_SM(='$CUDA_SM') does not contain '60', appending" >&5
18677 CUDA_SM="$CUDA_SM 60"
18678
18679 fi
18680
18681
18682
18683 if echo "$CUDA_SM" | $FGREP -e '61' >/dev/null 2>&1; then :
18684 echo "CUDA_SM(='$CUDA_SM') contains '61', not appending" >&5
18685 else
18686 echo "CUDA_SM(='$CUDA_SM') does not contain '61', appending" >&5
18687 CUDA_SM="$CUDA_SM 61"
18688
18689 fi
18690
18691
18692
18693 if echo "$CUDA_SM" | $FGREP -e '62' >/dev/null 2>&1; then :
18694 echo "CUDA_SM(='$CUDA_SM') contains '62', not appending" >&5
18695 else
18696 echo "CUDA_SM(='$CUDA_SM') does not contain '62', appending" >&5
18697 CUDA_SM="$CUDA_SM 62"
18698
18699 fi
18700
18701 ;;
18702
18703 volta)
18704
18705
18706 if echo "$CUDA_SM" | $FGREP -e '70' >/dev/null 2>&1; then :
18707 echo "CUDA_SM(='$CUDA_SM') contains '70', not appending" >&5
18708 else
18709 echo "CUDA_SM(='$CUDA_SM') does not contain '70', appending" >&5
18710 CUDA_SM="$CUDA_SM 70"
18711
18712 fi
18713
18714
18715
18716 if echo "$CUDA_SM" | $FGREP -e '72' >/dev/null 2>&1; then :
18717 echo "CUDA_SM(='$CUDA_SM') contains '72', not appending" >&5
18718 else
18719 echo "CUDA_SM(='$CUDA_SM') does not contain '72', appending" >&5
18720 CUDA_SM="$CUDA_SM 72"
18721
18722 fi
18723
18724 ;;
18725
18726 turing)
18727
18728
18729 if echo "$CUDA_SM" | $FGREP -e '75' >/dev/null 2>&1; then :
18730 echo "CUDA_SM(='$CUDA_SM') contains '75', not appending" >&5
18731 else
18732 echo "CUDA_SM(='$CUDA_SM') does not contain '75', appending" >&5
18733 CUDA_SM="$CUDA_SM 75"
18734
18735 fi
18736
18737 ;;
18738
18739 ampere)
18740
18741
18742 if echo "$CUDA_SM" | $FGREP -e '80' >/dev/null 2>&1; then :
18743 echo "CUDA_SM(='$CUDA_SM') contains '80', not appending" >&5
18744 else
18745 echo "CUDA_SM(='$CUDA_SM') does not contain '80', appending" >&5
18746 CUDA_SM="$CUDA_SM 80"
18747
18748 fi
18749
18750
18751
18752 if echo "$CUDA_SM" | $FGREP -e '86' >/dev/null 2>&1; then :
18753 echo "CUDA_SM(='$CUDA_SM') contains '86', not appending" >&5
18754 else
18755 echo "CUDA_SM(='$CUDA_SM') does not contain '86', appending" >&5
18756 CUDA_SM="$CUDA_SM 86"
18757
18758 fi
18759
18760 ;;
18761
18762 ada)
18763
18764
18765 if echo "$CUDA_SM" | $FGREP -e '89' >/dev/null 2>&1; then :
18766 echo "CUDA_SM(='$CUDA_SM') contains '89', not appending" >&5
18767 else
18768 echo "CUDA_SM(='$CUDA_SM') does not contain '89', appending" >&5
18769 CUDA_SM="$CUDA_SM 89"
18770
18771 fi
18772
18773 ;;
18774
18775 hopper)
18776
18777
18778 if echo "$CUDA_SM" | $FGREP -e '90' >/dev/null 2>&1; then :
18779 echo "CUDA_SM(='$CUDA_SM') contains '90', not appending" >&5
18780 else
18781 echo "CUDA_SM(='$CUDA_SM') does not contain '90', appending" >&5
18782 CUDA_SM="$CUDA_SM 90"
18783
18784 fi
18785
18786
18787
18788 if echo "$CUDA_SM" | $FGREP -e '90a' >/dev/null 2>&1; then :
18789 echo "CUDA_SM(='$CUDA_SM') contains '90a', not appending" >&5
18790 else
18791 echo "CUDA_SM(='$CUDA_SM') does not contain '90a', appending" >&5
18792 CUDA_SM="$CUDA_SM 90a"
18793
18794 fi
18795
18796 ;;
18797
18798 blackwell)
18799
18800
18801 if echo "$CUDA_SM" | $FGREP -e '100' >/dev/null 2>&1; then :
18802 echo "CUDA_SM(='$CUDA_SM') contains '100', not appending" >&5
18803 else
18804 echo "CUDA_SM(='$CUDA_SM') does not contain '100', appending" >&5
18805 CUDA_SM="$CUDA_SM 100"
18806
18807 fi
18808
18809
18810
18811 if echo "$CUDA_SM" | $FGREP -e '100a' >/dev/null 2>&1; then :
18812 echo "CUDA_SM(='$CUDA_SM') contains '100a', not appending" >&5
18813 else
18814 echo "CUDA_SM(='$CUDA_SM') does not contain '100a', appending" >&5
18815 CUDA_SM="$CUDA_SM 100a"
18816
18817 fi
18818
18819
18820
18821 if echo "$CUDA_SM" | $FGREP -e '120' >/dev/null 2>&1; then :
18822 echo "CUDA_SM(='$CUDA_SM') contains '120', not appending" >&5
18823 else
18824 echo "CUDA_SM(='$CUDA_SM') does not contain '120', appending" >&5
18825 CUDA_SM="$CUDA_SM 120"
18826
18827 fi
18828
18829
18830
18831 if echo "$CUDA_SM" | $FGREP -e '120a' >/dev/null 2>&1; then :
18832 echo "CUDA_SM(='$CUDA_SM') contains '120a', not appending" >&5
18833 else
18834 echo "CUDA_SM(='$CUDA_SM') does not contain '120a', appending" >&5
18835 CUDA_SM="$CUDA_SM 120a"
18836
18837 fi
18838
18839 ;;
18840
18841 none)
18842 ;;
18843
18844 *)
18845
18846
18847 if echo "$CUDA_SM" | $FGREP -e '$sm' >/dev/null 2>&1; then :
18848 echo "CUDA_SM(='$CUDA_SM') contains '$sm', not appending" >&5
18849 else
18850 echo "CUDA_SM(='$CUDA_SM') does not contain '$sm', appending" >&5
18851 CUDA_SM="$CUDA_SM $sm"
18852
18853 fi
18854
18855 ;;
18856 esac
18857 done
18858
18859 pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} - 1`
18860 eval IFS="\$pac_save_IFS_${pac_save_IFS_nesting}"
18861 eval pac_save_IFS_${pac_save_IFS_nesting}=""
18862
18863
18864 for sm in ${CUDA_SM} ; do
18865 if test -z "${CUDA_GENCODE}" ; then
18866 CUDA_GENCODE="-gencode=arch=compute_${sm},code=sm_${sm}"
18867 else
18868 CUDA_GENCODE="${CUDA_GENCODE} -gencode=arch=compute_${sm},code=sm_${sm}"
18869 fi
18870 done
18871
18872
18873 if test -z "${CUDA_GENCODE}" ; then
18874 as_fn_error $? "--with-cuda-sm not specified; either specify it or disable cuda support" "$LINENO" 5
18875 fi
18876
18877 supported_backends="${supported_backends},cuda"
18878 backend_info="${backend_info}
18879 CUDA backend specific options:
18880 CUDA GENCODE: ${with_cuda_sm} (${CUDA_GENCODE})"
18881 fi
18882
18883 ##
18884 ## Copyright (C) by Argonne National Laboratory
18885 ## See COPYRIGHT in top-level directory
18886 ##
18887
18888
18889 ##########################################################################
18890 ##### capture user arguments
18891 ##########################################################################
18892
18893 # --with-ze
18894
18895
18896 # Check whether --with-ze was given.
18897 if test "${with_ze+set}" = set; then :
18898 withval=$with_ze;
18899 fi
18900
18901
18902 # Check whether --with-ze-include was given.
18903 if test "${with_ze_include+set}" = set; then :
18904 withval=$with_ze_include; case "$withval" in #(
18905 yes|no|'') :
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ze-include=PATH expects a valid PATH" >&5
18907 $as_echo "$as_me: WARNING: --without-ze-include=PATH expects a valid PATH" >&2;}
18908 with_ze_include="" ;; #(
18909 *) :
18910 ;;
18911 esac
18912 fi
18913
18914
18915 # Check whether --with-ze-lib was given.
18916 if test "${with_ze_lib+set}" = set; then :
18917 withval=$with_ze_lib; case "$withval" in #(
18918 yes|no|'') :
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ze-lib=PATH expects a valid PATH" >&5
18920 $as_echo "$as_me: WARNING: --without-ze-lib=PATH expects a valid PATH" >&2;}
18921 with_ze_lib="" ;; #(
18922 *) :
18923 ;;
18924 esac
18925 fi
18926
18927
18928 # The args have been sanitized into empty/non-empty values above.
18929 # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
18930 # taking priority
18931
18932 if test "x$with_ze" != "xno" ; then
18933 if test -n "${with_ze_include}"; then :
18934
18935
18936 if echo "$CPPFLAGS" | $FGREP -e '-I${with_ze_include}' >/dev/null 2>&1; then :
18937 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ze_include}', not appending" >&5
18938 else
18939 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ze_include}', appending" >&5
18940 CPPFLAGS="$CPPFLAGS -I${with_ze_include}"
18941
18942 fi
18943
18944 else
18945 if test -n "${with_ze}" -a "${with_ze}" != "yes"; then :
18946
18947
18948 if echo "$CPPFLAGS" | $FGREP -e '-I${with_ze}/include' >/dev/null 2>&1; then :
18949 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ze}/include', not appending" >&5
18950 else
18951 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ze}/include', appending" >&5
18952 CPPFLAGS="$CPPFLAGS -I${with_ze}/include"
18953
18954 fi
18955
18956 fi
18957 fi
18958
18959 if test -n "${with_ze_lib}"; then :
18960
18961
18962 if echo "$LDFLAGS" | $FGREP -e '-L${with_ze_lib}' >/dev/null 2>&1; then :
18963 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ze_lib}', not appending" >&5
18964 else
18965 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ze_lib}', appending" >&5
18966 LDFLAGS="$LDFLAGS -L${with_ze_lib}"
18967
18968 fi
18969
18970 else
18971 if test -n "${with_ze}" -a "${with_ze}" != "yes"; then :
18972
18973
18974 if echo "$LDFLAGS" | $FGREP -e '-L${with_ze}/lib64' >/dev/null 2>&1; then :
18975 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ze}/lib64', not appending" >&5
18976 else
18977 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ze}/lib64', appending" >&5
18978 LDFLAGS="$LDFLAGS -L${with_ze}/lib64"
18979
18980 fi
18981
18982
18983
18984 if echo "$LDFLAGS" | $FGREP -e '-L${with_ze}/lib' >/dev/null 2>&1; then :
18985 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ze}/lib', not appending" >&5
18986 else
18987 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ze}/lib', appending" >&5
18988 LDFLAGS="$LDFLAGS -L${with_ze}/lib"
18989
18990 fi
18991
18992 fi
18993 fi
18994
18995 fi
18996
18997 if test "$with_ze" != "no" ; then
18998
18999 failure=no
19000 ac_fn_c_check_header_mongrel "$LINENO" "level_zero/ze_api.h" "ac_cv_header_level_zero_ze_api_h" "$ac_includes_default"
19001 if test "x$ac_cv_header_level_zero_ze_api_h" = xyes; then :
19002
19003 else
19004 failure=yes
19005 fi
19006
19007
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zeCommandQueueCreate in -lze_loader" >&5
19009 $as_echo_n "checking for zeCommandQueueCreate in -lze_loader... " >&6; }
19010 if ${ac_cv_lib_ze_loader_zeCommandQueueCreate+:} false; then :
19011 $as_echo_n "(cached) " >&6
19012 else
19013 ac_check_lib_save_LIBS=$LIBS
19014 LIBS="-lze_loader $LIBS"
19015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19016 /* end confdefs.h. */
19017
19018 /* Override any GCC internal prototype to avoid an error.
19019 Use char because int might match the return type of a GCC
19020 builtin and then its argument prototype would still apply. */
19021 #ifdef __cplusplus
19022 extern "C"
19023 #endif
19024 char zeCommandQueueCreate ();
19025 int
19026 main ()
19027 {
19028 return zeCommandQueueCreate ();
19029 ;
19030 return 0;
19031 }
19032 _ACEOF
19033 if ac_fn_c_try_link "$LINENO"; then :
19034 ac_cv_lib_ze_loader_zeCommandQueueCreate=yes
19035 else
19036 ac_cv_lib_ze_loader_zeCommandQueueCreate=no
19037 fi
19038 rm -f core conftest.err conftest.$ac_objext \
19039 conftest$ac_exeext conftest.$ac_ext
19040 LIBS=$ac_check_lib_save_LIBS
19041 fi
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ze_loader_zeCommandQueueCreate" >&5
19043 $as_echo "$ac_cv_lib_ze_loader_zeCommandQueueCreate" >&6; }
19044 if test "x$ac_cv_lib_ze_loader_zeCommandQueueCreate" = xyes; then :
19045 cat >>confdefs.h <<_ACEOF
19046 #define HAVE_LIBZE_LOADER 1
19047 _ACEOF
19048
19049 LIBS="-lze_loader $LIBS"
19050
19051 else
19052 failure=yes
19053 fi
19054
19055 if test "$failure" = "no" ; then
19056 have_ze=yes
19057 else
19058 have_ze=no
19059 fi
19060
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ocloc is installed" >&5
19062 $as_echo_n "checking whether ocloc is installed... " >&6; }
19063 if ! command -v ocloc &> /dev/null; then
19064 if test "$with_ze" = "yes" ; then
19065 as_fn_error $? "ocloc not found; either install it or disable ze support" "$LINENO" 5
19066 else
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19068 $as_echo "no" >&6; }
19069 have_ze=no
19070 fi
19071 else
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19073 $as_echo "yes" >&6; }
19074 fi
19075 # ze_api.h relies on support for c11
19076 if test "${have_ze}" = "yes" ; then
19077
19078 if test -z "${pac_save_CFLAGS_nesting}" ; then
19079 pac_save_CFLAGS_nesting=0
19080 fi
19081 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
19082 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
19083
19084 CFLAGS="$CFLAGS -Werror"
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror" >&5
19086 $as_echo_n "checking for -Werror... " >&6; }
19087 if ${ac_cv_werror+:} false; then :
19088 $as_echo_n "(cached) " >&6
19089 else
19090
19091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19092 /* end confdefs.h. */
19093
19094 _ACEOF
19095 if ac_fn_c_try_compile "$LINENO"; then :
19096 ac_cv_werror=yes
19097 else
19098 ac_cv_werror=no
19099 fi
19100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19101 fi
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_werror" >&5
19103 $as_echo "$ac_cv_werror" >&6; }
19104 if test "${ac_cv_werror}" = "yes" ; then
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c11 support" >&5
19106 $as_echo_n "checking for c11 support... " >&6; }
19107 if ${ac_cv_support_c11+:} false; then :
19108 $as_echo_n "(cached) " >&6
19109 else
19110
19111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112 /* end confdefs.h. */
19113
19114 typedef struct _ze_ipc_mem_handle_t
19115 {
19116 int data;
19117 } ze_ipc_mem_handle_t;
19118 typedef struct _ze_ipc_mem_handle_t ze_ipc_mem_handle_t;
19119
19120 _ACEOF
19121 if ac_fn_c_try_compile "$LINENO"; then :
19122 ac_cv_support_c11=yes
19123 else
19124 ac_cv_support_c11=no
19125 fi
19126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19127 fi
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_support_c11" >&5
19129 $as_echo "$ac_cv_support_c11" >&6; }
19130 if test "${ac_cv_support_c11}" = "no" ; then
19131 have_ze=no
19132 fi
19133 fi
19134
19135 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
19136 eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
19137 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
19138
19139 fi
19140 if test "${have_ze}" = "yes" ; then
19141
19142 $as_echo "#define HAVE_ZE 1" >>confdefs.h
19143
19144 elif test "$with_ze" != ""; then
19145 as_fn_error $? "ZE was requested but it is not functional" "$LINENO" 5
19146 fi
19147 fi
19148 if test x${have_ze} = xyes; then
19149 BUILD_ZE_BACKEND_TRUE=
19150 BUILD_ZE_BACKEND_FALSE='#'
19151 else
19152 BUILD_ZE_BACKEND_TRUE='#'
19153 BUILD_ZE_BACKEND_FALSE=
19154 fi
19155
19156 if test x${have_ze} = xyes; then
19157 BUILD_ZE_TESTS_TRUE=
19158 BUILD_ZE_TESTS_FALSE='#'
19159 else
19160 BUILD_ZE_TESTS_TRUE='#'
19161 BUILD_ZE_TESTS_FALSE=
19162 fi
19163
19164
19165
19166 # --with-ze-p2p
19167 # Check whether --enable-ze-p2p was given.
19168 if test "${enable_ze_p2p+set}" = set; then :
19169 enableval=$enable_ze_p2p;
19170 else
19171 enable_ze_p2p=yes
19172 fi
19173
19174 if test "${have_ze}" = "yes" ; then
19175 if test "${enable_ze_p2p}" = "yes" ; then
19176
19177 $as_echo "#define ZE_P2P ZE_P2P_ENABLED" >>confdefs.h
19178
19179 elif test "${enable_ze_p2p}" = "cliques" ; then
19180
19181 $as_echo "#define ZE_P2P ZE_P2P_CLIQUES" >>confdefs.h
19182
19183 else
19184
19185 $as_echo "#define ZE_P2P ZE_P2P_DISABLED" >>confdefs.h
19186
19187 fi
19188 fi
19189
19190 extra_ocloc_options=
19191
19192 # --ze-revision-id=[integer]
19193 # PVC native compilation requires revision_id
19194 # Check whether --enable-ze-revision-id was given.
19195 if test "${enable_ze_revision_id+set}" = set; then :
19196 enableval=$enable_ze_revision_id;
19197 else
19198 enable_ze_revision_id=-1
19199 fi
19200
19201 if test $enable_ze_revision_id != -1; then
19202 extra_ocloc_options="-revision_id $enable_ze_revision_id"
19203 fi
19204
19205 # --ze-native=[skl|dg1|ats|pvc]
19206 enable_multi_native=no
19207 # Check whether --enable-ze-native was given.
19208 if test "${enable_ze_native+set}" = set; then :
19209 enableval=$enable_ze_native;
19210 else
19211 enable_ze_native=no
19212 fi
19213
19214 if test "${have_ze}" = "yes" -a x"${enable_ze_native}" != xno; then
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ocloc works with target device" >&5
19216 $as_echo_n "checking whether ocloc works with target device... " >&6; }
19217 cat>conftest.cl<<EOF
19218 __kernel void foo(int x) {}
19219 EOF
19220 rm -f conftest.ar
19221 ocloc compile -file conftest.cl -device ${enable_ze_native} ${extra_ocloc_options} -options "-cl-std=CL2.0" > /dev/null 2>&1
19222 if test "$?" = "0" ; then
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19224 $as_echo "yes" >&6; }
19225 if test -f conftest.ar; then
19226 enable_multi_native=yes
19227 fi
19228 else
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19230 $as_echo "no" >&6; }
19231 enable_ze_native=no
19232 as_fn_error $? "ocloc compiler is not compatible with ze_native" "$LINENO" 5
19233 fi
19234 rm -f conftest.*
19235 fi
19236 if test x"${enable_ze_native}" != xno; then
19237
19238 $as_echo "#define ZE_NATIVE 1" >>confdefs.h
19239
19240 else
19241
19242 $as_echo "#define ZE_NATIVE 0" >>confdefs.h
19243
19244 fi
19245
19246
19247 if test x"$enable_ze_native" != xno -a x"$enable_multi_native" != xyes; then
19248 BUILD_ZE_NATIVE_TRUE=
19249 BUILD_ZE_NATIVE_FALSE='#'
19250 else
19251 BUILD_ZE_NATIVE_TRUE='#'
19252 BUILD_ZE_NATIVE_FALSE=
19253 fi
19254
19255 if test x"$enable_multi_native" != xno; then
19256 BUILD_ZE_NATIVE_MULTIPLE_TRUE=
19257 BUILD_ZE_NATIVE_MULTIPLE_FALSE='#'
19258 else
19259 BUILD_ZE_NATIVE_MULTIPLE_TRUE='#'
19260 BUILD_ZE_NATIVE_MULTIPLE_FALSE=
19261 fi
19262
19263
19264
19265 ##########################################################################
19266 ##### analyze the user arguments and setup internal infrastructure
19267 ##########################################################################
19268
19269 if test "${have_ze}" = "yes" ; then
19270 supported_backends="${supported_backends},ze"
19271 if test x${enable_ze_native} != xno; then
19272 supported_backends="$supported_backends($enable_ze_native)"
19273 fi
19274 fi
19275
19276 ##
19277 ## Copyright (C) by Argonne National Laboratory
19278 ## See COPYRIGHT in top-level directory
19279 ##
19280
19281
19282 ##########################################################################
19283 ##### capture user arguments
19284 ##########################################################################
19285
19286 # --with-hip-sm
19287
19288 # Check whether --with-hip-sm was given.
19289 if test "${with_hip_sm+set}" = set; then :
19290 withval=$with_hip_sm;
19291 else
19292 with_hip_sm=auto
19293 fi
19294
19295
19296
19297 # --with-hip
19298
19299
19300 # Check whether --with-hip was given.
19301 if test "${with_hip+set}" = set; then :
19302 withval=$with_hip;
19303 fi
19304
19305
19306 # Check whether --with-hip-include was given.
19307 if test "${with_hip_include+set}" = set; then :
19308 withval=$with_hip_include; case "$withval" in #(
19309 yes|no|'') :
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-hip-include=PATH expects a valid PATH" >&5
19311 $as_echo "$as_me: WARNING: --without-hip-include=PATH expects a valid PATH" >&2;}
19312 with_hip_include="" ;; #(
19313 *) :
19314 ;;
19315 esac
19316 fi
19317
19318
19319 # Check whether --with-hip-lib was given.
19320 if test "${with_hip_lib+set}" = set; then :
19321 withval=$with_hip_lib; case "$withval" in #(
19322 yes|no|'') :
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-hip-lib=PATH expects a valid PATH" >&5
19324 $as_echo "$as_me: WARNING: --without-hip-lib=PATH expects a valid PATH" >&2;}
19325 with_hip_lib="" ;; #(
19326 *) :
19327 ;;
19328 esac
19329 fi
19330
19331
19332 # The args have been sanitized into empty/non-empty values above.
19333 # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
19334 # taking priority
19335
19336 if test "x$with_hip" != "xno" ; then
19337 if test -n "${with_hip_include}"; then :
19338
19339
19340 if echo "$CPPFLAGS" | $FGREP -e '-I${with_hip_include}' >/dev/null 2>&1; then :
19341 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_hip_include}', not appending" >&5
19342 else
19343 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_hip_include}', appending" >&5
19344 CPPFLAGS="$CPPFLAGS -I${with_hip_include}"
19345
19346 fi
19347
19348 else
19349 if test -n "${with_hip}" -a "${with_hip}" != "yes"; then :
19350
19351
19352 if echo "$CPPFLAGS" | $FGREP -e '-I${with_hip}/include' >/dev/null 2>&1; then :
19353 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_hip}/include', not appending" >&5
19354 else
19355 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_hip}/include', appending" >&5
19356 CPPFLAGS="$CPPFLAGS -I${with_hip}/include"
19357
19358 fi
19359
19360 fi
19361 fi
19362
19363 if test -n "${with_hip_lib}"; then :
19364
19365
19366 if echo "$LDFLAGS" | $FGREP -e '-L${with_hip_lib}' >/dev/null 2>&1; then :
19367 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_hip_lib}', not appending" >&5
19368 else
19369 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hip_lib}', appending" >&5
19370 LDFLAGS="$LDFLAGS -L${with_hip_lib}"
19371
19372 fi
19373
19374 else
19375 if test -n "${with_hip}" -a "${with_hip}" != "yes"; then :
19376
19377
19378 if echo "$LDFLAGS" | $FGREP -e '-L${with_hip}/lib64' >/dev/null 2>&1; then :
19379 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_hip}/lib64', not appending" >&5
19380 else
19381 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hip}/lib64', appending" >&5
19382 LDFLAGS="$LDFLAGS -L${with_hip}/lib64"
19383
19384 fi
19385
19386
19387
19388 if echo "$LDFLAGS" | $FGREP -e '-L${with_hip}/lib' >/dev/null 2>&1; then :
19389 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_hip}/lib', not appending" >&5
19390 else
19391 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hip}/lib', appending" >&5
19392 LDFLAGS="$LDFLAGS -L${with_hip}/lib"
19393
19394 fi
19395
19396 fi
19397 fi
19398
19399 fi
19400
19401 if test "$with_hip" != "no" ; then
19402
19403 if test -z "${pac_save_CPPFLAGS_nesting}" ; then
19404 pac_save_CPPFLAGS_nesting=0
19405 fi
19406 eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}='"$CPPFLAGS"'
19407 pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} + 1`
19408
19409
19410
19411 if echo "$CPPFLAGS" | $FGREP -e '-D__HIP_PLATFORM_AMD__' >/dev/null 2>&1; then :
19412 echo "CPPFLAGS(='$CPPFLAGS') contains '-D__HIP_PLATFORM_AMD__', not appending" >&5
19413 else
19414 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-D__HIP_PLATFORM_AMD__', appending" >&5
19415 CPPFLAGS="$CPPFLAGS -D__HIP_PLATFORM_AMD__"
19416
19417 fi
19418
19419
19420 failure=no
19421 ac_fn_c_check_header_mongrel "$LINENO" "hip/hip_runtime_api.h" "ac_cv_header_hip_hip_runtime_api_h" "$ac_includes_default"
19422 if test "x$ac_cv_header_hip_hip_runtime_api_h" = xyes; then :
19423
19424 else
19425 failure=yes
19426 fi
19427
19428
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hipStreamSynchronize in -lamdhip64" >&5
19430 $as_echo_n "checking for hipStreamSynchronize in -lamdhip64... " >&6; }
19431 if ${ac_cv_lib_amdhip64_hipStreamSynchronize+:} false; then :
19432 $as_echo_n "(cached) " >&6
19433 else
19434 ac_check_lib_save_LIBS=$LIBS
19435 LIBS="-lamdhip64 $LIBS"
19436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h. */
19438
19439 /* Override any GCC internal prototype to avoid an error.
19440 Use char because int might match the return type of a GCC
19441 builtin and then its argument prototype would still apply. */
19442 #ifdef __cplusplus
19443 extern "C"
19444 #endif
19445 char hipStreamSynchronize ();
19446 int
19447 main ()
19448 {
19449 return hipStreamSynchronize ();
19450 ;
19451 return 0;
19452 }
19453 _ACEOF
19454 if ac_fn_c_try_link "$LINENO"; then :
19455 ac_cv_lib_amdhip64_hipStreamSynchronize=yes
19456 else
19457 ac_cv_lib_amdhip64_hipStreamSynchronize=no
19458 fi
19459 rm -f core conftest.err conftest.$ac_objext \
19460 conftest$ac_exeext conftest.$ac_ext
19461 LIBS=$ac_check_lib_save_LIBS
19462 fi
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_amdhip64_hipStreamSynchronize" >&5
19464 $as_echo "$ac_cv_lib_amdhip64_hipStreamSynchronize" >&6; }
19465 if test "x$ac_cv_lib_amdhip64_hipStreamSynchronize" = xyes; then :
19466 cat >>confdefs.h <<_ACEOF
19467 #define HAVE_LIBAMDHIP64 1
19468 _ACEOF
19469
19470 LIBS="-lamdhip64 $LIBS"
19471
19472 else
19473 failure=yes
19474 fi
19475
19476 if test "$failure" = "no" ; then
19477 have_hip=yes
19478 else
19479 have_hip=no
19480 fi
19481
19482 ac_fn_c_check_member "$LINENO" "struct hipPointerAttribute_t" "memoryType" "ac_cv_member_struct_hipPointerAttribute_t_memoryType" "#include <hip/hip_runtime_api.h>
19483 "
19484 if test "x$ac_cv_member_struct_hipPointerAttribute_t_memoryType" = xyes; then :
19485
19486 $as_echo "#define HIP_USE_MEMORYTYPE 1" >>confdefs.h
19487
19488 fi
19489
19490
19491 pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} - 1`
19492 eval CPPFLAGS="\$pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}"
19493 eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}=""
19494
19495 if test "${have_hip}" = "yes" ; then
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hipcc works" >&5
19497 $as_echo_n "checking whether hipcc works... " >&6; }
19498 cat>conftest.c<<EOF
19499 #include <hip/hip_runtime_api.h>
19500 void foo(int deviceId) {
19501 hipError_t ret;
19502 ret = hipGetDevice(&deviceId);
19503 }
19504 EOF
19505
19506 if test -z "${pac_save_CPPFLAGS_nesting}" ; then
19507 pac_save_CPPFLAGS_nesting=0
19508 fi
19509 eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}='"$CPPFLAGS"'
19510 pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} + 1`
19511
19512
19513
19514 if echo "$CPPFLAGS" | $FGREP -e '-D__HIP_PLATFORM_AMD__' >/dev/null 2>&1; then :
19515 echo "CPPFLAGS(='$CPPFLAGS') contains '-D__HIP_PLATFORM_AMD__', not appending" >&5
19516 else
19517 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-D__HIP_PLATFORM_AMD__', appending" >&5
19518 CPPFLAGS="$CPPFLAGS -D__HIP_PLATFORM_AMD__"
19519
19520 fi
19521
19522 ${with_hip}/bin/hipcc -c conftest.c 2> /dev/null
19523
19524 pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} - 1`
19525 eval CPPFLAGS="\$pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}"
19526 eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}=""
19527
19528 if test "$?" = "0" ; then
19529
19530 $as_echo "#define HAVE_HIP 1" >>confdefs.h
19531
19532
19533
19534 if echo "$CPPFLAGS" | $FGREP -e '-D__HIP_PLATFORM_AMD__' >/dev/null 2>&1; then :
19535 echo "CPPFLAGS(='$CPPFLAGS') contains '-D__HIP_PLATFORM_AMD__', not appending" >&5
19536 else
19537 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-D__HIP_PLATFORM_AMD__', appending" >&5
19538 CPPFLAGS="$CPPFLAGS -D__HIP_PLATFORM_AMD__"
19539
19540 fi
19541
19542 if test -n "${with_hip}"; then :
19543 HIPCC=${with_hip}/bin/hipcc
19544 else
19545 HIPCC=hipcc
19546 fi
19547
19548 # hipcc compiled applications need libstdc++ to be able to link
19549 # with a C compiler
19550
19551 if test -z "${pac_save_LIBS_nesting}" ; then
19552 pac_save_LIBS_nesting=0
19553 fi
19554 eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
19555 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
19556
19557
19558
19559 if echo "$LIBS" | $FGREP -e '-lstdc++' >/dev/null 2>&1; then :
19560 echo "LIBS(='$LIBS') contains '-lstdc++', not appending" >&5
19561 else
19562 echo "LIBS(='$LIBS') does not contain '-lstdc++', appending" >&5
19563 LIBS="$LIBS -lstdc++"
19564
19565 fi
19566
19567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19568 /* end confdefs.h. */
19569 int x = 5;
19570 int
19571 main ()
19572 {
19573 x++;
19574 ;
19575 return 0;
19576 }
19577 _ACEOF
19578 if ac_fn_c_try_link "$LINENO"; then :
19579 libstdcpp_works=yes
19580 else
19581 libstdcpp_works=no
19582 fi
19583 rm -f core conftest.err conftest.$ac_objext \
19584 conftest$ac_exeext conftest.$ac_ext
19585
19586 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
19587 eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
19588 eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
19589
19590 if test "${libstdcpp_works}" = "yes" ; then
19591
19592
19593 if echo "$LIBS" | $FGREP -e '-lstdc++' >/dev/null 2>&1; then :
19594 echo "LIBS(='$LIBS') contains '-lstdc++', not appending" >&5
19595 else
19596 echo "LIBS(='$LIBS') does not contain '-lstdc++', appending" >&5
19597 LIBS="$LIBS -lstdc++"
19598
19599 fi
19600
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19602 $as_echo "yes" >&6; }
19603 else
19604 have_hip=no
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19606 $as_echo "no" >&6; }
19607 as_fn_error $? "hipcc compiled applications need libstdc++ to be able to link with a C compiler" "$LINENO" 5
19608 fi
19609 else
19610 have_hip=no
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19612 $as_echo "no" >&6; }
19613 fi
19614 rm -f conftest.*
19615 fi
19616 fi
19617 if test x${have_hip} = xyes; then
19618 BUILD_HIP_BACKEND_TRUE=
19619 BUILD_HIP_BACKEND_FALSE='#'
19620 else
19621 BUILD_HIP_BACKEND_TRUE='#'
19622 BUILD_HIP_BACKEND_FALSE=
19623 fi
19624
19625
19626 # --with-hip-p2p
19627 # Check whether --enable-hip-p2p was given.
19628 if test "${enable_hip_p2p+set}" = set; then :
19629 enableval=$enable_hip_p2p;
19630 else
19631 enable_hip_p2p=yes
19632 fi
19633
19634 if test "${enable_hip_p2p}" = "yes" ; then
19635
19636 $as_echo "#define HIP_P2P HIP_P2P_ENABLED" >>confdefs.h
19637
19638 elif test "${enable_hip_p2p}" = "cliques" ; then
19639
19640 $as_echo "#define HIP_P2P HIP_P2P_CLIQUES" >>confdefs.h
19641
19642 else
19643
19644 $as_echo "#define HIP_P2P HIP_P2P_DISABLED" >>confdefs.h
19645
19646 fi
19647
19648
19649 ##########################################################################
19650 ##### analyze the user arguments and setup internal infrastructure
19651 ##########################################################################
19652
19653 if test "${have_hip}" = "yes" ; then
19654 for maj_version in 4 3 2 1; do
19655 version=$((maj_version * 1000))
19656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19657 /* end confdefs.h. */
19658
19659 #include <hip/hip_runtime.h>
19660 int x[HIP_VERSION - $version];
19661
19662 int
19663 main ()
19664 {
19665
19666 ;
19667 return 0;
19668 }
19669 _ACEOF
19670 if ac_fn_c_try_compile "$LINENO"; then :
19671 hip_version=${maj_version}
19672 fi
19673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19674 if test ! -z ${hip_version} ; then break ; fi
19675 done
19676 HIP_GENCODE=
19677 if test "${with_hip_sm}" != "auto"; then
19678
19679 if test -z "${pac_save_IFS_nesting}" ; then
19680 pac_save_IFS_nesting=0
19681 fi
19682 eval pac_save_IFS_${pac_save_IFS_nesting}='"$IFS"'
19683 pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} + 1`
19684
19685 IFS=","
19686 HIP_SM=
19687 for sm in ${with_hip_sm} ; do
19688
19689
19690 if echo "$HIP_SM" | $FGREP -e '$sm' >/dev/null 2>&1; then :
19691 echo "HIP_SM(='$HIP_SM') contains '$sm', not appending" >&5
19692 else
19693 echo "HIP_SM(='$HIP_SM') does not contain '$sm', appending" >&5
19694 HIP_SM="$HIP_SM $sm"
19695
19696 fi
19697
19698 done
19699
19700 pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} - 1`
19701 eval IFS="\$pac_save_IFS_${pac_save_IFS_nesting}"
19702 eval pac_save_IFS_${pac_save_IFS_nesting}=""
19703
19704
19705 for sm in ${HIP_SM} ; do
19706 if test -z "${HIP_GENCODE}" ; then
19707 HIP_GENCODE="--offload-arch=${sm}"
19708 else
19709 HIP_GENCODE="${HIP_GENCODE} --offload-arch=${sm}"
19710 fi
19711 done
19712 fi
19713
19714
19715 supported_backends="${supported_backends},hip"
19716 backend_info="${backend_info}
19717 HIP backend specific options:
19718 HIP GENCODE: ${with_hip_sm} (${HIP_GENCODE})"
19719 fi
19720
19721
19722
19723
19724
19725 ac_config_headers="$ac_config_headers src/frontend/include/yaksa_config.h"
19726
19727
19728
19729
19730 ac_config_files="$ac_config_files Makefile Doxyfile maint/yaksa.pc src/frontend/include/yaksa.h"
19731
19732 cat >confcache <<\_ACEOF
19733 # This file is a shell script that caches the results of configure
19734 # tests run on this system so they can be shared between configure
19735 # scripts and configure runs, see configure's option --config-cache.
19736 # It is not useful on other systems. If it contains results you don't
19737 # want to keep, you may remove or edit it.
19738 #
19739 # config.status only pays attention to the cache file if you give it
19740 # the --recheck option to rerun configure.
19741 #
19742 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19743 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19744 # following values.
19745
19746 _ACEOF
19747
19748 # The following way of writing the cache mishandles newlines in values,
19749 # but we know of no workaround that is simple, portable, and efficient.
19750 # So, we kill variables containing newlines.
19751 # Ultrix sh set writes to stderr and can't be redirected directly,
19752 # and sets the high bit in the cache file unless we assign to the vars.
19753 (
19754 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19755 eval ac_val=\$$ac_var
19756 case $ac_val in #(
19757 *${as_nl}*)
19758 case $ac_var in #(
19759 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19760 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19761 esac
19762 case $ac_var in #(
19763 _ | IFS | as_nl) ;; #(
19764 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19765 *) { eval $ac_var=; unset $ac_var;} ;;
19766 esac ;;
19767 esac
19768 done
19769
19770 (set) 2>&1 |
19771 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19772 *${as_nl}ac_space=\ *)
19773 # `set' does not quote correctly, so add quotes: double-quote
19774 # substitution turns \\\\ into \\, and sed turns \\ into \.
19775 sed -n \
19776 "s/'/'\\\\''/g;
19777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19778 ;; #(
19779 *)
19780 # `set' quotes correctly as required by POSIX, so do not add quotes.
19781 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19782 ;;
19783 esac |
19784 sort
19785 ) |
19786 sed '
19787 /^ac_cv_env_/b end
19788 t clear
19789 :clear
19790 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19791 t end
19792 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19793 :end' >>confcache
19794 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19795 if test -w "$cache_file"; then
19796 if test "x$cache_file" != "x/dev/null"; then
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19798 $as_echo "$as_me: updating cache $cache_file" >&6;}
19799 if test ! -f "$cache_file" || test -h "$cache_file"; then
19800 cat confcache >"$cache_file"
19801 else
19802 case $cache_file in #(
19803 */* | ?:*)
19804 mv -f confcache "$cache_file"$$ &&
19805 mv -f "$cache_file"$$ "$cache_file" ;; #(
19806 *)
19807 mv -f confcache "$cache_file" ;;
19808 esac
19809 fi
19810 fi
19811 else
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19813 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19814 fi
19815 fi
19816 rm -f confcache
19817
19818 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19819 # Let make expand exec_prefix.
19820 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19821
19822 DEFS=-DHAVE_CONFIG_H
19823
19824 ac_libobjs=
19825 ac_ltlibobjs=
19826 U=
19827 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19828 # 1. Remove the extension, and $U if already installed.
19829 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19830 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19831 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19832 # will be set to the directory where LIBOBJS objects are built.
19833 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19834 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19835 done
19836 LIBOBJS=$ac_libobjs
19837
19838 LTLIBOBJS=$ac_ltlibobjs
19839
19840
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19842 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19843 if test -n "$am_sleep_pid"; then
19844 # Hide warnings about reused PIDs.
19845 wait $am_sleep_pid 2>/dev/null
19846 fi
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19848 $as_echo "done" >&6; }
19849 if test -n "$EXEEXT"; then
19850 am__EXEEXT_TRUE=
19851 am__EXEEXT_FALSE='#'
19852 else
19853 am__EXEEXT_TRUE='#'
19854 am__EXEEXT_FALSE=
19855 fi
19856
19857 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19858 as_fn_error $? "conditional \"AMDEP\" was never defined.
19859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19860 fi
19861 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19862 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19864 fi
19865 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19866 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19868 fi
19869 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19870 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19872 fi
19873 if test -z "${EMBEDDED_BUILD_TRUE}" && test -z "${EMBEDDED_BUILD_FALSE}"; then
19874 as_fn_error $? "conditional \"EMBEDDED_BUILD\" was never defined.
19875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19876 fi
19877 if test -z "${HAVE_C11_ATOMICS_TRUE}" && test -z "${HAVE_C11_ATOMICS_FALSE}"; then
19878 as_fn_error $? "conditional \"HAVE_C11_ATOMICS\" was never defined.
19879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19880 fi
19881 if test -z "${BUILD_CUDA_BACKEND_TRUE}" && test -z "${BUILD_CUDA_BACKEND_FALSE}"; then
19882 as_fn_error $? "conditional \"BUILD_CUDA_BACKEND\" was never defined.
19883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19884 fi
19885 if test -z "${BUILD_CUDA_TESTS_TRUE}" && test -z "${BUILD_CUDA_TESTS_FALSE}"; then
19886 as_fn_error $? "conditional \"BUILD_CUDA_TESTS\" was never defined.
19887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19888 fi
19889 if test -z "${BUILD_ZE_BACKEND_TRUE}" && test -z "${BUILD_ZE_BACKEND_FALSE}"; then
19890 as_fn_error $? "conditional \"BUILD_ZE_BACKEND\" was never defined.
19891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19892 fi
19893 if test -z "${BUILD_ZE_TESTS_TRUE}" && test -z "${BUILD_ZE_TESTS_FALSE}"; then
19894 as_fn_error $? "conditional \"BUILD_ZE_TESTS\" was never defined.
19895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19896 fi
19897 if test -z "${BUILD_ZE_NATIVE_TRUE}" && test -z "${BUILD_ZE_NATIVE_FALSE}"; then
19898 as_fn_error $? "conditional \"BUILD_ZE_NATIVE\" was never defined.
19899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19900 fi
19901 if test -z "${BUILD_ZE_NATIVE_MULTIPLE_TRUE}" && test -z "${BUILD_ZE_NATIVE_MULTIPLE_FALSE}"; then
19902 as_fn_error $? "conditional \"BUILD_ZE_NATIVE_MULTIPLE\" was never defined.
19903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19904 fi
19905 if test -z "${BUILD_HIP_BACKEND_TRUE}" && test -z "${BUILD_HIP_BACKEND_FALSE}"; then
19906 as_fn_error $? "conditional \"BUILD_HIP_BACKEND\" was never defined.
19907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19908 fi
19909
19910 : "${CONFIG_STATUS=./config.status}"
19911 ac_write_fail=0
19912 ac_clean_files_save=$ac_clean_files
19913 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19915 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19916 as_write_fail=0
19917 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19918 #! $SHELL
19919 # Generated by $as_me.
19920 # Run this file to recreate the current configuration.
19921 # Compiler output produced by configure, useful for debugging
19922 # configure, is in config.log if it exists.
19923
19924 debug=false
19925 ac_cs_recheck=false
19926 ac_cs_silent=false
19927
19928 SHELL=\${CONFIG_SHELL-$SHELL}
19929 export SHELL
19930 _ASEOF
19931 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19932 ## -------------------- ##
19933 ## M4sh Initialization. ##
19934 ## -------------------- ##
19935
19936 # Be more Bourne compatible
19937 DUALCASE=1; export DUALCASE # for MKS sh
19938 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19939 emulate sh
19940 NULLCMD=:
19941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19942 # is contrary to our usage. Disable this feature.
19943 alias -g '${1+"$@"}'='"$@"'
19944 setopt NO_GLOB_SUBST
19945 else
19946 case `(set -o) 2>/dev/null` in #(
19947 *posix*) :
19948 set -o posix ;; #(
19949 *) :
19950 ;;
19951 esac
19952 fi
19953
19954
19955 as_nl='
19956 '
19957 export as_nl
19958 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19959 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19960 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19961 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19962 # Prefer a ksh shell builtin over an external printf program on Solaris,
19963 # but without wasting forks for bash or zsh.
19964 if test -z "$BASH_VERSION$ZSH_VERSION" \
19965 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19966 as_echo='print -r --'
19967 as_echo_n='print -rn --'
19968 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19969 as_echo='printf %s\n'
19970 as_echo_n='printf %s'
19971 else
19972 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19973 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19974 as_echo_n='/usr/ucb/echo -n'
19975 else
19976 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19977 as_echo_n_body='eval
19978 arg=$1;
19979 case $arg in #(
19980 *"$as_nl"*)
19981 expr "X$arg" : "X\\(.*\\)$as_nl";
19982 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19983 esac;
19984 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19985 '
19986 export as_echo_n_body
19987 as_echo_n='sh -c $as_echo_n_body as_echo'
19988 fi
19989 export as_echo_body
19990 as_echo='sh -c $as_echo_body as_echo'
19991 fi
19992
19993 # The user is always right.
19994 if test "${PATH_SEPARATOR+set}" != set; then
19995 PATH_SEPARATOR=:
19996 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19997 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19998 PATH_SEPARATOR=';'
19999 }
20000 fi
20001
20002
20003 # IFS
20004 # We need space, tab and new line, in precisely that order. Quoting is
20005 # there to prevent editors from complaining about space-tab.
20006 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20007 # splitting by setting IFS to empty value.)
20008 IFS=" "" $as_nl"
20009
20010 # Find who we are. Look in the path if we contain no directory separator.
20011 as_myself=
20012 case $0 in #((
20013 *[\\/]* ) as_myself=$0 ;;
20014 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20015 for as_dir in $PATH
20016 do
20017 IFS=$as_save_IFS
20018 test -z "$as_dir" && as_dir=.
20019 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20020 done
20021 IFS=$as_save_IFS
20022
20023 ;;
20024 esac
20025 # We did not find ourselves, most probably we were run as `sh COMMAND'
20026 # in which case we are not to be found in the path.
20027 if test "x$as_myself" = x; then
20028 as_myself=$0
20029 fi
20030 if test ! -f "$as_myself"; then
20031 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20032 exit 1
20033 fi
20034
20035 # Unset variables that we do not need and which cause bugs (e.g. in
20036 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20037 # suppresses any "Segmentation fault" message there. '((' could
20038 # trigger a bug in pdksh 5.2.14.
20039 for as_var in BASH_ENV ENV MAIL MAILPATH
20040 do eval test x\${$as_var+set} = xset \
20041 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20042 done
20043 PS1='$ '
20044 PS2='> '
20045 PS4='+ '
20046
20047 # NLS nuisances.
20048 LC_ALL=C
20049 export LC_ALL
20050 LANGUAGE=C
20051 export LANGUAGE
20052
20053 # CDPATH.
20054 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20055
20056
20057 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20058 # ----------------------------------------
20059 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20060 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20061 # script with STATUS, using 1 if that was 0.
20062 as_fn_error ()
20063 {
20064 as_status=$1; test $as_status -eq 0 && as_status=1
20065 if test "$4"; then
20066 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20067 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20068 fi
20069 $as_echo "$as_me: error: $2" >&2
20070 as_fn_exit $as_status
20071 } # as_fn_error
20072
20073
20074 # as_fn_set_status STATUS
20075 # -----------------------
20076 # Set $? to STATUS, without forking.
20077 as_fn_set_status ()
20078 {
20079 return $1
20080 } # as_fn_set_status
20081
20082 # as_fn_exit STATUS
20083 # -----------------
20084 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20085 as_fn_exit ()
20086 {
20087 set +e
20088 as_fn_set_status $1
20089 exit $1
20090 } # as_fn_exit
20091
20092 # as_fn_unset VAR
20093 # ---------------
20094 # Portably unset VAR.
20095 as_fn_unset ()
20096 {
20097 { eval $1=; unset $1;}
20098 }
20099 as_unset=as_fn_unset
20100 # as_fn_append VAR VALUE
20101 # ----------------------
20102 # Append the text in VALUE to the end of the definition contained in VAR. Take
20103 # advantage of any shell optimizations that allow amortized linear growth over
20104 # repeated appends, instead of the typical quadratic growth present in naive
20105 # implementations.
20106 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20107 eval 'as_fn_append ()
20108 {
20109 eval $1+=\$2
20110 }'
20111 else
20112 as_fn_append ()
20113 {
20114 eval $1=\$$1\$2
20115 }
20116 fi # as_fn_append
20117
20118 # as_fn_arith ARG...
20119 # ------------------
20120 # Perform arithmetic evaluation on the ARGs, and store the result in the
20121 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20122 # must be portable across $(()) and expr.
20123 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20124 eval 'as_fn_arith ()
20125 {
20126 as_val=$(( $* ))
20127 }'
20128 else
20129 as_fn_arith ()
20130 {
20131 as_val=`expr "$@" || test $? -eq 1`
20132 }
20133 fi # as_fn_arith
20134
20135
20136 if expr a : '\(a\)' >/dev/null 2>&1 &&
20137 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20138 as_expr=expr
20139 else
20140 as_expr=false
20141 fi
20142
20143 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20144 as_basename=basename
20145 else
20146 as_basename=false
20147 fi
20148
20149 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20150 as_dirname=dirname
20151 else
20152 as_dirname=false
20153 fi
20154
20155 as_me=`$as_basename -- "$0" ||
20156 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20157 X"$0" : 'X\(//\)$' \| \
20158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20159 $as_echo X/"$0" |
20160 sed '/^.*\/\([^/][^/]*\)\/*$/{
20161 s//\1/
20162 q
20163 }
20164 /^X\/\(\/\/\)$/{
20165 s//\1/
20166 q
20167 }
20168 /^X\/\(\/\).*/{
20169 s//\1/
20170 q
20171 }
20172 s/.*/./; q'`
20173
20174 # Avoid depending upon Character Ranges.
20175 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20176 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20177 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20178 as_cr_digits='0123456789'
20179 as_cr_alnum=$as_cr_Letters$as_cr_digits
20180
20181 ECHO_C= ECHO_N= ECHO_T=
20182 case `echo -n x` in #(((((
20183 -n*)
20184 case `echo 'xy\c'` in
20185 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20186 xy) ECHO_C='\c';;
20187 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20188 ECHO_T=' ';;
20189 esac;;
20190 *)
20191 ECHO_N='-n';;
20192 esac
20193
20194 rm -f conf$$ conf$$.exe conf$$.file
20195 if test -d conf$$.dir; then
20196 rm -f conf$$.dir/conf$$.file
20197 else
20198 rm -f conf$$.dir
20199 mkdir conf$$.dir 2>/dev/null
20200 fi
20201 if (echo >conf$$.file) 2>/dev/null; then
20202 if ln -s conf$$.file conf$$ 2>/dev/null; then
20203 as_ln_s='ln -s'
20204 # ... but there are two gotchas:
20205 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20206 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20207 # In both cases, we have to default to `cp -pR'.
20208 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20209 as_ln_s='cp -pR'
20210 elif ln conf$$.file conf$$ 2>/dev/null; then
20211 as_ln_s=ln
20212 else
20213 as_ln_s='cp -pR'
20214 fi
20215 else
20216 as_ln_s='cp -pR'
20217 fi
20218 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20219 rmdir conf$$.dir 2>/dev/null
20220
20221
20222 # as_fn_mkdir_p
20223 # -------------
20224 # Create "$as_dir" as a directory, including parents if necessary.
20225 as_fn_mkdir_p ()
20226 {
20227
20228 case $as_dir in #(
20229 -*) as_dir=./$as_dir;;
20230 esac
20231 test -d "$as_dir" || eval $as_mkdir_p || {
20232 as_dirs=
20233 while :; do
20234 case $as_dir in #(
20235 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20236 *) as_qdir=$as_dir;;
20237 esac
20238 as_dirs="'$as_qdir' $as_dirs"
20239 as_dir=`$as_dirname -- "$as_dir" ||
20240 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20241 X"$as_dir" : 'X\(//\)[^/]' \| \
20242 X"$as_dir" : 'X\(//\)$' \| \
20243 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20244 $as_echo X"$as_dir" |
20245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20246 s//\1/
20247 q
20248 }
20249 /^X\(\/\/\)[^/].*/{
20250 s//\1/
20251 q
20252 }
20253 /^X\(\/\/\)$/{
20254 s//\1/
20255 q
20256 }
20257 /^X\(\/\).*/{
20258 s//\1/
20259 q
20260 }
20261 s/.*/./; q'`
20262 test -d "$as_dir" && break
20263 done
20264 test -z "$as_dirs" || eval "mkdir $as_dirs"
20265 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20266
20267
20268 } # as_fn_mkdir_p
20269 if mkdir -p . 2>/dev/null; then
20270 as_mkdir_p='mkdir -p "$as_dir"'
20271 else
20272 test -d ./-p && rmdir ./-p
20273 as_mkdir_p=false
20274 fi
20275
20276
20277 # as_fn_executable_p FILE
20278 # -----------------------
20279 # Test if FILE is an executable regular file.
20280 as_fn_executable_p ()
20281 {
20282 test -f "$1" && test -x "$1"
20283 } # as_fn_executable_p
20284 as_test_x='test -x'
20285 as_executable_p=as_fn_executable_p
20286
20287 # Sed expression to map a string onto a valid CPP name.
20288 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20289
20290 # Sed expression to map a string onto a valid variable name.
20291 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20292
20293
20294 exec 6>&1
20295 ## ----------------------------------- ##
20296 ## Main body of $CONFIG_STATUS script. ##
20297 ## ----------------------------------- ##
20298 _ASEOF
20299 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20300
20301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20302 # Save the log message, to keep $0 and so on meaningful, and to
20303 # report actual input values of CONFIG_FILES etc. instead of their
20304 # values after options handling.
20305 ac_log="
20306 This file was extended by yaksa $as_me unreleased, which was
20307 generated by GNU Autoconf 2.69. Invocation command line was
20308
20309 CONFIG_FILES = $CONFIG_FILES
20310 CONFIG_HEADERS = $CONFIG_HEADERS
20311 CONFIG_LINKS = $CONFIG_LINKS
20312 CONFIG_COMMANDS = $CONFIG_COMMANDS
20313 $ $0 $@
20314
20315 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20316 "
20317
20318 _ACEOF
20319
20320 case $ac_config_files in *"
20321 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20322 esac
20323
20324 case $ac_config_headers in *"
20325 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20326 esac
20327
20328
20329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20330 # Files that config.status was made for.
20331 config_files="$ac_config_files"
20332 config_headers="$ac_config_headers"
20333 config_commands="$ac_config_commands"
20334
20335 _ACEOF
20336
20337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20338 ac_cs_usage="\
20339 \`$as_me' instantiates files and other configuration actions
20340 from templates according to the current configuration. Unless the files
20341 and actions are specified as TAGs, all are instantiated by default.
20342
20343 Usage: $0 [OPTION]... [TAG]...
20344
20345 -h, --help print this help, then exit
20346 -V, --version print version number and configuration settings, then exit
20347 --config print configuration, then exit
20348 -q, --quiet, --silent
20349 do not print progress messages
20350 -d, --debug don't remove temporary files
20351 --recheck update $as_me by reconfiguring in the same conditions
20352 --file=FILE[:TEMPLATE]
20353 instantiate the configuration file FILE
20354 --header=FILE[:TEMPLATE]
20355 instantiate the configuration header FILE
20356
20357 Configuration files:
20358 $config_files
20359
20360 Configuration headers:
20361 $config_headers
20362
20363 Configuration commands:
20364 $config_commands
20365
20366 Report bugs to the package provider."
20367
20368 _ACEOF
20369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20370 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20371 ac_cs_version="\\
20372 yaksa config.status unreleased
20373 configured by $0, generated by GNU Autoconf 2.69,
20374 with options \\"\$ac_cs_config\\"
20375
20376 Copyright (C) 2012 Free Software Foundation, Inc.
20377 This config.status script is free software; the Free Software Foundation
20378 gives unlimited permission to copy, distribute and modify it."
20379
20380 ac_pwd='$ac_pwd'
20381 srcdir='$srcdir'
20382 INSTALL='$INSTALL'
20383 MKDIR_P='$MKDIR_P'
20384 AWK='$AWK'
20385 test -n "\$AWK" || AWK=awk
20386 _ACEOF
20387
20388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20389 # The default lists apply if the user does not specify any file.
20390 ac_need_defaults=:
20391 while test $# != 0
20392 do
20393 case $1 in
20394 --*=?*)
20395 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20396 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20397 ac_shift=:
20398 ;;
20399 --*=)
20400 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20401 ac_optarg=
20402 ac_shift=:
20403 ;;
20404 *)
20405 ac_option=$1
20406 ac_optarg=$2
20407 ac_shift=shift
20408 ;;
20409 esac
20410
20411 case $ac_option in
20412 # Handling of the options.
20413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20414 ac_cs_recheck=: ;;
20415 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20416 $as_echo "$ac_cs_version"; exit ;;
20417 --config | --confi | --conf | --con | --co | --c )
20418 $as_echo "$ac_cs_config"; exit ;;
20419 --debug | --debu | --deb | --de | --d | -d )
20420 debug=: ;;
20421 --file | --fil | --fi | --f )
20422 $ac_shift
20423 case $ac_optarg in
20424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20425 '') as_fn_error $? "missing file argument" ;;
20426 esac
20427 as_fn_append CONFIG_FILES " '$ac_optarg'"
20428 ac_need_defaults=false;;
20429 --header | --heade | --head | --hea )
20430 $ac_shift
20431 case $ac_optarg in
20432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20433 esac
20434 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20435 ac_need_defaults=false;;
20436 --he | --h)
20437 # Conflict between --help and --header
20438 as_fn_error $? "ambiguous option: \`$1'
20439 Try \`$0 --help' for more information.";;
20440 --help | --hel | -h )
20441 $as_echo "$ac_cs_usage"; exit ;;
20442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20443 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20444 ac_cs_silent=: ;;
20445
20446 # This is an error.
20447 -*) as_fn_error $? "unrecognized option: \`$1'
20448 Try \`$0 --help' for more information." ;;
20449
20450 *) as_fn_append ac_config_targets " $1"
20451 ac_need_defaults=false ;;
20452
20453 esac
20454 shift
20455 done
20456
20457 ac_configure_extra_args=
20458
20459 if $ac_cs_silent; then
20460 exec 6>/dev/null
20461 ac_configure_extra_args="$ac_configure_extra_args --silent"
20462 fi
20463
20464 _ACEOF
20465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20466 if \$ac_cs_recheck; then
20467 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20468 shift
20469 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20470 CONFIG_SHELL='$SHELL'
20471 export CONFIG_SHELL
20472 exec "\$@"
20473 fi
20474
20475 _ACEOF
20476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20477 exec 5>>config.log
20478 {
20479 echo
20480 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20481 ## Running $as_me. ##
20482 _ASBOX
20483 $as_echo "$ac_log"
20484 } >&5
20485
20486 _ACEOF
20487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20488 #
20489 # INIT-COMMANDS
20490 #
20491 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20492
20493
20494 # The HP-UX ksh and POSIX shell print the target directory to stdout
20495 # if CDPATH is set.
20496 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20497
20498 sed_quote_subst='$sed_quote_subst'
20499 double_quote_subst='$double_quote_subst'
20500 delay_variable_subst='$delay_variable_subst'
20501 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20502 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20503 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20504 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20505 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20506 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20507 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20508 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20509 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20510 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20511 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20512 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20513 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20514 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20515 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20516 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20517 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20518 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20519 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20520 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20521 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20522 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20523 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20524 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20525 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20526 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20527 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20528 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20529 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20530 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20531 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20532 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20533 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20534 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20535 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20536 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20537 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20538 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20539 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20540 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20541 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20542 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20543 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20544 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20545 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20546 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20547 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20548 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20549 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20550 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20551 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20552 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20553 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20554 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20555 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20556 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20557 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20558 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20559 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"`'
20560 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20561 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20562 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20563 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20564 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20565 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20566 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20567 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20568 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20569 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20570 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20571 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20572 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20573 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20574 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20575 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20576 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20577 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20578 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20579 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20580 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20581 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20582 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20583 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20584 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20585 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20586 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20587 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20588 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20589 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20590 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20591 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20592 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20593 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20594 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20595 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20596 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20597 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20598 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20599 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20600 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20601 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20602 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20603 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20604 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20605 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20606 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20607 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20608 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20609 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20610 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20611 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20612 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20613 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20614 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20615 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20616 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20617 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20618 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20619 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20620 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20621 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20622 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20623 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20624 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20625 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20626 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20627 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20628 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20629 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20630 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20631 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20632 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20633 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20634 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20635 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20636
20637 LTCC='$LTCC'
20638 LTCFLAGS='$LTCFLAGS'
20639 compiler='$compiler_DEFAULT'
20640
20641 # A function that is used when there is no print builtin or printf.
20642 func_fallback_echo ()
20643 {
20644 eval 'cat <<_LTECHO_EOF
20645 \$1
20646 _LTECHO_EOF'
20647 }
20648
20649 # Quote evaled strings.
20650 for var in SHELL \
20651 ECHO \
20652 PATH_SEPARATOR \
20653 SED \
20654 GREP \
20655 EGREP \
20656 FGREP \
20657 LD \
20658 NM \
20659 LN_S \
20660 lt_SP2NL \
20661 lt_NL2SP \
20662 reload_flag \
20663 OBJDUMP \
20664 deplibs_check_method \
20665 file_magic_cmd \
20666 file_magic_glob \
20667 want_nocaseglob \
20668 DLLTOOL \
20669 sharedlib_from_linklib_cmd \
20670 AR \
20671 AR_FLAGS \
20672 archiver_list_spec \
20673 STRIP \
20674 RANLIB \
20675 CC \
20676 CFLAGS \
20677 compiler \
20678 lt_cv_sys_global_symbol_pipe \
20679 lt_cv_sys_global_symbol_to_cdecl \
20680 lt_cv_sys_global_symbol_to_import \
20681 lt_cv_sys_global_symbol_to_c_name_address \
20682 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20683 lt_cv_nm_interface \
20684 nm_file_list_spec \
20685 lt_cv_truncate_bin \
20686 lt_prog_compiler_no_builtin_flag \
20687 lt_prog_compiler_pic \
20688 lt_prog_compiler_wl \
20689 lt_prog_compiler_static \
20690 lt_cv_prog_compiler_c_o \
20691 need_locks \
20692 MANIFEST_TOOL \
20693 DSYMUTIL \
20694 NMEDIT \
20695 LIPO \
20696 OTOOL \
20697 OTOOL64 \
20698 shrext_cmds \
20699 export_dynamic_flag_spec \
20700 whole_archive_flag_spec \
20701 compiler_needs_object \
20702 with_gnu_ld \
20703 allow_undefined_flag \
20704 no_undefined_flag \
20705 hardcode_libdir_flag_spec \
20706 hardcode_libdir_separator \
20707 exclude_expsyms \
20708 include_expsyms \
20709 file_list_spec \
20710 variables_saved_for_relink \
20711 libname_spec \
20712 library_names_spec \
20713 soname_spec \
20714 install_override_mode \
20715 finish_eval \
20716 old_striplib \
20717 striplib; do
20718 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20719 *[\\\\\\\`\\"\\\$]*)
20720 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20721 ;;
20722 *)
20723 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20724 ;;
20725 esac
20726 done
20727
20728 # Double-quote double-evaled strings.
20729 for var in reload_cmds \
20730 old_postinstall_cmds \
20731 old_postuninstall_cmds \
20732 old_archive_cmds \
20733 extract_expsyms_cmds \
20734 old_archive_from_new_cmds \
20735 old_archive_from_expsyms_cmds \
20736 archive_cmds \
20737 archive_expsym_cmds \
20738 module_cmds \
20739 module_expsym_cmds \
20740 export_symbols_cmds \
20741 prelink_cmds \
20742 postlink_cmds \
20743 postinstall_cmds \
20744 postuninstall_cmds \
20745 finish_cmds \
20746 sys_lib_search_path_spec \
20747 configure_time_dlsearch_path \
20748 configure_time_lt_sys_library_path; do
20749 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20750 *[\\\\\\\`\\"\\\$]*)
20751 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20752 ;;
20753 *)
20754 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20755 ;;
20756 esac
20757 done
20758
20759 ac_aux_dir='$ac_aux_dir'
20760
20761 # See if we are running on zsh, and set the options that allow our
20762 # commands through without removal of \ escapes INIT.
20763 if test -n "\${ZSH_VERSION+set}"; then
20764 setopt NO_GLOB_SUBST
20765 fi
20766
20767
20768 PACKAGE='$PACKAGE'
20769 VERSION='$VERSION'
20770 RM='$RM'
20771 ofile='$ofile'
20772
20773
20774
20775
20776 _ACEOF
20777
20778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20779
20780 # Handling of arguments.
20781 for ac_config_target in $ac_config_targets
20782 do
20783 case $ac_config_target in
20784 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20785 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20786 "src/frontend/include/yaksa_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/frontend/include/yaksa_config.h" ;;
20787 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20788 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
20789 "maint/yaksa.pc") CONFIG_FILES="$CONFIG_FILES maint/yaksa.pc" ;;
20790 "src/frontend/include/yaksa.h") CONFIG_FILES="$CONFIG_FILES src/frontend/include/yaksa.h" ;;
20791
20792 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20793 esac
20794 done
20795
20796
20797 # If the user did not use the arguments to specify the items to instantiate,
20798 # then the envvar interface is used. Set only those that are not.
20799 # We use the long form for the default assignment because of an extremely
20800 # bizarre bug on SunOS 4.1.3.
20801 if $ac_need_defaults; then
20802 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20803 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20804 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20805 fi
20806
20807 # Have a temporary directory for convenience. Make it in the build tree
20808 # simply because there is no reason against having it here, and in addition,
20809 # creating and moving files from /tmp can sometimes cause problems.
20810 # Hook for its removal unless debugging.
20811 # Note that there is a small window in which the directory will not be cleaned:
20812 # after its creation but before its name has been assigned to `$tmp'.
20813 $debug ||
20814 {
20815 tmp= ac_tmp=
20816 trap 'exit_status=$?
20817 : "${ac_tmp:=$tmp}"
20818 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20819 ' 0
20820 trap 'as_fn_exit 1' 1 2 13 15
20821 }
20822 # Create a (secure) tmp directory for tmp files.
20823
20824 {
20825 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20826 test -d "$tmp"
20827 } ||
20828 {
20829 tmp=./conf$$-$RANDOM
20830 (umask 077 && mkdir "$tmp")
20831 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20832 ac_tmp=$tmp
20833
20834 # Set up the scripts for CONFIG_FILES section.
20835 # No need to generate them if there are no CONFIG_FILES.
20836 # This happens for instance with `./config.status config.h'.
20837 if test -n "$CONFIG_FILES"; then
20838
20839
20840 ac_cr=`echo X | tr X '\015'`
20841 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20842 # But we know of no other shell where ac_cr would be empty at this
20843 # point, so we can use a bashism as a fallback.
20844 if test "x$ac_cr" = x; then
20845 eval ac_cr=\$\'\\r\'
20846 fi
20847 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20848 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20849 ac_cs_awk_cr='\\r'
20850 else
20851 ac_cs_awk_cr=$ac_cr
20852 fi
20853
20854 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20855 _ACEOF
20856
20857
20858 {
20859 echo "cat >conf$$subs.awk <<_ACEOF" &&
20860 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20861 echo "_ACEOF"
20862 } >conf$$subs.sh ||
20863 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20864 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20865 ac_delim='%!_!# '
20866 for ac_last_try in false false false false false :; do
20867 . ./conf$$subs.sh ||
20868 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20869
20870 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20871 if test $ac_delim_n = $ac_delim_num; then
20872 break
20873 elif $ac_last_try; then
20874 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20875 else
20876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20877 fi
20878 done
20879 rm -f conf$$subs.sh
20880
20881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20882 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20883 _ACEOF
20884 sed -n '
20885 h
20886 s/^/S["/; s/!.*/"]=/
20887 p
20888 g
20889 s/^[^!]*!//
20890 :repl
20891 t repl
20892 s/'"$ac_delim"'$//
20893 t delim
20894 :nl
20895 h
20896 s/\(.\{148\}\)..*/\1/
20897 t more1
20898 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20899 p
20900 n
20901 b repl
20902 :more1
20903 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20904 p
20905 g
20906 s/.\{148\}//
20907 t nl
20908 :delim
20909 h
20910 s/\(.\{148\}\)..*/\1/
20911 t more2
20912 s/["\\]/\\&/g; s/^/"/; s/$/"/
20913 p
20914 b
20915 :more2
20916 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20917 p
20918 g
20919 s/.\{148\}//
20920 t delim
20921 ' <conf$$subs.awk | sed '
20922 /^[^""]/{
20923 N
20924 s/\n//
20925 }
20926 ' >>$CONFIG_STATUS || ac_write_fail=1
20927 rm -f conf$$subs.awk
20928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20929 _ACAWK
20930 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20931 for (key in S) S_is_set[key] = 1
20932 FS = ""
20933
20934 }
20935 {
20936 line = $ 0
20937 nfields = split(line, field, "@")
20938 substed = 0
20939 len = length(field[1])
20940 for (i = 2; i < nfields; i++) {
20941 key = field[i]
20942 keylen = length(key)
20943 if (S_is_set[key]) {
20944 value = S[key]
20945 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20946 len += length(value) + length(field[++i])
20947 substed = 1
20948 } else
20949 len += 1 + keylen
20950 }
20951
20952 print line
20953 }
20954
20955 _ACAWK
20956 _ACEOF
20957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20958 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20959 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20960 else
20961 cat
20962 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20963 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20964 _ACEOF
20965
20966 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20967 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20968 # trailing colons and then remove the whole line if VPATH becomes empty
20969 # (actually we leave an empty line to preserve line numbers).
20970 if test "x$srcdir" = x.; then
20971 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20972 h
20973 s///
20974 s/^/:/
20975 s/[ ]*$/:/
20976 s/:\$(srcdir):/:/g
20977 s/:\${srcdir}:/:/g
20978 s/:@srcdir@:/:/g
20979 s/^:*//
20980 s/:*$//
20981 x
20982 s/\(=[ ]*\).*/\1/
20983 G
20984 s/\n//
20985 s/^[^=]*=[ ]*$//
20986 }'
20987 fi
20988
20989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20990 fi # test -n "$CONFIG_FILES"
20991
20992 # Set up the scripts for CONFIG_HEADERS section.
20993 # No need to generate them if there are no CONFIG_HEADERS.
20994 # This happens for instance with `./config.status Makefile'.
20995 if test -n "$CONFIG_HEADERS"; then
20996 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20997 BEGIN {
20998 _ACEOF
20999
21000 # Transform confdefs.h into an awk script `defines.awk', embedded as
21001 # here-document in config.status, that substitutes the proper values into
21002 # config.h.in to produce config.h.
21003
21004 # Create a delimiter string that does not exist in confdefs.h, to ease
21005 # handling of long lines.
21006 ac_delim='%!_!# '
21007 for ac_last_try in false false :; do
21008 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21009 if test -z "$ac_tt"; then
21010 break
21011 elif $ac_last_try; then
21012 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21013 else
21014 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21015 fi
21016 done
21017
21018 # For the awk script, D is an array of macro values keyed by name,
21019 # likewise P contains macro parameters if any. Preserve backslash
21020 # newline sequences.
21021
21022 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21023 sed -n '
21024 s/.\{148\}/&'"$ac_delim"'/g
21025 t rset
21026 :rset
21027 s/^[ ]*#[ ]*define[ ][ ]*/ /
21028 t def
21029 d
21030 :def
21031 s/\\$//
21032 t bsnl
21033 s/["\\]/\\&/g
21034 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21035 D["\1"]=" \3"/p
21036 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21037 d
21038 :bsnl
21039 s/["\\]/\\&/g
21040 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21041 D["\1"]=" \3\\\\\\n"\\/p
21042 t cont
21043 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21044 t cont
21045 d
21046 :cont
21047 n
21048 s/.\{148\}/&'"$ac_delim"'/g
21049 t clear
21050 :clear
21051 s/\\$//
21052 t bsnlc
21053 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21054 d
21055 :bsnlc
21056 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21057 b cont
21058 ' <confdefs.h | sed '
21059 s/'"$ac_delim"'/"\\\
21060 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21061
21062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21063 for (key in D) D_is_set[key] = 1
21064 FS = ""
21065 }
21066 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21067 line = \$ 0
21068 split(line, arg, " ")
21069 if (arg[1] == "#") {
21070 defundef = arg[2]
21071 mac1 = arg[3]
21072 } else {
21073 defundef = substr(arg[1], 2)
21074 mac1 = arg[2]
21075 }
21076 split(mac1, mac2, "(") #)
21077 macro = mac2[1]
21078 prefix = substr(line, 1, index(line, defundef) - 1)
21079 if (D_is_set[macro]) {
21080 # Preserve the white space surrounding the "#".
21081 print prefix "define", macro P[macro] D[macro]
21082 next
21083 } else {
21084 # Replace #undef with comments. This is necessary, for example,
21085 # in the case of _POSIX_SOURCE, which is predefined and required
21086 # on some systems where configure will not decide to define it.
21087 if (defundef == "undef") {
21088 print "/*", prefix defundef, macro, "*/"
21089 next
21090 }
21091 }
21092 }
21093 { print }
21094 _ACAWK
21095 _ACEOF
21096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21097 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21098 fi # test -n "$CONFIG_HEADERS"
21099
21100
21101 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21102 shift
21103 for ac_tag
21104 do
21105 case $ac_tag in
21106 :[FHLC]) ac_mode=$ac_tag; continue;;
21107 esac
21108 case $ac_mode$ac_tag in
21109 :[FHL]*:*);;
21110 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21111 :[FH]-) ac_tag=-:-;;
21112 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21113 esac
21114 ac_save_IFS=$IFS
21115 IFS=:
21116 set x $ac_tag
21117 IFS=$ac_save_IFS
21118 shift
21119 ac_file=$1
21120 shift
21121
21122 case $ac_mode in
21123 :L) ac_source=$1;;
21124 :[FH])
21125 ac_file_inputs=
21126 for ac_f
21127 do
21128 case $ac_f in
21129 -) ac_f="$ac_tmp/stdin";;
21130 *) # Look for the file first in the build tree, then in the source tree
21131 # (if the path is not absolute). The absolute path cannot be DOS-style,
21132 # because $ac_f cannot contain `:'.
21133 test -f "$ac_f" ||
21134 case $ac_f in
21135 [\\/$]*) false;;
21136 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21137 esac ||
21138 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21139 esac
21140 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21141 as_fn_append ac_file_inputs " '$ac_f'"
21142 done
21143
21144 # Let's still pretend it is `configure' which instantiates (i.e., don't
21145 # use $as_me), people would be surprised to read:
21146 # /* config.h. Generated by config.status. */
21147 configure_input='Generated from '`
21148 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21149 `' by configure.'
21150 if test x"$ac_file" != x-; then
21151 configure_input="$ac_file. $configure_input"
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21153 $as_echo "$as_me: creating $ac_file" >&6;}
21154 fi
21155 # Neutralize special characters interpreted by sed in replacement strings.
21156 case $configure_input in #(
21157 *\&* | *\|* | *\\* )
21158 ac_sed_conf_input=`$as_echo "$configure_input" |
21159 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21160 *) ac_sed_conf_input=$configure_input;;
21161 esac
21162
21163 case $ac_tag in
21164 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21165 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21166 esac
21167 ;;
21168 esac
21169
21170 ac_dir=`$as_dirname -- "$ac_file" ||
21171 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21172 X"$ac_file" : 'X\(//\)[^/]' \| \
21173 X"$ac_file" : 'X\(//\)$' \| \
21174 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21175 $as_echo X"$ac_file" |
21176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21177 s//\1/
21178 q
21179 }
21180 /^X\(\/\/\)[^/].*/{
21181 s//\1/
21182 q
21183 }
21184 /^X\(\/\/\)$/{
21185 s//\1/
21186 q
21187 }
21188 /^X\(\/\).*/{
21189 s//\1/
21190 q
21191 }
21192 s/.*/./; q'`
21193 as_dir="$ac_dir"; as_fn_mkdir_p
21194 ac_builddir=.
21195
21196 case "$ac_dir" in
21197 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21198 *)
21199 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21200 # A ".." for each directory in $ac_dir_suffix.
21201 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21202 case $ac_top_builddir_sub in
21203 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21204 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21205 esac ;;
21206 esac
21207 ac_abs_top_builddir=$ac_pwd
21208 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21209 # for backward compatibility:
21210 ac_top_builddir=$ac_top_build_prefix
21211
21212 case $srcdir in
21213 .) # We are building in place.
21214 ac_srcdir=.
21215 ac_top_srcdir=$ac_top_builddir_sub
21216 ac_abs_top_srcdir=$ac_pwd ;;
21217 [\\/]* | ?:[\\/]* ) # Absolute name.
21218 ac_srcdir=$srcdir$ac_dir_suffix;
21219 ac_top_srcdir=$srcdir
21220 ac_abs_top_srcdir=$srcdir ;;
21221 *) # Relative name.
21222 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21223 ac_top_srcdir=$ac_top_build_prefix$srcdir
21224 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21225 esac
21226 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21227
21228
21229 case $ac_mode in
21230 :F)
21231 #
21232 # CONFIG_FILE
21233 #
21234
21235 case $INSTALL in
21236 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21237 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21238 esac
21239 ac_MKDIR_P=$MKDIR_P
21240 case $MKDIR_P in
21241 [\\/$]* | ?:[\\/]* ) ;;
21242 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21243 esac
21244 _ACEOF
21245
21246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21247 # If the template does not know about datarootdir, expand it.
21248 # FIXME: This hack should be removed a few years after 2.60.
21249 ac_datarootdir_hack=; ac_datarootdir_seen=
21250 ac_sed_dataroot='
21251 /datarootdir/ {
21252 p
21253 q
21254 }
21255 /@datadir@/p
21256 /@docdir@/p
21257 /@infodir@/p
21258 /@localedir@/p
21259 /@mandir@/p'
21260 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21261 *datarootdir*) ac_datarootdir_seen=yes;;
21262 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21264 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21265 _ACEOF
21266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21267 ac_datarootdir_hack='
21268 s&@datadir@&$datadir&g
21269 s&@docdir@&$docdir&g
21270 s&@infodir@&$infodir&g
21271 s&@localedir@&$localedir&g
21272 s&@mandir@&$mandir&g
21273 s&\\\${datarootdir}&$datarootdir&g' ;;
21274 esac
21275 _ACEOF
21276
21277 # Neutralize VPATH when `$srcdir' = `.'.
21278 # Shell code in configure.ac might set extrasub.
21279 # FIXME: do we really want to maintain this feature?
21280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21281 ac_sed_extra="$ac_vpsub
21282 $extrasub
21283 _ACEOF
21284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21285 :t
21286 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21287 s|@configure_input@|$ac_sed_conf_input|;t t
21288 s&@top_builddir@&$ac_top_builddir_sub&;t t
21289 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21290 s&@srcdir@&$ac_srcdir&;t t
21291 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21292 s&@top_srcdir@&$ac_top_srcdir&;t t
21293 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21294 s&@builddir@&$ac_builddir&;t t
21295 s&@abs_builddir@&$ac_abs_builddir&;t t
21296 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21297 s&@INSTALL@&$ac_INSTALL&;t t
21298 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21299 $ac_datarootdir_hack
21300 "
21301 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21302 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21303
21304 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21305 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21306 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21307 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21309 which seems to be undefined. Please make sure it is defined" >&5
21310 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21311 which seems to be undefined. Please make sure it is defined" >&2;}
21312
21313 rm -f "$ac_tmp/stdin"
21314 case $ac_file in
21315 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21316 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21317 esac \
21318 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21319 ;;
21320 :H)
21321 #
21322 # CONFIG_HEADER
21323 #
21324 if test x"$ac_file" != x-; then
21325 {
21326 $as_echo "/* $configure_input */" \
21327 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21328 } >"$ac_tmp/config.h" \
21329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21330 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21332 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21333 else
21334 rm -f "$ac_file"
21335 mv "$ac_tmp/config.h" "$ac_file" \
21336 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21337 fi
21338 else
21339 $as_echo "/* $configure_input */" \
21340 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21341 || as_fn_error $? "could not create -" "$LINENO" 5
21342 fi
21343 # Compute "$ac_file"'s index in $config_headers.
21344 _am_arg="$ac_file"
21345 _am_stamp_count=1
21346 for _am_header in $config_headers :; do
21347 case $_am_header in
21348 $_am_arg | $_am_arg:* )
21349 break ;;
21350 * )
21351 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21352 esac
21353 done
21354 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21355 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21356 X"$_am_arg" : 'X\(//\)[^/]' \| \
21357 X"$_am_arg" : 'X\(//\)$' \| \
21358 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21359 $as_echo X"$_am_arg" |
21360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21361 s//\1/
21362 q
21363 }
21364 /^X\(\/\/\)[^/].*/{
21365 s//\1/
21366 q
21367 }
21368 /^X\(\/\/\)$/{
21369 s//\1/
21370 q
21371 }
21372 /^X\(\/\).*/{
21373 s//\1/
21374 q
21375 }
21376 s/.*/./; q'`/stamp-h$_am_stamp_count
21377 ;;
21378
21379 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21380 $as_echo "$as_me: executing $ac_file commands" >&6;}
21381 ;;
21382 esac
21383
21384
21385 case $ac_file$ac_mode in
21386 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21387 # Older Autoconf quotes --file arguments for eval, but not when files
21388 # are listed without --file. Let's play safe and only enable the eval
21389 # if we detect the quoting.
21390 # TODO: see whether this extra hack can be removed once we start
21391 # requiring Autoconf 2.70 or later.
21392 case $CONFIG_FILES in #(
21393 *\'*) :
21394 eval set x "$CONFIG_FILES" ;; #(
21395 *) :
21396 set x $CONFIG_FILES ;; #(
21397 *) :
21398 ;;
21399 esac
21400 shift
21401 # Used to flag and report bootstrapping failures.
21402 am_rc=0
21403 for am_mf
21404 do
21405 # Strip MF so we end up with the name of the file.
21406 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
21407 # Check whether this is an Automake generated Makefile which includes
21408 # dependency-tracking related rules and includes.
21409 # Grep'ing the whole file directly is not great: AIX grep has a line
21410 # limit of 2048, but all sed's we know have understand at least 4000.
21411 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21412 || continue
21413 am_dirpart=`$as_dirname -- "$am_mf" ||
21414 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21415 X"$am_mf" : 'X\(//\)[^/]' \| \
21416 X"$am_mf" : 'X\(//\)$' \| \
21417 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21418 $as_echo X"$am_mf" |
21419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21420 s//\1/
21421 q
21422 }
21423 /^X\(\/\/\)[^/].*/{
21424 s//\1/
21425 q
21426 }
21427 /^X\(\/\/\)$/{
21428 s//\1/
21429 q
21430 }
21431 /^X\(\/\).*/{
21432 s//\1/
21433 q
21434 }
21435 s/.*/./; q'`
21436 am_filepart=`$as_basename -- "$am_mf" ||
21437 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21438 X"$am_mf" : 'X\(//\)$' \| \
21439 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21440 $as_echo X/"$am_mf" |
21441 sed '/^.*\/\([^/][^/]*\)\/*$/{
21442 s//\1/
21443 q
21444 }
21445 /^X\/\(\/\/\)$/{
21446 s//\1/
21447 q
21448 }
21449 /^X\/\(\/\).*/{
21450 s//\1/
21451 q
21452 }
21453 s/.*/./; q'`
21454 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21455 && sed -e '/# am--include-marker/d' "$am_filepart" \
21456 | $MAKE -f - am--depfiles" >&5
21457 (cd "$am_dirpart" \
21458 && sed -e '/# am--include-marker/d' "$am_filepart" \
21459 | $MAKE -f - am--depfiles) >&5 2>&5
21460 ac_status=$?
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } || am_rc=$?
21463 done
21464 if test $am_rc -ne 0; then
21465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21467 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21468 for automatic dependency tracking. If GNU make was not used, consider
21469 re-running the configure script with MAKE=\"gmake\" (or whatever is
21470 necessary). You can also try re-running configure with the
21471 '--disable-dependency-tracking' option to at least be able to build
21472 the package (albeit without support for automatic dependency tracking).
21473 See \`config.log' for more details" "$LINENO" 5; }
21474 fi
21475 { am_dirpart=; unset am_dirpart;}
21476 { am_filepart=; unset am_filepart;}
21477 { am_mf=; unset am_mf;}
21478 { am_rc=; unset am_rc;}
21479 rm -f conftest-deps.mk
21480 }
21481 ;;
21482 "libtool":C)
21483
21484 # See if we are running on zsh, and set the options that allow our
21485 # commands through without removal of \ escapes.
21486 if test -n "${ZSH_VERSION+set}"; then
21487 setopt NO_GLOB_SUBST
21488 fi
21489
21490 cfgfile=${ofile}T
21491 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21492 $RM "$cfgfile"
21493
21494 cat <<_LT_EOF >> "$cfgfile"
21495 #! $SHELL
21496 # Generated automatically by $as_me ($PACKAGE) $VERSION
21497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21498 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21499
21500 # Provide generalized library-building support services.
21501 # Written by Gordon Matzigkeit, 1996
21502
21503 # Copyright (C) 2014 Free Software Foundation, Inc.
21504 # This is free software; see the source for copying conditions. There is NO
21505 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21506
21507 # GNU Libtool is free software; you can redistribute it and/or modify
21508 # it under the terms of the GNU General Public License as published by
21509 # the Free Software Foundation; either version 2 of of the License, or
21510 # (at your option) any later version.
21511 #
21512 # As a special exception to the GNU General Public License, if you
21513 # distribute this file as part of a program or library that is built
21514 # using GNU Libtool, you may include this file under the same
21515 # distribution terms that you use for the rest of that program.
21516 #
21517 # GNU Libtool is distributed in the hope that it will be useful, but
21518 # WITHOUT ANY WARRANTY; without even the implied warranty of
21519 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21520 # GNU General Public License for more details.
21521 #
21522 # You should have received a copy of the GNU General Public License
21523 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21524
21525
21526 # The names of the tagged configurations supported by this script.
21527 available_tags=''
21528
21529 # Configured defaults for sys_lib_dlsearch_path munging.
21530 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21531
21532 # ### BEGIN LIBTOOL CONFIG
21533
21534 # Which release of libtool.m4 was used?
21535 macro_version=$macro_version
21536 macro_revision=$macro_revision
21537
21538 # Whether or not to build shared libraries.
21539 build_libtool_libs=$enable_shared
21540
21541 # Whether or not to build static libraries.
21542 build_old_libs=$enable_static
21543
21544 # What type of objects to build.
21545 pic_mode=$pic_mode
21546
21547 # Whether or not to optimize for fast installation.
21548 fast_install=$enable_fast_install
21549
21550 # Shared archive member basename,for filename based shared library versioning on AIX.
21551 shared_archive_member_spec=$shared_archive_member_spec
21552
21553 # Shell to use when invoking shell scripts.
21554 SHELL=$lt_SHELL
21555
21556 # An echo program that protects backslashes.
21557 ECHO=$lt_ECHO
21558
21559 # The PATH separator for the build system.
21560 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21561
21562 # The host system.
21563 host_alias=$host_alias
21564 host=$host
21565 host_os=$host_os
21566
21567 # The build system.
21568 build_alias=$build_alias
21569 build=$build
21570 build_os=$build_os
21571
21572 # A sed program that does not truncate output.
21573 SED=$lt_SED
21574
21575 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21576 Xsed="\$SED -e 1s/^X//"
21577
21578 # A grep program that handles long lines.
21579 GREP=$lt_GREP
21580
21581 # An ERE matcher.
21582 EGREP=$lt_EGREP
21583
21584 # A literal string matcher.
21585 FGREP=$lt_FGREP
21586
21587 # A BSD- or MS-compatible name lister.
21588 NM=$lt_NM
21589
21590 # Whether we need soft or hard links.
21591 LN_S=$lt_LN_S
21592
21593 # What is the maximum length of a command?
21594 max_cmd_len=$max_cmd_len
21595
21596 # Object file suffix (normally "o").
21597 objext=$ac_objext
21598
21599 # Executable file suffix (normally "").
21600 exeext=$exeext
21601
21602 # whether the shell understands "unset".
21603 lt_unset=$lt_unset
21604
21605 # turn spaces into newlines.
21606 SP2NL=$lt_lt_SP2NL
21607
21608 # turn newlines into spaces.
21609 NL2SP=$lt_lt_NL2SP
21610
21611 # convert \$build file names to \$host format.
21612 to_host_file_cmd=$lt_cv_to_host_file_cmd
21613
21614 # convert \$build files to toolchain format.
21615 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21616
21617 # An object symbol dumper.
21618 OBJDUMP=$lt_OBJDUMP
21619
21620 # Method to check whether dependent libraries are shared objects.
21621 deplibs_check_method=$lt_deplibs_check_method
21622
21623 # Command to use when deplibs_check_method = "file_magic".
21624 file_magic_cmd=$lt_file_magic_cmd
21625
21626 # How to find potential files when deplibs_check_method = "file_magic".
21627 file_magic_glob=$lt_file_magic_glob
21628
21629 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21630 want_nocaseglob=$lt_want_nocaseglob
21631
21632 # DLL creation program.
21633 DLLTOOL=$lt_DLLTOOL
21634
21635 # Command to associate shared and link libraries.
21636 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21637
21638 # The archiver.
21639 AR=$lt_AR
21640
21641 # Flags to create an archive.
21642 AR_FLAGS=$lt_AR_FLAGS
21643
21644 # How to feed a file listing to the archiver.
21645 archiver_list_spec=$lt_archiver_list_spec
21646
21647 # A symbol stripping program.
21648 STRIP=$lt_STRIP
21649
21650 # Commands used to install an old-style archive.
21651 RANLIB=$lt_RANLIB
21652 old_postinstall_cmds=$lt_old_postinstall_cmds
21653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21654
21655 # Whether to use a lock for old archive extraction.
21656 lock_old_archive_extraction=$lock_old_archive_extraction
21657
21658 # A C compiler.
21659 LTCC=$lt_CC
21660
21661 # LTCC compiler flags.
21662 LTCFLAGS=$lt_CFLAGS
21663
21664 # Take the output of nm and produce a listing of raw symbols and C names.
21665 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21666
21667 # Transform the output of nm in a proper C declaration.
21668 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21669
21670 # Transform the output of nm into a list of symbols to manually relocate.
21671 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21672
21673 # Transform the output of nm in a C name address pair.
21674 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21675
21676 # Transform the output of nm in a C name address pair when lib prefix is needed.
21677 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21678
21679 # The name lister interface.
21680 nm_interface=$lt_lt_cv_nm_interface
21681
21682 # Specify filename containing input files for \$NM.
21683 nm_file_list_spec=$lt_nm_file_list_spec
21684
21685 # The root where to search for dependent libraries,and where our libraries should be installed.
21686 lt_sysroot=$lt_sysroot
21687
21688 # Command to truncate a binary pipe.
21689 lt_truncate_bin=$lt_lt_cv_truncate_bin
21690
21691 # The name of the directory that contains temporary libtool files.
21692 objdir=$objdir
21693
21694 # Used to examine libraries when file_magic_cmd begins with "file".
21695 MAGIC_CMD=$MAGIC_CMD
21696
21697 # Must we lock files when doing compilation?
21698 need_locks=$lt_need_locks
21699
21700 # Manifest tool.
21701 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21702
21703 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21704 DSYMUTIL=$lt_DSYMUTIL
21705
21706 # Tool to change global to local symbols on Mac OS X.
21707 NMEDIT=$lt_NMEDIT
21708
21709 # Tool to manipulate fat objects and archives on Mac OS X.
21710 LIPO=$lt_LIPO
21711
21712 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21713 OTOOL=$lt_OTOOL
21714
21715 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21716 OTOOL64=$lt_OTOOL64
21717
21718 # Old archive suffix (normally "a").
21719 libext=$libext
21720
21721 # Shared library suffix (normally ".so").
21722 shrext_cmds=$lt_shrext_cmds
21723
21724 # The commands to extract the exported symbol list from a shared archive.
21725 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21726
21727 # Variables whose values should be saved in libtool wrapper scripts and
21728 # restored at link time.
21729 variables_saved_for_relink=$lt_variables_saved_for_relink
21730
21731 # Do we need the "lib" prefix for modules?
21732 need_lib_prefix=$need_lib_prefix
21733
21734 # Do we need a version for libraries?
21735 need_version=$need_version
21736
21737 # Library versioning type.
21738 version_type=$version_type
21739
21740 # Shared library runtime path variable.
21741 runpath_var=$runpath_var
21742
21743 # Shared library path variable.
21744 shlibpath_var=$shlibpath_var
21745
21746 # Is shlibpath searched before the hard-coded library search path?
21747 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21748
21749 # Format of library name prefix.
21750 libname_spec=$lt_libname_spec
21751
21752 # List of archive names. First name is the real one, the rest are links.
21753 # The last name is the one that the linker finds with -lNAME
21754 library_names_spec=$lt_library_names_spec
21755
21756 # The coded name of the library, if different from the real name.
21757 soname_spec=$lt_soname_spec
21758
21759 # Permission mode override for installation of shared libraries.
21760 install_override_mode=$lt_install_override_mode
21761
21762 # Command to use after installation of a shared archive.
21763 postinstall_cmds=$lt_postinstall_cmds
21764
21765 # Command to use after uninstallation of a shared archive.
21766 postuninstall_cmds=$lt_postuninstall_cmds
21767
21768 # Commands used to finish a libtool library installation in a directory.
21769 finish_cmds=$lt_finish_cmds
21770
21771 # As "finish_cmds", except a single script fragment to be evaled but
21772 # not shown.
21773 finish_eval=$lt_finish_eval
21774
21775 # Whether we should hardcode library paths into libraries.
21776 hardcode_into_libs=$hardcode_into_libs
21777
21778 # Compile-time system search path for libraries.
21779 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21780
21781 # Detected run-time system search path for libraries.
21782 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21783
21784 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21785 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21786
21787 # Whether dlopen is supported.
21788 dlopen_support=$enable_dlopen
21789
21790 # Whether dlopen of programs is supported.
21791 dlopen_self=$enable_dlopen_self
21792
21793 # Whether dlopen of statically linked programs is supported.
21794 dlopen_self_static=$enable_dlopen_self_static
21795
21796 # Commands to strip libraries.
21797 old_striplib=$lt_old_striplib
21798 striplib=$lt_striplib
21799
21800
21801 # The linker used to build libraries.
21802 LD=$lt_LD
21803
21804 # How to create reloadable object files.
21805 reload_flag=$lt_reload_flag
21806 reload_cmds=$lt_reload_cmds
21807
21808 # Commands used to build an old-style archive.
21809 old_archive_cmds=$lt_old_archive_cmds
21810
21811 # A language specific compiler.
21812 CC=$lt_compiler
21813
21814 # Is the compiler the GNU compiler?
21815 with_gcc=$GCC
21816
21817 # Compiler flag to turn off builtin functions.
21818 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21819
21820 # Additional compiler flags for building library objects.
21821 pic_flag=$lt_lt_prog_compiler_pic
21822
21823 # How to pass a linker flag through the compiler.
21824 wl=$lt_lt_prog_compiler_wl
21825
21826 # Compiler flag to prevent dynamic linking.
21827 link_static_flag=$lt_lt_prog_compiler_static
21828
21829 # Does compiler simultaneously support -c and -o options?
21830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21831
21832 # Whether or not to add -lc for building shared libraries.
21833 build_libtool_need_lc=$archive_cmds_need_lc
21834
21835 # Whether or not to disallow shared libs when runtime libs are static.
21836 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21837
21838 # Compiler flag to allow reflexive dlopens.
21839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21840
21841 # Compiler flag to generate shared objects directly from archives.
21842 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21843
21844 # Whether the compiler copes with passing no objects directly.
21845 compiler_needs_object=$lt_compiler_needs_object
21846
21847 # Create an old-style archive from a shared archive.
21848 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21849
21850 # Create a temporary old-style archive to link instead of a shared archive.
21851 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21852
21853 # Commands used to build a shared archive.
21854 archive_cmds=$lt_archive_cmds
21855 archive_expsym_cmds=$lt_archive_expsym_cmds
21856
21857 # Commands used to build a loadable module if different from building
21858 # a shared archive.
21859 module_cmds=$lt_module_cmds
21860 module_expsym_cmds=$lt_module_expsym_cmds
21861
21862 # Whether we are building with GNU ld or not.
21863 with_gnu_ld=$lt_with_gnu_ld
21864
21865 # Flag that allows shared libraries with undefined symbols to be built.
21866 allow_undefined_flag=$lt_allow_undefined_flag
21867
21868 # Flag that enforces no undefined symbols.
21869 no_undefined_flag=$lt_no_undefined_flag
21870
21871 # Flag to hardcode \$libdir into a binary during linking.
21872 # This must work even if \$libdir does not exist
21873 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21874
21875 # Whether we need a single "-rpath" flag with a separated argument.
21876 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21877
21878 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21879 # DIR into the resulting binary.
21880 hardcode_direct=$hardcode_direct
21881
21882 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21883 # DIR into the resulting binary and the resulting library dependency is
21884 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21885 # library is relocated.
21886 hardcode_direct_absolute=$hardcode_direct_absolute
21887
21888 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21889 # into the resulting binary.
21890 hardcode_minus_L=$hardcode_minus_L
21891
21892 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21893 # into the resulting binary.
21894 hardcode_shlibpath_var=$hardcode_shlibpath_var
21895
21896 # Set to "yes" if building a shared library automatically hardcodes DIR
21897 # into the library and all subsequent libraries and executables linked
21898 # against it.
21899 hardcode_automatic=$hardcode_automatic
21900
21901 # Set to yes if linker adds runtime paths of dependent libraries
21902 # to runtime path list.
21903 inherit_rpath=$inherit_rpath
21904
21905 # Whether libtool must link a program against all its dependency libraries.
21906 link_all_deplibs=$link_all_deplibs
21907
21908 # Set to "yes" if exported symbols are required.
21909 always_export_symbols=$always_export_symbols
21910
21911 # The commands to list exported symbols.
21912 export_symbols_cmds=$lt_export_symbols_cmds
21913
21914 # Symbols that should not be listed in the preloaded symbols.
21915 exclude_expsyms=$lt_exclude_expsyms
21916
21917 # Symbols that must always be exported.
21918 include_expsyms=$lt_include_expsyms
21919
21920 # Commands necessary for linking programs (against libraries) with templates.
21921 prelink_cmds=$lt_prelink_cmds
21922
21923 # Commands necessary for finishing linking programs.
21924 postlink_cmds=$lt_postlink_cmds
21925
21926 # Specify filename containing input files.
21927 file_list_spec=$lt_file_list_spec
21928
21929 # How to hardcode a shared library path into an executable.
21930 hardcode_action=$hardcode_action
21931
21932 # ### END LIBTOOL CONFIG
21933
21934 _LT_EOF
21935
21936 cat <<'_LT_EOF' >> "$cfgfile"
21937
21938 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21939
21940 # func_munge_path_list VARIABLE PATH
21941 # -----------------------------------
21942 # VARIABLE is name of variable containing _space_ separated list of
21943 # directories to be munged by the contents of PATH, which is string
21944 # having a format:
21945 # "DIR[:DIR]:"
21946 # string "DIR[ DIR]" will be prepended to VARIABLE
21947 # ":DIR[:DIR]"
21948 # string "DIR[ DIR]" will be appended to VARIABLE
21949 # "DIRP[:DIRP]::[DIRA:]DIRA"
21950 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21951 # "DIRA[ DIRA]" will be appended to VARIABLE
21952 # "DIR[:DIR]"
21953 # VARIABLE will be replaced by "DIR[ DIR]"
21954 func_munge_path_list ()
21955 {
21956 case x$2 in
21957 x)
21958 ;;
21959 *:)
21960 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21961 ;;
21962 x:*)
21963 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21964 ;;
21965 *::*)
21966 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21967 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21968 ;;
21969 *)
21970 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21971 ;;
21972 esac
21973 }
21974
21975
21976 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21977 func_cc_basename ()
21978 {
21979 for cc_temp in $*""; do
21980 case $cc_temp in
21981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21983 \-*) ;;
21984 *) break;;
21985 esac
21986 done
21987 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21988 }
21989
21990
21991 # ### END FUNCTIONS SHARED WITH CONFIGURE
21992
21993 _LT_EOF
21994
21995 case $host_os in
21996 aix3*)
21997 cat <<\_LT_EOF >> "$cfgfile"
21998 # AIX sometimes has problems with the GCC collect2 program. For some
21999 # reason, if we set the COLLECT_NAMES environment variable, the problems
22000 # vanish in a puff of smoke.
22001 if test set != "${COLLECT_NAMES+set}"; then
22002 COLLECT_NAMES=
22003 export COLLECT_NAMES
22004 fi
22005 _LT_EOF
22006 ;;
22007 esac
22008
22009
22010 ltmain=$ac_aux_dir/ltmain.sh
22011
22012
22013 # We use sed instead of cat because bash on DJGPP gets confused if
22014 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22015 # text mode, it properly converts lines to CR/LF. This bash problem
22016 # is reportedly fixed, but why not run on old versions too?
22017 sed '$q' "$ltmain" >> "$cfgfile" \
22018 || (rm -f "$cfgfile"; exit 1)
22019
22020 mv -f "$cfgfile" "$ofile" ||
22021 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22022 chmod +x "$ofile"
22023
22024 ;;
22025
22026 esac
22027 done # for ac_tag
22028
22029
22030 as_fn_exit 0
22031 _ACEOF
22032 ac_clean_files=$ac_clean_files_save
22033
22034 test $ac_write_fail = 0 ||
22035 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22036
22037
22038 # configure is writing to config.log, and then calls config.status.
22039 # config.status does its own redirection, appending to config.log.
22040 # Unfortunately, on DOS this fails, as config.log is still kept open
22041 # by configure, so config.status won't be able to write to it; its
22042 # output is simply discarded. So we exec the FD to /dev/null,
22043 # effectively closing config.log, so it can be properly (re)opened and
22044 # appended to by config.status. When coming back to configure, we
22045 # need to make the FD available again.
22046 if test "$no_create" != yes; then
22047 ac_cs_success=:
22048 ac_config_status_args=
22049 test "$silent" = yes &&
22050 ac_config_status_args="$ac_config_status_args --quiet"
22051 exec 5>/dev/null
22052 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22053 exec 5>>config.log
22054 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22055 # would make configure fail if this is the last instruction.
22056 $ac_cs_success || as_fn_exit 1
22057 fi
22058 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22060 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22061 fi
22062
22063
22064
22065 ##################################################################
22066 # Display the status of optional modules
22067 ##################################################################
22068
22069 cat <<EOF
22070
22071 ##################################################################
22072 # Final status of compiled yaksa modules
22073 ##################################################################
22074
22075 Backends supported: ${supported_backends}
22076 ${backend_info}
22077
22078 ##################################################################
22079 # End of yaksa configure
22080 ##################################################################
22081
22082 EOF