Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for isl 0.28.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1
188
189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 PATH=/empty FPATH=/empty; export PATH FPATH
194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: [email protected] about your system,
283 $0: including any error possibly output before this
284 $0: message. Then install a modern shell, or manually run
285 $0: the script under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='isl'
616 PACKAGE_TARNAME='isl'
617 PACKAGE_VERSION='0.28'
618 PACKAGE_STRING='isl 0.28'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 # Factoring default headers for most tests.
623 ac_includes_default="\
624 #include <stddef.h>
625 #ifdef HAVE_STDIO_H
626 # include <stdio.h>
627 #endif
628 #ifdef HAVE_STDLIB_H
629 # include <stdlib.h>
630 #endif
631 #ifdef HAVE_STRING_H
632 # include <string.h>
633 #endif
634 #ifdef HAVE_INTTYPES_H
635 # include <inttypes.h>
636 #endif
637 #ifdef HAVE_STDINT_H
638 # include <stdint.h>
639 #endif
640 #ifdef HAVE_STRINGS_H
641 # include <strings.h>
642 #endif
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef HAVE_UNISTD_H
650 # include <unistd.h>
651 #endif"
652
653 ac_header_c_list=
654 enable_option_checking=no
655 ac_subst_vars='am__EXEEXT_FALSE
656 am__EXEEXT_TRUE
657 LTLIBOBJS
658 LIBOBJS
659 subdirs
660 GIT_HEAD_VERSION
661 GIT_HEAD
662 GIT_HEAD_ID
663 pkgconfig_libfile
664 pkgconfig_libdir
665 WARNING_FLAGS
666 HAVE_CLANG_FALSE
667 HAVE_CLANG_TRUE
668 SMALL_INT_OPT_FALSE
669 SMALL_INT_OPT_TRUE
670 HAVE_CXX17_FALSE
671 HAVE_CXX17_TRUE
672 HAVE_CXX11_FALSE
673 HAVE_CXX11_TRUE
674 GMP_FOR_MP_FALSE
675 GMP_FOR_MP_TRUE
676 IMATH_FOR_MP_FALSE
677 IMATH_FOR_MP_TRUE
678 NEED_GET_MEMORY_FUNCTIONS_FALSE
679 NEED_GET_MEMORY_FUNCTIONS_TRUE
680 MP_LIBS
681 MP_LDFLAGS
682 MP_CFLAGS
683 MP_CPPFLAGS
684 GENERATE_DOC_FALSE
685 GENERATE_DOC_TRUE
686 OS_SRCDIR
687 DIFF
688 DIFF_OPTIONS
689 POD2HTML
690 PDFLATEX
691 PERL
692 CYGPATH
693 HAVE_PYTHON_FALSE
694 HAVE_PYTHON_TRUE
695 pkgpyexecdir
696 pyexecdir
697 pkgpythondir
698 pythondir
699 PYTHON_EXEC_PREFIX
700 PYTHON_PREFIX
701 PYTHON_PLATFORM
702 PYTHON_VERSION
703 PYTHON
704 CXXCPP
705 LT_SYS_LIBRARY_PATH
706 OTOOL64
707 OTOOL
708 LIPO
709 NMEDIT
710 DSYMUTIL
711 MANIFEST_TOOL
712 RANLIB
713 ac_ct_AR
714 AR
715 DLLTOOL
716 OBJDUMP
717 FILECMD
718 LN_S
719 NM
720 ac_ct_DUMPBIN
721 DUMPBIN
722 LD
723 FGREP
724 EGREP
725 LIBTOOL
726 HAVE_CXX17
727 HAVE_CXX11
728 GREP
729 PRTDIAG
730 SED
731 host_os
732 host_vendor
733 host_cpu
734 host
735 LDFLAGS_FOR_BUILD
736 CPPFLAGS_FOR_BUILD
737 CFLAGS_FOR_BUILD
738 CCDEPMODE_FOR_BUILD
739 BUILD_OBJEXT
740 BUILD_EXEEXT
741 CPP_FOR_BUILD
742 ac_ct_CC_FOR_BUILD
743 CC_FOR_BUILD
744 build_os
745 build_vendor
746 build_cpu
747 build
748 CPP
749 am__fastdepCXX_FALSE
750 am__fastdepCXX_TRUE
751 CXXDEPMODE
752 ac_ct_CXX
753 CXXFLAGS
754 CXX
755 am__fastdepCC_FALSE
756 am__fastdepCC_TRUE
757 CCDEPMODE
758 am__nodep
759 AMDEPBACKSLASH
760 AMDEP_FALSE
761 AMDEP_TRUE
762 am__include
763 DEPDIR
764 OBJEXT
765 EXEEXT
766 ac_ct_CC
767 CPPFLAGS
768 LDFLAGS
769 CFLAGS
770 CC
771 versioninfo
772 am__xargs_n
773 am__rm_f_notfound
774 AM_BACKSLASH
775 AM_DEFAULT_VERBOSITY
776 AM_DEFAULT_V
777 AM_V
778 CSCOPE
779 ETAGS
780 CTAGS
781 am__untar
782 am__tar
783 AMTAR
784 am__leading_dot
785 SET_MAKE
786 AWK
787 mkdir_p
788 MKDIR_P
789 INSTALL_STRIP_PROGRAM
790 STRIP
791 install_sh
792 MAKEINFO
793 AUTOHEADER
794 AUTOMAKE
795 AUTOCONF
796 ACLOCAL
797 VERSION
798 PACKAGE
799 CYGPATH_W
800 am__isrc
801 INSTALL_DATA
802 INSTALL_SCRIPT
803 INSTALL_PROGRAM
804 target_alias
805 host_alias
806 build_alias
807 LIBS
808 ECHO_T
809 ECHO_N
810 ECHO_C
811 DEFS
812 mandir
813 localedir
814 libdir
815 psdir
816 pdfdir
817 dvidir
818 htmldir
819 infodir
820 docdir
821 oldincludedir
822 includedir
823 runstatedir
824 localstatedir
825 sharedstatedir
826 sysconfdir
827 datadir
828 datarootdir
829 libexecdir
830 sbindir
831 bindir
832 program_transform_name
833 prefix
834 exec_prefix
835 PACKAGE_URL
836 PACKAGE_BUGREPORT
837 PACKAGE_STRING
838 PACKAGE_VERSION
839 PACKAGE_TARNAME
840 PACKAGE_NAME
841 PATH_SEPARATOR
842 SHELL
843 am__quote'
844 ac_subst_files=''
845 ac_user_opts='
846 enable_option_checking
847 enable_silent_rules
848 enable_dependency_tracking
849 enable_portable_binary
850 with_gcc_arch
851 enable_shared
852 enable_static
853 enable_pic
854 with_pic
855 enable_fast_install
856 enable_aix_soname
857 with_aix_soname
858 with_gnu_ld
859 with_sysroot
860 enable_libtool_lock
861 with_python_sys_prefix
862 with_python_prefix
863 with_python_exec_prefix
864 with_int
865 with_gmp
866 with_gmp_prefix
867 with_gmp_exec_prefix
868 with_gmp_builddir
869 with_clang
870 with_clang_prefix
871 with_clang_exec_prefix
872 '
873 ac_precious_vars='build_alias
874 host_alias
875 target_alias
876 CC
877 CFLAGS
878 LDFLAGS
879 LIBS
880 CPPFLAGS
881 CXX
882 CXXFLAGS
883 CCC
884 CPP
885 LT_SYS_LIBRARY_PATH
886 CXXCPP
887 PYTHON'
888 ac_subdirs_all='interface'
889
890 # Initialize some variables set by options.
891 ac_init_help=
892 ac_init_version=false
893 ac_unrecognized_opts=
894 ac_unrecognized_sep=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
911
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 runstatedir='${localstatedir}/run'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
938
939 ac_prev=
940 ac_dashdash=
941 for ac_option
942 do
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
946 ac_prev=
947 continue
948 fi
949
950 case $ac_option in
951 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 *=) ac_optarg= ;;
953 *) ac_optarg=yes ;;
954 esac
955
956 case $ac_dashdash$ac_option in
957 --)
958 ac_dashdash=yes ;;
959
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 bindir=$ac_optarg ;;
964
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
969
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
976
977 --config-cache | -C)
978 cache_file=config.cache ;;
979
980 -datadir | --datadir | --datadi | --datad)
981 ac_prev=datadir ;;
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
984
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
991
992 -disable-* | --disable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: '$ac_useropt'"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1007
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1012
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1017
1018 -enable-* | --enable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: '$ac_useropt'"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -runstatedir | --runstatedir | --runstatedi | --runstated \
1178 | --runstate | --runstat | --runsta | --runst | --runs \
1179 | --run | --ru | --r)
1180 ac_prev=runstatedir ;;
1181 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1182 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1183 | --run=* | --ru=* | --r=*)
1184 runstatedir=$ac_optarg ;;
1185
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 ac_prev=sbindir ;;
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 | --sbi=* | --sb=*)
1190 sbindir=$ac_optarg ;;
1191
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1195 | --sha | --sh)
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 | --sha=* | --sh=*)
1201 sharedstatedir=$ac_optarg ;;
1202
1203 -site | --site | --sit)
1204 ac_prev=site ;;
1205 -site=* | --site=* | --sit=*)
1206 site=$ac_optarg ;;
1207
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 ac_prev=srcdir ;;
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1212
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1219
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1224
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226 verbose=yes ;;
1227
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1230
1231 -with-* | --with-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error $? "invalid package name: '$ac_useropt'"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240 "with_$ac_useropt"
1241 "*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=\$ac_optarg ;;
1246
1247 -without-* | --without-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: '$ac_useropt'"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=no ;;
1262
1263 --x)
1264 # Obsolete; use --with-x.
1265 with_x=yes ;;
1266
1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268 | --x-incl | --x-inc | --x-in | --x-i)
1269 ac_prev=x_includes ;;
1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272 x_includes=$ac_optarg ;;
1273
1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276 ac_prev=x_libraries ;;
1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279 x_libraries=$ac_optarg ;;
1280
1281 -*) as_fn_error $? "unrecognized option: '$ac_option'
1282 Try '$0 --help' for more information"
1283 ;;
1284
1285 *=*)
1286 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287 # Reject names that are not valid shell variable names.
1288 case $ac_envvar in #(
1289 '' | [0-9]* | *[!_$as_cr_alnum]* )
1290 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1291 esac
1292 eval $ac_envvar=\$ac_optarg
1293 export $ac_envvar ;;
1294
1295 *)
1296 # FIXME: should be removed in autoconf 3.0.
1297 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1301 ;;
1302
1303 esac
1304 done
1305
1306 if test -n "$ac_prev"; then
1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308 as_fn_error $? "missing argument to $ac_option"
1309 fi
1310
1311 if test -n "$ac_unrecognized_opts"; then
1312 case $enable_option_checking in
1313 no) ;;
1314 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1315 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316 esac
1317 fi
1318
1319 # Check all directory arguments for consistency.
1320 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321 datadir sysconfdir sharedstatedir localstatedir includedir \
1322 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323 libdir localedir mandir runstatedir
1324 do
1325 eval ac_val=\$$ac_var
1326 # Remove trailing slashes.
1327 case $ac_val in
1328 */ )
1329 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1330 eval $ac_var=\$ac_val;;
1331 esac
1332 # Be sure to have absolute directory names.
1333 case $ac_val in
1334 [\\/$]* | ?:[\\/]* ) continue;;
1335 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1336 esac
1337 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1338 done
1339
1340 # There might be people who depend on the old broken behavior: '$host'
1341 # used to hold the argument of --host etc.
1342 # FIXME: To remove some day.
1343 build=$build_alias
1344 host=$host_alias
1345 target=$target_alias
1346
1347 # FIXME: To remove some day.
1348 if test "x$host_alias" != x; then
1349 if test "x$build_alias" = x; then
1350 cross_compiling=maybe
1351 elif test "x$build_alias" != "x$host_alias"; then
1352 cross_compiling=yes
1353 fi
1354 fi
1355
1356 ac_tool_prefix=
1357 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358
1359 test "$silent" = yes && exec 6>/dev/null
1360
1361
1362 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1363 ac_ls_di=`ls -di .` &&
1364 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1365 as_fn_error $? "working directory cannot be determined"
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367 as_fn_error $? "pwd does not report name of working directory"
1368
1369
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir=`$as_dirname -- "$as_myself" ||
1375 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379 printf "%s\n" X"$as_myself" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\/\)$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\).*/{
1393 s//\1/
1394 q
1395 }
1396 s/.*/./; q'`
1397 srcdir=$ac_confdir
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 srcdir=..
1400 fi
1401 else
1402 ac_srcdir_defaulted=no
1403 fi
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1406 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1407 fi
1408 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1409 ac_abs_confdir=`(
1410 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1411 pwd)`
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 srcdir=.
1415 fi
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1419 case $srcdir in
1420 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 esac
1422 for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 done
1428
1429 #
1430 # Report the --help message.
1431 #
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1435 cat <<_ACEOF
1436 'configure' configures isl 0.28 to adapt to many kinds of systems.
1437
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1442
1443 Defaults for the options are specified in brackets.
1444
1445 Configuration:
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print 'checking ...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for '--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or '..']
1455
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 [PREFIX]
1461
1462 By default, 'make install' will install all the files in
1463 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than '$ac_default_prefix' using '--prefix',
1465 for instance '--prefix=\$HOME'.
1466
1467 For better control, use the options below.
1468
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/isl]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1490 _ACEOF
1491
1492 cat <<\_ACEOF
1493
1494 Program names:
1495 --program-prefix=PREFIX prepend PREFIX to installed program names
1496 --program-suffix=SUFFIX append SUFFIX to installed program names
1497 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498
1499 System types:
1500 --build=BUILD configure for building on BUILD [guessed]
1501 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1502 _ACEOF
1503 fi
1504
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive ) echo "Configuration of isl 0.28:";;
1508 esac
1509 cat <<\_ACEOF
1510
1511 Optional Features:
1512 --disable-option-checking ignore unrecognized --enable/--with options
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --enable-silent-rules less verbose build output (undo: "make V=1")
1516 --disable-silent-rules verbose build output (undo: "make V=0")
1517 --enable-dependency-tracking
1518 do not reject slow dependency extractors
1519 --disable-dependency-tracking
1520 speeds up one-time build
1521 --enable-portable-binary
1522 disable compiler optimizations that would produce
1523 unportable binaries
1524 --enable-shared[=PKGS] build shared libraries [default=yes]
1525 --enable-static[=PKGS] build static libraries [default=yes]
1526 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1527 both]
1528 --enable-fast-install[=PKGS]
1529 optimize for fast installation [default=yes]
1530 --enable-aix-soname=aix|svr4|both
1531 shared library versioning (aka "SONAME") variant to
1532 provide on AIX, [default=aix].
1533 --disable-libtool-lock avoid locking (might break parallel builds)
1534
1535 Optional Packages:
1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1538 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1539 instead of guessing
1540 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1541 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1542 compiler's sysroot if not specified).
1543 --with-python-sys-prefix
1544 use Python's sys.prefix and sys.exec_prefix values
1545 --with-python_prefix override the default PYTHON_PREFIX
1546 --with-python_exec_prefix
1547 override the default PYTHON_EXEC_PREFIX
1548 --with-int=gmp|imath|imath-32
1549 Which package to use to represent multi-precision
1550 integers [default=gmp]
1551 --with-gmp=system|build Which gmp to use [default=system]
1552 --with-gmp-prefix=DIR Prefix of gmp installation
1553 --with-gmp-exec-prefix=DIR
1554 Exec prefix of gmp installation
1555 --with-gmp-builddir=DIR Location of gmp builddir
1556 --with-clang=system|no Which clang to use [default=no]
1557 --with-clang-prefix=DIR Prefix of clang installation
1558 --with-clang-exec-prefix=DIR
1559 Exec prefix of clang installation
1560
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
1569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
1571 CPP C preprocessor
1572 LT_SYS_LIBRARY_PATH
1573 User-defined run-time library search path.
1574 CXXCPP C++ preprocessor
1575 PYTHON the Python interpreter
1576
1577 Use these variables to override the choices made by 'configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1579
1580 Report bugs to <[email protected]>.
1581 _ACEOF
1582 ac_status=$?
1583 fi
1584
1585 if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588 test -d "$ac_dir" ||
1589 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1590 continue
1591 ac_builddir=.
1592
1593 case "$ac_dir" in
1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *)
1596 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 esac ;;
1603 esac
1604 ac_abs_top_builddir=$ac_pwd
1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606 # for backward compatibility:
1607 ac_top_builddir=$ac_top_build_prefix
1608
1609 case $srcdir in
1610 .) # We are building in place.
1611 ac_srcdir=.
1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
1615 ac_srcdir=$srcdir$ac_dir_suffix;
1616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1618 *) # Relative name.
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1622 esac
1623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624
1625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for configure.gnu first; this name is used for a wrapper for
1627 # Metaconfig's "Configure" on case-insensitive file systems.
1628 if test -f "$ac_srcdir/configure.gnu"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631 elif test -f "$ac_srcdir/configure"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure" --help=recursive
1634 else
1635 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636 fi || ac_status=$?
1637 cd "$ac_pwd" || { ac_status=$?; break; }
1638 done
1639 fi
1640
1641 test -n "$ac_init_help" && exit $ac_status
1642 if $ac_init_version; then
1643 cat <<\_ACEOF
1644 isl configure 0.28
1645 generated by GNU Autoconf 2.72
1646
1647 Copyright (C) 2023 Free Software Foundation, Inc.
1648 This configure script is free software; the Free Software Foundation
1649 gives unlimited permission to copy, distribute and modify it.
1650 _ACEOF
1651 exit
1652 fi
1653
1654 ## ------------------------ ##
1655 ## Autoconf initialization. ##
1656 ## ------------------------ ##
1657
1658 # ac_fn_c_try_compile LINENO
1659 # --------------------------
1660 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_compile ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest.beam
1665 if { { ac_try="$ac_compile"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 printf "%s\n" "$ac_try_echo"; } >&5
1672 (eval "$ac_compile") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest.$ac_objext
1684 then :
1685 ac_retval=0
1686 else case e in #(
1687 e) printf "%s\n" "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=1 ;;
1691 esac
1692 fi
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1695
1696 } # ac_fn_c_try_compile
1697
1698 # ac_fn_cxx_try_compile LINENO
1699 # ----------------------------
1700 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1701 ac_fn_cxx_try_compile ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 rm -f conftest.$ac_objext conftest.beam
1705 if { { ac_try="$ac_compile"
1706 case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 printf "%s\n" "$ac_try_echo"; } >&5
1712 (eval "$ac_compile") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && {
1721 test -z "$ac_cxx_werror_flag" ||
1722 test ! -s conftest.err
1723 } && test -s conftest.$ac_objext
1724 then :
1725 ac_retval=0
1726 else case e in #(
1727 e) printf "%s\n" "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1 ;;
1731 esac
1732 fi
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736 } # ac_fn_cxx_try_compile
1737
1738 # ac_fn_c_try_cpp LINENO
1739 # ----------------------
1740 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_c_try_cpp ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_cpp conftest.$ac_ext"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 printf "%s\n" "$ac_try_echo"; } >&5
1751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } > conftest.i && {
1760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 }
1763 then :
1764 ac_retval=0
1765 else case e in #(
1766 e) printf "%s\n" "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=1 ;;
1770 esac
1771 fi
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_cpp
1776
1777 # ac_fn_c_try_run LINENO
1778 # ----------------------
1779 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1780 # executables *can* be run.
1781 ac_fn_c_try_run ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 if { { ac_try="$ac_link"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 printf "%s\n" "$ac_try_echo"; } >&5
1791 (eval "$ac_link") 2>&5
1792 ac_status=$?
1793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1795 { { case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 printf "%s\n" "$ac_try_echo"; } >&5
1801 (eval "$ac_try") 2>&5
1802 ac_status=$?
1803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; }; }
1805 then :
1806 ac_retval=0
1807 else case e in #(
1808 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1809 printf "%s\n" "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=$ac_status ;;
1813 esac
1814 fi
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1818
1819 } # ac_fn_c_try_run
1820
1821 # ac_fn_c_try_link LINENO
1822 # -----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_link ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1828 if { { ac_try="$ac_link"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 printf "%s\n" "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1841 fi
1842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest$ac_exeext && {
1847 test "$cross_compiling" = yes ||
1848 test -x conftest$ac_exeext
1849 }
1850 then :
1851 ac_retval=0
1852 else case e in #(
1853 e) printf "%s\n" "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 ac_retval=1 ;;
1857 esac
1858 fi
1859 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1860 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1861 # interfere with the next link command; also delete a directory that is
1862 # left behind by Apple's compiler. We do this before executing the actions.
1863 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865 as_fn_set_status $ac_retval
1866
1867 } # ac_fn_c_try_link
1868
1869 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1870 # -------------------------------------------------------
1871 # Tests whether HEADER exists and can be compiled using the include files in
1872 # INCLUDES, setting the cache variable VAR accordingly.
1873 ac_fn_c_check_header_compile ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 printf %s "checking for $2... " >&6; }
1878 if eval test \${$3+y}
1879 then :
1880 printf %s "(cached) " >&6
1881 else case e in #(
1882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 $4
1885 #include <$2>
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"
1888 then :
1889 eval "$3=yes"
1890 else case e in #(
1891 e) eval "$3=no" ;;
1892 esac
1893 fi
1894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1895 esac
1896 fi
1897 eval ac_res=\$$3
1898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 printf "%s\n" "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_check_header_compile
1903
1904 # ac_fn_c_check_func LINENO FUNC VAR
1905 # ----------------------------------
1906 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1907 ac_fn_c_check_func ()
1908 {
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 printf %s "checking for $2... " >&6; }
1912 if eval test \${$3+y}
1913 then :
1914 printf %s "(cached) " >&6
1915 else case e in #(
1916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1920 #define $2 innocuous_$2
1921
1922 /* System header to define __stub macros and hopefully few prototypes,
1923 which can conflict with char $2 (void); below. */
1924
1925 #include <limits.h>
1926 #undef $2
1927
1928 /* Override any GCC internal prototype to avoid an error.
1929 Use char because int might match the return type of a GCC
1930 builtin and then its argument prototype would still apply. */
1931 #ifdef __cplusplus
1932 extern "C"
1933 #endif
1934 char $2 (void);
1935 /* The GNU C library defines this for functions which it implements
1936 to always fail with ENOSYS. Some functions are actually named
1937 something starting with __ and the normal name is an alias. */
1938 #if defined __stub_$2 || defined __stub___$2
1939 choke me
1940 #endif
1941
1942 int
1943 main (void)
1944 {
1945 return $2 ();
1946 ;
1947 return 0;
1948 }
1949 _ACEOF
1950 if ac_fn_c_try_link "$LINENO"
1951 then :
1952 eval "$3=yes"
1953 else case e in #(
1954 e) eval "$3=no" ;;
1955 esac
1956 fi
1957 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1958 conftest$ac_exeext conftest.$ac_ext ;;
1959 esac
1960 fi
1961 eval ac_res=\$$3
1962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 printf "%s\n" "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966 } # ac_fn_c_check_func
1967
1968 # ac_fn_cxx_try_cpp LINENO
1969 # ------------------------
1970 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1971 ac_fn_cxx_try_cpp ()
1972 {
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if { { ac_try="$ac_cpp conftest.$ac_ext"
1975 case "(($ac_try" in
1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1978 esac
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 printf "%s\n" "$ac_try_echo"; } >&5
1981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1982 ac_status=$?
1983 if test -s conftest.err; then
1984 grep -v '^ *+' conftest.err >conftest.er1
1985 cat conftest.er1 >&5
1986 mv -f conftest.er1 conftest.err
1987 fi
1988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } > conftest.i && {
1990 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1991 test ! -s conftest.err
1992 }
1993 then :
1994 ac_retval=0
1995 else case e in #(
1996 e) printf "%s\n" "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
1998
1999 ac_retval=1 ;;
2000 esac
2001 fi
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2004
2005 } # ac_fn_cxx_try_cpp
2006
2007 # ac_fn_cxx_try_link LINENO
2008 # -------------------------
2009 # Try to link conftest.$ac_ext, and return whether this succeeded.
2010 ac_fn_cxx_try_link ()
2011 {
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2014 if { { ac_try="$ac_link"
2015 case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 printf "%s\n" "$ac_try_echo"; } >&5
2021 (eval "$ac_link") 2>conftest.err
2022 ac_status=$?
2023 if test -s conftest.err; then
2024 grep -v '^ *+' conftest.err >conftest.er1
2025 cat conftest.er1 >&5
2026 mv -f conftest.er1 conftest.err
2027 fi
2028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } && {
2030 test -z "$ac_cxx_werror_flag" ||
2031 test ! -s conftest.err
2032 } && test -s conftest$ac_exeext && {
2033 test "$cross_compiling" = yes ||
2034 test -x conftest$ac_exeext
2035 }
2036 then :
2037 ac_retval=0
2038 else case e in #(
2039 e) printf "%s\n" "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2041
2042 ac_retval=1 ;;
2043 esac
2044 fi
2045 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2046 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2047 # interfere with the next link command; also delete a directory that is
2048 # left behind by Apple's compiler. We do this before executing the actions.
2049 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 as_fn_set_status $ac_retval
2052
2053 } # ac_fn_cxx_try_link
2054
2055 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2056 # -------------------------------------------
2057 # Tests whether TYPE exists after having included INCLUDES, setting cache
2058 # variable VAR accordingly.
2059 ac_fn_c_check_type ()
2060 {
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 printf %s "checking for $2... " >&6; }
2064 if eval test \${$3+y}
2065 then :
2066 printf %s "(cached) " >&6
2067 else case e in #(
2068 e) eval "$3=no"
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 $4
2072 int
2073 main (void)
2074 {
2075 if (sizeof ($2))
2076 return 0;
2077 ;
2078 return 0;
2079 }
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"
2082 then :
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 $4
2086 int
2087 main (void)
2088 {
2089 if (sizeof (($2)))
2090 return 0;
2091 ;
2092 return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"
2096 then :
2097
2098 else case e in #(
2099 e) eval "$3=yes" ;;
2100 esac
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2105 esac
2106 fi
2107 eval ac_res=\$$3
2108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 printf "%s\n" "$ac_res" >&6; }
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111
2112 } # ac_fn_c_check_type
2113
2114 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2115 # --------------------------------------------
2116 # Tries to find the compile-time value of EXPR in a program that includes
2117 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2118 # computed
2119 ac_fn_c_compute_int ()
2120 {
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 if test "$cross_compiling" = yes; then
2123 # Depending upon the size, compute the lo and hi bounds.
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2126 $4
2127 int
2128 main (void)
2129 {
2130 static int test_array [1 - 2 * !(($2) >= 0)];
2131 test_array [0] = 0;
2132 return test_array [0];
2133
2134 ;
2135 return 0;
2136 }
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"
2139 then :
2140 ac_lo=0 ac_mid=0
2141 while :; do
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 $4
2145 int
2146 main (void)
2147 {
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2149 test_array [0] = 0;
2150 return test_array [0];
2151
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"
2157 then :
2158 ac_hi=$ac_mid; break
2159 else case e in #(
2160 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2161 if test $ac_lo -le $ac_mid; then
2162 ac_lo= ac_hi=
2163 break
2164 fi
2165 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2166 esac
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2169 done
2170 else case e in #(
2171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2173 $4
2174 int
2175 main (void)
2176 {
2177 static int test_array [1 - 2 * !(($2) < 0)];
2178 test_array [0] = 0;
2179 return test_array [0];
2180
2181 ;
2182 return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"
2186 then :
2187 ac_hi=-1 ac_mid=-1
2188 while :; do
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2191 $4
2192 int
2193 main (void)
2194 {
2195 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2196 test_array [0] = 0;
2197 return test_array [0];
2198
2199 ;
2200 return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"
2204 then :
2205 ac_lo=$ac_mid; break
2206 else case e in #(
2207 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2208 if test $ac_mid -le $ac_hi; then
2209 ac_lo= ac_hi=
2210 break
2211 fi
2212 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2213 esac
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2216 done
2217 else case e in #(
2218 e) ac_lo= ac_hi= ;;
2219 esac
2220 fi
2221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2222 esac
2223 fi
2224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2225 # Binary search between lo and hi bounds.
2226 while test "x$ac_lo" != "x$ac_hi"; do
2227 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2230 $4
2231 int
2232 main (void)
2233 {
2234 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2235 test_array [0] = 0;
2236 return test_array [0];
2237
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"
2243 then :
2244 ac_hi=$ac_mid
2245 else case e in #(
2246 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2247 esac
2248 fi
2249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2250 done
2251 case $ac_lo in #((
2252 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2253 '') ac_retval=1 ;;
2254 esac
2255 else
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2258 $4
2259 static long int longval (void) { return $2; }
2260 static unsigned long int ulongval (void) { return $2; }
2261 #include <stdio.h>
2262 #include <stdlib.h>
2263 int
2264 main (void)
2265 {
2266
2267 FILE *f = fopen ("conftest.val", "w");
2268 if (! f)
2269 return 1;
2270 if (($2) < 0)
2271 {
2272 long int i = longval ();
2273 if (i != ($2))
2274 return 1;
2275 fprintf (f, "%ld", i);
2276 }
2277 else
2278 {
2279 unsigned long int i = ulongval ();
2280 if (i != ($2))
2281 return 1;
2282 fprintf (f, "%lu", i);
2283 }
2284 /* Do not output a trailing newline, as this causes \r\n confusion
2285 on some platforms. */
2286 return ferror (f) || fclose (f) != 0;
2287
2288 ;
2289 return 0;
2290 }
2291 _ACEOF
2292 if ac_fn_c_try_run "$LINENO"
2293 then :
2294 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2295 else case e in #(
2296 e) ac_retval=1 ;;
2297 esac
2298 fi
2299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2300 conftest.$ac_objext conftest.beam conftest.$ac_ext
2301 rm -f conftest.val
2302
2303 fi
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305 as_fn_set_status $ac_retval
2306
2307 } # ac_fn_c_compute_int
2308
2309 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2310 # ------------------------------------------------------------------
2311 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2312 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2313 ac_fn_check_decl ()
2314 {
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 as_decl_name=`echo $2|sed 's/ *(.*//'`
2317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2318 printf %s "checking whether $as_decl_name is declared... " >&6; }
2319 if eval test \${$3+y}
2320 then :
2321 printf %s "(cached) " >&6
2322 else case e in #(
2323 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2324 eval ac_save_FLAGS=\$$6
2325 as_fn_append $6 " $5"
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 $4
2329 int
2330 main (void)
2331 {
2332 #ifndef $as_decl_name
2333 #ifdef __cplusplus
2334 (void) $as_decl_use;
2335 #else
2336 (void) $as_decl_name;
2337 #endif
2338 #endif
2339
2340 ;
2341 return 0;
2342 }
2343 _ACEOF
2344 if ac_fn_c_try_compile "$LINENO"
2345 then :
2346 eval "$3=yes"
2347 else case e in #(
2348 e) eval "$3=no" ;;
2349 esac
2350 fi
2351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2352 eval $6=\$ac_save_FLAGS
2353 ;;
2354 esac
2355 fi
2356 eval ac_res=\$$3
2357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358 printf "%s\n" "$ac_res" >&6; }
2359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360
2361 } # ac_fn_check_decl
2362 ac_configure_args_raw=
2363 for ac_arg
2364 do
2365 case $ac_arg in
2366 *\'*)
2367 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2368 esac
2369 as_fn_append ac_configure_args_raw " '$ac_arg'"
2370 done
2371
2372 case $ac_configure_args_raw in
2373 *$as_nl*)
2374 ac_safe_unquote= ;;
2375 *)
2376 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2377 ac_unsafe_a="$ac_unsafe_z#~"
2378 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2379 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2380 esac
2381
2382 cat >config.log <<_ACEOF
2383 This file contains any messages produced by compilers while
2384 running configure, to aid debugging if configure makes a mistake.
2385
2386 It was created by isl $as_me 0.28, which was
2387 generated by GNU Autoconf 2.72. Invocation command line was
2388
2389 $ $0$ac_configure_args_raw
2390
2391 _ACEOF
2392 exec 5>>config.log
2393 {
2394 cat <<_ASUNAME
2395 ## --------- ##
2396 ## Platform. ##
2397 ## --------- ##
2398
2399 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2400 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2401 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2402 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2403 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2404
2405 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2406 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2407
2408 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2409 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2410 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2411 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2412 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2413 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2414 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2415
2416 _ASUNAME
2417
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2420 do
2421 IFS=$as_save_IFS
2422 case $as_dir in #(((
2423 '') as_dir=./ ;;
2424 */) ;;
2425 *) as_dir=$as_dir/ ;;
2426 esac
2427 printf "%s\n" "PATH: $as_dir"
2428 done
2429 IFS=$as_save_IFS
2430
2431 } >&5
2432
2433 cat >&5 <<_ACEOF
2434
2435
2436 ## ----------- ##
2437 ## Core tests. ##
2438 ## ----------- ##
2439
2440 _ACEOF
2441
2442
2443 # Keep a trace of the command line.
2444 # Strip out --no-create and --no-recursion so they do not pile up.
2445 # Strip out --silent because we don't want to record it for future runs.
2446 # Also quote any args containing shell meta-characters.
2447 # Make two passes to allow for proper duplicate-argument suppression.
2448 ac_configure_args=
2449 ac_configure_args0=
2450 ac_configure_args1=
2451 ac_must_keep_next=false
2452 for ac_pass in 1 2
2453 do
2454 for ac_arg
2455 do
2456 case $ac_arg in
2457 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2459 | -silent | --silent | --silen | --sile | --sil)
2460 continue ;;
2461 *\'*)
2462 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2463 esac
2464 case $ac_pass in
2465 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2466 2)
2467 as_fn_append ac_configure_args1 " '$ac_arg'"
2468 if test $ac_must_keep_next = true; then
2469 ac_must_keep_next=false # Got value, back to normal.
2470 else
2471 case $ac_arg in
2472 *=* | --config-cache | -C | -disable-* | --disable-* \
2473 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2474 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2475 | -with-* | --with-* | -without-* | --without-* | --x)
2476 case "$ac_configure_args0 " in
2477 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2478 esac
2479 ;;
2480 -* ) ac_must_keep_next=true ;;
2481 esac
2482 fi
2483 as_fn_append ac_configure_args " '$ac_arg'"
2484 ;;
2485 esac
2486 done
2487 done
2488 { ac_configure_args0=; unset ac_configure_args0;}
2489 { ac_configure_args1=; unset ac_configure_args1;}
2490
2491 # When interrupted or exit'd, cleanup temporary files, and complete
2492 # config.log. We remove comments because anyway the quotes in there
2493 # would cause problems or look ugly.
2494 # WARNING: Use '\'' to represent an apostrophe within the trap.
2495 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2496 trap 'exit_status=$?
2497 # Sanitize IFS.
2498 IFS=" "" $as_nl"
2499 # Save into config.log some information that might help in debugging.
2500 {
2501 echo
2502
2503 printf "%s\n" "## ---------------- ##
2504 ## Cache variables. ##
2505 ## ---------------- ##"
2506 echo
2507 # The following way of writing the cache mishandles newlines in values,
2508 (
2509 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2510 eval ac_val=\$$ac_var
2511 case $ac_val in #(
2512 *${as_nl}*)
2513 case $ac_var in #(
2514 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2515 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2516 esac
2517 case $ac_var in #(
2518 _ | IFS | as_nl) ;; #(
2519 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2520 *) { eval $ac_var=; unset $ac_var;} ;;
2521 esac ;;
2522 esac
2523 done
2524 (set) 2>&1 |
2525 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2526 *${as_nl}ac_space=\ *)
2527 sed -n \
2528 "s/'\''/'\''\\\\'\'''\''/g;
2529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2530 ;; #(
2531 *)
2532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2533 ;;
2534 esac |
2535 sort
2536 )
2537 echo
2538
2539 printf "%s\n" "## ----------------- ##
2540 ## Output variables. ##
2541 ## ----------------- ##"
2542 echo
2543 for ac_var in $ac_subst_vars
2544 do
2545 eval ac_val=\$$ac_var
2546 case $ac_val in
2547 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2548 esac
2549 printf "%s\n" "$ac_var='\''$ac_val'\''"
2550 done | sort
2551 echo
2552
2553 if test -n "$ac_subst_files"; then
2554 printf "%s\n" "## ------------------- ##
2555 ## File substitutions. ##
2556 ## ------------------- ##"
2557 echo
2558 for ac_var in $ac_subst_files
2559 do
2560 eval ac_val=\$$ac_var
2561 case $ac_val in
2562 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2563 esac
2564 printf "%s\n" "$ac_var='\''$ac_val'\''"
2565 done | sort
2566 echo
2567 fi
2568
2569 if test -s confdefs.h; then
2570 printf "%s\n" "## ----------- ##
2571 ## confdefs.h. ##
2572 ## ----------- ##"
2573 echo
2574 cat confdefs.h
2575 echo
2576 fi
2577 test "$ac_signal" != 0 &&
2578 printf "%s\n" "$as_me: caught signal $ac_signal"
2579 printf "%s\n" "$as_me: exit $exit_status"
2580 } >&5
2581 rm -f core *.core core.conftest.* &&
2582 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2583 exit $exit_status
2584 ' 0
2585 for ac_signal in 1 2 13 15; do
2586 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2587 done
2588 ac_signal=0
2589
2590 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2591 rm -f -r conftest* confdefs.h
2592
2593 printf "%s\n" "/* confdefs.h */" > confdefs.h
2594
2595 # Predefined preprocessor variables.
2596
2597 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2598
2599 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2600
2601 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2602
2603 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2604
2605 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2606
2607 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2608
2609
2610 # Let the site file select an alternate cache file if it wants to.
2611 # Prefer an explicitly selected file to automatically selected ones.
2612 if test -n "$CONFIG_SITE"; then
2613 ac_site_files="$CONFIG_SITE"
2614 elif test "x$prefix" != xNONE; then
2615 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2616 else
2617 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2618 fi
2619
2620 for ac_site_file in $ac_site_files
2621 do
2622 case $ac_site_file in #(
2623 */*) :
2624 ;; #(
2625 *) :
2626 ac_site_file=./$ac_site_file ;;
2627 esac
2628 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2630 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2631 sed 's/^/| /' "$ac_site_file" >&5
2632 . "$ac_site_file" \
2633 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2634 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2635 as_fn_error $? "failed to load site script $ac_site_file
2636 See 'config.log' for more details" "$LINENO" 5; }
2637 fi
2638 done
2639
2640 if test -r "$cache_file"; then
2641 # Some versions of bash will fail to source /dev/null (special files
2642 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2643 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2645 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2646 case $cache_file in
2647 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2648 *) . "./$cache_file";;
2649 esac
2650 fi
2651 else
2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2653 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2654 >$cache_file
2655 fi
2656
2657 # Test code for whether the C compiler supports C89 (global declarations)
2658 ac_c_conftest_c89_globals='
2659 /* Does the compiler advertise C89 conformance?
2660 Do not test the value of __STDC__, because some compilers set it to 0
2661 while being otherwise adequately conformant. */
2662 #if !defined __STDC__
2663 # error "Compiler does not advertise C89 conformance"
2664 #endif
2665
2666 #include <stddef.h>
2667 #include <stdarg.h>
2668 struct stat;
2669 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2670 struct buf { int x; };
2671 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2672 static char *e (char **p, int i)
2673 {
2674 return p[i];
2675 }
2676 static char *f (char * (*g) (char **, int), char **p, ...)
2677 {
2678 char *s;
2679 va_list v;
2680 va_start (v,p);
2681 s = g (p, va_arg (v,int));
2682 va_end (v);
2683 return s;
2684 }
2685
2686 /* C89 style stringification. */
2687 #define noexpand_stringify(a) #a
2688 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2689
2690 /* C89 style token pasting. Exercises some of the corner cases that
2691 e.g. old MSVC gets wrong, but not very hard. */
2692 #define noexpand_concat(a,b) a##b
2693 #define expand_concat(a,b) noexpand_concat(a,b)
2694 extern int vA;
2695 extern int vbee;
2696 #define aye A
2697 #define bee B
2698 int *pvA = &expand_concat(v,aye);
2699 int *pvbee = &noexpand_concat(v,bee);
2700
2701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2702 function prototypes and stuff, but not \xHH hex character constants.
2703 These do not provoke an error unfortunately, instead are silently treated
2704 as an "x". The following induces an error, until -std is added to get
2705 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2706 array size at least. It is necessary to write \x00 == 0 to get something
2707 that is true only with -std. */
2708 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2709
2710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2711 inside strings and character constants. */
2712 #define FOO(x) '\''x'\''
2713 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2714
2715 int test (int i, double x);
2716 struct s1 {int (*f) (int a);};
2717 struct s2 {int (*f) (double a);};
2718 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2719 int, int);'
2720
2721 # Test code for whether the C compiler supports C89 (body of main).
2722 ac_c_conftest_c89_main='
2723 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2724 '
2725
2726 # Test code for whether the C compiler supports C99 (global declarations)
2727 ac_c_conftest_c99_globals='
2728 /* Does the compiler advertise C99 conformance? */
2729 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2730 # error "Compiler does not advertise C99 conformance"
2731 #endif
2732
2733 // See if C++-style comments work.
2734
2735 #include <stdbool.h>
2736 extern int puts (const char *);
2737 extern int printf (const char *, ...);
2738 extern int dprintf (int, const char *, ...);
2739 extern void *malloc (size_t);
2740 extern void free (void *);
2741
2742 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2743 // dprintf is used instead of fprintf to avoid needing to declare
2744 // FILE and stderr.
2745 #define debug(...) dprintf (2, __VA_ARGS__)
2746 #define showlist(...) puts (#__VA_ARGS__)
2747 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2748 static void
2749 test_varargs_macros (void)
2750 {
2751 int x = 1234;
2752 int y = 5678;
2753 debug ("Flag");
2754 debug ("X = %d\n", x);
2755 showlist (The first, second, and third items.);
2756 report (x>y, "x is %d but y is %d", x, y);
2757 }
2758
2759 // Check long long types.
2760 #define BIG64 18446744073709551615ull
2761 #define BIG32 4294967295ul
2762 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2763 #if !BIG_OK
2764 #error "your preprocessor is broken"
2765 #endif
2766 #if BIG_OK
2767 #else
2768 #error "your preprocessor is broken"
2769 #endif
2770 static long long int bignum = -9223372036854775807LL;
2771 static unsigned long long int ubignum = BIG64;
2772
2773 struct incomplete_array
2774 {
2775 int datasize;
2776 double data[];
2777 };
2778
2779 struct named_init {
2780 int number;
2781 const wchar_t *name;
2782 double average;
2783 };
2784
2785 typedef const char *ccp;
2786
2787 static inline int
2788 test_restrict (ccp restrict text)
2789 {
2790 // Iterate through items via the restricted pointer.
2791 // Also check for declarations in for loops.
2792 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2793 continue;
2794 return 0;
2795 }
2796
2797 // Check varargs and va_copy.
2798 static bool
2799 test_varargs (const char *format, ...)
2800 {
2801 va_list args;
2802 va_start (args, format);
2803 va_list args_copy;
2804 va_copy (args_copy, args);
2805
2806 const char *str = "";
2807 int number = 0;
2808 float fnumber = 0;
2809
2810 while (*format)
2811 {
2812 switch (*format++)
2813 {
2814 case '\''s'\'': // string
2815 str = va_arg (args_copy, const char *);
2816 break;
2817 case '\''d'\'': // int
2818 number = va_arg (args_copy, int);
2819 break;
2820 case '\''f'\'': // float
2821 fnumber = va_arg (args_copy, double);
2822 break;
2823 default:
2824 break;
2825 }
2826 }
2827 va_end (args_copy);
2828 va_end (args);
2829
2830 return *str && number && fnumber;
2831 }
2832 '
2833
2834 # Test code for whether the C compiler supports C99 (body of main).
2835 ac_c_conftest_c99_main='
2836 // Check bool.
2837 _Bool success = false;
2838 success |= (argc != 0);
2839
2840 // Check restrict.
2841 if (test_restrict ("String literal") == 0)
2842 success = true;
2843 char *restrict newvar = "Another string";
2844
2845 // Check varargs.
2846 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2847 test_varargs_macros ();
2848
2849 // Check flexible array members.
2850 struct incomplete_array *ia =
2851 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2852 ia->datasize = 10;
2853 for (int i = 0; i < ia->datasize; ++i)
2854 ia->data[i] = i * 1.234;
2855 // Work around memory leak warnings.
2856 free (ia);
2857
2858 // Check named initializers.
2859 struct named_init ni = {
2860 .number = 34,
2861 .name = L"Test wide string",
2862 .average = 543.34343,
2863 };
2864
2865 ni.number = 58;
2866
2867 int dynamic_array[ni.number];
2868 dynamic_array[0] = argv[0][0];
2869 dynamic_array[ni.number - 1] = 543;
2870
2871 // work around unused variable warnings
2872 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2873 || dynamic_array[ni.number - 1] != 543);
2874 '
2875
2876 # Test code for whether the C compiler supports C11 (global declarations)
2877 ac_c_conftest_c11_globals='
2878 /* Does the compiler advertise C11 conformance? */
2879 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2880 # error "Compiler does not advertise C11 conformance"
2881 #endif
2882
2883 // Check _Alignas.
2884 char _Alignas (double) aligned_as_double;
2885 char _Alignas (0) no_special_alignment;
2886 extern char aligned_as_int;
2887 char _Alignas (0) _Alignas (int) aligned_as_int;
2888
2889 // Check _Alignof.
2890 enum
2891 {
2892 int_alignment = _Alignof (int),
2893 int_array_alignment = _Alignof (int[100]),
2894 char_alignment = _Alignof (char)
2895 };
2896 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2897
2898 // Check _Noreturn.
2899 int _Noreturn does_not_return (void) { for (;;) continue; }
2900
2901 // Check _Static_assert.
2902 struct test_static_assert
2903 {
2904 int x;
2905 _Static_assert (sizeof (int) <= sizeof (long int),
2906 "_Static_assert does not work in struct");
2907 long int y;
2908 };
2909
2910 // Check UTF-8 literals.
2911 #define u8 syntax error!
2912 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2913
2914 // Check duplicate typedefs.
2915 typedef long *long_ptr;
2916 typedef long int *long_ptr;
2917 typedef long_ptr long_ptr;
2918
2919 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2920 struct anonymous
2921 {
2922 union {
2923 struct { int i; int j; };
2924 struct { int k; long int l; } w;
2925 };
2926 int m;
2927 } v1;
2928 '
2929
2930 # Test code for whether the C compiler supports C11 (body of main).
2931 ac_c_conftest_c11_main='
2932 _Static_assert ((offsetof (struct anonymous, i)
2933 == offsetof (struct anonymous, w.k)),
2934 "Anonymous union alignment botch");
2935 v1.i = 2;
2936 v1.w.k = 5;
2937 ok |= v1.i != 5;
2938 '
2939
2940 # Test code for whether the C compiler supports C11 (complete).
2941 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2942 ${ac_c_conftest_c99_globals}
2943 ${ac_c_conftest_c11_globals}
2944
2945 int
2946 main (int argc, char **argv)
2947 {
2948 int ok = 0;
2949 ${ac_c_conftest_c89_main}
2950 ${ac_c_conftest_c99_main}
2951 ${ac_c_conftest_c11_main}
2952 return ok;
2953 }
2954 "
2955
2956 # Test code for whether the C compiler supports C99 (complete).
2957 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2958 ${ac_c_conftest_c99_globals}
2959
2960 int
2961 main (int argc, char **argv)
2962 {
2963 int ok = 0;
2964 ${ac_c_conftest_c89_main}
2965 ${ac_c_conftest_c99_main}
2966 return ok;
2967 }
2968 "
2969
2970 # Test code for whether the C compiler supports C89 (complete).
2971 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2972
2973 int
2974 main (int argc, char **argv)
2975 {
2976 int ok = 0;
2977 ${ac_c_conftest_c89_main}
2978 return ok;
2979 }
2980 "
2981
2982 # Test code for whether the C++ compiler supports C++98 (global declarations)
2983 ac_cxx_conftest_cxx98_globals='
2984 // Does the compiler advertise C++98 conformance?
2985 #if !defined __cplusplus || __cplusplus < 199711L
2986 # error "Compiler does not advertise C++98 conformance"
2987 #endif
2988
2989 // These inclusions are to reject old compilers that
2990 // lack the unsuffixed header files.
2991 #include <cstdlib>
2992 #include <exception>
2993
2994 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2995 extern void assert (int);
2996 namespace std {
2997 extern int strcmp (const char *, const char *);
2998 }
2999
3000 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3001 using std::exception;
3002 using std::strcmp;
3003
3004 namespace {
3005
3006 void test_exception_syntax()
3007 {
3008 try {
3009 throw "test";
3010 } catch (const char *s) {
3011 // Extra parentheses suppress a warning when building autoconf itself,
3012 // due to lint rules shared with more typical C programs.
3013 assert (!(strcmp) (s, "test"));
3014 }
3015 }
3016
3017 template <typename T> struct test_template
3018 {
3019 T const val;
3020 explicit test_template(T t) : val(t) {}
3021 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3022 };
3023
3024 } // anonymous namespace
3025 '
3026
3027 # Test code for whether the C++ compiler supports C++98 (body of main)
3028 ac_cxx_conftest_cxx98_main='
3029 assert (argc);
3030 assert (! argv[0]);
3031 {
3032 test_exception_syntax ();
3033 test_template<double> tt (2.0);
3034 assert (tt.add (4) == 6.0);
3035 assert (true && !false);
3036 }
3037 '
3038
3039 # Test code for whether the C++ compiler supports C++11 (global declarations)
3040 ac_cxx_conftest_cxx11_globals='
3041 // Does the compiler advertise C++ 2011 conformance?
3042 #if !defined __cplusplus || __cplusplus < 201103L
3043 # error "Compiler does not advertise C++11 conformance"
3044 #endif
3045
3046 namespace cxx11test
3047 {
3048 constexpr int get_val() { return 20; }
3049
3050 struct testinit
3051 {
3052 int i;
3053 double d;
3054 };
3055
3056 class delegate
3057 {
3058 public:
3059 delegate(int n) : n(n) {}
3060 delegate(): delegate(2354) {}
3061
3062 virtual int getval() { return this->n; };
3063 protected:
3064 int n;
3065 };
3066
3067 class overridden : public delegate
3068 {
3069 public:
3070 overridden(int n): delegate(n) {}
3071 virtual int getval() override final { return this->n * 2; }
3072 };
3073
3074 class nocopy
3075 {
3076 public:
3077 nocopy(int i): i(i) {}
3078 nocopy() = default;
3079 nocopy(const nocopy&) = delete;
3080 nocopy & operator=(const nocopy&) = delete;
3081 private:
3082 int i;
3083 };
3084
3085 // for testing lambda expressions
3086 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3087 {
3088 return f(v);
3089 }
3090
3091 // for testing variadic templates and trailing return types
3092 template <typename V> auto sum(V first) -> V
3093 {
3094 return first;
3095 }
3096 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3097 {
3098 return first + sum(rest...);
3099 }
3100 }
3101 '
3102
3103 # Test code for whether the C++ compiler supports C++11 (body of main)
3104 ac_cxx_conftest_cxx11_main='
3105 {
3106 // Test auto and decltype
3107 auto a1 = 6538;
3108 auto a2 = 48573953.4;
3109 auto a3 = "String literal";
3110
3111 int total = 0;
3112 for (auto i = a3; *i; ++i) { total += *i; }
3113
3114 decltype(a2) a4 = 34895.034;
3115 }
3116 {
3117 // Test constexpr
3118 short sa[cxx11test::get_val()] = { 0 };
3119 }
3120 {
3121 // Test initializer lists
3122 cxx11test::testinit il = { 4323, 435234.23544 };
3123 }
3124 {
3125 // Test range-based for
3126 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3127 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3128 for (auto &x : array) { x += 23; }
3129 }
3130 {
3131 // Test lambda expressions
3132 using cxx11test::eval;
3133 assert (eval ([](int x) { return x*2; }, 21) == 42);
3134 double d = 2.0;
3135 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3136 assert (d == 5.0);
3137 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3138 assert (d == 5.0);
3139 }
3140 {
3141 // Test use of variadic templates
3142 using cxx11test::sum;
3143 auto a = sum(1);
3144 auto b = sum(1, 2);
3145 auto c = sum(1.0, 2.0, 3.0);
3146 }
3147 {
3148 // Test constructor delegation
3149 cxx11test::delegate d1;
3150 cxx11test::delegate d2();
3151 cxx11test::delegate d3(45);
3152 }
3153 {
3154 // Test override and final
3155 cxx11test::overridden o1(55464);
3156 }
3157 {
3158 // Test nullptr
3159 char *c = nullptr;
3160 }
3161 {
3162 // Test template brackets
3163 test_template<::test_template<int>> v(test_template<int>(12));
3164 }
3165 {
3166 // Unicode literals
3167 char const *utf8 = u8"UTF-8 string \u2500";
3168 char16_t const *utf16 = u"UTF-8 string \u2500";
3169 char32_t const *utf32 = U"UTF-32 string \u2500";
3170 }
3171 '
3172
3173 # Test code for whether the C compiler supports C++11 (complete).
3174 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3175 ${ac_cxx_conftest_cxx11_globals}
3176
3177 int
3178 main (int argc, char **argv)
3179 {
3180 int ok = 0;
3181 ${ac_cxx_conftest_cxx98_main}
3182 ${ac_cxx_conftest_cxx11_main}
3183 return ok;
3184 }
3185 "
3186
3187 # Test code for whether the C compiler supports C++98 (complete).
3188 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3189 int
3190 main (int argc, char **argv)
3191 {
3192 int ok = 0;
3193 ${ac_cxx_conftest_cxx98_main}
3194 return ok;
3195 }
3196 "
3197
3198 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3199 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3200 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3201 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3202 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3203 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3204 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3205 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3206 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3207
3208 # Auxiliary files required by this configure script.
3209 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
3210
3211 # Locations in which to look for auxiliary files.
3212 ac_aux_dir_candidates="${srcdir}/."
3213
3214 # Search for a directory containing all of the required auxiliary files,
3215 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3216 # If we don't find one directory that contains all the files we need,
3217 # we report the set of missing files from the *first* directory in
3218 # $ac_aux_dir_candidates and give up.
3219 ac_missing_aux_files=""
3220 ac_first_candidate=:
3221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 as_found=false
3224 for as_dir in $ac_aux_dir_candidates
3225 do
3226 IFS=$as_save_IFS
3227 case $as_dir in #(((
3228 '') as_dir=./ ;;
3229 */) ;;
3230 *) as_dir=$as_dir/ ;;
3231 esac
3232 as_found=:
3233
3234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3235 ac_aux_dir_found=yes
3236 ac_install_sh=
3237 for ac_aux in $ac_aux_files
3238 do
3239 # As a special case, if "install-sh" is required, that requirement
3240 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3241 # and $ac_install_sh is set appropriately for whichever one is found.
3242 if test x"$ac_aux" = x"install-sh"
3243 then
3244 if test -f "${as_dir}install-sh"; then
3245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3246 ac_install_sh="${as_dir}install-sh -c"
3247 elif test -f "${as_dir}install.sh"; then
3248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3249 ac_install_sh="${as_dir}install.sh -c"
3250 elif test -f "${as_dir}shtool"; then
3251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3252 ac_install_sh="${as_dir}shtool install -c"
3253 else
3254 ac_aux_dir_found=no
3255 if $ac_first_candidate; then
3256 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3257 else
3258 break
3259 fi
3260 fi
3261 else
3262 if test -f "${as_dir}${ac_aux}"; then
3263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3264 else
3265 ac_aux_dir_found=no
3266 if $ac_first_candidate; then
3267 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3268 else
3269 break
3270 fi
3271 fi
3272 fi
3273 done
3274 if test "$ac_aux_dir_found" = yes; then
3275 ac_aux_dir="$as_dir"
3276 break
3277 fi
3278 ac_first_candidate=false
3279
3280 as_found=false
3281 done
3282 IFS=$as_save_IFS
3283 if $as_found
3284 then :
3285
3286 else case e in #(
3287 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3288 esac
3289 fi
3290
3291
3292 # These three variables are undocumented and unsupported,
3293 # and are intended to be withdrawn in a future Autoconf release.
3294 # They can cause serious problems if a builder's source tree is in a directory
3295 # whose full name contains unusual characters.
3296 if test -f "${ac_aux_dir}config.guess"; then
3297 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3298 fi
3299 if test -f "${ac_aux_dir}config.sub"; then
3300 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3301 fi
3302 if test -f "$ac_aux_dir/configure"; then
3303 ac_configure="$SHELL ${ac_aux_dir}configure"
3304 fi
3305
3306 # Check that the precious variables saved in the cache have kept the same
3307 # value.
3308 ac_cache_corrupted=false
3309 for ac_var in $ac_precious_vars; do
3310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3311 eval ac_new_set=\$ac_env_${ac_var}_set
3312 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3313 eval ac_new_val=\$ac_env_${ac_var}_value
3314 case $ac_old_set,$ac_new_set in
3315 set,)
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3317 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3318 ac_cache_corrupted=: ;;
3319 ,set)
3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3321 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3322 ac_cache_corrupted=: ;;
3323 ,);;
3324 *)
3325 if test "x$ac_old_val" != "x$ac_new_val"; then
3326 # differences in whitespace do not lead to failure.
3327 ac_old_val_w=`echo x $ac_old_val`
3328 ac_new_val_w=`echo x $ac_new_val`
3329 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3331 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3332 ac_cache_corrupted=:
3333 else
3334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3335 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3336 eval $ac_var=\$ac_old_val
3337 fi
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3339 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3341 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3342 fi;;
3343 esac
3344 # Pass precious variables to config.status.
3345 if test "$ac_new_set" = set; then
3346 case $ac_new_val in
3347 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3348 *) ac_arg=$ac_var=$ac_new_val ;;
3349 esac
3350 case " $ac_configure_args " in
3351 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3352 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3353 esac
3354 fi
3355 done
3356 if $ac_cache_corrupted; then
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3358 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3360 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3361 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3362 and start over" "$LINENO" 5
3363 fi
3364 ## -------------------- ##
3365 ## Main body of script. ##
3366 ## -------------------- ##
3367
3368 ac_ext=c
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373
3374
3375
3376
3377 am__api_version='1.18'
3378
3379
3380
3381 # Find a good install program. We prefer a C program (faster),
3382 # so one script is as good as another. But avoid the broken or
3383 # incompatible versions:
3384 # SysV /etc/install, /usr/sbin/install
3385 # SunOS /usr/etc/install
3386 # IRIX /sbin/install
3387 # AIX /bin/install
3388 # AmigaOS /C/install, which installs bootblocks on floppy discs
3389 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3390 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3391 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3392 # OS/2's system install, which has a completely different semantic
3393 # ./install, which can be erroneously created by make from ./install.sh.
3394 # Reject install programs that cannot install multiple files.
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3396 printf %s "checking for a BSD-compatible install... " >&6; }
3397 if test -z "$INSTALL"; then
3398 if test ${ac_cv_path_install+y}
3399 then :
3400 printf %s "(cached) " >&6
3401 else case e in #(
3402 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405 IFS=$as_save_IFS
3406 case $as_dir in #(((
3407 '') as_dir=./ ;;
3408 */) ;;
3409 *) as_dir=$as_dir/ ;;
3410 esac
3411 # Account for fact that we put trailing slashes in our PATH walk.
3412 case $as_dir in #((
3413 ./ | /[cC]/* | \
3414 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3415 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3416 /usr/ucb/* ) ;;
3417 *)
3418 # OSF1 and SCO ODT 3.0 have their own names for install.
3419 # Don't use installbsd from OSF since it installs stuff as root
3420 # by default.
3421 for ac_prog in ginstall scoinst install; do
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3424 if test $ac_prog = install &&
3425 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3426 # AIX install. It has an incompatible calling convention.
3427 :
3428 elif test $ac_prog = install &&
3429 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3430 # program-specific install script used by HP pwplus--don't use.
3431 :
3432 else
3433 rm -rf conftest.one conftest.two conftest.dir
3434 echo one > conftest.one
3435 echo two > conftest.two
3436 mkdir conftest.dir
3437 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3438 test -s conftest.one && test -s conftest.two &&
3439 test -s conftest.dir/conftest.one &&
3440 test -s conftest.dir/conftest.two
3441 then
3442 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3443 break 3
3444 fi
3445 fi
3446 fi
3447 done
3448 done
3449 ;;
3450 esac
3451
3452 done
3453 IFS=$as_save_IFS
3454
3455 rm -rf conftest.one conftest.two conftest.dir
3456 ;;
3457 esac
3458 fi
3459 if test ${ac_cv_path_install+y}; then
3460 INSTALL=$ac_cv_path_install
3461 else
3462 # As a last resort, use the slow shell script. Don't cache a
3463 # value for INSTALL within a source directory, because that will
3464 # break other packages using the cache if that directory is
3465 # removed, or if the value is a relative name.
3466 INSTALL=$ac_install_sh
3467 fi
3468 fi
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3470 printf "%s\n" "$INSTALL" >&6; }
3471
3472 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3473 # It thinks the first close brace ends the variable substitution.
3474 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3475
3476 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3477
3478 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3479
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3481 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3482 if test ${am_cv_sleep_fractional_seconds+y}
3483 then :
3484 printf %s "(cached) " >&6
3485 else case e in #(
3486 e) if sleep 0.001 2>/dev/null
3487 then :
3488 am_cv_sleep_fractional_seconds=yes
3489 else case e in #(
3490 e) am_cv_sleep_fractional_seconds=no ;;
3491 esac
3492 fi
3493 ;;
3494 esac
3495 fi
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3497 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3498
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3500 printf %s "checking filesystem timestamp resolution... " >&6; }
3501 if test ${am_cv_filesystem_timestamp_resolution+y}
3502 then :
3503 printf %s "(cached) " >&6
3504 else case e in #(
3505 e) # Default to the worst case.
3506 am_cv_filesystem_timestamp_resolution=2
3507
3508 # Only try to go finer than 1 sec if sleep can do it.
3509 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3510 # - 1 sec is not much of a win compared to 2 sec, and
3511 # - it takes 2 seconds to perform the test whether 1 sec works.
3512 #
3513 # Instead, just use the default 2s on platforms that have 1s resolution,
3514 # accept the extra 1s delay when using $sleep in the Automake tests, in
3515 # exchange for not incurring the 2s delay for running the test for all
3516 # packages.
3517 #
3518 am_try_resolutions=
3519 if test "$am_cv_sleep_fractional_seconds" = yes; then
3520 # Even a millisecond often causes a bunch of false positives,
3521 # so just try a hundredth of a second. The time saved between .001 and
3522 # .01 is not terribly consequential.
3523 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3524 fi
3525
3526 # In order to catch current-generation FAT out, we must *modify* files
3527 # that already exist; the *creation* timestamp is finer. Use names
3528 # that make ls -t sort them differently when they have equal
3529 # timestamps than when they have distinct timestamps, keeping
3530 # in mind that ls -t prints the *newest* file first.
3531 rm -f conftest.ts?
3532 : > conftest.ts1
3533 : > conftest.ts2
3534 : > conftest.ts3
3535
3536 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3537 # clobber the current shell's arguments. (Outer-level square brackets
3538 # are removed by m4; they're present so that m4 does not expand
3539 # <dollar><star>; be careful, easy to get confused.)
3540 if (
3541 set X `ls -t conftest.ts[12]` &&
3542 {
3543 test "$*" != "X conftest.ts1 conftest.ts2" ||
3544 test "$*" != "X conftest.ts2 conftest.ts1";
3545 }
3546 ); then :; else
3547 # If neither matched, then we have a broken ls. This can happen
3548 # if, for instance, CONFIG_SHELL is bash and it inherits a
3549 # broken ls alias from the environment. This has actually
3550 # happened. Such a system could not be considered "sane".
3551 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3552 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3553 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3554 as_fn_error $? "ls -t produces unexpected output.
3555 Make sure there is not a broken ls alias in your environment.
3556 See 'config.log' for more details" "$LINENO" 5; }
3557 fi
3558
3559 for am_try_res in $am_try_resolutions; do
3560 # Any one fine-grained sleep might happen to cross the boundary
3561 # between two values of a coarser actual resolution, but if we do
3562 # two fine-grained sleeps in a row, at least one of them will fall
3563 # entirely within a coarse interval.
3564 echo alpha > conftest.ts1
3565 sleep $am_try_res
3566 echo beta > conftest.ts2
3567 sleep $am_try_res
3568 echo gamma > conftest.ts3
3569
3570 # We assume that 'ls -t' will make use of high-resolution
3571 # timestamps if the operating system supports them at all.
3572 if (set X `ls -t conftest.ts?` &&
3573 test "$2" = conftest.ts3 &&
3574 test "$3" = conftest.ts2 &&
3575 test "$4" = conftest.ts1); then
3576 #
3577 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3578 # because we don't need to test make.
3579 make_ok=true
3580 if test $am_try_res != 1; then
3581 # But if we've succeeded so far with a subsecond resolution, we
3582 # have one more thing to check: make. It can happen that
3583 # everything else supports the subsecond mtimes, but make doesn't;
3584 # notably on macOS, which ships make 3.81 from 2006 (the last one
3585 # released under GPLv2). https://bugs.gnu.org/68808
3586 #
3587 # We test $MAKE if it is defined in the environment, else "make".
3588 # It might get overridden later, but our hope is that in practice
3589 # it does not matter: it is the system "make" which is (by far)
3590 # the most likely to be broken, whereas if the user overrides it,
3591 # probably they did so with a better, or at least not worse, make.
3592 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3593 #
3594 # Create a Makefile (real tab character here):
3595 rm -f conftest.mk
3596 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3597 echo ' touch conftest.ts2' >>conftest.mk
3598 #
3599 # Now, running
3600 # touch conftest.ts1; touch conftest.ts2; make
3601 # should touch ts1 because ts2 is newer. This could happen by luck,
3602 # but most often, it will fail if make's support is insufficient. So
3603 # test for several consecutive successes.
3604 #
3605 # (We reuse conftest.ts[12] because we still want to modify existing
3606 # files, not create new ones, per above.)
3607 n=0
3608 make=${MAKE-make}
3609 until test $n -eq 3; do
3610 echo one > conftest.ts1
3611 sleep $am_try_res
3612 echo two > conftest.ts2 # ts2 should now be newer than ts1
3613 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3614 make_ok=false
3615 break # out of $n loop
3616 fi
3617 n=`expr $n + 1`
3618 done
3619 fi
3620 #
3621 if $make_ok; then
3622 # Everything we know to check worked out, so call this resolution good.
3623 am_cv_filesystem_timestamp_resolution=$am_try_res
3624 break # out of $am_try_res loop
3625 fi
3626 # Otherwise, we'll go on to check the next resolution.
3627 fi
3628 done
3629 rm -f conftest.ts?
3630 # (end _am_filesystem_timestamp_resolution)
3631 ;;
3632 esac
3633 fi
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3635 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3636
3637 # This check should not be cached, as it may vary across builds of
3638 # different projects.
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3640 printf %s "checking whether build environment is sane... " >&6; }
3641 # Reject unsafe characters in $srcdir or the absolute working directory
3642 # name. Accept space and tab only in the latter.
3643 am_lf='
3644 '
3645 case `pwd` in
3646 *[\\\"\#\$\&\'\`$am_lf]*)
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 printf "%s\n" "no" >&6; }
3649 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3650 esac
3651 case $srcdir in
3652 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 printf "%s\n" "no" >&6; }
3655 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3656 esac
3657
3658 # Do 'set' in a subshell so we don't clobber the current shell's
3659 # arguments. Must try -L first in case configure is actually a
3660 # symlink; some systems play weird games with the mod time of symlinks
3661 # (eg FreeBSD returns the mod time of the symlink's containing
3662 # directory).
3663 am_build_env_is_sane=no
3664 am_has_slept=no
3665 rm -f conftest.file
3666 for am_try in 1 2; do
3667 echo "timestamp, slept: $am_has_slept" > conftest.file
3668 if (
3669 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3670 if test "$*" = "X"; then
3671 # -L didn't work.
3672 set X `ls -t "$srcdir/configure" conftest.file`
3673 fi
3674 test "$2" = conftest.file
3675 ); then
3676 am_build_env_is_sane=yes
3677 break
3678 fi
3679 # Just in case.
3680 sleep "$am_cv_filesystem_timestamp_resolution"
3681 am_has_slept=yes
3682 done
3683
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3685 printf "%s\n" "$am_build_env_is_sane" >&6; }
3686 if test "$am_build_env_is_sane" = no; then
3687 as_fn_error $? "newly created file is older than distributed files!
3688 Check your system clock" "$LINENO" 5
3689 fi
3690
3691 # If we didn't sleep, we still need to ensure time stamps of config.status and
3692 # generated files are strictly newer.
3693 am_sleep_pid=
3694 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3695 then :
3696
3697 else case e in #(
3698 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3699 am_sleep_pid=$!
3700 ;;
3701 esac
3702 fi
3703
3704 rm -f conftest.file
3705
3706 test "$program_prefix" != NONE &&
3707 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3708 # Use a double $ so make ignores it.
3709 test "$program_suffix" != NONE &&
3710 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3711 # Double any \ or $.
3712 # By default was 's,x,x', remove it if useless.
3713 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3714 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3715
3716
3717 # Expand $ac_aux_dir to an absolute path.
3718 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3719
3720
3721 if test x"${MISSING+set}" != xset; then
3722 MISSING="\${SHELL} '$am_aux_dir/missing'"
3723 fi
3724 # Use eval to expand $SHELL
3725 if eval "$MISSING --is-lightweight"; then
3726 am_missing_run="$MISSING "
3727 else
3728 am_missing_run=
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3730 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3731 fi
3732
3733 if test x"${install_sh+set}" != xset; then
3734 case $am_aux_dir in
3735 *\ * | *\ *)
3736 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3737 *)
3738 install_sh="\${SHELL} $am_aux_dir/install-sh"
3739 esac
3740 fi
3741
3742 # Installed binaries are usually stripped using 'strip' when the user
3743 # run "make install-strip". However 'strip' might not be the right
3744 # tool to use in cross-compilation environments, therefore Automake
3745 # will honor the 'STRIP' environment variable to overrule this program.
3746 if test "$cross_compiling" != no; then
3747 if test -n "$ac_tool_prefix"; then
3748 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3749 set dummy ${ac_tool_prefix}strip; ac_word=$2
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 printf %s "checking for $ac_word... " >&6; }
3752 if test ${ac_cv_prog_STRIP+y}
3753 then :
3754 printf %s "(cached) " >&6
3755 else case e in #(
3756 e) if test -n "$STRIP"; then
3757 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762 IFS=$as_save_IFS
3763 case $as_dir in #(((
3764 '') as_dir=./ ;;
3765 */) ;;
3766 *) as_dir=$as_dir/ ;;
3767 esac
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3770 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3772 break 2
3773 fi
3774 done
3775 done
3776 IFS=$as_save_IFS
3777
3778 fi ;;
3779 esac
3780 fi
3781 STRIP=$ac_cv_prog_STRIP
3782 if test -n "$STRIP"; then
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3784 printf "%s\n" "$STRIP" >&6; }
3785 else
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 printf "%s\n" "no" >&6; }
3788 fi
3789
3790
3791 fi
3792 if test -z "$ac_cv_prog_STRIP"; then
3793 ac_ct_STRIP=$STRIP
3794 # Extract the first word of "strip", so it can be a program name with args.
3795 set dummy strip; ac_word=$2
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 printf %s "checking for $ac_word... " >&6; }
3798 if test ${ac_cv_prog_ac_ct_STRIP+y}
3799 then :
3800 printf %s "(cached) " >&6
3801 else case e in #(
3802 e) if test -n "$ac_ct_STRIP"; then
3803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 case $as_dir in #(((
3810 '') as_dir=./ ;;
3811 */) ;;
3812 *) as_dir=$as_dir/ ;;
3813 esac
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_ac_ct_STRIP="strip"
3817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3818 break 2
3819 fi
3820 done
3821 done
3822 IFS=$as_save_IFS
3823
3824 fi ;;
3825 esac
3826 fi
3827 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3828 if test -n "$ac_ct_STRIP"; then
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3830 printf "%s\n" "$ac_ct_STRIP" >&6; }
3831 else
3832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 printf "%s\n" "no" >&6; }
3834 fi
3835
3836 if test "x$ac_ct_STRIP" = x; then
3837 STRIP=":"
3838 else
3839 case $cross_compiling:$ac_tool_warned in
3840 yes:)
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3842 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3843 ac_tool_warned=yes ;;
3844 esac
3845 STRIP=$ac_ct_STRIP
3846 fi
3847 else
3848 STRIP="$ac_cv_prog_STRIP"
3849 fi
3850
3851 fi
3852 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3853
3854
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3856 printf %s "checking for a race-free mkdir -p... " >&6; }
3857 if test -z "$MKDIR_P"; then
3858 if test ${ac_cv_path_mkdir+y}
3859 then :
3860 printf %s "(cached) " >&6
3861 else case e in #(
3862 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3864 do
3865 IFS=$as_save_IFS
3866 case $as_dir in #(((
3867 '') as_dir=./ ;;
3868 */) ;;
3869 *) as_dir=$as_dir/ ;;
3870 esac
3871 for ac_prog in mkdir gmkdir; do
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3874 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3875 'mkdir ('*'coreutils) '* | \
3876 *'BusyBox '* | \
3877 'mkdir (fileutils) '4.1*)
3878 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3879 break 3;;
3880 esac
3881 done
3882 done
3883 done
3884 IFS=$as_save_IFS
3885 ;;
3886 esac
3887 fi
3888
3889 test -d ./--version && rmdir ./--version
3890 if test ${ac_cv_path_mkdir+y}; then
3891 MKDIR_P="$ac_cv_path_mkdir -p"
3892 else
3893 # As a last resort, use plain mkdir -p,
3894 # in the hope it doesn't have the bugs of ancient mkdir.
3895 MKDIR_P='mkdir -p'
3896 fi
3897 fi
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3899 printf "%s\n" "$MKDIR_P" >&6; }
3900
3901 for ac_prog in gawk mawk nawk awk
3902 do
3903 # Extract the first word of "$ac_prog", so it can be a program name with args.
3904 set dummy $ac_prog; ac_word=$2
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 printf %s "checking for $ac_word... " >&6; }
3907 if test ${ac_cv_prog_AWK+y}
3908 then :
3909 printf %s "(cached) " >&6
3910 else case e in #(
3911 e) if test -n "$AWK"; then
3912 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 case $as_dir in #(((
3919 '') as_dir=./ ;;
3920 */) ;;
3921 *) as_dir=$as_dir/ ;;
3922 esac
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_AWK="$ac_prog"
3926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929 done
3930 done
3931 IFS=$as_save_IFS
3932
3933 fi ;;
3934 esac
3935 fi
3936 AWK=$ac_cv_prog_AWK
3937 if test -n "$AWK"; then
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3939 printf "%s\n" "$AWK" >&6; }
3940 else
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 printf "%s\n" "no" >&6; }
3943 fi
3944
3945
3946 test -n "$AWK" && break
3947 done
3948
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3950 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3951 set x ${MAKE-make}
3952 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3953 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3954 then :
3955 printf %s "(cached) " >&6
3956 else case e in #(
3957 e) cat >conftest.make <<\_ACEOF
3958 SHELL = /bin/sh
3959 all:
3960 @echo '@@@%%%=$(MAKE)=@@@%%%'
3961 _ACEOF
3962 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3963 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3964 *@@@%%%=?*=@@@%%%*)
3965 eval ac_cv_prog_make_${ac_make}_set=yes;;
3966 *)
3967 eval ac_cv_prog_make_${ac_make}_set=no;;
3968 esac
3969 rm -f conftest.make ;;
3970 esac
3971 fi
3972 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3974 printf "%s\n" "yes" >&6; }
3975 SET_MAKE=
3976 else
3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 printf "%s\n" "no" >&6; }
3979 SET_MAKE="MAKE=${MAKE-make}"
3980 fi
3981
3982 rm -rf .tst 2>/dev/null
3983 mkdir .tst 2>/dev/null
3984 if test -d .tst; then
3985 am__leading_dot=.
3986 else
3987 am__leading_dot=_
3988 fi
3989 rmdir .tst 2>/dev/null
3990
3991 AM_DEFAULT_VERBOSITY=1
3992 # Check whether --enable-silent-rules was given.
3993 if test ${enable_silent_rules+y}
3994 then :
3995 enableval=$enable_silent_rules;
3996 fi
3997
3998 am_make=${MAKE-make}
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4000 printf %s "checking whether $am_make supports nested variables... " >&6; }
4001 if test ${am_cv_make_support_nested_variables+y}
4002 then :
4003 printf %s "(cached) " >&6
4004 else case e in #(
4005 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4006 BAR0=false
4007 BAR1=true
4008 V=1
4009 am__doit:
4010 @$(TRUE)
4011 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4012 am_cv_make_support_nested_variables=yes
4013 else
4014 am_cv_make_support_nested_variables=no
4015 fi ;;
4016 esac
4017 fi
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4019 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4020 AM_BACKSLASH='\'
4021
4022 am__rm_f_notfound=
4023 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4024 then :
4025
4026 else case e in #(
4027 e) am__rm_f_notfound='""' ;;
4028 esac
4029 fi
4030
4031
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4033 printf %s "checking xargs -n works... " >&6; }
4034 if test ${am_cv_xargs_n_works+y}
4035 then :
4036 printf %s "(cached) " >&6
4037 else case e in #(
4038 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4039 3"
4040 then :
4041 am_cv_xargs_n_works=yes
4042 else case e in #(
4043 e) am_cv_xargs_n_works=no ;;
4044 esac
4045 fi ;;
4046 esac
4047 fi
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4049 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4050 if test "$am_cv_xargs_n_works" = yes
4051 then :
4052 am__xargs_n='xargs -n'
4053 else case e in #(
4054 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4055 ;;
4056 esac
4057 fi
4058
4059 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4060 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4061 # is not polluted with repeated "-I."
4062 am__isrc=' -I$(srcdir)'
4063 # test to see if srcdir already configured
4064 if test -f $srcdir/config.status; then
4065 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4066 fi
4067 fi
4068
4069 # test whether we have cygpath
4070 if test -z "$CYGPATH_W"; then
4071 if (cygpath --version) >/dev/null 2>/dev/null; then
4072 CYGPATH_W='cygpath -w'
4073 else
4074 CYGPATH_W=echo
4075 fi
4076 fi
4077
4078
4079 # Define the identity of the package.
4080 PACKAGE='isl'
4081 VERSION='0.28'
4082
4083
4084 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4085
4086
4087 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4088
4089 # Some tools Automake needs.
4090
4091 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4092
4093
4094 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4095
4096
4097 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4098
4099
4100 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4101
4102
4103 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4104
4105 # For better backward compatibility. To be removed once Automake 1.9.x
4106 # dies out for good. For more background, see:
4107 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4108 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4109 mkdir_p='$(MKDIR_P)'
4110
4111 # We need awk for the "check" target (and possibly the TAP driver). The
4112 # system "awk" is bad on some platforms.
4113 # Always define AMTAR for backward compatibility. Yes, it's still used
4114 # in the wild :-( We should find a proper way to deprecate it ...
4115 AMTAR='$${TAR-tar}'
4116
4117
4118 # We'll loop over all known methods to create a tar archive until one works.
4119 _am_tools='gnutar plaintar pax cpio none'
4120
4121 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4122 # There is notably a 21 bits limit for the UID and the GID. In fact,
4123 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4124 # and bug#13588).
4125 am_max_uid=2097151 # 2^21 - 1
4126 am_max_gid=$am_max_uid
4127 # The $UID and $GID variables are not portable, so we need to resort
4128 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4129 # below are definitely unexpected, so allow the users to see them
4130 # (that is, avoid stderr redirection).
4131 am_uid=`id -u || echo unknown`
4132 am_gid=`id -g || echo unknown`
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4134 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4135 if test x$am_uid = xunknown; then
4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4137 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4138 elif test $am_uid -le $am_max_uid; then
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4140 printf "%s\n" "yes" >&6; }
4141 else
4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 printf "%s\n" "no" >&6; }
4144 _am_tools=none
4145 fi
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4147 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4148 if test x$gm_gid = xunknown; then
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4150 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4151 elif test $am_gid -le $am_max_gid; then
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4153 printf "%s\n" "yes" >&6; }
4154 else
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156 printf "%s\n" "no" >&6; }
4157 _am_tools=none
4158 fi
4159
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4161 printf %s "checking how to create a ustar tar archive... " >&6; }
4162
4163 # Go ahead even if we have the value already cached. We do so because we
4164 # need to set the values for the 'am__tar' and 'am__untar' variables.
4165 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4166
4167 for _am_tool in $_am_tools; do
4168 case $_am_tool in
4169 gnutar)
4170 for _am_tar in tar gnutar gtar; do
4171 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4172 ($_am_tar --version) >&5 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } && break
4176 done
4177 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4178 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4179 am__untar="$_am_tar -xf -"
4180 ;;
4181 plaintar)
4182 # Must skip GNU tar: if it does not support --format= it doesn't create
4183 # ustar tarball either.
4184 (tar --version) >/dev/null 2>&1 && continue
4185 am__tar='tar chf - "$$tardir"'
4186 am__tar_='tar chf - "$tardir"'
4187 am__untar='tar xf -'
4188 ;;
4189 pax)
4190 am__tar='pax -L -x ustar -w "$$tardir"'
4191 am__tar_='pax -L -x ustar -w "$tardir"'
4192 am__untar='pax -r'
4193 ;;
4194 cpio)
4195 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4196 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4197 am__untar='cpio -i -H ustar -d'
4198 ;;
4199 none)
4200 am__tar=false
4201 am__tar_=false
4202 am__untar=false
4203 ;;
4204 esac
4205
4206 # If the value was cached, stop now. We just wanted to have am__tar
4207 # and am__untar set.
4208 test -n "${am_cv_prog_tar_ustar}" && break
4209
4210 # tar/untar a dummy directory, and stop if the command works.
4211 rm -rf conftest.dir
4212 mkdir conftest.dir
4213 echo GrepMe > conftest.dir/file
4214 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4215 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }
4219 rm -rf conftest.dir
4220 if test -s conftest.tar; then
4221 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4222 ($am__untar <conftest.tar) >&5 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }
4226 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4227 (cat conftest.dir/file) >&5 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }
4231 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4232 fi
4233 done
4234 rm -rf conftest.dir
4235
4236 if test ${am_cv_prog_tar_ustar+y}
4237 then :
4238 printf %s "(cached) " >&6
4239 else case e in #(
4240 e) am_cv_prog_tar_ustar=$_am_tool ;;
4241 esac
4242 fi
4243
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4245 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
4246
4247
4248
4249
4250
4251 # Variables for tags utilities; see am/tags.am
4252 if test -z "$CTAGS"; then
4253 CTAGS=ctags
4254 fi
4255
4256 if test -z "$ETAGS"; then
4257 ETAGS=etags
4258 fi
4259
4260 if test -z "$CSCOPE"; then
4261 CSCOPE=cscope
4262 fi
4263
4264
4265
4266
4267
4268
4269
4270
4271 AM_DEFAULT_VERBOSITY=0
4272
4273
4274
4275 versioninfo=28:0:5
4276
4277 if test "x$prefix" != "xNONE"; then
4278 prefix_wd=`cd $prefix && pwd`
4279 srcdir_wd=`cd $srcdir && pwd`
4280 wd=`pwd`
4281 if test "x$prefix_wd" = "x$srcdir_wd"; then
4282 as_fn_error $? "Installation in source directory not supported" "$LINENO" 5
4283 fi
4284 if test "x$prefix_wd" = "x$wd"; then
4285 as_fn_error $? "Installation in build directory not supported" "$LINENO" 5
4286 fi
4287 fi
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298 ac_ext=c
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 if test -n "$ac_tool_prefix"; then
4304 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4305 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 printf %s "checking for $ac_word... " >&6; }
4308 if test ${ac_cv_prog_CC+y}
4309 then :
4310 printf %s "(cached) " >&6
4311 else case e in #(
4312 e) if test -n "$CC"; then
4313 ac_cv_prog_CC="$CC" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318 IFS=$as_save_IFS
4319 case $as_dir in #(((
4320 '') as_dir=./ ;;
4321 */) ;;
4322 *) as_dir=$as_dir/ ;;
4323 esac
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330 done
4331 done
4332 IFS=$as_save_IFS
4333
4334 fi ;;
4335 esac
4336 fi
4337 CC=$ac_cv_prog_CC
4338 if test -n "$CC"; then
4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4340 printf "%s\n" "$CC" >&6; }
4341 else
4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 printf "%s\n" "no" >&6; }
4344 fi
4345
4346
4347 fi
4348 if test -z "$ac_cv_prog_CC"; then
4349 ac_ct_CC=$CC
4350 # Extract the first word of "gcc", so it can be a program name with args.
4351 set dummy gcc; ac_word=$2
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 printf %s "checking for $ac_word... " >&6; }
4354 if test ${ac_cv_prog_ac_ct_CC+y}
4355 then :
4356 printf %s "(cached) " >&6
4357 else case e in #(
4358 e) if test -n "$ac_ct_CC"; then
4359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4363 do
4364 IFS=$as_save_IFS
4365 case $as_dir in #(((
4366 '') as_dir=./ ;;
4367 */) ;;
4368 *) as_dir=$as_dir/ ;;
4369 esac
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_ac_ct_CC="gcc"
4373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376 done
4377 done
4378 IFS=$as_save_IFS
4379
4380 fi ;;
4381 esac
4382 fi
4383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4384 if test -n "$ac_ct_CC"; then
4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4386 printf "%s\n" "$ac_ct_CC" >&6; }
4387 else
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 printf "%s\n" "no" >&6; }
4390 fi
4391
4392 if test "x$ac_ct_CC" = x; then
4393 CC=""
4394 else
4395 case $cross_compiling:$ac_tool_warned in
4396 yes:)
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4399 ac_tool_warned=yes ;;
4400 esac
4401 CC=$ac_ct_CC
4402 fi
4403 else
4404 CC="$ac_cv_prog_CC"
4405 fi
4406
4407 if test -z "$CC"; then
4408 if test -n "$ac_tool_prefix"; then
4409 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4410 set dummy ${ac_tool_prefix}cc; ac_word=$2
4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412 printf %s "checking for $ac_word... " >&6; }
4413 if test ${ac_cv_prog_CC+y}
4414 then :
4415 printf %s "(cached) " >&6
4416 else case e in #(
4417 e) if test -n "$CC"; then
4418 ac_cv_prog_CC="$CC" # Let the user override the test.
4419 else
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4422 do
4423 IFS=$as_save_IFS
4424 case $as_dir in #(((
4425 '') as_dir=./ ;;
4426 */) ;;
4427 *) as_dir=$as_dir/ ;;
4428 esac
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_CC="${ac_tool_prefix}cc"
4432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4433 break 2
4434 fi
4435 done
4436 done
4437 IFS=$as_save_IFS
4438
4439 fi ;;
4440 esac
4441 fi
4442 CC=$ac_cv_prog_CC
4443 if test -n "$CC"; then
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4445 printf "%s\n" "$CC" >&6; }
4446 else
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448 printf "%s\n" "no" >&6; }
4449 fi
4450
4451
4452 fi
4453 fi
4454 if test -z "$CC"; then
4455 # Extract the first word of "cc", so it can be a program name with args.
4456 set dummy cc; ac_word=$2
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 printf %s "checking for $ac_word... " >&6; }
4459 if test ${ac_cv_prog_CC+y}
4460 then :
4461 printf %s "(cached) " >&6
4462 else case e in #(
4463 e) if test -n "$CC"; then
4464 ac_cv_prog_CC="$CC" # Let the user override the test.
4465 else
4466 ac_prog_rejected=no
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470 IFS=$as_save_IFS
4471 case $as_dir in #(((
4472 '') as_dir=./ ;;
4473 */) ;;
4474 *) as_dir=$as_dir/ ;;
4475 esac
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4478 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479 ac_prog_rejected=yes
4480 continue
4481 fi
4482 ac_cv_prog_CC="cc"
4483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486 done
4487 done
4488 IFS=$as_save_IFS
4489
4490 if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy $ac_cv_prog_CC
4493 shift
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set CC to just the basename; use the full file name.
4498 shift
4499 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4500 fi
4501 fi
4502 fi ;;
4503 esac
4504 fi
4505 CC=$ac_cv_prog_CC
4506 if test -n "$CC"; then
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4508 printf "%s\n" "$CC" >&6; }
4509 else
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 printf "%s\n" "no" >&6; }
4512 fi
4513
4514
4515 fi
4516 if test -z "$CC"; then
4517 if test -n "$ac_tool_prefix"; then
4518 for ac_prog in cl.exe
4519 do
4520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 printf %s "checking for $ac_word... " >&6; }
4524 if test ${ac_cv_prog_CC+y}
4525 then :
4526 printf %s "(cached) " >&6
4527 else case e in #(
4528 e) if test -n "$CC"; then
4529 ac_cv_prog_CC="$CC" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4533 do
4534 IFS=$as_save_IFS
4535 case $as_dir in #(((
4536 '') as_dir=./ ;;
4537 */) ;;
4538 *) as_dir=$as_dir/ ;;
4539 esac
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546 done
4547 done
4548 IFS=$as_save_IFS
4549
4550 fi ;;
4551 esac
4552 fi
4553 CC=$ac_cv_prog_CC
4554 if test -n "$CC"; then
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4556 printf "%s\n" "$CC" >&6; }
4557 else
4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 printf "%s\n" "no" >&6; }
4560 fi
4561
4562
4563 test -n "$CC" && break
4564 done
4565 fi
4566 if test -z "$CC"; then
4567 ac_ct_CC=$CC
4568 for ac_prog in cl.exe
4569 do
4570 # Extract the first word of "$ac_prog", so it can be a program name with args.
4571 set dummy $ac_prog; ac_word=$2
4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 printf %s "checking for $ac_word... " >&6; }
4574 if test ${ac_cv_prog_ac_ct_CC+y}
4575 then :
4576 printf %s "(cached) " >&6
4577 else case e in #(
4578 e) if test -n "$ac_ct_CC"; then
4579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584 IFS=$as_save_IFS
4585 case $as_dir in #(((
4586 '') as_dir=./ ;;
4587 */) ;;
4588 *) as_dir=$as_dir/ ;;
4589 esac
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4592 ac_cv_prog_ac_ct_CC="$ac_prog"
4593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4594 break 2
4595 fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600 fi ;;
4601 esac
4602 fi
4603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4604 if test -n "$ac_ct_CC"; then
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4606 printf "%s\n" "$ac_ct_CC" >&6; }
4607 else
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 printf "%s\n" "no" >&6; }
4610 fi
4611
4612
4613 test -n "$ac_ct_CC" && break
4614 done
4615
4616 if test "x$ac_ct_CC" = x; then
4617 CC=""
4618 else
4619 case $cross_compiling:$ac_tool_warned in
4620 yes:)
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4622 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4623 ac_tool_warned=yes ;;
4624 esac
4625 CC=$ac_ct_CC
4626 fi
4627 fi
4628
4629 fi
4630 if test -z "$CC"; then
4631 if test -n "$ac_tool_prefix"; then
4632 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4633 set dummy ${ac_tool_prefix}clang; ac_word=$2
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 printf %s "checking for $ac_word... " >&6; }
4636 if test ${ac_cv_prog_CC+y}
4637 then :
4638 printf %s "(cached) " >&6
4639 else case e in #(
4640 e) if test -n "$CC"; then
4641 ac_cv_prog_CC="$CC" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646 IFS=$as_save_IFS
4647 case $as_dir in #(((
4648 '') as_dir=./ ;;
4649 */) ;;
4650 *) as_dir=$as_dir/ ;;
4651 esac
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_CC="${ac_tool_prefix}clang"
4655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662 fi ;;
4663 esac
4664 fi
4665 CC=$ac_cv_prog_CC
4666 if test -n "$CC"; then
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4668 printf "%s\n" "$CC" >&6; }
4669 else
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 printf "%s\n" "no" >&6; }
4672 fi
4673
4674
4675 fi
4676 if test -z "$ac_cv_prog_CC"; then
4677 ac_ct_CC=$CC
4678 # Extract the first word of "clang", so it can be a program name with args.
4679 set dummy clang; ac_word=$2
4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 printf %s "checking for $ac_word... " >&6; }
4682 if test ${ac_cv_prog_ac_ct_CC+y}
4683 then :
4684 printf %s "(cached) " >&6
4685 else case e in #(
4686 e) if test -n "$ac_ct_CC"; then
4687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4691 do
4692 IFS=$as_save_IFS
4693 case $as_dir in #(((
4694 '') as_dir=./ ;;
4695 */) ;;
4696 *) as_dir=$as_dir/ ;;
4697 esac
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_ac_ct_CC="clang"
4701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4702 break 2
4703 fi
4704 done
4705 done
4706 IFS=$as_save_IFS
4707
4708 fi ;;
4709 esac
4710 fi
4711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4712 if test -n "$ac_ct_CC"; then
4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4714 printf "%s\n" "$ac_ct_CC" >&6; }
4715 else
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 printf "%s\n" "no" >&6; }
4718 fi
4719
4720 if test "x$ac_ct_CC" = x; then
4721 CC=""
4722 else
4723 case $cross_compiling:$ac_tool_warned in
4724 yes:)
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4728 esac
4729 CC=$ac_ct_CC
4730 fi
4731 else
4732 CC="$ac_cv_prog_CC"
4733 fi
4734
4735 fi
4736
4737
4738 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4739 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4740 as_fn_error $? "no acceptable C compiler found in \$PATH
4741 See 'config.log' for more details" "$LINENO" 5; }
4742
4743 # Provide some information about the compiler.
4744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4745 set X $ac_compile
4746 ac_compiler=$2
4747 for ac_option in --version -v -V -qversion -version; do
4748 { { ac_try="$ac_compiler $ac_option >&5"
4749 case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4752 esac
4753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4754 printf "%s\n" "$ac_try_echo"; } >&5
4755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4756 ac_status=$?
4757 if test -s conftest.err; then
4758 sed '10a\
4759 ... rest of stderr output deleted ...
4760 10q' conftest.err >conftest.er1
4761 cat conftest.er1 >&5
4762 fi
4763 rm -f conftest.er1 conftest.err
4764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4765 test $ac_status = 0; }
4766 done
4767
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770
4771 int
4772 main (void)
4773 {
4774
4775 ;
4776 return 0;
4777 }
4778 _ACEOF
4779 ac_clean_files_save=$ac_clean_files
4780 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4781 # Try to create an executable without -o first, disregard a.out.
4782 # It will help us diagnose broken compilers, and finding out an intuition
4783 # of exeext.
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4785 printf %s "checking whether the C compiler works... " >&6; }
4786 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4787
4788 # The possible output files:
4789 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4790
4791 ac_rmfiles=
4792 for ac_file in $ac_files
4793 do
4794 case $ac_file in
4795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4796 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4797 esac
4798 done
4799 rm -f $ac_rmfiles
4800
4801 if { { ac_try="$ac_link_default"
4802 case "(($ac_try" in
4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4805 esac
4806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4807 printf "%s\n" "$ac_try_echo"; } >&5
4808 (eval "$ac_link_default") 2>&5
4809 ac_status=$?
4810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4811 test $ac_status = 0; }
4812 then :
4813 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4814 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4815 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4816 # so that the user can short-circuit this test for compilers unknown to
4817 # Autoconf.
4818 for ac_file in $ac_files ''
4819 do
4820 test -f "$ac_file" || continue
4821 case $ac_file in
4822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4823 ;;
4824 [ab].out )
4825 # We found the default executable, but exeext='' is most
4826 # certainly right.
4827 break;;
4828 *.* )
4829 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4830 then :; else
4831 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4832 fi
4833 # We set ac_cv_exeext here because the later test for it is not
4834 # safe: cross compilers may not add the suffix if given an '-o'
4835 # argument, so we may need to know it at that point already.
4836 # Even if this section looks crufty: it has the advantage of
4837 # actually working.
4838 break;;
4839 * )
4840 break;;
4841 esac
4842 done
4843 test "$ac_cv_exeext" = no && ac_cv_exeext=
4844
4845 else case e in #(
4846 e) ac_file='' ;;
4847 esac
4848 fi
4849 if test -z "$ac_file"
4850 then :
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 printf "%s\n" "no" >&6; }
4853 printf "%s\n" "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4855
4856 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4857 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4858 as_fn_error 77 "C compiler cannot create executables
4859 See 'config.log' for more details" "$LINENO" 5; }
4860 else case e in #(
4861 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4862 printf "%s\n" "yes" >&6; } ;;
4863 esac
4864 fi
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4866 printf %s "checking for C compiler default output file name... " >&6; }
4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4868 printf "%s\n" "$ac_file" >&6; }
4869 ac_exeext=$ac_cv_exeext
4870
4871 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4872 ac_clean_files=$ac_clean_files_save
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4874 printf %s "checking for suffix of executables... " >&6; }
4875 if { { ac_try="$ac_link"
4876 case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4879 esac
4880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4881 printf "%s\n" "$ac_try_echo"; } >&5
4882 (eval "$ac_link") 2>&5
4883 ac_status=$?
4884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4885 test $ac_status = 0; }
4886 then :
4887 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4888 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4889 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4890 # 'rm'.
4891 for ac_file in conftest.exe conftest conftest.*; do
4892 test -f "$ac_file" || continue
4893 case $ac_file in
4894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4896 break;;
4897 * ) break;;
4898 esac
4899 done
4900 else case e in #(
4901 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4902 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4903 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4904 See 'config.log' for more details" "$LINENO" 5; } ;;
4905 esac
4906 fi
4907 rm -f conftest conftest$ac_cv_exeext
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4909 printf "%s\n" "$ac_cv_exeext" >&6; }
4910
4911 rm -f conftest.$ac_ext
4912 EXEEXT=$ac_cv_exeext
4913 ac_exeext=$EXEEXT
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 #include <stdio.h>
4917 int
4918 main (void)
4919 {
4920 FILE *f = fopen ("conftest.out", "w");
4921 if (!f)
4922 return 1;
4923 return ferror (f) || fclose (f) != 0;
4924
4925 ;
4926 return 0;
4927 }
4928 _ACEOF
4929 ac_clean_files="$ac_clean_files conftest.out"
4930 # Check that the compiler produces executables we can run. If not, either
4931 # the compiler is broken, or we cross compile.
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4933 printf %s "checking whether we are cross compiling... " >&6; }
4934 if test "$cross_compiling" != yes; then
4935 { { ac_try="$ac_link"
4936 case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4941 printf "%s\n" "$ac_try_echo"; } >&5
4942 (eval "$ac_link") 2>&5
4943 ac_status=$?
4944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4945 test $ac_status = 0; }
4946 if { ac_try='./conftest$ac_cv_exeext'
4947 { { case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950 esac
4951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4952 printf "%s\n" "$ac_try_echo"; } >&5
4953 (eval "$ac_try") 2>&5
4954 ac_status=$?
4955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4956 test $ac_status = 0; }; }; then
4957 cross_compiling=no
4958 else
4959 if test "$cross_compiling" = maybe; then
4960 cross_compiling=yes
4961 else
4962 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4963 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4964 as_fn_error 77 "cannot run C compiled programs.
4965 If you meant to cross compile, use '--host'.
4966 See 'config.log' for more details" "$LINENO" 5; }
4967 fi
4968 fi
4969 fi
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4971 printf "%s\n" "$cross_compiling" >&6; }
4972
4973 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4974 conftest.o conftest.obj conftest.out
4975 ac_clean_files=$ac_clean_files_save
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4977 printf %s "checking for suffix of object files... " >&6; }
4978 if test ${ac_cv_objext+y}
4979 then :
4980 printf %s "(cached) " >&6
4981 else case e in #(
4982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984
4985 int
4986 main (void)
4987 {
4988
4989 ;
4990 return 0;
4991 }
4992 _ACEOF
4993 rm -f conftest.o conftest.obj
4994 if { { ac_try="$ac_compile"
4995 case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998 esac
4999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5000 printf "%s\n" "$ac_try_echo"; } >&5
5001 (eval "$ac_compile") 2>&5
5002 ac_status=$?
5003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5004 test $ac_status = 0; }
5005 then :
5006 for ac_file in conftest.o conftest.obj conftest.*; do
5007 test -f "$ac_file" || continue;
5008 case $ac_file in
5009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5010 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5011 break;;
5012 esac
5013 done
5014 else case e in #(
5015 e) printf "%s\n" "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5017
5018 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5019 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5020 as_fn_error $? "cannot compute suffix of object files: cannot compile
5021 See 'config.log' for more details" "$LINENO" 5; } ;;
5022 esac
5023 fi
5024 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
5025 esac
5026 fi
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5028 printf "%s\n" "$ac_cv_objext" >&6; }
5029 OBJEXT=$ac_cv_objext
5030 ac_objext=$OBJEXT
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5032 printf %s "checking whether the compiler supports GNU C... " >&6; }
5033 if test ${ac_cv_c_compiler_gnu+y}
5034 then :
5035 printf %s "(cached) " >&6
5036 else case e in #(
5037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039
5040 int
5041 main (void)
5042 {
5043 #ifndef __GNUC__
5044 choke me
5045 #endif
5046
5047 ;
5048 return 0;
5049 }
5050 _ACEOF
5051 if ac_fn_c_try_compile "$LINENO"
5052 then :
5053 ac_compiler_gnu=yes
5054 else case e in #(
5055 e) ac_compiler_gnu=no ;;
5056 esac
5057 fi
5058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5059 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5060 ;;
5061 esac
5062 fi
5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5064 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066
5067 if test $ac_compiler_gnu = yes; then
5068 GCC=yes
5069 else
5070 GCC=
5071 fi
5072 ac_test_CFLAGS=${CFLAGS+y}
5073 ac_save_CFLAGS=$CFLAGS
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5075 printf %s "checking whether $CC accepts -g... " >&6; }
5076 if test ${ac_cv_prog_cc_g+y}
5077 then :
5078 printf %s "(cached) " >&6
5079 else case e in #(
5080 e) ac_save_c_werror_flag=$ac_c_werror_flag
5081 ac_c_werror_flag=yes
5082 ac_cv_prog_cc_g=no
5083 CFLAGS="-g"
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5086
5087 int
5088 main (void)
5089 {
5090
5091 ;
5092 return 0;
5093 }
5094 _ACEOF
5095 if ac_fn_c_try_compile "$LINENO"
5096 then :
5097 ac_cv_prog_cc_g=yes
5098 else case e in #(
5099 e) CFLAGS=""
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102
5103 int
5104 main (void)
5105 {
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 if ac_fn_c_try_compile "$LINENO"
5112 then :
5113
5114 else case e in #(
5115 e) ac_c_werror_flag=$ac_save_c_werror_flag
5116 CFLAGS="-g"
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119
5120 int
5121 main (void)
5122 {
5123
5124 ;
5125 return 0;
5126 }
5127 _ACEOF
5128 if ac_fn_c_try_compile "$LINENO"
5129 then :
5130 ac_cv_prog_cc_g=yes
5131 fi
5132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5133 esac
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5136 esac
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5139 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5140 esac
5141 fi
5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5143 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5144 if test $ac_test_CFLAGS; then
5145 CFLAGS=$ac_save_CFLAGS
5146 elif test $ac_cv_prog_cc_g = yes; then
5147 if test "$GCC" = yes; then
5148 CFLAGS="-g -O2"
5149 else
5150 CFLAGS="-g"
5151 fi
5152 else
5153 if test "$GCC" = yes; then
5154 CFLAGS="-O2"
5155 else
5156 CFLAGS=
5157 fi
5158 fi
5159 ac_prog_cc_stdc=no
5160 if test x$ac_prog_cc_stdc = xno
5161 then :
5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5163 printf %s "checking for $CC option to enable C11 features... " >&6; }
5164 if test ${ac_cv_prog_cc_c11+y}
5165 then :
5166 printf %s "(cached) " >&6
5167 else case e in #(
5168 e) ac_cv_prog_cc_c11=no
5169 ac_save_CC=$CC
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172 $ac_c_conftest_c11_program
5173 _ACEOF
5174 for ac_arg in '' -std=gnu11
5175 do
5176 CC="$ac_save_CC $ac_arg"
5177 if ac_fn_c_try_compile "$LINENO"
5178 then :
5179 ac_cv_prog_cc_c11=$ac_arg
5180 fi
5181 rm -f core conftest.err conftest.$ac_objext conftest.beam
5182 test "x$ac_cv_prog_cc_c11" != "xno" && break
5183 done
5184 rm -f conftest.$ac_ext
5185 CC=$ac_save_CC ;;
5186 esac
5187 fi
5188
5189 if test "x$ac_cv_prog_cc_c11" = xno
5190 then :
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5192 printf "%s\n" "unsupported" >&6; }
5193 else case e in #(
5194 e) if test "x$ac_cv_prog_cc_c11" = x
5195 then :
5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5197 printf "%s\n" "none needed" >&6; }
5198 else case e in #(
5199 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5200 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5201 CC="$CC $ac_cv_prog_cc_c11" ;;
5202 esac
5203 fi
5204 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5205 ac_prog_cc_stdc=c11 ;;
5206 esac
5207 fi
5208 fi
5209 if test x$ac_prog_cc_stdc = xno
5210 then :
5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5212 printf %s "checking for $CC option to enable C99 features... " >&6; }
5213 if test ${ac_cv_prog_cc_c99+y}
5214 then :
5215 printf %s "(cached) " >&6
5216 else case e in #(
5217 e) ac_cv_prog_cc_c99=no
5218 ac_save_CC=$CC
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 $ac_c_conftest_c99_program
5222 _ACEOF
5223 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5224 do
5225 CC="$ac_save_CC $ac_arg"
5226 if ac_fn_c_try_compile "$LINENO"
5227 then :
5228 ac_cv_prog_cc_c99=$ac_arg
5229 fi
5230 rm -f core conftest.err conftest.$ac_objext conftest.beam
5231 test "x$ac_cv_prog_cc_c99" != "xno" && break
5232 done
5233 rm -f conftest.$ac_ext
5234 CC=$ac_save_CC ;;
5235 esac
5236 fi
5237
5238 if test "x$ac_cv_prog_cc_c99" = xno
5239 then :
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5241 printf "%s\n" "unsupported" >&6; }
5242 else case e in #(
5243 e) if test "x$ac_cv_prog_cc_c99" = x
5244 then :
5245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5246 printf "%s\n" "none needed" >&6; }
5247 else case e in #(
5248 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5249 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5250 CC="$CC $ac_cv_prog_cc_c99" ;;
5251 esac
5252 fi
5253 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5254 ac_prog_cc_stdc=c99 ;;
5255 esac
5256 fi
5257 fi
5258 if test x$ac_prog_cc_stdc = xno
5259 then :
5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5261 printf %s "checking for $CC option to enable C89 features... " >&6; }
5262 if test ${ac_cv_prog_cc_c89+y}
5263 then :
5264 printf %s "(cached) " >&6
5265 else case e in #(
5266 e) ac_cv_prog_cc_c89=no
5267 ac_save_CC=$CC
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270 $ac_c_conftest_c89_program
5271 _ACEOF
5272 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5273 do
5274 CC="$ac_save_CC $ac_arg"
5275 if ac_fn_c_try_compile "$LINENO"
5276 then :
5277 ac_cv_prog_cc_c89=$ac_arg
5278 fi
5279 rm -f core conftest.err conftest.$ac_objext conftest.beam
5280 test "x$ac_cv_prog_cc_c89" != "xno" && break
5281 done
5282 rm -f conftest.$ac_ext
5283 CC=$ac_save_CC ;;
5284 esac
5285 fi
5286
5287 if test "x$ac_cv_prog_cc_c89" = xno
5288 then :
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5290 printf "%s\n" "unsupported" >&6; }
5291 else case e in #(
5292 e) if test "x$ac_cv_prog_cc_c89" = x
5293 then :
5294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5295 printf "%s\n" "none needed" >&6; }
5296 else case e in #(
5297 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5298 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5299 CC="$CC $ac_cv_prog_cc_c89" ;;
5300 esac
5301 fi
5302 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5303 ac_prog_cc_stdc=c89 ;;
5304 esac
5305 fi
5306 fi
5307
5308 ac_ext=c
5309 ac_cpp='$CPP $CPPFLAGS'
5310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5313
5314
5315 ac_ext=c
5316 ac_cpp='$CPP $CPPFLAGS'
5317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5321 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5322 if test ${am_cv_prog_cc_c_o+y}
5323 then :
5324 printf %s "(cached) " >&6
5325 else case e in #(
5326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328
5329 int
5330 main (void)
5331 {
5332
5333 ;
5334 return 0;
5335 }
5336 _ACEOF
5337 # Make sure it works both with $CC and with simple cc.
5338 # Following AC_PROG_CC_C_O, we do the test twice because some
5339 # compilers refuse to overwrite an existing .o file with -o,
5340 # though they will create one.
5341 am_cv_prog_cc_c_o=yes
5342 for am_i in 1 2; do
5343 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5344 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } \
5348 && test -f conftest2.$ac_objext; then
5349 : OK
5350 else
5351 am_cv_prog_cc_c_o=no
5352 break
5353 fi
5354 done
5355 # aligned with autoconf, so not including core; see bug#72225.
5356 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5357 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5358 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5359 unset am_i ;;
5360 esac
5361 fi
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5363 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5364 if test "$am_cv_prog_cc_c_o" != yes; then
5365 # Losing compiler, so override with the script.
5366 # FIXME: It is wrong to rewrite CC.
5367 # But if we don't then we get into trouble of one sort or another.
5368 # A longer-term fix would be to have automake use am__CC in this case,
5369 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5370 CC="$am_aux_dir/compile $CC"
5371 fi
5372 ac_ext=c
5373 ac_cpp='$CPP $CPPFLAGS'
5374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5377
5378 DEPDIR="${am__leading_dot}deps"
5379
5380 ac_config_commands="$ac_config_commands depfiles"
5381
5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5383 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5384 cat > confinc.mk << 'END'
5385 am__doit:
5386 @echo this is the am__doit target >confinc.out
5387 .PHONY: am__doit
5388 END
5389 am__include="#"
5390 am__quote=
5391 # BSD make does it like this.
5392 echo '.include "confinc.mk" # ignored' > confmf.BSD
5393 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5394 echo 'include confinc.mk # ignored' > confmf.GNU
5395 _am_result=no
5396 for s in GNU BSD; do
5397 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5398 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }
5402 case $?:`cat confinc.out 2>/dev/null` in #(
5403 '0:this is the am__doit target') :
5404 case $s in #(
5405 BSD) :
5406 am__include='.include' am__quote='"' ;; #(
5407 *) :
5408 am__include='include' am__quote='' ;;
5409 esac ;; #(
5410 *) :
5411 ;;
5412 esac
5413 if test "$am__include" != "#"; then
5414 _am_result="yes ($s style)"
5415 break
5416 fi
5417 done
5418 rm -f confinc.* confmf.*
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5420 printf "%s\n" "${_am_result}" >&6; }
5421
5422 # Check whether --enable-dependency-tracking was given.
5423 if test ${enable_dependency_tracking+y}
5424 then :
5425 enableval=$enable_dependency_tracking;
5426 fi
5427
5428 if test "x$enable_dependency_tracking" != xno; then
5429 am_depcomp="$ac_aux_dir/depcomp"
5430 AMDEPBACKSLASH='\'
5431 am__nodep='_no'
5432 fi
5433 if test "x$enable_dependency_tracking" != xno; then
5434 AMDEP_TRUE=
5435 AMDEP_FALSE='#'
5436 else
5437 AMDEP_TRUE='#'
5438 AMDEP_FALSE=
5439 fi
5440
5441
5442
5443 depcc="$CC" am_compiler_list=
5444
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5446 printf %s "checking dependency style of $depcc... " >&6; }
5447 if test ${am_cv_CC_dependencies_compiler_type+y}
5448 then :
5449 printf %s "(cached) " >&6
5450 else case e in #(
5451 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5452 # We make a subdir and do the tests there. Otherwise we can end up
5453 # making bogus files that we don't know about and never remove. For
5454 # instance it was reported that on HP-UX the gcc test will end up
5455 # making a dummy file named 'D' -- because '-MD' means "put the output
5456 # in D".
5457 rm -rf conftest.dir
5458 mkdir conftest.dir
5459 # Copy depcomp to subdir because otherwise we won't find it if we're
5460 # using a relative directory.
5461 cp "$am_depcomp" conftest.dir
5462 cd conftest.dir
5463 # We will build objects and dependencies in a subdirectory because
5464 # it helps to detect inapplicable dependency modes. For instance
5465 # both Tru64's cc and ICC support -MD to output dependencies as a
5466 # side effect of compilation, but ICC will put the dependencies in
5467 # the current directory while Tru64 will put them in the object
5468 # directory.
5469 mkdir sub
5470
5471 am_cv_CC_dependencies_compiler_type=none
5472 if test "$am_compiler_list" = ""; then
5473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5474 fi
5475 am__universal=false
5476 case " $depcc " in #(
5477 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5478 esac
5479
5480 for depmode in $am_compiler_list; do
5481 # Setup a source with many dependencies, because some compilers
5482 # like to wrap large dependency lists on column 80 (with \), and
5483 # we should not choose a depcomp mode which is confused by this.
5484 #
5485 # We need to recreate these files for each test, as the compiler may
5486 # overwrite some of them when testing with obscure command lines.
5487 # This happens at least with the AIX C compiler.
5488 : > sub/conftest.c
5489 for i in 1 2 3 4 5 6; do
5490 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5491 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5492 # Solaris 10 /bin/sh.
5493 echo '/* dummy */' > sub/conftst$i.h
5494 done
5495 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5496
5497 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5498 # mode. It turns out that the SunPro C++ compiler does not properly
5499 # handle '-M -o', and we need to detect this. Also, some Intel
5500 # versions had trouble with output in subdirs.
5501 am__obj=sub/conftest.${OBJEXT-o}
5502 am__minus_obj="-o $am__obj"
5503 case $depmode in
5504 gcc)
5505 # This depmode causes a compiler race in universal mode.
5506 test "$am__universal" = false || continue
5507 ;;
5508 nosideeffect)
5509 # After this tag, mechanisms are not by side-effect, so they'll
5510 # only be used when explicitly requested.
5511 if test "x$enable_dependency_tracking" = xyes; then
5512 continue
5513 else
5514 break
5515 fi
5516 ;;
5517 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5518 # This compiler won't grok '-c -o', but also, the minuso test has
5519 # not run yet. These depmodes are late enough in the game, and
5520 # so weak that their functioning should not be impacted.
5521 am__obj=conftest.${OBJEXT-o}
5522 am__minus_obj=
5523 ;;
5524 none) break ;;
5525 esac
5526 if depmode=$depmode \
5527 source=sub/conftest.c object=$am__obj \
5528 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5529 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5530 >/dev/null 2>conftest.err &&
5531 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5532 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5533 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5534 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5535 # icc doesn't choke on unknown options, it will just issue warnings
5536 # or remarks (even with -Werror). So we grep stderr for any message
5537 # that says an option was ignored or not supported.
5538 # When given -MP, icc 7.0 and 7.1 complain thus:
5539 # icc: Command line warning: ignoring option '-M'; no argument required
5540 # The diagnosis changed in icc 8.0:
5541 # icc: Command line remark: option '-MP' not supported
5542 if (grep 'ignoring option' conftest.err ||
5543 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5544 am_cv_CC_dependencies_compiler_type=$depmode
5545 break
5546 fi
5547 fi
5548 done
5549
5550 cd ..
5551 rm -rf conftest.dir
5552 else
5553 am_cv_CC_dependencies_compiler_type=none
5554 fi
5555 ;;
5556 esac
5557 fi
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5559 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5560 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5561
5562 if
5563 test "x$enable_dependency_tracking" != xno \
5564 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5565 am__fastdepCC_TRUE=
5566 am__fastdepCC_FALSE='#'
5567 else
5568 am__fastdepCC_TRUE='#'
5569 am__fastdepCC_FALSE=
5570 fi
5571
5572
5573
5574
5575
5576
5577
5578
5579 ac_ext=cpp
5580 ac_cpp='$CXXCPP $CPPFLAGS'
5581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5584 if test -z "$CXX"; then
5585 if test -n "$CCC"; then
5586 CXX=$CCC
5587 else
5588 if test -n "$ac_tool_prefix"; then
5589 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5590 do
5591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 printf %s "checking for $ac_word... " >&6; }
5595 if test ${ac_cv_prog_CXX+y}
5596 then :
5597 printf %s "(cached) " >&6
5598 else case e in #(
5599 e) if test -n "$CXX"; then
5600 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605 IFS=$as_save_IFS
5606 case $as_dir in #(((
5607 '') as_dir=./ ;;
5608 */) ;;
5609 *) as_dir=$as_dir/ ;;
5610 esac
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5613 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5615 break 2
5616 fi
5617 done
5618 done
5619 IFS=$as_save_IFS
5620
5621 fi ;;
5622 esac
5623 fi
5624 CXX=$ac_cv_prog_CXX
5625 if test -n "$CXX"; then
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5627 printf "%s\n" "$CXX" >&6; }
5628 else
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 printf "%s\n" "no" >&6; }
5631 fi
5632
5633
5634 test -n "$CXX" && break
5635 done
5636 fi
5637 if test -z "$CXX"; then
5638 ac_ct_CXX=$CXX
5639 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5640 do
5641 # Extract the first word of "$ac_prog", so it can be a program name with args.
5642 set dummy $ac_prog; ac_word=$2
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 printf %s "checking for $ac_word... " >&6; }
5645 if test ${ac_cv_prog_ac_ct_CXX+y}
5646 then :
5647 printf %s "(cached) " >&6
5648 else case e in #(
5649 e) if test -n "$ac_ct_CXX"; then
5650 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655 IFS=$as_save_IFS
5656 case $as_dir in #(((
5657 '') as_dir=./ ;;
5658 */) ;;
5659 *) as_dir=$as_dir/ ;;
5660 esac
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5663 ac_cv_prog_ac_ct_CXX="$ac_prog"
5664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5665 break 2
5666 fi
5667 done
5668 done
5669 IFS=$as_save_IFS
5670
5671 fi ;;
5672 esac
5673 fi
5674 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5675 if test -n "$ac_ct_CXX"; then
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5677 printf "%s\n" "$ac_ct_CXX" >&6; }
5678 else
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 printf "%s\n" "no" >&6; }
5681 fi
5682
5683
5684 test -n "$ac_ct_CXX" && break
5685 done
5686
5687 if test "x$ac_ct_CXX" = x; then
5688 CXX="g++"
5689 else
5690 case $cross_compiling:$ac_tool_warned in
5691 yes:)
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5693 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5694 ac_tool_warned=yes ;;
5695 esac
5696 CXX=$ac_ct_CXX
5697 fi
5698 fi
5699
5700 fi
5701 fi
5702 # Provide some information about the compiler.
5703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5704 set X $ac_compile
5705 ac_compiler=$2
5706 for ac_option in --version -v -V -qversion; do
5707 { { ac_try="$ac_compiler $ac_option >&5"
5708 case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711 esac
5712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5713 printf "%s\n" "$ac_try_echo"; } >&5
5714 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5715 ac_status=$?
5716 if test -s conftest.err; then
5717 sed '10a\
5718 ... rest of stderr output deleted ...
5719 10q' conftest.err >conftest.er1
5720 cat conftest.er1 >&5
5721 fi
5722 rm -f conftest.er1 conftest.err
5723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5724 test $ac_status = 0; }
5725 done
5726
5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5728 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5729 if test ${ac_cv_cxx_compiler_gnu+y}
5730 then :
5731 printf %s "(cached) " >&6
5732 else case e in #(
5733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735
5736 int
5737 main (void)
5738 {
5739 #ifndef __GNUC__
5740 choke me
5741 #endif
5742
5743 ;
5744 return 0;
5745 }
5746 _ACEOF
5747 if ac_fn_cxx_try_compile "$LINENO"
5748 then :
5749 ac_compiler_gnu=yes
5750 else case e in #(
5751 e) ac_compiler_gnu=no ;;
5752 esac
5753 fi
5754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5755 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5756 ;;
5757 esac
5758 fi
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5760 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5762
5763 if test $ac_compiler_gnu = yes; then
5764 GXX=yes
5765 else
5766 GXX=
5767 fi
5768 ac_test_CXXFLAGS=${CXXFLAGS+y}
5769 ac_save_CXXFLAGS=$CXXFLAGS
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5771 printf %s "checking whether $CXX accepts -g... " >&6; }
5772 if test ${ac_cv_prog_cxx_g+y}
5773 then :
5774 printf %s "(cached) " >&6
5775 else case e in #(
5776 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5777 ac_cxx_werror_flag=yes
5778 ac_cv_prog_cxx_g=no
5779 CXXFLAGS="-g"
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5782
5783 int
5784 main (void)
5785 {
5786
5787 ;
5788 return 0;
5789 }
5790 _ACEOF
5791 if ac_fn_cxx_try_compile "$LINENO"
5792 then :
5793 ac_cv_prog_cxx_g=yes
5794 else case e in #(
5795 e) CXXFLAGS=""
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798
5799 int
5800 main (void)
5801 {
5802
5803 ;
5804 return 0;
5805 }
5806 _ACEOF
5807 if ac_fn_cxx_try_compile "$LINENO"
5808 then :
5809
5810 else case e in #(
5811 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5812 CXXFLAGS="-g"
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815
5816 int
5817 main (void)
5818 {
5819
5820 ;
5821 return 0;
5822 }
5823 _ACEOF
5824 if ac_fn_cxx_try_compile "$LINENO"
5825 then :
5826 ac_cv_prog_cxx_g=yes
5827 fi
5828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5829 esac
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5832 esac
5833 fi
5834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5835 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
5836 esac
5837 fi
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5839 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5840 if test $ac_test_CXXFLAGS; then
5841 CXXFLAGS=$ac_save_CXXFLAGS
5842 elif test $ac_cv_prog_cxx_g = yes; then
5843 if test "$GXX" = yes; then
5844 CXXFLAGS="-g -O2"
5845 else
5846 CXXFLAGS="-g"
5847 fi
5848 else
5849 if test "$GXX" = yes; then
5850 CXXFLAGS="-O2"
5851 else
5852 CXXFLAGS=
5853 fi
5854 fi
5855 ac_prog_cxx_stdcxx=no
5856 if test x$ac_prog_cxx_stdcxx = xno
5857 then :
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5859 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5860 if test ${ac_cv_prog_cxx_cxx11+y}
5861 then :
5862 printf %s "(cached) " >&6
5863 else case e in #(
5864 e) ac_cv_prog_cxx_cxx11=no
5865 ac_save_CXX=$CXX
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5868 $ac_cxx_conftest_cxx11_program
5869 _ACEOF
5870 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5871 do
5872 CXX="$ac_save_CXX $ac_arg"
5873 if ac_fn_cxx_try_compile "$LINENO"
5874 then :
5875 ac_cv_prog_cxx_cxx11=$ac_arg
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext conftest.beam
5878 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5879 done
5880 rm -f conftest.$ac_ext
5881 CXX=$ac_save_CXX ;;
5882 esac
5883 fi
5884
5885 if test "x$ac_cv_prog_cxx_cxx11" = xno
5886 then :
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5888 printf "%s\n" "unsupported" >&6; }
5889 else case e in #(
5890 e) if test "x$ac_cv_prog_cxx_cxx11" = x
5891 then :
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5893 printf "%s\n" "none needed" >&6; }
5894 else case e in #(
5895 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5896 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5897 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
5898 esac
5899 fi
5900 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5901 ac_prog_cxx_stdcxx=cxx11 ;;
5902 esac
5903 fi
5904 fi
5905 if test x$ac_prog_cxx_stdcxx = xno
5906 then :
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5908 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5909 if test ${ac_cv_prog_cxx_cxx98+y}
5910 then :
5911 printf %s "(cached) " >&6
5912 else case e in #(
5913 e) ac_cv_prog_cxx_cxx98=no
5914 ac_save_CXX=$CXX
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 $ac_cxx_conftest_cxx98_program
5918 _ACEOF
5919 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5920 do
5921 CXX="$ac_save_CXX $ac_arg"
5922 if ac_fn_cxx_try_compile "$LINENO"
5923 then :
5924 ac_cv_prog_cxx_cxx98=$ac_arg
5925 fi
5926 rm -f core conftest.err conftest.$ac_objext conftest.beam
5927 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5928 done
5929 rm -f conftest.$ac_ext
5930 CXX=$ac_save_CXX ;;
5931 esac
5932 fi
5933
5934 if test "x$ac_cv_prog_cxx_cxx98" = xno
5935 then :
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5937 printf "%s\n" "unsupported" >&6; }
5938 else case e in #(
5939 e) if test "x$ac_cv_prog_cxx_cxx98" = x
5940 then :
5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5942 printf "%s\n" "none needed" >&6; }
5943 else case e in #(
5944 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5945 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5946 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
5947 esac
5948 fi
5949 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5950 ac_prog_cxx_stdcxx=cxx98 ;;
5951 esac
5952 fi
5953 fi
5954
5955 ac_ext=c
5956 ac_cpp='$CPP $CPPFLAGS'
5957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5960
5961 depcc="$CXX" am_compiler_list=
5962
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5964 printf %s "checking dependency style of $depcc... " >&6; }
5965 if test ${am_cv_CXX_dependencies_compiler_type+y}
5966 then :
5967 printf %s "(cached) " >&6
5968 else case e in #(
5969 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5970 # We make a subdir and do the tests there. Otherwise we can end up
5971 # making bogus files that we don't know about and never remove. For
5972 # instance it was reported that on HP-UX the gcc test will end up
5973 # making a dummy file named 'D' -- because '-MD' means "put the output
5974 # in D".
5975 rm -rf conftest.dir
5976 mkdir conftest.dir
5977 # Copy depcomp to subdir because otherwise we won't find it if we're
5978 # using a relative directory.
5979 cp "$am_depcomp" conftest.dir
5980 cd conftest.dir
5981 # We will build objects and dependencies in a subdirectory because
5982 # it helps to detect inapplicable dependency modes. For instance
5983 # both Tru64's cc and ICC support -MD to output dependencies as a
5984 # side effect of compilation, but ICC will put the dependencies in
5985 # the current directory while Tru64 will put them in the object
5986 # directory.
5987 mkdir sub
5988
5989 am_cv_CXX_dependencies_compiler_type=none
5990 if test "$am_compiler_list" = ""; then
5991 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5992 fi
5993 am__universal=false
5994 case " $depcc " in #(
5995 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5996 esac
5997
5998 for depmode in $am_compiler_list; do
5999 # Setup a source with many dependencies, because some compilers
6000 # like to wrap large dependency lists on column 80 (with \), and
6001 # we should not choose a depcomp mode which is confused by this.
6002 #
6003 # We need to recreate these files for each test, as the compiler may
6004 # overwrite some of them when testing with obscure command lines.
6005 # This happens at least with the AIX C compiler.
6006 : > sub/conftest.c
6007 for i in 1 2 3 4 5 6; do
6008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6009 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6010 # Solaris 10 /bin/sh.
6011 echo '/* dummy */' > sub/conftst$i.h
6012 done
6013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6014
6015 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6016 # mode. It turns out that the SunPro C++ compiler does not properly
6017 # handle '-M -o', and we need to detect this. Also, some Intel
6018 # versions had trouble with output in subdirs.
6019 am__obj=sub/conftest.${OBJEXT-o}
6020 am__minus_obj="-o $am__obj"
6021 case $depmode in
6022 gcc)
6023 # This depmode causes a compiler race in universal mode.
6024 test "$am__universal" = false || continue
6025 ;;
6026 nosideeffect)
6027 # After this tag, mechanisms are not by side-effect, so they'll
6028 # only be used when explicitly requested.
6029 if test "x$enable_dependency_tracking" = xyes; then
6030 continue
6031 else
6032 break
6033 fi
6034 ;;
6035 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6036 # This compiler won't grok '-c -o', but also, the minuso test has
6037 # not run yet. These depmodes are late enough in the game, and
6038 # so weak that their functioning should not be impacted.
6039 am__obj=conftest.${OBJEXT-o}
6040 am__minus_obj=
6041 ;;
6042 none) break ;;
6043 esac
6044 if depmode=$depmode \
6045 source=sub/conftest.c object=$am__obj \
6046 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6047 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6048 >/dev/null 2>conftest.err &&
6049 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6050 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6051 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6053 # icc doesn't choke on unknown options, it will just issue warnings
6054 # or remarks (even with -Werror). So we grep stderr for any message
6055 # that says an option was ignored or not supported.
6056 # When given -MP, icc 7.0 and 7.1 complain thus:
6057 # icc: Command line warning: ignoring option '-M'; no argument required
6058 # The diagnosis changed in icc 8.0:
6059 # icc: Command line remark: option '-MP' not supported
6060 if (grep 'ignoring option' conftest.err ||
6061 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6062 am_cv_CXX_dependencies_compiler_type=$depmode
6063 break
6064 fi
6065 fi
6066 done
6067
6068 cd ..
6069 rm -rf conftest.dir
6070 else
6071 am_cv_CXX_dependencies_compiler_type=none
6072 fi
6073 ;;
6074 esac
6075 fi
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6077 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6078 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6079
6080 if
6081 test "x$enable_dependency_tracking" != xno \
6082 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6083 am__fastdepCXX_TRUE=
6084 am__fastdepCXX_FALSE='#'
6085 else
6086 am__fastdepCXX_TRUE='#'
6087 am__fastdepCXX_FALSE=
6088 fi
6089
6090
6091 ac_ext=c
6092 ac_cpp='$CPP $CPPFLAGS'
6093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6097 printf %s "checking how to run the C preprocessor... " >&6; }
6098 # On Suns, sometimes $CPP names a directory.
6099 if test -n "$CPP" && test -d "$CPP"; then
6100 CPP=
6101 fi
6102 if test -z "$CPP"; then
6103 if test ${ac_cv_prog_CPP+y}
6104 then :
6105 printf %s "(cached) " >&6
6106 else case e in #(
6107 e) # Double quotes because $CC needs to be expanded
6108 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6109 do
6110 ac_preproc_ok=false
6111 for ac_c_preproc_warn_flag in '' yes
6112 do
6113 # Use a header file that comes with gcc, so configuring glibc
6114 # with a fresh cross-compiler works.
6115 # On the NeXT, cc -E runs the code through the compiler's parser,
6116 # not just through cpp. "Syntax error" is here to catch this case.
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6119 #include <limits.h>
6120 Syntax error
6121 _ACEOF
6122 if ac_fn_c_try_cpp "$LINENO"
6123 then :
6124
6125 else case e in #(
6126 e) # Broken: fails on valid input.
6127 continue ;;
6128 esac
6129 fi
6130 rm -f conftest.err conftest.i conftest.$ac_ext
6131
6132 # OK, works on sane cases. Now check whether nonexistent headers
6133 # can be detected and how.
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136 #include <ac_nonexistent.h>
6137 _ACEOF
6138 if ac_fn_c_try_cpp "$LINENO"
6139 then :
6140 # Broken: success on invalid input.
6141 continue
6142 else case e in #(
6143 e) # Passes both tests.
6144 ac_preproc_ok=:
6145 break ;;
6146 esac
6147 fi
6148 rm -f conftest.err conftest.i conftest.$ac_ext
6149
6150 done
6151 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6152 rm -f conftest.i conftest.err conftest.$ac_ext
6153 if $ac_preproc_ok
6154 then :
6155 break
6156 fi
6157
6158 done
6159 ac_cv_prog_CPP=$CPP
6160 ;;
6161 esac
6162 fi
6163 CPP=$ac_cv_prog_CPP
6164 else
6165 ac_cv_prog_CPP=$CPP
6166 fi
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6168 printf "%s\n" "$CPP" >&6; }
6169 ac_preproc_ok=false
6170 for ac_c_preproc_warn_flag in '' yes
6171 do
6172 # Use a header file that comes with gcc, so configuring glibc
6173 # with a fresh cross-compiler works.
6174 # On the NeXT, cc -E runs the code through the compiler's parser,
6175 # not just through cpp. "Syntax error" is here to catch this case.
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6178 #include <limits.h>
6179 Syntax error
6180 _ACEOF
6181 if ac_fn_c_try_cpp "$LINENO"
6182 then :
6183
6184 else case e in #(
6185 e) # Broken: fails on valid input.
6186 continue ;;
6187 esac
6188 fi
6189 rm -f conftest.err conftest.i conftest.$ac_ext
6190
6191 # OK, works on sane cases. Now check whether nonexistent headers
6192 # can be detected and how.
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 #include <ac_nonexistent.h>
6196 _ACEOF
6197 if ac_fn_c_try_cpp "$LINENO"
6198 then :
6199 # Broken: success on invalid input.
6200 continue
6201 else case e in #(
6202 e) # Passes both tests.
6203 ac_preproc_ok=:
6204 break ;;
6205 esac
6206 fi
6207 rm -f conftest.err conftest.i conftest.$ac_ext
6208
6209 done
6210 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6211 rm -f conftest.i conftest.err conftest.$ac_ext
6212 if $ac_preproc_ok
6213 then :
6214
6215 else case e in #(
6216 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6217 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6218 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6219 See 'config.log' for more details" "$LINENO" 5; } ;;
6220 esac
6221 fi
6222
6223 ac_ext=c
6224 ac_cpp='$CPP $CPPFLAGS'
6225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6228
6229
6230
6231 # Make sure we can run config.sub.
6232 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6233 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6234
6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6236 printf %s "checking build system type... " >&6; }
6237 if test ${ac_cv_build+y}
6238 then :
6239 printf %s "(cached) " >&6
6240 else case e in #(
6241 e) ac_build_alias=$build_alias
6242 test "x$ac_build_alias" = x &&
6243 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6244 test "x$ac_build_alias" = x &&
6245 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6246 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6247 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6248 ;;
6249 esac
6250 fi
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6252 printf "%s\n" "$ac_cv_build" >&6; }
6253 case $ac_cv_build in
6254 *-*-*) ;;
6255 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6256 esac
6257 build=$ac_cv_build
6258 ac_save_IFS=$IFS; IFS='-'
6259 set x $ac_cv_build
6260 shift
6261 build_cpu=$1
6262 build_vendor=$2
6263 shift; shift
6264 # Remember, the first character of IFS is used to create $*,
6265 # except with old shells:
6266 build_os=$*
6267 IFS=$ac_save_IFS
6268 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6269
6270
6271
6272
6273 cross_compiling_build=no
6274
6275 ac_build_tool_prefix=
6276 if test -n "$build"
6277 then :
6278 ac_build_tool_prefix="$build-"
6279 elif test -n "$build_alias"
6280 then :
6281 ac_build_tool_prefix="$build_alias-"
6282 fi
6283
6284 ac_ext=c
6285 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6286 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6287 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6288 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
6289
6290
6291 was_set_c_compiler_gnu=${ac_cv_c_compiler_gnu+y}
6292 if test ${was_set_c_compiler_gnu}
6293 then :
6294 saved_c_compiler_gnu=$ac_cv_c_compiler_gnu
6295 { ac_cv_c_compiler_gnu=; unset ac_cv_c_compiler_gnu;}
6296 fi
6297
6298 ac_ext=c
6299 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6300 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6301 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6302 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
6303 if test -n "$ac_build_tool_prefix"; then
6304 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6305 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 printf %s "checking for $ac_word... " >&6; }
6308 if test ${ac_cv_prog_CC_FOR_BUILD+y}
6309 then :
6310 printf %s "(cached) " >&6
6311 else case e in #(
6312 e) if test -n "$CC_FOR_BUILD"; then
6313 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318 IFS=$as_save_IFS
6319 case $as_dir in #(((
6320 '') as_dir=./ ;;
6321 */) ;;
6322 *) as_dir=$as_dir/ ;;
6323 esac
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6326 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
6327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6328 break 2
6329 fi
6330 done
6331 done
6332 IFS=$as_save_IFS
6333
6334 fi ;;
6335 esac
6336 fi
6337 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6338 if test -n "$CC_FOR_BUILD"; then
6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6340 printf "%s\n" "$CC_FOR_BUILD" >&6; }
6341 else
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 printf "%s\n" "no" >&6; }
6344 fi
6345
6346
6347 fi
6348 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
6349 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6350 # Extract the first word of "gcc", so it can be a program name with args.
6351 set dummy gcc; ac_word=$2
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 printf %s "checking for $ac_word... " >&6; }
6354 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
6355 then :
6356 printf %s "(cached) " >&6
6357 else case e in #(
6358 e) if test -n "$ac_ct_CC_FOR_BUILD"; then
6359 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364 IFS=$as_save_IFS
6365 case $as_dir in #(((
6366 '') as_dir=./ ;;
6367 */) ;;
6368 *) as_dir=$as_dir/ ;;
6369 esac
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6372 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
6373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6374 break 2
6375 fi
6376 done
6377 done
6378 IFS=$as_save_IFS
6379
6380 fi ;;
6381 esac
6382 fi
6383 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6384 if test -n "$ac_ct_CC_FOR_BUILD"; then
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
6386 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
6387 else
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 printf "%s\n" "no" >&6; }
6390 fi
6391
6392 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6393 CC_FOR_BUILD=""
6394 else
6395 case $cross_compiling_build:$ac_tool_warned in
6396 yes:)
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6399 ac_tool_warned=yes ;;
6400 esac
6401 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6402 fi
6403 else
6404 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
6405 fi
6406
6407 if test -z "$CC_FOR_BUILD"; then
6408 if test -n "$ac_build_tool_prefix"; then
6409 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6410 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 printf %s "checking for $ac_word... " >&6; }
6413 if test ${ac_cv_prog_CC_FOR_BUILD+y}
6414 then :
6415 printf %s "(cached) " >&6
6416 else case e in #(
6417 e) if test -n "$CC_FOR_BUILD"; then
6418 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423 IFS=$as_save_IFS
6424 case $as_dir in #(((
6425 '') as_dir=./ ;;
6426 */) ;;
6427 *) as_dir=$as_dir/ ;;
6428 esac
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
6432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435 done
6436 done
6437 IFS=$as_save_IFS
6438
6439 fi ;;
6440 esac
6441 fi
6442 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6443 if test -n "$CC_FOR_BUILD"; then
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6445 printf "%s\n" "$CC_FOR_BUILD" >&6; }
6446 else
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 printf "%s\n" "no" >&6; }
6449 fi
6450
6451
6452 fi
6453 fi
6454 if test -z "$CC_FOR_BUILD"; then
6455 # Extract the first word of "cc", so it can be a program name with args.
6456 set dummy cc; ac_word=$2
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 printf %s "checking for $ac_word... " >&6; }
6459 if test ${ac_cv_prog_CC_FOR_BUILD+y}
6460 then :
6461 printf %s "(cached) " >&6
6462 else case e in #(
6463 e) if test -n "$CC_FOR_BUILD"; then
6464 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6465 else
6466 ac_prog_rejected=no
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 case $as_dir in #(((
6472 '') as_dir=./ ;;
6473 */) ;;
6474 *) as_dir=$as_dir/ ;;
6475 esac
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 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6479 ac_prog_rejected=yes
6480 continue
6481 fi
6482 ac_cv_prog_CC_FOR_BUILD="cc"
6483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6484 break 2
6485 fi
6486 done
6487 done
6488 IFS=$as_save_IFS
6489
6490 if test $ac_prog_rejected = yes; then
6491 # We found a bogon in the path, so make sure we never use it.
6492 set dummy $ac_cv_prog_CC_FOR_BUILD
6493 shift
6494 if test $# != 0; then
6495 # We chose a different compiler from the bogus one.
6496 # However, it has the same basename, so the bogon will be chosen
6497 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
6498 shift
6499 ac_cv_prog_CC_FOR_BUILD="$as_dir$ac_word${1+' '}$@"
6500 fi
6501 fi
6502 fi ;;
6503 esac
6504 fi
6505 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6506 if test -n "$CC_FOR_BUILD"; then
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6508 printf "%s\n" "$CC_FOR_BUILD" >&6; }
6509 else
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 printf "%s\n" "no" >&6; }
6512 fi
6513
6514
6515 fi
6516 if test -z "$CC_FOR_BUILD"; then
6517 if test -n "$ac_build_tool_prefix"; then
6518 for ac_prog in cl.exe
6519 do
6520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6521 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 printf %s "checking for $ac_word... " >&6; }
6524 if test ${ac_cv_prog_CC_FOR_BUILD+y}
6525 then :
6526 printf %s "(cached) " >&6
6527 else case e in #(
6528 e) if test -n "$CC_FOR_BUILD"; then
6529 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534 IFS=$as_save_IFS
6535 case $as_dir in #(((
6536 '') as_dir=./ ;;
6537 */) ;;
6538 *) as_dir=$as_dir/ ;;
6539 esac
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
6543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550 fi ;;
6551 esac
6552 fi
6553 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6554 if test -n "$CC_FOR_BUILD"; then
6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6556 printf "%s\n" "$CC_FOR_BUILD" >&6; }
6557 else
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 printf "%s\n" "no" >&6; }
6560 fi
6561
6562
6563 test -n "$CC_FOR_BUILD" && break
6564 done
6565 fi
6566 if test -z "$CC_FOR_BUILD"; then
6567 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6568 for ac_prog in cl.exe
6569 do
6570 # Extract the first word of "$ac_prog", so it can be a program name with args.
6571 set dummy $ac_prog; ac_word=$2
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 printf %s "checking for $ac_word... " >&6; }
6574 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
6575 then :
6576 printf %s "(cached) " >&6
6577 else case e in #(
6578 e) if test -n "$ac_ct_CC_FOR_BUILD"; then
6579 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584 IFS=$as_save_IFS
6585 case $as_dir in #(((
6586 '') as_dir=./ ;;
6587 */) ;;
6588 *) as_dir=$as_dir/ ;;
6589 esac
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6592 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
6593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600 fi ;;
6601 esac
6602 fi
6603 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6604 if test -n "$ac_ct_CC_FOR_BUILD"; then
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
6606 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
6607 else
6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 printf "%s\n" "no" >&6; }
6610 fi
6611
6612
6613 test -n "$ac_ct_CC_FOR_BUILD" && break
6614 done
6615
6616 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6617 CC_FOR_BUILD=""
6618 else
6619 case $cross_compiling_build:$ac_tool_warned in
6620 yes:)
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6622 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6623 ac_tool_warned=yes ;;
6624 esac
6625 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6626 fi
6627 fi
6628
6629 fi
6630 if test -z "$CC_FOR_BUILD"; then
6631 if test -n "$ac_build_tool_prefix"; then
6632 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
6633 set dummy ${ac_build_tool_prefix}clang; ac_word=$2
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 printf %s "checking for $ac_word... " >&6; }
6636 if test ${ac_cv_prog_CC_FOR_BUILD+y}
6637 then :
6638 printf %s "(cached) " >&6
6639 else case e in #(
6640 e) if test -n "$CC_FOR_BUILD"; then
6641 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646 IFS=$as_save_IFS
6647 case $as_dir in #(((
6648 '') as_dir=./ ;;
6649 */) ;;
6650 *) as_dir=$as_dir/ ;;
6651 esac
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6654 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}clang"
6655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6656 break 2
6657 fi
6658 done
6659 done
6660 IFS=$as_save_IFS
6661
6662 fi ;;
6663 esac
6664 fi
6665 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6666 if test -n "$CC_FOR_BUILD"; then
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6668 printf "%s\n" "$CC_FOR_BUILD" >&6; }
6669 else
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 printf "%s\n" "no" >&6; }
6672 fi
6673
6674
6675 fi
6676 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
6677 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6678 # Extract the first word of "clang", so it can be a program name with args.
6679 set dummy clang; ac_word=$2
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 printf %s "checking for $ac_word... " >&6; }
6682 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
6683 then :
6684 printf %s "(cached) " >&6
6685 else case e in #(
6686 e) if test -n "$ac_ct_CC_FOR_BUILD"; then
6687 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692 IFS=$as_save_IFS
6693 case $as_dir in #(((
6694 '') as_dir=./ ;;
6695 */) ;;
6696 *) as_dir=$as_dir/ ;;
6697 esac
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6700 ac_cv_prog_ac_ct_CC_FOR_BUILD="clang"
6701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6702 break 2
6703 fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708 fi ;;
6709 esac
6710 fi
6711 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6712 if test -n "$ac_ct_CC_FOR_BUILD"; then
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
6714 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
6715 else
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717 printf "%s\n" "no" >&6; }
6718 fi
6719
6720 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6721 CC_FOR_BUILD=""
6722 else
6723 case $cross_compiling_build:$ac_tool_warned in
6724 yes:)
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6726 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6727 ac_tool_warned=yes ;;
6728 esac
6729 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6730 fi
6731 else
6732 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
6733 fi
6734
6735 fi
6736
6737
6738 test -z "$CC_FOR_BUILD" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6739 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6740 as_fn_error $? "no acceptable C compiler found in \$PATH
6741 See 'config.log' for more details" "$LINENO" 5; }
6742
6743 # Provide some information about the compiler.
6744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6745 set X $ac_compile
6746 ac_compiler=$2
6747 for ac_option in --version -v -V -qversion -version; do
6748 { { ac_try="$ac_compiler $ac_option >&5"
6749 case "(($ac_try" in
6750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6751 *) ac_try_echo=$ac_try;;
6752 esac
6753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6754 printf "%s\n" "$ac_try_echo"; } >&5
6755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6756 ac_status=$?
6757 if test -s conftest.err; then
6758 sed '10a\
6759 ... rest of stderr output deleted ...
6760 10q' conftest.err >conftest.er1
6761 cat conftest.er1 >&5
6762 fi
6763 rm -f conftest.er1 conftest.err
6764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6765 test $ac_status = 0; }
6766 done
6767
6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6769 printf %s "checking whether the compiler supports GNU C... " >&6; }
6770 if test ${ac_cv_c_compiler_gnu+y}
6771 then :
6772 printf %s "(cached) " >&6
6773 else case e in #(
6774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6776
6777 int
6778 main (void)
6779 {
6780 #ifndef __GNUC__
6781 choke me
6782 #endif
6783
6784 ;
6785 return 0;
6786 }
6787 _ACEOF
6788 if ac_fn_c_try_compile "$LINENO"
6789 then :
6790 ac_compiler_gnu=yes
6791 else case e in #(
6792 e) ac_compiler_gnu=no ;;
6793 esac
6794 fi
6795 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
6796 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6797 ;;
6798 esac
6799 fi
6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6801 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6803
6804 if test $ac_compiler_gnu = yes; then
6805 GCC_FOR_BUILD=yes
6806 else
6807 GCC_FOR_BUILD=
6808 fi
6809 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+y}
6810 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
6812 printf %s "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
6813 if test ${ac_cv_build_prog_cc_g+y}
6814 then :
6815 printf %s "(cached) " >&6
6816 else case e in #(
6817 e) ac_save_c_werror_flag=$ac_c_werror_flag
6818 ac_c_werror_flag=yes
6819 ac_cv_build_prog_cc_g=no
6820 CFLAGS_FOR_BUILD="-g"
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6823
6824 int
6825 main (void)
6826 {
6827
6828 ;
6829 return 0;
6830 }
6831 _ACEOF
6832 if ac_fn_c_try_compile "$LINENO"
6833 then :
6834 ac_cv_build_prog_cc_g=yes
6835 else case e in #(
6836 e) CFLAGS_FOR_BUILD=""
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839
6840 int
6841 main (void)
6842 {
6843
6844 ;
6845 return 0;
6846 }
6847 _ACEOF
6848 if ac_fn_c_try_compile "$LINENO"
6849 then :
6850
6851 else case e in #(
6852 e) ac_c_werror_flag=$ac_save_c_werror_flag
6853 CFLAGS_FOR_BUILD="-g"
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856
6857 int
6858 main (void)
6859 {
6860
6861 ;
6862 return 0;
6863 }
6864 _ACEOF
6865 if ac_fn_c_try_compile "$LINENO"
6866 then :
6867 ac_cv_build_prog_cc_g=yes
6868 fi
6869 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext ;;
6870 esac
6871 fi
6872 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext ;;
6873 esac
6874 fi
6875 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
6876 ac_c_werror_flag=$ac_save_c_werror_flag ;;
6877 esac
6878 fi
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
6880 printf "%s\n" "$ac_cv_build_prog_cc_g" >&6; }
6881 if test $ac_test_CFLAGS; then
6882 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6883 elif test $ac_cv_build_prog_cc_g = yes; then
6884 if test "$GCC_FOR_BUILD" = yes; then
6885 CFLAGS_FOR_BUILD="-g -O2"
6886 else
6887 CFLAGS_FOR_BUILD="-g"
6888 fi
6889 else
6890 if test "$GCC_FOR_BUILD" = yes; then
6891 CFLAGS_FOR_BUILD="-O2"
6892 else
6893 CFLAGS_FOR_BUILD=
6894 fi
6895 fi
6896 ac_prog_cc_stdc=no
6897 if test x$ac_prog_cc_stdc = xno
6898 then :
6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C11 features" >&5
6900 printf %s "checking for $CC_FOR_BUILD option to enable C11 features... " >&6; }
6901 if test ${ac_cv_build_prog_cc_c11+y}
6902 then :
6903 printf %s "(cached) " >&6
6904 else case e in #(
6905 e) ac_cv_build_prog_cc_c11=no
6906 ac_save_CC=$CC_FOR_BUILD
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909 $ac_c_conftest_c11_program
6910 _ACEOF
6911 for ac_arg in '' -std=gnu11
6912 do
6913 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6914 if ac_fn_c_try_compile "$LINENO"
6915 then :
6916 ac_cv_build_prog_cc_c11=$ac_arg
6917 fi
6918 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
6919 test "x$ac_cv_build_prog_cc_c11" != "xno" && break
6920 done
6921 rm -f conftest.$ac_ext
6922 CC_FOR_BUILD=$ac_save_CC ;;
6923 esac
6924 fi
6925
6926 if test "x$ac_cv_build_prog_cc_c11" = xno
6927 then :
6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6929 printf "%s\n" "unsupported" >&6; }
6930 else case e in #(
6931 e) if test "x$ac_cv_build_prog_cc_c11" = x
6932 then :
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6934 printf "%s\n" "none needed" >&6; }
6935 else case e in #(
6936 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c11" >&5
6937 printf "%s\n" "$ac_cv_build_prog_cc_c11" >&6; }
6938 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c11" ;;
6939 esac
6940 fi
6941 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c11
6942 ac_prog_cc_stdc=c11 ;;
6943 esac
6944 fi
6945 fi
6946 if test x$ac_prog_cc_stdc = xno
6947 then :
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C99 features" >&5
6949 printf %s "checking for $CC_FOR_BUILD option to enable C99 features... " >&6; }
6950 if test ${ac_cv_build_prog_cc_c99+y}
6951 then :
6952 printf %s "(cached) " >&6
6953 else case e in #(
6954 e) ac_cv_build_prog_cc_c99=no
6955 ac_save_CC=$CC_FOR_BUILD
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958 $ac_c_conftest_c99_program
6959 _ACEOF
6960 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6961 do
6962 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6963 if ac_fn_c_try_compile "$LINENO"
6964 then :
6965 ac_cv_build_prog_cc_c99=$ac_arg
6966 fi
6967 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
6968 test "x$ac_cv_build_prog_cc_c99" != "xno" && break
6969 done
6970 rm -f conftest.$ac_ext
6971 CC_FOR_BUILD=$ac_save_CC ;;
6972 esac
6973 fi
6974
6975 if test "x$ac_cv_build_prog_cc_c99" = xno
6976 then :
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6978 printf "%s\n" "unsupported" >&6; }
6979 else case e in #(
6980 e) if test "x$ac_cv_build_prog_cc_c99" = x
6981 then :
6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6983 printf "%s\n" "none needed" >&6; }
6984 else case e in #(
6985 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c99" >&5
6986 printf "%s\n" "$ac_cv_build_prog_cc_c99" >&6; }
6987 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c99" ;;
6988 esac
6989 fi
6990 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c99
6991 ac_prog_cc_stdc=c99 ;;
6992 esac
6993 fi
6994 fi
6995 if test x$ac_prog_cc_stdc = xno
6996 then :
6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C89 features" >&5
6998 printf %s "checking for $CC_FOR_BUILD option to enable C89 features... " >&6; }
6999 if test ${ac_cv_build_prog_cc_c89+y}
7000 then :
7001 printf %s "(cached) " >&6
7002 else case e in #(
7003 e) ac_cv_build_prog_cc_c89=no
7004 ac_save_CC=$CC_FOR_BUILD
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007 $ac_c_conftest_c89_program
7008 _ACEOF
7009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7010 do
7011 CC_FOR_BUILD="$ac_save_CC $ac_arg"
7012 if ac_fn_c_try_compile "$LINENO"
7013 then :
7014 ac_cv_build_prog_cc_c89=$ac_arg
7015 fi
7016 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
7017 test "x$ac_cv_build_prog_cc_c89" != "xno" && break
7018 done
7019 rm -f conftest.$ac_ext
7020 CC_FOR_BUILD=$ac_save_CC ;;
7021 esac
7022 fi
7023
7024 if test "x$ac_cv_build_prog_cc_c89" = xno
7025 then :
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7027 printf "%s\n" "unsupported" >&6; }
7028 else case e in #(
7029 e) if test "x$ac_cv_build_prog_cc_c89" = x
7030 then :
7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7032 printf "%s\n" "none needed" >&6; }
7033 else case e in #(
7034 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5
7035 printf "%s\n" "$ac_cv_build_prog_cc_c89" >&6; }
7036 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89" ;;
7037 esac
7038 fi
7039 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c89
7040 ac_prog_cc_stdc=c89 ;;
7041 esac
7042 fi
7043 fi
7044
7045 ac_ext=c
7046 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7047 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7048 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7049 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7050
7051
7052 ac_ext=c
7053 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7054 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7055 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
7058 printf %s "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
7059 if test ${am_cv_build_prog_cc_c_o+y}
7060 then :
7061 printf %s "(cached) " >&6
7062 else case e in #(
7063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065
7066 int
7067 main (void)
7068 {
7069
7070 ;
7071 return 0;
7072 }
7073 _ACEOF
7074 # Make sure it works both with $CC and with simple cc.
7075 # Following AC_PROG_CC_C_O, we do the test twice because some
7076 # compilers refuse to overwrite an existing .o file with -o,
7077 # though they will create one.
7078 am_cv_build_prog_cc_c_o=yes
7079 for am_i in 1 2; do
7080 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
7081 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } \
7085 && test -f conftest2.$ac_build_objext; then
7086 : OK
7087 else
7088 am_cv_build_prog_cc_c_o=no
7089 break
7090 fi
7091 done
7092 # aligned with autoconf, so not including core; see bug#72225.
7093 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_build_objext \
7094 conftest.dSYM conftest1.$ac_ext conftest1.$ac_build_objext conftest1.dSYM \
7095 conftest2.$ac_ext conftest2.$ac_build_objext conftest2.dSYM
7096 unset am_i ;;
7097 esac
7098 fi
7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5
7100 printf "%s\n" "$am_cv_build_prog_cc_c_o" >&6; }
7101 if test "$am_cv_build_prog_cc_c_o" != yes; then
7102 # Losing compiler, so override with the script.
7103 # FIXME: It is wrong to rewrite CC.
7104 # But if we don't then we get into trouble of one sort or another.
7105 # A longer-term fix would be to have automake use am__CC in this case,
7106 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7107 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
7108 fi
7109 ac_ext=c
7110 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7111 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7112 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7113 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7114
7115
7116 depcc="$CC_FOR_BUILD" am_compiler_list=
7117
7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7119 printf %s "checking dependency style of $depcc... " >&6; }
7120 if test ${am_cv_build_CC_dependencies_compiler_type+y}
7121 then :
7122 printf %s "(cached) " >&6
7123 else case e in #(
7124 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7125 # We make a subdir and do the tests there. Otherwise we can end up
7126 # making bogus files that we don't know about and never remove. For
7127 # instance it was reported that on HP-UX the gcc test will end up
7128 # making a dummy file named 'D' -- because '-MD' means "put the output
7129 # in D".
7130 rm -rf conftest.dir
7131 mkdir conftest.dir
7132 # Copy depcomp to subdir because otherwise we won't find it if we're
7133 # using a relative directory.
7134 cp "$am_depcomp" conftest.dir
7135 cd conftest.dir
7136 # We will build objects and dependencies in a subdirectory because
7137 # it helps to detect inapplicable dependency modes. For instance
7138 # both Tru64's cc and ICC support -MD to output dependencies as a
7139 # side effect of compilation, but ICC will put the dependencies in
7140 # the current directory while Tru64 will put them in the object
7141 # directory.
7142 mkdir sub
7143
7144 am_cv_build_CC_dependencies_compiler_type=none
7145 if test "$am_compiler_list" = ""; then
7146 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7147 fi
7148 am__universal=false
7149 case " $depcc " in #(
7150 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7151 esac
7152
7153 for depmode in $am_compiler_list; do
7154 # Setup a source with many dependencies, because some compilers
7155 # like to wrap large dependency lists on column 80 (with \), and
7156 # we should not choose a depcomp mode which is confused by this.
7157 #
7158 # We need to recreate these files for each test, as the compiler may
7159 # overwrite some of them when testing with obscure command lines.
7160 # This happens at least with the AIX C compiler.
7161 : > sub/conftest.c
7162 for i in 1 2 3 4 5 6; do
7163 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7164 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7165 # Solaris 10 /bin/sh.
7166 echo '/* dummy */' > sub/conftst$i.h
7167 done
7168 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7169
7170 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7171 # mode. It turns out that the SunPro C++ compiler does not properly
7172 # handle '-M -o', and we need to detect this. Also, some Intel
7173 # versions had trouble with output in subdirs.
7174 am__obj=sub/conftest.${BUILD_OBJEXT-o}
7175 am__minus_obj="-o $am__obj"
7176 case $depmode in
7177 gcc)
7178 # This depmode causes a compiler race in universal mode.
7179 test "$am__universal" = false || continue
7180 ;;
7181 nosideeffect)
7182 # After this tag, mechanisms are not by side-effect, so they'll
7183 # only be used when explicitly requested.
7184 if test "x$enable_dependency_tracking" = xyes; then
7185 continue
7186 else
7187 break
7188 fi
7189 ;;
7190 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7191 # This compiler won't grok '-c -o', but also, the minuso test has
7192 # not run yet. These depmodes are late enough in the game, and
7193 # so weak that their functioning should not be impacted.
7194 am__obj=conftest.${BUILD_OBJEXT-o}
7195 am__minus_obj=
7196 ;;
7197 none) break ;;
7198 esac
7199 if depmode=$depmode \
7200 source=sub/conftest.c object=$am__obj \
7201 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7202 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7203 >/dev/null 2>conftest.err &&
7204 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7205 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7206 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7207 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7208 # icc doesn't choke on unknown options, it will just issue warnings
7209 # or remarks (even with -Werror). So we grep stderr for any message
7210 # that says an option was ignored or not supported.
7211 # When given -MP, icc 7.0 and 7.1 complain thus:
7212 # icc: Command line warning: ignoring option '-M'; no argument required
7213 # The diagnosis changed in icc 8.0:
7214 # icc: Command line remark: option '-MP' not supported
7215 if (grep 'ignoring option' conftest.err ||
7216 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7217 am_cv_build_CC_dependencies_compiler_type=$depmode
7218 break
7219 fi
7220 fi
7221 done
7222
7223 cd ..
7224 rm -rf conftest.dir
7225 else
7226 am_cv_build_CC_dependencies_compiler_type=none
7227 fi
7228 ;;
7229 esac
7230 fi
7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5
7232 printf "%s\n" "$am_cv_build_CC_dependencies_compiler_type" >&6; }
7233 CCDEPMODE=depmode=$am_cv_build_CC_dependencies_compiler_type
7234
7235 if
7236 test "x$enable_dependency_tracking" != xno \
7237 && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then
7238 am__fastdepCC_build_TRUE=
7239 am__fastdepCC_build_FALSE='#'
7240 else
7241 am__fastdepCC_build_TRUE='#'
7242 am__fastdepCC_build_FALSE=
7243 fi
7244
7245
7246
7247 if test ${was_set_c_compiler_gnu}
7248 then :
7249 ac_cv_c_compiler_gnu=$saved_c_compiler_gnu
7250 fi
7251
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7254
7255 int
7256 main (void)
7257 {
7258
7259 ;
7260 return 0;
7261 }
7262 _ACEOF
7263 ac_clean_files_save=$ac_clean_files
7264 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
7265 # Try to create an executable without -o first, disregard a.out.
7266 # It will help us diagnose broken compilers, and finding out an intuition
7267 # of exeext.
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
7269 printf %s "checking whether the C compiler works... " >&6; }
7270 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
7271
7272 # The possible output files:
7273 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
7274
7275 ac_rmfiles=
7276 for ac_file in $ac_files
7277 do
7278 case $ac_file in
7279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7280 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
7281 esac
7282 done
7283 rm -f $ac_rmfiles
7284
7285 if { { ac_try="$ac_link_default"
7286 case "(($ac_try" in
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7289 esac
7290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7291 printf "%s\n" "$ac_try_echo"; } >&5
7292 (eval "$ac_link_default") 2>&5
7293 ac_status=$?
7294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295 test $ac_status = 0; }
7296 then :
7297 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
7298 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
7299 # in a Makefile. We should not override ac_cv_exeext if it was cached,
7300 # so that the user can short-circuit this test for compilers unknown to
7301 # Autoconf.
7302 for ac_file in $ac_files ''
7303 do
7304 test -f "$ac_file" || continue
7305 case $ac_file in
7306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
7307 ;;
7308 [ab].out )
7309 # We found the default executable, but exeext='' is most
7310 # certainly right.
7311 break;;
7312 *.* )
7313 if test ${ac_cv_build_exeext+y} && test "$ac_cv_build_exeext" != no;
7314 then :; else
7315 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7316 fi
7317 # We set ac_cv_exeext here because the later test for it is not
7318 # safe: cross compilers may not add the suffix if given an '-o'
7319 # argument, so we may need to know it at that point already.
7320 # Even if this section looks crufty: it has the advantage of
7321 # actually working.
7322 break;;
7323 * )
7324 break;;
7325 esac
7326 done
7327 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
7328
7329 else case e in #(
7330 e) ac_file='' ;;
7331 esac
7332 fi
7333 if test -z "$ac_file"
7334 then :
7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 printf "%s\n" "no" >&6; }
7337 printf "%s\n" "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7339
7340 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7341 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7342 as_fn_error 77 "C compiler cannot create executables
7343 See 'config.log' for more details" "$LINENO" 5; }
7344 else case e in #(
7345 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7346 printf "%s\n" "yes" >&6; } ;;
7347 esac
7348 fi
7349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
7350 printf %s "checking for C compiler default output file name... " >&6; }
7351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
7352 printf "%s\n" "$ac_file" >&6; }
7353 ac_build_exeext=$ac_cv_build_exeext
7354
7355 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
7356 ac_clean_files=$ac_clean_files_save
7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
7358 printf %s "checking for suffix of executables... " >&6; }
7359 if { { ac_try="$ac_link"
7360 case "(($ac_try" in
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7363 esac
7364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7365 printf "%s\n" "$ac_try_echo"; } >&5
7366 (eval "$ac_link") 2>&5
7367 ac_status=$?
7368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369 test $ac_status = 0; }
7370 then :
7371 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
7372 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
7373 # work properly (i.e., refer to 'conftest.exe'), while it won't with
7374 # 'rm'.
7375 for ac_file in conftest.exe conftest conftest.*; do
7376 test -f "$ac_file" || continue
7377 case $ac_file in
7378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7379 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7380 break;;
7381 * ) break;;
7382 esac
7383 done
7384 else case e in #(
7385 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7386 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7387 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
7388 See 'config.log' for more details" "$LINENO" 5; } ;;
7389 esac
7390 fi
7391 rm -f conftest conftest$ac_cv_build_exeext
7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
7393 printf "%s\n" "$ac_cv_build_exeext" >&6; }
7394
7395 rm -f conftest.$ac_ext
7396 EXEEXT=$ac_cv_build_exeext
7397 ac_build_exeext=$BUILD_EXEEXT
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400 #include <stdio.h>
7401 int
7402 main (void)
7403 {
7404 FILE *f = fopen ("conftest.out", "w");
7405 if (!f)
7406 return 1;
7407 return ferror (f) || fclose (f) != 0;
7408
7409 ;
7410 return 0;
7411 }
7412 _ACEOF
7413 ac_clean_files="$ac_clean_files conftest.out"
7414 # Check that the compiler produces executables we can run. If not, either
7415 # the compiler is broken, or we cross compile.
7416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
7417 printf %s "checking whether we are cross compiling... " >&6; }
7418 if test "$cross_compiling_build" != yes; then
7419 { { ac_try="$ac_link"
7420 case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7423 esac
7424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7425 printf "%s\n" "$ac_try_echo"; } >&5
7426 (eval "$ac_link") 2>&5
7427 ac_status=$?
7428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7429 test $ac_status = 0; }
7430 if { ac_try='./conftest$ac_cv_build_exeext'
7431 { { case "(($ac_try" in
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7434 esac
7435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7436 printf "%s\n" "$ac_try_echo"; } >&5
7437 (eval "$ac_try") 2>&5
7438 ac_status=$?
7439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7440 test $ac_status = 0; }; }; then
7441 cross_compiling_build=no
7442 else
7443 if test "$cross_compiling_build" = maybe; then
7444 cross_compiling_build=yes
7445 else
7446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7447 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7448 as_fn_error 77 "cannot run C compiled programs.
7449 If you meant to cross compile, use '--build'.
7450 See 'config.log' for more details" "$LINENO" 5; }
7451 fi
7452 fi
7453 fi
7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5
7455 printf "%s\n" "$cross_compiling_build" >&6; }
7456
7457 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext \
7458 conftest.o conftest.obj conftest.out
7459 ac_clean_files=$ac_clean_files_save
7460
7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
7462 printf %s "checking for suffix of object files... " >&6; }
7463 if test ${ac_cv_build_objext+y}
7464 then :
7465 printf %s "(cached) " >&6
7466 else case e in #(
7467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7469
7470 int
7471 main (void)
7472 {
7473
7474 ;
7475 return 0;
7476 }
7477 _ACEOF
7478 rm -f conftest.o conftest.obj
7479 if { { ac_try="$ac_compile"
7480 case "(($ac_try" in
7481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482 *) ac_try_echo=$ac_try;;
7483 esac
7484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7485 printf "%s\n" "$ac_try_echo"; } >&5
7486 (eval "$ac_compile") 2>&5
7487 ac_status=$?
7488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7489 test $ac_status = 0; }
7490 then :
7491 for ac_file in conftest.o conftest.obj conftest.*; do
7492 test -f "$ac_file" || continue;
7493 case $ac_file in
7494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
7495 *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'`
7496 break;;
7497 esac
7498 done
7499 else case e in #(
7500 e) printf "%s\n" "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7502
7503 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7504 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7505 as_fn_error $? "cannot compute suffix of object files: cannot compile
7506 See 'config.log' for more details" "$LINENO" 5; } ;;
7507 esac
7508 fi
7509 rm -f conftest.$ac_cv_build_objext conftest.$ac_ext ;;
7510 esac
7511 fi
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5
7513 printf "%s\n" "$ac_cv_build_objext" >&6; }
7514 OBJEXT=$ac_cv_build_objext
7515 ac_build_objext=$BUILD_OBJEXT
7516
7517 ac_ext=c
7518 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7519 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7520 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7521 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7523 printf %s "checking how to run the C preprocessor... " >&6; }
7524 # On Suns, sometimes $CPP names a directory.
7525 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
7526 CPP_FOR_BUILD=
7527 fi
7528 if test -z "$CPP_FOR_BUILD"; then
7529 if test ${ac_cv_build_prog_CPP+y}
7530 then :
7531 printf %s "(cached) " >&6
7532 else case e in #(
7533 e) # Double quotes because $CC needs to be expanded
7534 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" cpp /lib/cpp
7535 do
7536 ac_preproc_ok=false
7537 for ac_c_preproc_warn_flag in '' yes
7538 do
7539 # Use a header file that comes with gcc, so configuring glibc
7540 # with a fresh cross-compiler works.
7541 # On the NeXT, cc -E runs the code through the compiler's parser,
7542 # not just through cpp. "Syntax error" is here to catch this case.
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 #include <limits.h>
7546 Syntax error
7547 _ACEOF
7548 if ac_fn_c_try_cpp "$LINENO"
7549 then :
7550
7551 else case e in #(
7552 e) # Broken: fails on valid input.
7553 continue ;;
7554 esac
7555 fi
7556 rm -f conftest.err conftest.i conftest.$ac_ext
7557
7558 # OK, works on sane cases. Now check whether nonexistent headers
7559 # can be detected and how.
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7562 #include <ac_nonexistent.h>
7563 _ACEOF
7564 if ac_fn_c_try_cpp "$LINENO"
7565 then :
7566 # Broken: success on invalid input.
7567 continue
7568 else case e in #(
7569 e) # Passes both tests.
7570 ac_preproc_ok=:
7571 break ;;
7572 esac
7573 fi
7574 rm -f conftest.err conftest.i conftest.$ac_ext
7575
7576 done
7577 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7578 rm -f conftest.i conftest.err conftest.$ac_ext
7579 if $ac_preproc_ok
7580 then :
7581 break
7582 fi
7583
7584 done
7585 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7586 ;;
7587 esac
7588 fi
7589 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
7590 else
7591 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7592 fi
7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
7594 printf "%s\n" "$CPP_FOR_BUILD" >&6; }
7595 ac_preproc_ok=false
7596 for ac_c_preproc_warn_flag in '' yes
7597 do
7598 # Use a header file that comes with gcc, so configuring glibc
7599 # with a fresh cross-compiler works.
7600 # On the NeXT, cc -E runs the code through the compiler's parser,
7601 # not just through cpp. "Syntax error" is here to catch this case.
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604 #include <limits.h>
7605 Syntax error
7606 _ACEOF
7607 if ac_fn_c_try_cpp "$LINENO"
7608 then :
7609
7610 else case e in #(
7611 e) # Broken: fails on valid input.
7612 continue ;;
7613 esac
7614 fi
7615 rm -f conftest.err conftest.i conftest.$ac_ext
7616
7617 # OK, works on sane cases. Now check whether nonexistent headers
7618 # can be detected and how.
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7621 #include <ac_nonexistent.h>
7622 _ACEOF
7623 if ac_fn_c_try_cpp "$LINENO"
7624 then :
7625 # Broken: success on invalid input.
7626 continue
7627 else case e in #(
7628 e) # Passes both tests.
7629 ac_preproc_ok=:
7630 break ;;
7631 esac
7632 fi
7633 rm -f conftest.err conftest.i conftest.$ac_ext
7634
7635 done
7636 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7637 rm -f conftest.i conftest.err conftest.$ac_ext
7638 if $ac_preproc_ok
7639 then :
7640
7641 else case e in #(
7642 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7643 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7644 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7645 See 'config.log' for more details" "$LINENO" 5; } ;;
7646 esac
7647 fi
7648
7649 ac_ext=c
7650 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7651 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7652 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7654
7655
7656
7657 ac_ext=c
7658 ac_cpp='$CPP $CPPFLAGS'
7659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7662
7663
7664 EXEEXT=$ac_cv_exeext
7665 BUILD_EXEEXT=$ac_cv_build_exeext; ac_build_exeext=$ac_cv_build_exeext
7666 OBJEXT=$ac_cv_objext
7667 BUILD_OBJEXT=$ac_cv_build_objext; ac_build_objext=$ac_cv_build_objext
7668 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7669 CCDEPMODE_FOR_BUILD=depmode=$am_cv_build_CC_dependencies_compiler_type
7670
7671
7672
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7674 printf %s "checking for C compiler vendor... " >&6; }
7675 if test ${ax_cv_c_compiler_vendor+y}
7676 then :
7677 printf %s "(cached) " >&6
7678 else case e in #(
7679 e)
7680 vendors="
7681 intel: __ICC,__ECC,__INTEL_COMPILER
7682 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__
7683 pathscale: __PATHCC__,__PATHSCALE__
7684 clang: __clang__
7685 cray: _CRAYC
7686 fujitsu: __FUJITSU
7687 sdcc: SDCC,__SDCC
7688 sx: _SX
7689 nvhpc: __NVCOMPILER
7690 portland: __PGI
7691 pcc: __PCC__
7692 gnu: __GNUC__
7693 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
7694 hp: __HP_cc,__HP_aCC
7695 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
7696 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
7697 comeau: __COMO__
7698 kai: __KCC
7699 lcc: __LCC__
7700 sgi: __sgi,sgi
7701 microsoft: _MSC_VER
7702 metrowerks: __MWERKS__
7703 watcom: __WATCOMC__
7704 tcc: __TINYC__
7705 unknown: UNKNOWN
7706 "
7707 for ventest in $vendors; do
7708 case $ventest in
7709 *:)
7710 vendor=$ventest
7711 continue
7712 ;;
7713 *)
7714 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
7715 ;;
7716 esac
7717
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720
7721 int
7722 main (void)
7723 {
7724
7725 #if !($vencpp)
7726 thisisanerror;
7727 #endif
7728
7729 ;
7730 return 0;
7731 }
7732 _ACEOF
7733 if ac_fn_c_try_compile "$LINENO"
7734 then :
7735 break
7736 fi
7737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7738 done
7739
7740 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
7741 ;;
7742 esac
7743 fi
7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
7745 printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; }
7746
7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7748 printf %s "checking host system type... " >&6; }
7749 if test ${ac_cv_host+y}
7750 then :
7751 printf %s "(cached) " >&6
7752 else case e in #(
7753 e) if test "x$host_alias" = x; then
7754 ac_cv_host=$ac_cv_build
7755 else
7756 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7757 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7758 fi
7759 ;;
7760 esac
7761 fi
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7763 printf "%s\n" "$ac_cv_host" >&6; }
7764 case $ac_cv_host in
7765 *-*-*) ;;
7766 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7767 esac
7768 host=$ac_cv_host
7769 ac_save_IFS=$IFS; IFS='-'
7770 set x $ac_cv_host
7771 shift
7772 host_cpu=$1
7773 host_vendor=$2
7774 shift; shift
7775 # Remember, the first character of IFS is used to create $*,
7776 # except with old shells:
7777 host_os=$*
7778 IFS=$ac_save_IFS
7779 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7780
7781
7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7783 printf %s "checking for a sed that does not truncate output... " >&6; }
7784 if test ${ac_cv_path_SED+y}
7785 then :
7786 printf %s "(cached) " >&6
7787 else case e in #(
7788 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7789 for ac_i in 1 2 3 4 5 6 7; do
7790 ac_script="$ac_script$as_nl$ac_script"
7791 done
7792 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7793 { ac_script=; unset ac_script;}
7794 if test -z "$SED"; then
7795 ac_path_SED_found=false
7796 # Loop through the user's path and test for each of PROGNAME-LIST
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7799 do
7800 IFS=$as_save_IFS
7801 case $as_dir in #(((
7802 '') as_dir=./ ;;
7803 */) ;;
7804 *) as_dir=$as_dir/ ;;
7805 esac
7806 for ac_prog in sed gsed
7807 do
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7810 as_fn_executable_p "$ac_path_SED" || continue
7811 # Check for GNU ac_path_SED and select it if it is found.
7812 # Check for GNU $ac_path_SED
7813 case `"$ac_path_SED" --version 2>&1` in #(
7814 *GNU*)
7815 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7816 #(
7817 *)
7818 ac_count=0
7819 printf %s 0123456789 >"conftest.in"
7820 while :
7821 do
7822 cat "conftest.in" "conftest.in" >"conftest.tmp"
7823 mv "conftest.tmp" "conftest.in"
7824 cp "conftest.in" "conftest.nl"
7825 printf "%s\n" '' >> "conftest.nl"
7826 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7828 as_fn_arith $ac_count + 1 && ac_count=$as_val
7829 if test $ac_count -gt ${ac_path_SED_max-0}; then
7830 # Best one so far, save it but keep looking for a better one
7831 ac_cv_path_SED="$ac_path_SED"
7832 ac_path_SED_max=$ac_count
7833 fi
7834 # 10*(2^10) chars as input seems more than enough
7835 test $ac_count -gt 10 && break
7836 done
7837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7838 esac
7839
7840 $ac_path_SED_found && break 3
7841 done
7842 done
7843 done
7844 IFS=$as_save_IFS
7845 if test -z "$ac_cv_path_SED"; then
7846 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7847 fi
7848 else
7849 ac_cv_path_SED=$SED
7850 fi
7851 ;;
7852 esac
7853 fi
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7855 printf "%s\n" "$ac_cv_path_SED" >&6; }
7856 SED="$ac_cv_path_SED"
7857 rm -f conftest.sed
7858
7859
7860
7861
7862
7863
7864 # Check whether --enable-portable-binary was given.
7865 if test ${enable_portable_binary+y}
7866 then :
7867 enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
7868 else case e in #(
7869 e) acx_maxopt_portable=no ;;
7870 esac
7871 fi
7872
7873
7874 # Try to determine "good" native compiler flags if none specified via CFLAGS
7875 if test "x$ac_test_CFLAGS" = "x"; then
7876 case $ax_cv_c_compiler_vendor in
7877 dec) CFLAGS="$CFLAGS -newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
7878 if test "x$acx_maxopt_portable" = xno; then
7879 CFLAGS="$CFLAGS -arch host"
7880 fi;;
7881
7882 sun) CFLAGS="$CFLAGS -native -fast -xO5 -dalign"
7883 if test "x$acx_maxopt_portable" = xyes; then
7884 CFLAGS="$CFLAGS -xarch=generic"
7885 fi;;
7886
7887 hp) CFLAGS="$CFLAGS +Oall +Optrs_ansi +DSnative"
7888 if test "x$acx_maxopt_portable" = xyes; then
7889 CFLAGS="$CFLAGS +DAportable"
7890 fi;;
7891
7892 ibm) if test "x$acx_maxopt_portable" = xno; then
7893 xlc_opt="-qarch=auto -qtune=auto"
7894 else
7895 xlc_opt="-qtune=auto"
7896 fi
7897 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$xlc_opt" | sed "$as_sed_sh"`
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
7899 printf %s "checking whether C compiler accepts $xlc_opt... " >&6; }
7900 if eval test \${$as_CACHEVAR+y}
7901 then :
7902 printf %s "(cached) " >&6
7903 else case e in #(
7904 e)
7905 ax_check_save_flags=$CFLAGS
7906 CFLAGS="$CFLAGS $xlc_opt"
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909
7910 int
7911 main (void)
7912 {
7913
7914 ;
7915 return 0;
7916 }
7917 _ACEOF
7918 if ac_fn_c_try_compile "$LINENO"
7919 then :
7920 eval "$as_CACHEVAR=yes"
7921 else case e in #(
7922 e) eval "$as_CACHEVAR=no" ;;
7923 esac
7924 fi
7925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7926 CFLAGS=$ax_check_save_flags ;;
7927 esac
7928 fi
7929 eval ac_res=\$$as_CACHEVAR
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7931 printf "%s\n" "$ac_res" >&6; }
7932 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
7933 then :
7934 CFLAGS="$CFLAGS -O3 -qansialias -w $xlc_opt"
7935 else case e in #(
7936 e) CFLAGS="$CFLAGS -O3 -qansialias -w"
7937 echo "******************************************************"
7938 echo "* You seem to have the IBM C compiler. It is *"
7939 echo "* recommended for best performance that you use: *"
7940 echo "* *"
7941 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
7942 echo "* ^^^ ^^^ *"
7943 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
7944 echo "* CPU you have. (Set the CFLAGS environment var. *"
7945 echo "* and re-run configure.) For more info, man cc. *"
7946 echo "******************************************************" ;;
7947 esac
7948 fi
7949
7950 ;;
7951
7952 intel) CFLAGS="$CFLAGS -O3 -ansi_alias"
7953 if test "x$acx_maxopt_portable" = xno; then
7954 icc_archflag=unknown
7955 icc_flags=""
7956 case $host_cpu in
7957 i686*|x86_64*)
7958 # icc accepts gcc assembly syntax, so these should work:
7959
7960 ac_ext=c
7961 ac_cpp='$CPP $CPPFLAGS'
7962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
7967 printf %s "checking for x86 cpuid 0 output... " >&6; }
7968 if test ${ax_cv_gcc_x86_cpuid_0+y}
7969 then :
7970 printf %s "(cached) " >&6
7971 else case e in #(
7972 e) if test "$cross_compiling" = yes
7973 then :
7974 ax_cv_gcc_x86_cpuid_0=unknown
7975 else case e in #(
7976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7978 #include <stdio.h>
7979 int
7980 main (void)
7981 {
7982
7983 int op = 0, level = 0, eax, ebx, ecx, edx;
7984 FILE *f;
7985 __asm__ __volatile__ ("xchg %%ebx, %1\n"
7986 "cpuid\n"
7987 "xchg %%ebx, %1\n"
7988 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
7989 : "a" (op), "2" (level));
7990
7991 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
7992 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
7993 fclose(f);
7994 return 0;
7995
7996 ;
7997 return 0;
7998 }
7999 _ACEOF
8000 if ac_fn_c_try_run "$LINENO"
8001 then :
8002 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8003 else case e in #(
8004 e) ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid ;;
8005 esac
8006 fi
8007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8008 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8009 esac
8010 fi
8011 ;;
8012 esac
8013 fi
8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8015 printf "%s\n" "$ax_cv_gcc_x86_cpuid_0" >&6; }
8016 ac_ext=c
8017 ac_cpp='$CPP $CPPFLAGS'
8018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8021
8022
8023
8024
8025 ac_ext=c
8026 ac_cpp='$CPP $CPPFLAGS'
8027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8030
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8032 printf %s "checking for x86 cpuid 1 output... " >&6; }
8033 if test ${ax_cv_gcc_x86_cpuid_1+y}
8034 then :
8035 printf %s "(cached) " >&6
8036 else case e in #(
8037 e) if test "$cross_compiling" = yes
8038 then :
8039 ax_cv_gcc_x86_cpuid_1=unknown
8040 else case e in #(
8041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8043 #include <stdio.h>
8044 int
8045 main (void)
8046 {
8047
8048 int op = 1, level = 0, eax, ebx, ecx, edx;
8049 FILE *f;
8050 __asm__ __volatile__ ("xchg %%ebx, %1\n"
8051 "cpuid\n"
8052 "xchg %%ebx, %1\n"
8053 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
8054 : "a" (op), "2" (level));
8055
8056 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8057 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8058 fclose(f);
8059 return 0;
8060
8061 ;
8062 return 0;
8063 }
8064 _ACEOF
8065 if ac_fn_c_try_run "$LINENO"
8066 then :
8067 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8068 else case e in #(
8069 e) ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid ;;
8070 esac
8071 fi
8072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8073 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8074 esac
8075 fi
8076 ;;
8077 esac
8078 fi
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8080 printf "%s\n" "$ax_cv_gcc_x86_cpuid_1" >&6; }
8081 ac_ext=c
8082 ac_cpp='$CPP $CPPFLAGS'
8083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8086
8087
8088
8089 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
8090 *:756e6547:6c65746e:49656e69) # Intel
8091 case $ax_cv_gcc_x86_cpuid_1 in
8092 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) icc_flags="-xK" ;;
8093 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) icc_flags="-xSSE2 -xB -xK" ;;
8094 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) icc_flags="-xSSE3 -xP -xO -xB -xK" ;;
8095 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) icc_flags="-xSSSE3 -xT -xB -xK" ;;
8096 *1?6[7d]?:*:*:*) icc_flags="-xSSE4.1 -xS -xT -xB -xK" ;;
8097 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) icc_flags="-xSSE4.2 -xS -xT -xB -xK" ;;
8098 *2?6[ad]?:*:*:*) icc_flags="-xAVX -SSE4.2 -xS -xT -xB -xK" ;;
8099 *3?6[ae]?:*:*:*) icc_flags="-xCORE-AVX-I -xAVX -SSE4.2 -xS -xT -xB -xK" ;;
8100 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) icc_flags="-xCORE-AVX2 -xCORE-AVX-I -xAVX -SSE4.2 -xS -xT -xB -xK" ;;
8101 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) icc_flags="-xSSE3 -xP -xO -xN -xW -xK" ;;
8102 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) icc_flags="-xSSE2 -xN -xW -xK" ;;
8103 esac ;;
8104 esac ;;
8105 esac
8106 if test "x$icc_flags" != x; then
8107 for flag in $icc_flags; do
8108 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8110 printf %s "checking whether C compiler accepts $flag... " >&6; }
8111 if eval test \${$as_CACHEVAR+y}
8112 then :
8113 printf %s "(cached) " >&6
8114 else case e in #(
8115 e)
8116 ax_check_save_flags=$CFLAGS
8117 CFLAGS="$CFLAGS $flag"
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120
8121 int
8122 main (void)
8123 {
8124
8125 ;
8126 return 0;
8127 }
8128 _ACEOF
8129 if ac_fn_c_try_compile "$LINENO"
8130 then :
8131 eval "$as_CACHEVAR=yes"
8132 else case e in #(
8133 e) eval "$as_CACHEVAR=no" ;;
8134 esac
8135 fi
8136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8137 CFLAGS=$ax_check_save_flags ;;
8138 esac
8139 fi
8140 eval ac_res=\$$as_CACHEVAR
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8142 printf "%s\n" "$ac_res" >&6; }
8143 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8144 then :
8145 icc_archflag=$flag; break
8146 else case e in #(
8147 e) : ;;
8148 esac
8149 fi
8150
8151 done
8152 fi
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
8154 printf %s "checking for icc architecture flag... " >&6; }
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
8156 printf "%s\n" "$icc_archflag" >&6; }
8157 if test "x$icc_archflag" != xunknown; then
8158 CFLAGS="$CFLAGS $icc_archflag"
8159 fi
8160 fi
8161 ;;
8162
8163 nvhpc)
8164 # default optimization flags for nvhpc
8165 CFLAGS="$CFLAGS -O3"
8166 ;;
8167
8168 gnu)
8169 # default optimization flags for gcc on all systems
8170 CFLAGS="$CFLAGS -O3 -fomit-frame-pointer"
8171
8172 # -malign-double for x86 systems
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
8174 printf %s "checking whether C compiler accepts -malign-double... " >&6; }
8175 if test ${ax_cv_check_cflags___malign_double+y}
8176 then :
8177 printf %s "(cached) " >&6
8178 else case e in #(
8179 e)
8180 ax_check_save_flags=$CFLAGS
8181 CFLAGS="$CFLAGS -malign-double"
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184
8185 int
8186 main (void)
8187 {
8188
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 if ac_fn_c_try_compile "$LINENO"
8194 then :
8195 ax_cv_check_cflags___malign_double=yes
8196 else case e in #(
8197 e) ax_cv_check_cflags___malign_double=no ;;
8198 esac
8199 fi
8200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8201 CFLAGS=$ax_check_save_flags ;;
8202 esac
8203 fi
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___malign_double" >&5
8205 printf "%s\n" "$ax_cv_check_cflags___malign_double" >&6; }
8206 if test "x$ax_cv_check_cflags___malign_double" = xyes
8207 then :
8208 CFLAGS="$CFLAGS -malign-double"
8209 else case e in #(
8210 e) : ;;
8211 esac
8212 fi
8213
8214
8215 # -fstrict-aliasing for gcc-2.95+
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
8217 printf %s "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
8218 if test ${ax_cv_check_cflags___fstrict_aliasing+y}
8219 then :
8220 printf %s "(cached) " >&6
8221 else case e in #(
8222 e)
8223 ax_check_save_flags=$CFLAGS
8224 CFLAGS="$CFLAGS -fstrict-aliasing"
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8227
8228 int
8229 main (void)
8230 {
8231
8232 ;
8233 return 0;
8234 }
8235 _ACEOF
8236 if ac_fn_c_try_compile "$LINENO"
8237 then :
8238 ax_cv_check_cflags___fstrict_aliasing=yes
8239 else case e in #(
8240 e) ax_cv_check_cflags___fstrict_aliasing=no ;;
8241 esac
8242 fi
8243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8244 CFLAGS=$ax_check_save_flags ;;
8245 esac
8246 fi
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
8248 printf "%s\n" "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
8249 if test "x$ax_cv_check_cflags___fstrict_aliasing" = xyes
8250 then :
8251 CFLAGS="$CFLAGS -fstrict-aliasing"
8252 else case e in #(
8253 e) : ;;
8254 esac
8255 fi
8256
8257
8258 # note that we enable "unsafe" fp optimization with other compilers, too
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
8260 printf %s "checking whether C compiler accepts -ffast-math... " >&6; }
8261 if test ${ax_cv_check_cflags___ffast_math+y}
8262 then :
8263 printf %s "(cached) " >&6
8264 else case e in #(
8265 e)
8266 ax_check_save_flags=$CFLAGS
8267 CFLAGS="$CFLAGS -ffast-math"
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8270
8271 int
8272 main (void)
8273 {
8274
8275 ;
8276 return 0;
8277 }
8278 _ACEOF
8279 if ac_fn_c_try_compile "$LINENO"
8280 then :
8281 ax_cv_check_cflags___ffast_math=yes
8282 else case e in #(
8283 e) ax_cv_check_cflags___ffast_math=no ;;
8284 esac
8285 fi
8286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8287 CFLAGS=$ax_check_save_flags ;;
8288 esac
8289 fi
8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
8291 printf "%s\n" "$ax_cv_check_cflags___ffast_math" >&6; }
8292 if test "x$ax_cv_check_cflags___ffast_math" = xyes
8293 then :
8294 CFLAGS="$CFLAGS -ffast-math"
8295 else case e in #(
8296 e) : ;;
8297 esac
8298 fi
8299
8300
8301
8302
8303
8304
8305
8306
8307 # Check whether --with-gcc-arch was given.
8308 if test ${with_gcc_arch+y}
8309 then :
8310 withval=$with_gcc_arch; ax_gcc_arch=$withval
8311 else case e in #(
8312 e) ax_gcc_arch=yes ;;
8313 esac
8314 fi
8315
8316
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8318 printf %s "checking for gcc architecture flag... " >&6; }
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
8320 printf "%s\n" "" >&6; }
8321 if test ${ax_cv_gcc_archflag+y}
8322 then :
8323 printf %s "(cached) " >&6
8324 else case e in #(
8325 e)
8326 ax_cv_gcc_archflag="unknown"
8327
8328 if test "$GCC" = yes; then
8329
8330 if test "x$ax_gcc_arch" = xyes; then
8331 ax_gcc_arch=""
8332 if test "$cross_compiling" = no; then
8333 case $host_cpu in
8334 i[3456]86*|x86_64*|amd64*) # use cpuid codes
8335
8336 ac_ext=c
8337 ac_cpp='$CPP $CPPFLAGS'
8338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8341
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8343 printf %s "checking for x86 cpuid 0 output... " >&6; }
8344 if test ${ax_cv_gcc_x86_cpuid_0+y}
8345 then :
8346 printf %s "(cached) " >&6
8347 else case e in #(
8348 e) if test "$cross_compiling" = yes
8349 then :
8350 ax_cv_gcc_x86_cpuid_0=unknown
8351 else case e in #(
8352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354 #include <stdio.h>
8355 int
8356 main (void)
8357 {
8358
8359 int op = 0, level = 0, eax, ebx, ecx, edx;
8360 FILE *f;
8361 __asm__ __volatile__ ("xchg %%ebx, %1\n"
8362 "cpuid\n"
8363 "xchg %%ebx, %1\n"
8364 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
8365 : "a" (op), "2" (level));
8366
8367 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8368 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8369 fclose(f);
8370 return 0;
8371
8372 ;
8373 return 0;
8374 }
8375 _ACEOF
8376 if ac_fn_c_try_run "$LINENO"
8377 then :
8378 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8379 else case e in #(
8380 e) ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid ;;
8381 esac
8382 fi
8383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8384 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8385 esac
8386 fi
8387 ;;
8388 esac
8389 fi
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8391 printf "%s\n" "$ax_cv_gcc_x86_cpuid_0" >&6; }
8392 ac_ext=c
8393 ac_cpp='$CPP $CPPFLAGS'
8394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8397
8398
8399
8400
8401 ac_ext=c
8402 ac_cpp='$CPP $CPPFLAGS'
8403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8406
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8408 printf %s "checking for x86 cpuid 1 output... " >&6; }
8409 if test ${ax_cv_gcc_x86_cpuid_1+y}
8410 then :
8411 printf %s "(cached) " >&6
8412 else case e in #(
8413 e) if test "$cross_compiling" = yes
8414 then :
8415 ax_cv_gcc_x86_cpuid_1=unknown
8416 else case e in #(
8417 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 #include <stdio.h>
8420 int
8421 main (void)
8422 {
8423
8424 int op = 1, level = 0, eax, ebx, ecx, edx;
8425 FILE *f;
8426 __asm__ __volatile__ ("xchg %%ebx, %1\n"
8427 "cpuid\n"
8428 "xchg %%ebx, %1\n"
8429 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
8430 : "a" (op), "2" (level));
8431
8432 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8433 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8434 fclose(f);
8435 return 0;
8436
8437 ;
8438 return 0;
8439 }
8440 _ACEOF
8441 if ac_fn_c_try_run "$LINENO"
8442 then :
8443 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8444 else case e in #(
8445 e) ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid ;;
8446 esac
8447 fi
8448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8449 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8450 esac
8451 fi
8452 ;;
8453 esac
8454 fi
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8456 printf "%s\n" "$ax_cv_gcc_x86_cpuid_1" >&6; }
8457 ac_ext=c
8458 ac_cpp='$CPP $CPPFLAGS'
8459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8462
8463
8464
8465 case $ax_cv_gcc_x86_cpuid_0 in
8466 *:756e6547:6c65746e:49656e69) # Intel
8467 case $ax_cv_gcc_x86_cpuid_1 in
8468 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8469 *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
8470 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
8471 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8472 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8473 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8474 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
8475 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8476 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8477 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
8478 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
8479 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8480 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8481 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8482 *3?6d?:*:*:*|*4?6[7f]?:*:*:*|*5?66?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8483 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
8484 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
8485 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8486 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
8487 # fallback
8488 *5??:*:*:*) ax_gcc_arch=pentium ;;
8489 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8490 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8491 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8492 esac ;;
8493 *:68747541:444d4163:69746e65) # AMD
8494 case $ax_cv_gcc_x86_cpuid_1 in
8495 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8496 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8497 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8498 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8499 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8500 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8501 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8502 *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8503 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8504 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8505 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8506 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8507 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8508 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8509 # fallback
8510 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8511 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8512 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8513 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8514 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8515 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8516 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8517 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8518 esac ;;
8519 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
8520 case $ax_cv_gcc_x86_cpuid_1 in
8521 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8522 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
8523 *66?:*:*:*) ax_gcc_arch=winchip2 ;;
8524 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8525 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8526 esac ;;
8527 esac
8528 if test x"$ax_gcc_arch" = x; then # fallback
8529 case $host_cpu in
8530 i586*) ax_gcc_arch=pentium ;;
8531 i686*) ax_gcc_arch=pentiumpro ;;
8532 esac
8533 fi
8534 ;;
8535
8536 sparc*)
8537 # Extract the first word of "prtdiag", so it can be a program name with args.
8538 set dummy prtdiag; ac_word=$2
8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 printf %s "checking for $ac_word... " >&6; }
8541 if test ${ac_cv_path_PRTDIAG+y}
8542 then :
8543 printf %s "(cached) " >&6
8544 else case e in #(
8545 e) case $PRTDIAG in
8546 [\\/]* | ?:[\\/]*)
8547 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8548 ;;
8549 *)
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8552 for as_dir in $as_dummy
8553 do
8554 IFS=$as_save_IFS
8555 case $as_dir in #(((
8556 '') as_dir=./ ;;
8557 */) ;;
8558 *) as_dir=$as_dir/ ;;
8559 esac
8560 for ac_exec_ext in '' $ac_executable_extensions; do
8561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8562 ac_cv_path_PRTDIAG="$as_dir$ac_word$ac_exec_ext"
8563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8564 break 2
8565 fi
8566 done
8567 done
8568 IFS=$as_save_IFS
8569
8570 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8571 ;;
8572 esac ;;
8573 esac
8574 fi
8575 PRTDIAG=$ac_cv_path_PRTDIAG
8576 if test -n "$PRTDIAG"; then
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8578 printf "%s\n" "$PRTDIAG" >&6; }
8579 else
8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 printf "%s\n" "no" >&6; }
8582 fi
8583
8584
8585 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
8586 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
8587 case $cputype in
8588 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8589 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8590 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8591 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8592 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8593 *cypress*) ax_gcc_arch=cypress ;;
8594 esac ;;
8595
8596 alphaev5) ax_gcc_arch=ev5 ;;
8597 alphaev56) ax_gcc_arch=ev56 ;;
8598 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8599 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8600 alphaev6) ax_gcc_arch=ev6 ;;
8601 alphaev67) ax_gcc_arch=ev67 ;;
8602 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8603 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8604 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8605 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8606
8607 powerpc*)
8608 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | $SED 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
8609 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
8610 case $cputype in
8611 *750*) ax_gcc_arch="750 G3" ;;
8612 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8613 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8614 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8615 *970*) ax_gcc_arch="970 G5 power4";;
8616 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8617 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8618 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8619 *POWER7*) ax_gcc_arch="power7";;
8620 *POWER8*) ax_gcc_arch="power8";;
8621 *POWER9*) ax_gcc_arch="power9";;
8622 *POWER10*) ax_gcc_arch="power10";;
8623 *) ax_gcc_arch=$cputype ;;
8624 esac
8625 ax_gcc_arch="$ax_gcc_arch powerpc"
8626 ;;
8627 aarch64)
8628 cpuimpl=`grep 'CPU implementer' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
8629 cpuarch=`grep 'CPU architecture' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
8630 cpuvar=`grep 'CPU variant' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
8631 case $cpuimpl in
8632 0x42) case $cpuarch in
8633 8) case $cpuvar in
8634 0x0) ax_gcc_arch="thunderx2t99 vulcan armv8.1-a armv8-a+lse armv8-a native" ;;
8635 esac
8636 ;;
8637 esac
8638 ;;
8639 0x43) case $cpuarch in
8640 8) case $cpuvar in
8641 0x0) ax_gcc_arch="thunderx armv8-a native" ;;
8642 0x1) ax_gcc_arch="thunderx+lse armv8.1-a armv8-a+lse armv8-a native" ;;
8643 esac
8644 ;;
8645 esac
8646 ;;
8647 esac
8648 ;;
8649 esac
8650 fi # not cross-compiling
8651 fi # guess arch
8652
8653 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8654 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
8655 flag_prefixes="-mtune="
8656 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
8657 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8658 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8659 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
8660 else
8661 flag_prefixes="-march= -mcpu= -m"
8662 fi
8663 for flag_prefix in $flag_prefixes; do
8664 for arch in $ax_gcc_arch; do
8665 flag="$flag_prefix$arch"
8666 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8668 printf %s "checking whether C compiler accepts $flag... " >&6; }
8669 if eval test \${$as_CACHEVAR+y}
8670 then :
8671 printf %s "(cached) " >&6
8672 else case e in #(
8673 e)
8674 ax_check_save_flags=$CFLAGS
8675 CFLAGS="$CFLAGS $flag"
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678
8679 int
8680 main (void)
8681 {
8682
8683 ;
8684 return 0;
8685 }
8686 _ACEOF
8687 if ac_fn_c_try_compile "$LINENO"
8688 then :
8689 eval "$as_CACHEVAR=yes"
8690 else case e in #(
8691 e) eval "$as_CACHEVAR=no" ;;
8692 esac
8693 fi
8694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8695 CFLAGS=$ax_check_save_flags ;;
8696 esac
8697 fi
8698 eval ac_res=\$$as_CACHEVAR
8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8700 printf "%s\n" "$ac_res" >&6; }
8701 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8702 then :
8703 if test "x$ax_cv_c_compiler_vendor" = xclang; then
8704 if test "x$acx_maxopt_portable" = xyes; then
8705 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
8706 fi
8707 fi; ax_cv_gcc_archflag=$flag; break
8708 else case e in #(
8709 e) : ;;
8710 esac
8711 fi
8712
8713 done
8714 test "x$ax_cv_gcc_archflag" = xunknown || break
8715 done
8716 fi
8717
8718 fi # $GCC=yes
8719 ;;
8720 esac
8721 fi
8722
8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8724 printf %s "checking for gcc architecture flag... " >&6; }
8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8726 printf "%s\n" "$ax_cv_gcc_archflag" >&6; }
8727 if test "x$ax_cv_gcc_archflag" = xunknown; then
8728 :
8729 else
8730 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8731 fi
8732
8733
8734 # drop to -O1 for gcc 4.2
8735 $CC --version |
8736 sed -e 's/.* \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1 \2/' |
8737 (read major minor
8738 if test $major -eq 4 -a $minor -eq 2; then
8739 exit 0
8740 fi
8741 exit 1
8742 ) && CFLAGS="-O1"
8743 ;;
8744
8745 microsoft)
8746 # default optimization flags for MSVC opt builds
8747 CFLAGS="$CFLAGS -O2"
8748 ;;
8749 esac
8750
8751 if test -z "$CFLAGS"; then
8752 echo ""
8753 echo "********************************************************"
8754 echo "* WARNING: Don't know the best CFLAGS for this system *"
8755 echo "* Use ./configure CFLAGS=... to specify your own flags *"
8756 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
8757 echo "********************************************************"
8758 echo ""
8759 CFLAGS="$CFLAGS -O3"
8760 fi
8761
8762 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CFLAGS" | sed "$as_sed_sh"`
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
8764 printf %s "checking whether C compiler accepts $CFLAGS... " >&6; }
8765 if eval test \${$as_CACHEVAR+y}
8766 then :
8767 printf %s "(cached) " >&6
8768 else case e in #(
8769 e)
8770 ax_check_save_flags=$CFLAGS
8771 CFLAGS="$CFLAGS $CFLAGS"
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h. */
8774
8775 int
8776 main (void)
8777 {
8778
8779 ;
8780 return 0;
8781 }
8782 _ACEOF
8783 if ac_fn_c_try_compile "$LINENO"
8784 then :
8785 eval "$as_CACHEVAR=yes"
8786 else case e in #(
8787 e) eval "$as_CACHEVAR=no" ;;
8788 esac
8789 fi
8790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8791 CFLAGS=$ax_check_save_flags ;;
8792 esac
8793 fi
8794 eval ac_res=\$$as_CACHEVAR
8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8796 printf "%s\n" "$ac_res" >&6; }
8797 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8798 then :
8799 :
8800 else case e in #(
8801 e)
8802 echo ""
8803 echo "********************************************************"
8804 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
8805 echo "* your compiler. *"
8806 echo "* Use ./configure CFLAGS=... to specify your own flags *"
8807 echo "********************************************************"
8808 echo ""
8809 ;;
8810 esac
8811 fi
8812
8813
8814 fi
8815
8816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports function __attribute__((__warn_unused_result__))" >&5
8817 printf %s "checking whether the compiler supports function __attribute__((__warn_unused_result__))... " >&6; }
8818 if test ${ax_cv_gcc_warn_unused_result+y}
8819 then :
8820 printf %s "(cached) " >&6
8821 else case e in #(
8822 e)
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 __attribute__((__warn_unused_result__))
8826 int f(int i) { return i; }
8827 int
8828 main (void)
8829 {
8830
8831 ;
8832 return 0;
8833 }
8834 _ACEOF
8835 if ac_fn_c_try_compile "$LINENO"
8836 then :
8837 ax_cv_gcc_warn_unused_result=yes
8838 else case e in #(
8839 e) ax_cv_gcc_warn_unused_result=no ;;
8840 esac
8841 fi
8842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8843 esac
8844 fi
8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_warn_unused_result" >&5
8846 printf "%s\n" "$ax_cv_gcc_warn_unused_result" >&6; }
8847 if test "$ax_cv_gcc_warn_unused_result" = yes; then
8848
8849 printf "%s\n" "#define GCC_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))" >>confdefs.h
8850
8851 fi
8852
8853
8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8855 printf %s "checking for __attribute__... " >&6; }
8856 if test ${ax_cv___attribute__+y}
8857 then :
8858 printf %s "(cached) " >&6
8859 else case e in #(
8860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8862 #include <stdlib.h>
8863 static void foo(void) __attribute__ ((unused));
8864 static void
8865 foo(void) {
8866 exit(1);
8867 }
8868
8869 int
8870 main (void)
8871 {
8872
8873 ;
8874 return 0;
8875 }
8876 _ACEOF
8877 if ac_fn_c_try_compile "$LINENO"
8878 then :
8879 ax_cv___attribute__=yes
8880 else case e in #(
8881 e) ax_cv___attribute__=no
8882 ;;
8883 esac
8884 fi
8885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8886 ;;
8887 esac
8888 fi
8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8890 printf "%s\n" "$ax_cv___attribute__" >&6; }
8891 if test "$ax_cv___attribute__" = "yes"; then
8892
8893 printf "%s\n" "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8894
8895 fi
8896
8897
8898
8899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8900 printf %s "checking for grep that handles long lines and -e... " >&6; }
8901 if test ${ac_cv_path_GREP+y}
8902 then :
8903 printf %s "(cached) " >&6
8904 else case e in #(
8905 e) if test -z "$GREP"; then
8906 ac_path_GREP_found=false
8907 # Loop through the user's path and test for each of PROGNAME-LIST
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8910 do
8911 IFS=$as_save_IFS
8912 case $as_dir in #(((
8913 '') as_dir=./ ;;
8914 */) ;;
8915 *) as_dir=$as_dir/ ;;
8916 esac
8917 for ac_prog in grep ggrep
8918 do
8919 for ac_exec_ext in '' $ac_executable_extensions; do
8920 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
8921 as_fn_executable_p "$ac_path_GREP" || continue
8922 # Check for GNU ac_path_GREP and select it if it is found.
8923 # Check for GNU $ac_path_GREP
8924 case `"$ac_path_GREP" --version 2>&1` in #(
8925 *GNU*)
8926 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8927 #(
8928 *)
8929 ac_count=0
8930 printf %s 0123456789 >"conftest.in"
8931 while :
8932 do
8933 cat "conftest.in" "conftest.in" >"conftest.tmp"
8934 mv "conftest.tmp" "conftest.in"
8935 cp "conftest.in" "conftest.nl"
8936 printf "%s\n" 'GREP' >> "conftest.nl"
8937 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8939 as_fn_arith $ac_count + 1 && ac_count=$as_val
8940 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8941 # Best one so far, save it but keep looking for a better one
8942 ac_cv_path_GREP="$ac_path_GREP"
8943 ac_path_GREP_max=$ac_count
8944 fi
8945 # 10*(2^10) chars as input seems more than enough
8946 test $ac_count -gt 10 && break
8947 done
8948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8949 esac
8950
8951 $ac_path_GREP_found && break 3
8952 done
8953 done
8954 done
8955 IFS=$as_save_IFS
8956 if test -z "$ac_cv_path_GREP"; then
8957 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8958 fi
8959 else
8960 ac_cv_path_GREP=$GREP
8961 fi
8962 ;;
8963 esac
8964 fi
8965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8966 printf "%s\n" "$ac_cv_path_GREP" >&6; }
8967 GREP="$ac_cv_path_GREP"
8968
8969
8970 echo $CXX | $GREP -e "-std=" > /dev/null 2> /dev/null
8971 if test $? -eq 0; then
8972 ac_ext=cpp
8973 ac_cpp='$CXXCPP $CPPFLAGS'
8974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8977 ac_success=no
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
8979 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
8980 if test ${ax_cv_cxx_compile_cxx11+y}
8981 then :
8982 printf %s "(cached) " >&6
8983 else case e in #(
8984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986
8987
8988 // If the compiler admits that it is not ready for C++11, why torture it?
8989 // Hopefully, this will speed up the test.
8990
8991 #ifndef __cplusplus
8992
8993 #error "This is not a C++ compiler"
8994
8995 #elif __cplusplus < 201103L
8996
8997 #error "This is not a C++11 compiler"
8998
8999 #else
9000
9001 namespace cxx11
9002 {
9003
9004 namespace test_static_assert
9005 {
9006
9007 template <typename T>
9008 struct check
9009 {
9010 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9011 };
9012
9013 }
9014
9015 namespace test_final_override
9016 {
9017
9018 struct Base
9019 {
9020 virtual ~Base() {}
9021 virtual void f() {}
9022 };
9023
9024 struct Derived : public Base
9025 {
9026 virtual ~Derived() override {}
9027 virtual void f() override {}
9028 };
9029
9030 }
9031
9032 namespace test_double_right_angle_brackets
9033 {
9034
9035 template < typename T >
9036 struct check {};
9037
9038 typedef check<void> single_type;
9039 typedef check<check<void>> double_type;
9040 typedef check<check<check<void>>> triple_type;
9041 typedef check<check<check<check<void>>>> quadruple_type;
9042
9043 }
9044
9045 namespace test_decltype
9046 {
9047
9048 int
9049 f()
9050 {
9051 int a = 1;
9052 decltype(a) b = 2;
9053 return a + b;
9054 }
9055
9056 }
9057
9058 namespace test_type_deduction
9059 {
9060
9061 template < typename T1, typename T2 >
9062 struct is_same
9063 {
9064 static const bool value = false;
9065 };
9066
9067 template < typename T >
9068 struct is_same<T, T>
9069 {
9070 static const bool value = true;
9071 };
9072
9073 template < typename T1, typename T2 >
9074 auto
9075 add(T1 a1, T2 a2) -> decltype(a1 + a2)
9076 {
9077 return a1 + a2;
9078 }
9079
9080 int
9081 test(const int c, volatile int v)
9082 {
9083 static_assert(is_same<int, decltype(0)>::value == true, "");
9084 static_assert(is_same<int, decltype(c)>::value == false, "");
9085 static_assert(is_same<int, decltype(v)>::value == false, "");
9086 auto ac = c;
9087 auto av = v;
9088 auto sumi = ac + av + 'x';
9089 auto sumf = ac + av + 1.0;
9090 static_assert(is_same<int, decltype(ac)>::value == true, "");
9091 static_assert(is_same<int, decltype(av)>::value == true, "");
9092 static_assert(is_same<int, decltype(sumi)>::value == true, "");
9093 static_assert(is_same<int, decltype(sumf)>::value == false, "");
9094 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
9095 return (sumf > 0.0) ? sumi : add(c, v);
9096 }
9097
9098 }
9099
9100 namespace test_noexcept
9101 {
9102
9103 int f() { return 0; }
9104 int g() noexcept { return 0; }
9105
9106 static_assert(noexcept(f()) == false, "");
9107 static_assert(noexcept(g()) == true, "");
9108
9109 }
9110
9111 namespace test_constexpr
9112 {
9113
9114 template < typename CharT >
9115 unsigned long constexpr
9116 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
9117 {
9118 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
9119 }
9120
9121 template < typename CharT >
9122 unsigned long constexpr
9123 strlen_c(const CharT *const s) noexcept
9124 {
9125 return strlen_c_r(s, 0UL);
9126 }
9127
9128 static_assert(strlen_c("") == 0UL, "");
9129 static_assert(strlen_c("1") == 1UL, "");
9130 static_assert(strlen_c("example") == 7UL, "");
9131 static_assert(strlen_c("another\0example") == 7UL, "");
9132
9133 }
9134
9135 namespace test_rvalue_references
9136 {
9137
9138 template < int N >
9139 struct answer
9140 {
9141 static constexpr int value = N;
9142 };
9143
9144 answer<1> f(int&) { return answer<1>(); }
9145 answer<2> f(const int&) { return answer<2>(); }
9146 answer<3> f(int&&) { return answer<3>(); }
9147
9148 void
9149 test()
9150 {
9151 int i = 0;
9152 const int c = 0;
9153 static_assert(decltype(f(i))::value == 1, "");
9154 static_assert(decltype(f(c))::value == 2, "");
9155 static_assert(decltype(f(0))::value == 3, "");
9156 }
9157
9158 }
9159
9160 namespace test_uniform_initialization
9161 {
9162
9163 struct test
9164 {
9165 static const int zero {};
9166 static const int one {1};
9167 };
9168
9169 static_assert(test::zero == 0, "");
9170 static_assert(test::one == 1, "");
9171
9172 }
9173
9174 namespace test_lambdas
9175 {
9176
9177 void
9178 test1()
9179 {
9180 auto lambda1 = [](){};
9181 auto lambda2 = lambda1;
9182 lambda1();
9183 lambda2();
9184 }
9185
9186 int
9187 test2()
9188 {
9189 auto a = [](int i, int j){ return i + j; }(1, 2);
9190 auto b = []() -> int { return '0'; }();
9191 auto c = [=](){ return a + b; }();
9192 auto d = [&](){ return c; }();
9193 auto e = [a, &b](int x) mutable {
9194 const auto identity = [](int y){ return y; };
9195 for (auto i = 0; i < a; ++i)
9196 a += b--;
9197 return x + identity(a + b);
9198 }(0);
9199 return a + b + c + d + e;
9200 }
9201
9202 int
9203 test3()
9204 {
9205 const auto nullary = [](){ return 0; };
9206 const auto unary = [](int x){ return x; };
9207 using nullary_t = decltype(nullary);
9208 using unary_t = decltype(unary);
9209 const auto higher1st = [](nullary_t f){ return f(); };
9210 const auto higher2nd = [unary](nullary_t f1){
9211 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
9212 };
9213 return higher1st(nullary) + higher2nd(nullary)(unary);
9214 }
9215
9216 }
9217
9218 namespace test_variadic_templates
9219 {
9220
9221 template <int...>
9222 struct sum;
9223
9224 template <int N0, int... N1toN>
9225 struct sum<N0, N1toN...>
9226 {
9227 static constexpr auto value = N0 + sum<N1toN...>::value;
9228 };
9229
9230 template <>
9231 struct sum<>
9232 {
9233 static constexpr auto value = 0;
9234 };
9235
9236 static_assert(sum<>::value == 0, "");
9237 static_assert(sum<1>::value == 1, "");
9238 static_assert(sum<23>::value == 23, "");
9239 static_assert(sum<1, 2>::value == 3, "");
9240 static_assert(sum<5, 5, 11>::value == 21, "");
9241 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
9242
9243 }
9244
9245 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
9246 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
9247 // because of this.
9248 namespace test_template_alias_sfinae
9249 {
9250
9251 struct foo {};
9252
9253 template<typename T>
9254 using member = typename T::member_type;
9255
9256 template<typename T>
9257 void func(...) {}
9258
9259 template<typename T>
9260 void func(member<T>*) {}
9261
9262 void test();
9263
9264 void test() { func<foo>(0); }
9265
9266 }
9267
9268 } // namespace cxx11
9269
9270 #endif // __cplusplus >= 201103L
9271
9272
9273
9274 _ACEOF
9275 if ac_fn_cxx_try_compile "$LINENO"
9276 then :
9277 ax_cv_cxx_compile_cxx11=yes
9278 else case e in #(
9279 e) ax_cv_cxx_compile_cxx11=no ;;
9280 esac
9281 fi
9282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9283 esac
9284 fi
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
9286 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
9287 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
9288 ac_success=yes
9289 fi
9290 ac_ext=c
9291 ac_cpp='$CPP $CPPFLAGS'
9292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9295
9296 if test x$ac_success = xno; then
9297 HAVE_CXX11=0
9298 else
9299 HAVE_CXX11=1
9300
9301 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
9302
9303 fi
9304
9305
9306 else
9307 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=false
9308 ac_ext=cpp
9309 ac_cpp='$CXXCPP $CPPFLAGS'
9310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9313 ac_success=no
9314
9315
9316
9317
9318
9319 if test x$ac_success = xno; then
9320 for alternative in ${ax_cxx_compile_alternatives}; do
9321 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
9322 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
9324 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
9325 if eval test \${$cachevar+y}
9326 then :
9327 printf %s "(cached) " >&6
9328 else case e in #(
9329 e) ac_save_CXX="$CXX"
9330 CXX="$CXX $switch"
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9333
9334
9335 // If the compiler admits that it is not ready for C++11, why torture it?
9336 // Hopefully, this will speed up the test.
9337
9338 #ifndef __cplusplus
9339
9340 #error "This is not a C++ compiler"
9341
9342 #elif __cplusplus < 201103L
9343
9344 #error "This is not a C++11 compiler"
9345
9346 #else
9347
9348 namespace cxx11
9349 {
9350
9351 namespace test_static_assert
9352 {
9353
9354 template <typename T>
9355 struct check
9356 {
9357 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9358 };
9359
9360 }
9361
9362 namespace test_final_override
9363 {
9364
9365 struct Base
9366 {
9367 virtual ~Base() {}
9368 virtual void f() {}
9369 };
9370
9371 struct Derived : public Base
9372 {
9373 virtual ~Derived() override {}
9374 virtual void f() override {}
9375 };
9376
9377 }
9378
9379 namespace test_double_right_angle_brackets
9380 {
9381
9382 template < typename T >
9383 struct check {};
9384
9385 typedef check<void> single_type;
9386 typedef check<check<void>> double_type;
9387 typedef check<check<check<void>>> triple_type;
9388 typedef check<check<check<check<void>>>> quadruple_type;
9389
9390 }
9391
9392 namespace test_decltype
9393 {
9394
9395 int
9396 f()
9397 {
9398 int a = 1;
9399 decltype(a) b = 2;
9400 return a + b;
9401 }
9402
9403 }
9404
9405 namespace test_type_deduction
9406 {
9407
9408 template < typename T1, typename T2 >
9409 struct is_same
9410 {
9411 static const bool value = false;
9412 };
9413
9414 template < typename T >
9415 struct is_same<T, T>
9416 {
9417 static const bool value = true;
9418 };
9419
9420 template < typename T1, typename T2 >
9421 auto
9422 add(T1 a1, T2 a2) -> decltype(a1 + a2)
9423 {
9424 return a1 + a2;
9425 }
9426
9427 int
9428 test(const int c, volatile int v)
9429 {
9430 static_assert(is_same<int, decltype(0)>::value == true, "");
9431 static_assert(is_same<int, decltype(c)>::value == false, "");
9432 static_assert(is_same<int, decltype(v)>::value == false, "");
9433 auto ac = c;
9434 auto av = v;
9435 auto sumi = ac + av + 'x';
9436 auto sumf = ac + av + 1.0;
9437 static_assert(is_same<int, decltype(ac)>::value == true, "");
9438 static_assert(is_same<int, decltype(av)>::value == true, "");
9439 static_assert(is_same<int, decltype(sumi)>::value == true, "");
9440 static_assert(is_same<int, decltype(sumf)>::value == false, "");
9441 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
9442 return (sumf > 0.0) ? sumi : add(c, v);
9443 }
9444
9445 }
9446
9447 namespace test_noexcept
9448 {
9449
9450 int f() { return 0; }
9451 int g() noexcept { return 0; }
9452
9453 static_assert(noexcept(f()) == false, "");
9454 static_assert(noexcept(g()) == true, "");
9455
9456 }
9457
9458 namespace test_constexpr
9459 {
9460
9461 template < typename CharT >
9462 unsigned long constexpr
9463 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
9464 {
9465 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
9466 }
9467
9468 template < typename CharT >
9469 unsigned long constexpr
9470 strlen_c(const CharT *const s) noexcept
9471 {
9472 return strlen_c_r(s, 0UL);
9473 }
9474
9475 static_assert(strlen_c("") == 0UL, "");
9476 static_assert(strlen_c("1") == 1UL, "");
9477 static_assert(strlen_c("example") == 7UL, "");
9478 static_assert(strlen_c("another\0example") == 7UL, "");
9479
9480 }
9481
9482 namespace test_rvalue_references
9483 {
9484
9485 template < int N >
9486 struct answer
9487 {
9488 static constexpr int value = N;
9489 };
9490
9491 answer<1> f(int&) { return answer<1>(); }
9492 answer<2> f(const int&) { return answer<2>(); }
9493 answer<3> f(int&&) { return answer<3>(); }
9494
9495 void
9496 test()
9497 {
9498 int i = 0;
9499 const int c = 0;
9500 static_assert(decltype(f(i))::value == 1, "");
9501 static_assert(decltype(f(c))::value == 2, "");
9502 static_assert(decltype(f(0))::value == 3, "");
9503 }
9504
9505 }
9506
9507 namespace test_uniform_initialization
9508 {
9509
9510 struct test
9511 {
9512 static const int zero {};
9513 static const int one {1};
9514 };
9515
9516 static_assert(test::zero == 0, "");
9517 static_assert(test::one == 1, "");
9518
9519 }
9520
9521 namespace test_lambdas
9522 {
9523
9524 void
9525 test1()
9526 {
9527 auto lambda1 = [](){};
9528 auto lambda2 = lambda1;
9529 lambda1();
9530 lambda2();
9531 }
9532
9533 int
9534 test2()
9535 {
9536 auto a = [](int i, int j){ return i + j; }(1, 2);
9537 auto b = []() -> int { return '0'; }();
9538 auto c = [=](){ return a + b; }();
9539 auto d = [&](){ return c; }();
9540 auto e = [a, &b](int x) mutable {
9541 const auto identity = [](int y){ return y; };
9542 for (auto i = 0; i < a; ++i)
9543 a += b--;
9544 return x + identity(a + b);
9545 }(0);
9546 return a + b + c + d + e;
9547 }
9548
9549 int
9550 test3()
9551 {
9552 const auto nullary = [](){ return 0; };
9553 const auto unary = [](int x){ return x; };
9554 using nullary_t = decltype(nullary);
9555 using unary_t = decltype(unary);
9556 const auto higher1st = [](nullary_t f){ return f(); };
9557 const auto higher2nd = [unary](nullary_t f1){
9558 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
9559 };
9560 return higher1st(nullary) + higher2nd(nullary)(unary);
9561 }
9562
9563 }
9564
9565 namespace test_variadic_templates
9566 {
9567
9568 template <int...>
9569 struct sum;
9570
9571 template <int N0, int... N1toN>
9572 struct sum<N0, N1toN...>
9573 {
9574 static constexpr auto value = N0 + sum<N1toN...>::value;
9575 };
9576
9577 template <>
9578 struct sum<>
9579 {
9580 static constexpr auto value = 0;
9581 };
9582
9583 static_assert(sum<>::value == 0, "");
9584 static_assert(sum<1>::value == 1, "");
9585 static_assert(sum<23>::value == 23, "");
9586 static_assert(sum<1, 2>::value == 3, "");
9587 static_assert(sum<5, 5, 11>::value == 21, "");
9588 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
9589
9590 }
9591
9592 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
9593 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
9594 // because of this.
9595 namespace test_template_alias_sfinae
9596 {
9597
9598 struct foo {};
9599
9600 template<typename T>
9601 using member = typename T::member_type;
9602
9603 template<typename T>
9604 void func(...) {}
9605
9606 template<typename T>
9607 void func(member<T>*) {}
9608
9609 void test();
9610
9611 void test() { func<foo>(0); }
9612
9613 }
9614
9615 } // namespace cxx11
9616
9617 #endif // __cplusplus >= 201103L
9618
9619
9620
9621 _ACEOF
9622 if ac_fn_cxx_try_compile "$LINENO"
9623 then :
9624 eval $cachevar=yes
9625 else case e in #(
9626 e) eval $cachevar=no ;;
9627 esac
9628 fi
9629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9630 CXX="$ac_save_CXX" ;;
9631 esac
9632 fi
9633 eval ac_res=\$$cachevar
9634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9635 printf "%s\n" "$ac_res" >&6; }
9636 if eval test x\$$cachevar = xyes; then
9637 CXX="$CXX $switch"
9638 if test -n "$CXXCPP" ; then
9639 CXXCPP="$CXXCPP $switch"
9640 fi
9641 ac_success=yes
9642 break
9643 fi
9644 done
9645 if test x$ac_success = xyes; then
9646 break
9647 fi
9648 done
9649 fi
9650 ac_ext=c
9651 ac_cpp='$CPP $CPPFLAGS'
9652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9655
9656 if test x$ax_cxx_compile_cxx11_required = xtrue; then
9657 if test x$ac_success = xno; then
9658 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
9659 fi
9660 fi
9661 if test x$ac_success = xno; then
9662 HAVE_CXX11=0
9663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
9664 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
9665 else
9666 HAVE_CXX11=1
9667
9668 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
9669
9670 fi
9671
9672
9673 fi
9674
9675 ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=false
9676 ac_ext=cpp
9677 ac_cpp='$CXXCPP $CPPFLAGS'
9678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9681 ac_success=no
9682
9683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
9684 printf %s "checking whether $CXX supports C++17 features by default... " >&6; }
9685 if test ${ax_cv_cxx_compile_cxx17+y}
9686 then :
9687 printf %s "(cached) " >&6
9688 else case e in #(
9689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690 /* end confdefs.h. */
9691
9692
9693 // If the compiler admits that it is not ready for C++11, why torture it?
9694 // Hopefully, this will speed up the test.
9695
9696 #ifndef __cplusplus
9697
9698 #error "This is not a C++ compiler"
9699
9700 #elif __cplusplus < 201103L
9701
9702 #error "This is not a C++11 compiler"
9703
9704 #else
9705
9706 namespace cxx11
9707 {
9708
9709 namespace test_static_assert
9710 {
9711
9712 template <typename T>
9713 struct check
9714 {
9715 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9716 };
9717
9718 }
9719
9720 namespace test_final_override
9721 {
9722
9723 struct Base
9724 {
9725 virtual ~Base() {}
9726 virtual void f() {}
9727 };
9728
9729 struct Derived : public Base
9730 {
9731 virtual ~Derived() override {}
9732 virtual void f() override {}
9733 };
9734
9735 }
9736
9737 namespace test_double_right_angle_brackets
9738 {
9739
9740 template < typename T >
9741 struct check {};
9742
9743 typedef check<void> single_type;
9744 typedef check<check<void>> double_type;
9745 typedef check<check<check<void>>> triple_type;
9746 typedef check<check<check<check<void>>>> quadruple_type;
9747
9748 }
9749
9750 namespace test_decltype
9751 {
9752
9753 int
9754 f()
9755 {
9756 int a = 1;
9757 decltype(a) b = 2;
9758 return a + b;
9759 }
9760
9761 }
9762
9763 namespace test_type_deduction
9764 {
9765
9766 template < typename T1, typename T2 >
9767 struct is_same
9768 {
9769 static const bool value = false;
9770 };
9771
9772 template < typename T >
9773 struct is_same<T, T>
9774 {
9775 static const bool value = true;
9776 };
9777
9778 template < typename T1, typename T2 >
9779 auto
9780 add(T1 a1, T2 a2) -> decltype(a1 + a2)
9781 {
9782 return a1 + a2;
9783 }
9784
9785 int
9786 test(const int c, volatile int v)
9787 {
9788 static_assert(is_same<int, decltype(0)>::value == true, "");
9789 static_assert(is_same<int, decltype(c)>::value == false, "");
9790 static_assert(is_same<int, decltype(v)>::value == false, "");
9791 auto ac = c;
9792 auto av = v;
9793 auto sumi = ac + av + 'x';
9794 auto sumf = ac + av + 1.0;
9795 static_assert(is_same<int, decltype(ac)>::value == true, "");
9796 static_assert(is_same<int, decltype(av)>::value == true, "");
9797 static_assert(is_same<int, decltype(sumi)>::value == true, "");
9798 static_assert(is_same<int, decltype(sumf)>::value == false, "");
9799 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
9800 return (sumf > 0.0) ? sumi : add(c, v);
9801 }
9802
9803 }
9804
9805 namespace test_noexcept
9806 {
9807
9808 int f() { return 0; }
9809 int g() noexcept { return 0; }
9810
9811 static_assert(noexcept(f()) == false, "");
9812 static_assert(noexcept(g()) == true, "");
9813
9814 }
9815
9816 namespace test_constexpr
9817 {
9818
9819 template < typename CharT >
9820 unsigned long constexpr
9821 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
9822 {
9823 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
9824 }
9825
9826 template < typename CharT >
9827 unsigned long constexpr
9828 strlen_c(const CharT *const s) noexcept
9829 {
9830 return strlen_c_r(s, 0UL);
9831 }
9832
9833 static_assert(strlen_c("") == 0UL, "");
9834 static_assert(strlen_c("1") == 1UL, "");
9835 static_assert(strlen_c("example") == 7UL, "");
9836 static_assert(strlen_c("another\0example") == 7UL, "");
9837
9838 }
9839
9840 namespace test_rvalue_references
9841 {
9842
9843 template < int N >
9844 struct answer
9845 {
9846 static constexpr int value = N;
9847 };
9848
9849 answer<1> f(int&) { return answer<1>(); }
9850 answer<2> f(const int&) { return answer<2>(); }
9851 answer<3> f(int&&) { return answer<3>(); }
9852
9853 void
9854 test()
9855 {
9856 int i = 0;
9857 const int c = 0;
9858 static_assert(decltype(f(i))::value == 1, "");
9859 static_assert(decltype(f(c))::value == 2, "");
9860 static_assert(decltype(f(0))::value == 3, "");
9861 }
9862
9863 }
9864
9865 namespace test_uniform_initialization
9866 {
9867
9868 struct test
9869 {
9870 static const int zero {};
9871 static const int one {1};
9872 };
9873
9874 static_assert(test::zero == 0, "");
9875 static_assert(test::one == 1, "");
9876
9877 }
9878
9879 namespace test_lambdas
9880 {
9881
9882 void
9883 test1()
9884 {
9885 auto lambda1 = [](){};
9886 auto lambda2 = lambda1;
9887 lambda1();
9888 lambda2();
9889 }
9890
9891 int
9892 test2()
9893 {
9894 auto a = [](int i, int j){ return i + j; }(1, 2);
9895 auto b = []() -> int { return '0'; }();
9896 auto c = [=](){ return a + b; }();
9897 auto d = [&](){ return c; }();
9898 auto e = [a, &b](int x) mutable {
9899 const auto identity = [](int y){ return y; };
9900 for (auto i = 0; i < a; ++i)
9901 a += b--;
9902 return x + identity(a + b);
9903 }(0);
9904 return a + b + c + d + e;
9905 }
9906
9907 int
9908 test3()
9909 {
9910 const auto nullary = [](){ return 0; };
9911 const auto unary = [](int x){ return x; };
9912 using nullary_t = decltype(nullary);
9913 using unary_t = decltype(unary);
9914 const auto higher1st = [](nullary_t f){ return f(); };
9915 const auto higher2nd = [unary](nullary_t f1){
9916 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
9917 };
9918 return higher1st(nullary) + higher2nd(nullary)(unary);
9919 }
9920
9921 }
9922
9923 namespace test_variadic_templates
9924 {
9925
9926 template <int...>
9927 struct sum;
9928
9929 template <int N0, int... N1toN>
9930 struct sum<N0, N1toN...>
9931 {
9932 static constexpr auto value = N0 + sum<N1toN...>::value;
9933 };
9934
9935 template <>
9936 struct sum<>
9937 {
9938 static constexpr auto value = 0;
9939 };
9940
9941 static_assert(sum<>::value == 0, "");
9942 static_assert(sum<1>::value == 1, "");
9943 static_assert(sum<23>::value == 23, "");
9944 static_assert(sum<1, 2>::value == 3, "");
9945 static_assert(sum<5, 5, 11>::value == 21, "");
9946 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
9947
9948 }
9949
9950 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
9951 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
9952 // because of this.
9953 namespace test_template_alias_sfinae
9954 {
9955
9956 struct foo {};
9957
9958 template<typename T>
9959 using member = typename T::member_type;
9960
9961 template<typename T>
9962 void func(...) {}
9963
9964 template<typename T>
9965 void func(member<T>*) {}
9966
9967 void test();
9968
9969 void test() { func<foo>(0); }
9970
9971 }
9972
9973 } // namespace cxx11
9974
9975 #endif // __cplusplus >= 201103L
9976
9977
9978
9979
9980 // If the compiler admits that it is not ready for C++14, why torture it?
9981 // Hopefully, this will speed up the test.
9982
9983 #ifndef __cplusplus
9984
9985 #error "This is not a C++ compiler"
9986
9987 #elif __cplusplus < 201402L
9988
9989 #error "This is not a C++14 compiler"
9990
9991 #else
9992
9993 namespace cxx14
9994 {
9995
9996 namespace test_polymorphic_lambdas
9997 {
9998
9999 int
10000 test()
10001 {
10002 const auto lambda = [](auto&&... args){
10003 const auto istiny = [](auto x){
10004 return (sizeof(x) == 1UL) ? 1 : 0;
10005 };
10006 const int aretiny[] = { istiny(args)... };
10007 return aretiny[0];
10008 };
10009 return lambda(1, 1L, 1.0f, '1');
10010 }
10011
10012 }
10013
10014 namespace test_binary_literals
10015 {
10016
10017 constexpr auto ivii = 0b0000000000101010;
10018 static_assert(ivii == 42, "wrong value");
10019
10020 }
10021
10022 namespace test_generalized_constexpr
10023 {
10024
10025 template < typename CharT >
10026 constexpr unsigned long
10027 strlen_c(const CharT *const s) noexcept
10028 {
10029 auto length = 0UL;
10030 for (auto p = s; *p; ++p)
10031 ++length;
10032 return length;
10033 }
10034
10035 static_assert(strlen_c("") == 0UL, "");
10036 static_assert(strlen_c("x") == 1UL, "");
10037 static_assert(strlen_c("test") == 4UL, "");
10038 static_assert(strlen_c("another\0test") == 7UL, "");
10039
10040 }
10041
10042 namespace test_lambda_init_capture
10043 {
10044
10045 int
10046 test()
10047 {
10048 auto x = 0;
10049 const auto lambda1 = [a = x](int b){ return a + b; };
10050 const auto lambda2 = [a = lambda1(x)](){ return a; };
10051 return lambda2();
10052 }
10053
10054 }
10055
10056 namespace test_digit_separators
10057 {
10058
10059 constexpr auto ten_million = 100'000'000;
10060 static_assert(ten_million == 100000000, "");
10061
10062 }
10063
10064 namespace test_return_type_deduction
10065 {
10066
10067 auto f(int& x) { return x; }
10068 decltype(auto) g(int& x) { return x; }
10069
10070 template < typename T1, typename T2 >
10071 struct is_same
10072 {
10073 static constexpr auto value = false;
10074 };
10075
10076 template < typename T >
10077 struct is_same<T, T>
10078 {
10079 static constexpr auto value = true;
10080 };
10081
10082 int
10083 test()
10084 {
10085 auto x = 0;
10086 static_assert(is_same<int, decltype(f(x))>::value, "");
10087 static_assert(is_same<int&, decltype(g(x))>::value, "");
10088 return x;
10089 }
10090
10091 }
10092
10093 } // namespace cxx14
10094
10095 #endif // __cplusplus >= 201402L
10096
10097
10098
10099
10100 // If the compiler admits that it is not ready for C++17, why torture it?
10101 // Hopefully, this will speed up the test.
10102
10103 #ifndef __cplusplus
10104
10105 #error "This is not a C++ compiler"
10106
10107 #elif __cplusplus < 201703L
10108
10109 #error "This is not a C++17 compiler"
10110
10111 #else
10112
10113 #include <initializer_list>
10114 #include <utility>
10115 #include <type_traits>
10116
10117 namespace cxx17
10118 {
10119
10120 namespace test_constexpr_lambdas
10121 {
10122
10123 constexpr int foo = [](){return 42;}();
10124
10125 }
10126
10127 namespace test::nested_namespace::definitions
10128 {
10129
10130 }
10131
10132 namespace test_fold_expression
10133 {
10134
10135 template<typename... Args>
10136 int multiply(Args... args)
10137 {
10138 return (args * ... * 1);
10139 }
10140
10141 template<typename... Args>
10142 bool all(Args... args)
10143 {
10144 return (args && ...);
10145 }
10146
10147 }
10148
10149 namespace test_extended_static_assert
10150 {
10151
10152 static_assert (true);
10153
10154 }
10155
10156 namespace test_auto_brace_init_list
10157 {
10158
10159 auto foo = {5};
10160 auto bar {5};
10161
10162 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
10163 static_assert(std::is_same<int, decltype(bar)>::value);
10164 }
10165
10166 namespace test_typename_in_template_template_parameter
10167 {
10168
10169 template<template<typename> typename X> struct D;
10170
10171 }
10172
10173 namespace test_fallthrough_nodiscard_maybe_unused_attributes
10174 {
10175
10176 int f1()
10177 {
10178 return 42;
10179 }
10180
10181 [[nodiscard]] int f2()
10182 {
10183 [[maybe_unused]] auto unused = f1();
10184
10185 switch (f1())
10186 {
10187 case 17:
10188 f1();
10189 [[fallthrough]];
10190 case 42:
10191 f1();
10192 }
10193 return f1();
10194 }
10195
10196 }
10197
10198 namespace test_extended_aggregate_initialization
10199 {
10200
10201 struct base1
10202 {
10203 int b1, b2 = 42;
10204 };
10205
10206 struct base2
10207 {
10208 base2() {
10209 b3 = 42;
10210 }
10211 int b3;
10212 };
10213
10214 struct derived : base1, base2
10215 {
10216 int d;
10217 };
10218
10219 derived d1 {{1, 2}, {}, 4}; // full initialization
10220 derived d2 {{}, {}, 4}; // value-initialized bases
10221
10222 }
10223
10224 namespace test_general_range_based_for_loop
10225 {
10226
10227 struct iter
10228 {
10229 int i;
10230
10231 int& operator* ()
10232 {
10233 return i;
10234 }
10235
10236 const int& operator* () const
10237 {
10238 return i;
10239 }
10240
10241 iter& operator++()
10242 {
10243 ++i;
10244 return *this;
10245 }
10246 };
10247
10248 struct sentinel
10249 {
10250 int i;
10251 };
10252
10253 bool operator== (const iter& i, const sentinel& s)
10254 {
10255 return i.i == s.i;
10256 }
10257
10258 bool operator!= (const iter& i, const sentinel& s)
10259 {
10260 return !(i == s);
10261 }
10262
10263 struct range
10264 {
10265 iter begin() const
10266 {
10267 return {0};
10268 }
10269
10270 sentinel end() const
10271 {
10272 return {5};
10273 }
10274 };
10275
10276 void f()
10277 {
10278 range r {};
10279
10280 for (auto i : r)
10281 {
10282 [[maybe_unused]] auto v = i;
10283 }
10284 }
10285
10286 }
10287
10288 namespace test_lambda_capture_asterisk_this_by_value
10289 {
10290
10291 struct t
10292 {
10293 int i;
10294 int foo()
10295 {
10296 return [*this]()
10297 {
10298 return i;
10299 }();
10300 }
10301 };
10302
10303 }
10304
10305 namespace test_enum_class_construction
10306 {
10307
10308 enum class byte : unsigned char
10309 {};
10310
10311 byte foo {42};
10312
10313 }
10314
10315 namespace test_constexpr_if
10316 {
10317
10318 template <bool cond>
10319 int f ()
10320 {
10321 if constexpr(cond)
10322 {
10323 return 13;
10324 }
10325 else
10326 {
10327 return 42;
10328 }
10329 }
10330
10331 }
10332
10333 namespace test_selection_statement_with_initializer
10334 {
10335
10336 int f()
10337 {
10338 return 13;
10339 }
10340
10341 int f2()
10342 {
10343 if (auto i = f(); i > 0)
10344 {
10345 return 3;
10346 }
10347
10348 switch (auto i = f(); i + 4)
10349 {
10350 case 17:
10351 return 2;
10352
10353 default:
10354 return 1;
10355 }
10356 }
10357
10358 }
10359
10360 namespace test_template_argument_deduction_for_class_templates
10361 {
10362
10363 template <typename T1, typename T2>
10364 struct pair
10365 {
10366 pair (T1 p1, T2 p2)
10367 : m1 {p1},
10368 m2 {p2}
10369 {}
10370
10371 T1 m1;
10372 T2 m2;
10373 };
10374
10375 void f()
10376 {
10377 [[maybe_unused]] auto p = pair{13, 42u};
10378 }
10379
10380 }
10381
10382 namespace test_non_type_auto_template_parameters
10383 {
10384
10385 template <auto n>
10386 struct B
10387 {};
10388
10389 B<5> b1;
10390 B<'a'> b2;
10391
10392 }
10393
10394 namespace test_structured_bindings
10395 {
10396
10397 int arr[2] = { 1, 2 };
10398 std::pair<int, int> pr = { 1, 2 };
10399
10400 auto f1() -> int(&)[2]
10401 {
10402 return arr;
10403 }
10404
10405 auto f2() -> std::pair<int, int>&
10406 {
10407 return pr;
10408 }
10409
10410 struct S
10411 {
10412 int x1 : 2;
10413 volatile double y1;
10414 };
10415
10416 S f3()
10417 {
10418 return {};
10419 }
10420
10421 auto [ x1, y1 ] = f1();
10422 auto& [ xr1, yr1 ] = f1();
10423 auto [ x2, y2 ] = f2();
10424 auto& [ xr2, yr2 ] = f2();
10425 const auto [ x3, y3 ] = f3();
10426
10427 }
10428
10429 namespace test_exception_spec_type_system
10430 {
10431
10432 struct Good {};
10433 struct Bad {};
10434
10435 void g1() noexcept;
10436 void g2();
10437
10438 template<typename T>
10439 Bad
10440 f(T*, T*);
10441
10442 template<typename T1, typename T2>
10443 Good
10444 f(T1*, T2*);
10445
10446 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
10447
10448 }
10449
10450 namespace test_inline_variables
10451 {
10452
10453 template<class T> void f(T)
10454 {}
10455
10456 template<class T> inline T g(T)
10457 {
10458 return T{};
10459 }
10460
10461 template<> inline void f<>(int)
10462 {}
10463
10464 template<> int g<>(int)
10465 {
10466 return 5;
10467 }
10468
10469 }
10470
10471 } // namespace cxx17
10472
10473 #endif // __cplusplus < 201703L
10474
10475
10476
10477 _ACEOF
10478 if ac_fn_cxx_try_compile "$LINENO"
10479 then :
10480 ax_cv_cxx_compile_cxx17=yes
10481 else case e in #(
10482 e) ax_cv_cxx_compile_cxx17=no ;;
10483 esac
10484 fi
10485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10486 esac
10487 fi
10488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
10489 printf "%s\n" "$ax_cv_cxx_compile_cxx17" >&6; }
10490 if test x$ax_cv_cxx_compile_cxx17 = xyes; then
10491 ac_success=yes
10492 fi
10493
10494 if test x$ac_success = xno; then
10495 for alternative in ${ax_cxx_compile_alternatives}; do
10496 switch="-std=gnu++${alternative}"
10497 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | sed "$as_sed_sh"`
10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
10499 printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
10500 if eval test \${$cachevar+y}
10501 then :
10502 printf %s "(cached) " >&6
10503 else case e in #(
10504 e) ac_save_CXX="$CXX"
10505 CXX="$CXX $switch"
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10508
10509
10510 // If the compiler admits that it is not ready for C++11, why torture it?
10511 // Hopefully, this will speed up the test.
10512
10513 #ifndef __cplusplus
10514
10515 #error "This is not a C++ compiler"
10516
10517 #elif __cplusplus < 201103L
10518
10519 #error "This is not a C++11 compiler"
10520
10521 #else
10522
10523 namespace cxx11
10524 {
10525
10526 namespace test_static_assert
10527 {
10528
10529 template <typename T>
10530 struct check
10531 {
10532 static_assert(sizeof(int) <= sizeof(T), "not big enough");
10533 };
10534
10535 }
10536
10537 namespace test_final_override
10538 {
10539
10540 struct Base
10541 {
10542 virtual ~Base() {}
10543 virtual void f() {}
10544 };
10545
10546 struct Derived : public Base
10547 {
10548 virtual ~Derived() override {}
10549 virtual void f() override {}
10550 };
10551
10552 }
10553
10554 namespace test_double_right_angle_brackets
10555 {
10556
10557 template < typename T >
10558 struct check {};
10559
10560 typedef check<void> single_type;
10561 typedef check<check<void>> double_type;
10562 typedef check<check<check<void>>> triple_type;
10563 typedef check<check<check<check<void>>>> quadruple_type;
10564
10565 }
10566
10567 namespace test_decltype
10568 {
10569
10570 int
10571 f()
10572 {
10573 int a = 1;
10574 decltype(a) b = 2;
10575 return a + b;
10576 }
10577
10578 }
10579
10580 namespace test_type_deduction
10581 {
10582
10583 template < typename T1, typename T2 >
10584 struct is_same
10585 {
10586 static const bool value = false;
10587 };
10588
10589 template < typename T >
10590 struct is_same<T, T>
10591 {
10592 static const bool value = true;
10593 };
10594
10595 template < typename T1, typename T2 >
10596 auto
10597 add(T1 a1, T2 a2) -> decltype(a1 + a2)
10598 {
10599 return a1 + a2;
10600 }
10601
10602 int
10603 test(const int c, volatile int v)
10604 {
10605 static_assert(is_same<int, decltype(0)>::value == true, "");
10606 static_assert(is_same<int, decltype(c)>::value == false, "");
10607 static_assert(is_same<int, decltype(v)>::value == false, "");
10608 auto ac = c;
10609 auto av = v;
10610 auto sumi = ac + av + 'x';
10611 auto sumf = ac + av + 1.0;
10612 static_assert(is_same<int, decltype(ac)>::value == true, "");
10613 static_assert(is_same<int, decltype(av)>::value == true, "");
10614 static_assert(is_same<int, decltype(sumi)>::value == true, "");
10615 static_assert(is_same<int, decltype(sumf)>::value == false, "");
10616 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
10617 return (sumf > 0.0) ? sumi : add(c, v);
10618 }
10619
10620 }
10621
10622 namespace test_noexcept
10623 {
10624
10625 int f() { return 0; }
10626 int g() noexcept { return 0; }
10627
10628 static_assert(noexcept(f()) == false, "");
10629 static_assert(noexcept(g()) == true, "");
10630
10631 }
10632
10633 namespace test_constexpr
10634 {
10635
10636 template < typename CharT >
10637 unsigned long constexpr
10638 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
10639 {
10640 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
10641 }
10642
10643 template < typename CharT >
10644 unsigned long constexpr
10645 strlen_c(const CharT *const s) noexcept
10646 {
10647 return strlen_c_r(s, 0UL);
10648 }
10649
10650 static_assert(strlen_c("") == 0UL, "");
10651 static_assert(strlen_c("1") == 1UL, "");
10652 static_assert(strlen_c("example") == 7UL, "");
10653 static_assert(strlen_c("another\0example") == 7UL, "");
10654
10655 }
10656
10657 namespace test_rvalue_references
10658 {
10659
10660 template < int N >
10661 struct answer
10662 {
10663 static constexpr int value = N;
10664 };
10665
10666 answer<1> f(int&) { return answer<1>(); }
10667 answer<2> f(const int&) { return answer<2>(); }
10668 answer<3> f(int&&) { return answer<3>(); }
10669
10670 void
10671 test()
10672 {
10673 int i = 0;
10674 const int c = 0;
10675 static_assert(decltype(f(i))::value == 1, "");
10676 static_assert(decltype(f(c))::value == 2, "");
10677 static_assert(decltype(f(0))::value == 3, "");
10678 }
10679
10680 }
10681
10682 namespace test_uniform_initialization
10683 {
10684
10685 struct test
10686 {
10687 static const int zero {};
10688 static const int one {1};
10689 };
10690
10691 static_assert(test::zero == 0, "");
10692 static_assert(test::one == 1, "");
10693
10694 }
10695
10696 namespace test_lambdas
10697 {
10698
10699 void
10700 test1()
10701 {
10702 auto lambda1 = [](){};
10703 auto lambda2 = lambda1;
10704 lambda1();
10705 lambda2();
10706 }
10707
10708 int
10709 test2()
10710 {
10711 auto a = [](int i, int j){ return i + j; }(1, 2);
10712 auto b = []() -> int { return '0'; }();
10713 auto c = [=](){ return a + b; }();
10714 auto d = [&](){ return c; }();
10715 auto e = [a, &b](int x) mutable {
10716 const auto identity = [](int y){ return y; };
10717 for (auto i = 0; i < a; ++i)
10718 a += b--;
10719 return x + identity(a + b);
10720 }(0);
10721 return a + b + c + d + e;
10722 }
10723
10724 int
10725 test3()
10726 {
10727 const auto nullary = [](){ return 0; };
10728 const auto unary = [](int x){ return x; };
10729 using nullary_t = decltype(nullary);
10730 using unary_t = decltype(unary);
10731 const auto higher1st = [](nullary_t f){ return f(); };
10732 const auto higher2nd = [unary](nullary_t f1){
10733 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
10734 };
10735 return higher1st(nullary) + higher2nd(nullary)(unary);
10736 }
10737
10738 }
10739
10740 namespace test_variadic_templates
10741 {
10742
10743 template <int...>
10744 struct sum;
10745
10746 template <int N0, int... N1toN>
10747 struct sum<N0, N1toN...>
10748 {
10749 static constexpr auto value = N0 + sum<N1toN...>::value;
10750 };
10751
10752 template <>
10753 struct sum<>
10754 {
10755 static constexpr auto value = 0;
10756 };
10757
10758 static_assert(sum<>::value == 0, "");
10759 static_assert(sum<1>::value == 1, "");
10760 static_assert(sum<23>::value == 23, "");
10761 static_assert(sum<1, 2>::value == 3, "");
10762 static_assert(sum<5, 5, 11>::value == 21, "");
10763 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
10764
10765 }
10766
10767 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
10768 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
10769 // because of this.
10770 namespace test_template_alias_sfinae
10771 {
10772
10773 struct foo {};
10774
10775 template<typename T>
10776 using member = typename T::member_type;
10777
10778 template<typename T>
10779 void func(...) {}
10780
10781 template<typename T>
10782 void func(member<T>*) {}
10783
10784 void test();
10785
10786 void test() { func<foo>(0); }
10787
10788 }
10789
10790 } // namespace cxx11
10791
10792 #endif // __cplusplus >= 201103L
10793
10794
10795
10796
10797 // If the compiler admits that it is not ready for C++14, why torture it?
10798 // Hopefully, this will speed up the test.
10799
10800 #ifndef __cplusplus
10801
10802 #error "This is not a C++ compiler"
10803
10804 #elif __cplusplus < 201402L
10805
10806 #error "This is not a C++14 compiler"
10807
10808 #else
10809
10810 namespace cxx14
10811 {
10812
10813 namespace test_polymorphic_lambdas
10814 {
10815
10816 int
10817 test()
10818 {
10819 const auto lambda = [](auto&&... args){
10820 const auto istiny = [](auto x){
10821 return (sizeof(x) == 1UL) ? 1 : 0;
10822 };
10823 const int aretiny[] = { istiny(args)... };
10824 return aretiny[0];
10825 };
10826 return lambda(1, 1L, 1.0f, '1');
10827 }
10828
10829 }
10830
10831 namespace test_binary_literals
10832 {
10833
10834 constexpr auto ivii = 0b0000000000101010;
10835 static_assert(ivii == 42, "wrong value");
10836
10837 }
10838
10839 namespace test_generalized_constexpr
10840 {
10841
10842 template < typename CharT >
10843 constexpr unsigned long
10844 strlen_c(const CharT *const s) noexcept
10845 {
10846 auto length = 0UL;
10847 for (auto p = s; *p; ++p)
10848 ++length;
10849 return length;
10850 }
10851
10852 static_assert(strlen_c("") == 0UL, "");
10853 static_assert(strlen_c("x") == 1UL, "");
10854 static_assert(strlen_c("test") == 4UL, "");
10855 static_assert(strlen_c("another\0test") == 7UL, "");
10856
10857 }
10858
10859 namespace test_lambda_init_capture
10860 {
10861
10862 int
10863 test()
10864 {
10865 auto x = 0;
10866 const auto lambda1 = [a = x](int b){ return a + b; };
10867 const auto lambda2 = [a = lambda1(x)](){ return a; };
10868 return lambda2();
10869 }
10870
10871 }
10872
10873 namespace test_digit_separators
10874 {
10875
10876 constexpr auto ten_million = 100'000'000;
10877 static_assert(ten_million == 100000000, "");
10878
10879 }
10880
10881 namespace test_return_type_deduction
10882 {
10883
10884 auto f(int& x) { return x; }
10885 decltype(auto) g(int& x) { return x; }
10886
10887 template < typename T1, typename T2 >
10888 struct is_same
10889 {
10890 static constexpr auto value = false;
10891 };
10892
10893 template < typename T >
10894 struct is_same<T, T>
10895 {
10896 static constexpr auto value = true;
10897 };
10898
10899 int
10900 test()
10901 {
10902 auto x = 0;
10903 static_assert(is_same<int, decltype(f(x))>::value, "");
10904 static_assert(is_same<int&, decltype(g(x))>::value, "");
10905 return x;
10906 }
10907
10908 }
10909
10910 } // namespace cxx14
10911
10912 #endif // __cplusplus >= 201402L
10913
10914
10915
10916
10917 // If the compiler admits that it is not ready for C++17, why torture it?
10918 // Hopefully, this will speed up the test.
10919
10920 #ifndef __cplusplus
10921
10922 #error "This is not a C++ compiler"
10923
10924 #elif __cplusplus < 201703L
10925
10926 #error "This is not a C++17 compiler"
10927
10928 #else
10929
10930 #include <initializer_list>
10931 #include <utility>
10932 #include <type_traits>
10933
10934 namespace cxx17
10935 {
10936
10937 namespace test_constexpr_lambdas
10938 {
10939
10940 constexpr int foo = [](){return 42;}();
10941
10942 }
10943
10944 namespace test::nested_namespace::definitions
10945 {
10946
10947 }
10948
10949 namespace test_fold_expression
10950 {
10951
10952 template<typename... Args>
10953 int multiply(Args... args)
10954 {
10955 return (args * ... * 1);
10956 }
10957
10958 template<typename... Args>
10959 bool all(Args... args)
10960 {
10961 return (args && ...);
10962 }
10963
10964 }
10965
10966 namespace test_extended_static_assert
10967 {
10968
10969 static_assert (true);
10970
10971 }
10972
10973 namespace test_auto_brace_init_list
10974 {
10975
10976 auto foo = {5};
10977 auto bar {5};
10978
10979 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
10980 static_assert(std::is_same<int, decltype(bar)>::value);
10981 }
10982
10983 namespace test_typename_in_template_template_parameter
10984 {
10985
10986 template<template<typename> typename X> struct D;
10987
10988 }
10989
10990 namespace test_fallthrough_nodiscard_maybe_unused_attributes
10991 {
10992
10993 int f1()
10994 {
10995 return 42;
10996 }
10997
10998 [[nodiscard]] int f2()
10999 {
11000 [[maybe_unused]] auto unused = f1();
11001
11002 switch (f1())
11003 {
11004 case 17:
11005 f1();
11006 [[fallthrough]];
11007 case 42:
11008 f1();
11009 }
11010 return f1();
11011 }
11012
11013 }
11014
11015 namespace test_extended_aggregate_initialization
11016 {
11017
11018 struct base1
11019 {
11020 int b1, b2 = 42;
11021 };
11022
11023 struct base2
11024 {
11025 base2() {
11026 b3 = 42;
11027 }
11028 int b3;
11029 };
11030
11031 struct derived : base1, base2
11032 {
11033 int d;
11034 };
11035
11036 derived d1 {{1, 2}, {}, 4}; // full initialization
11037 derived d2 {{}, {}, 4}; // value-initialized bases
11038
11039 }
11040
11041 namespace test_general_range_based_for_loop
11042 {
11043
11044 struct iter
11045 {
11046 int i;
11047
11048 int& operator* ()
11049 {
11050 return i;
11051 }
11052
11053 const int& operator* () const
11054 {
11055 return i;
11056 }
11057
11058 iter& operator++()
11059 {
11060 ++i;
11061 return *this;
11062 }
11063 };
11064
11065 struct sentinel
11066 {
11067 int i;
11068 };
11069
11070 bool operator== (const iter& i, const sentinel& s)
11071 {
11072 return i.i == s.i;
11073 }
11074
11075 bool operator!= (const iter& i, const sentinel& s)
11076 {
11077 return !(i == s);
11078 }
11079
11080 struct range
11081 {
11082 iter begin() const
11083 {
11084 return {0};
11085 }
11086
11087 sentinel end() const
11088 {
11089 return {5};
11090 }
11091 };
11092
11093 void f()
11094 {
11095 range r {};
11096
11097 for (auto i : r)
11098 {
11099 [[maybe_unused]] auto v = i;
11100 }
11101 }
11102
11103 }
11104
11105 namespace test_lambda_capture_asterisk_this_by_value
11106 {
11107
11108 struct t
11109 {
11110 int i;
11111 int foo()
11112 {
11113 return [*this]()
11114 {
11115 return i;
11116 }();
11117 }
11118 };
11119
11120 }
11121
11122 namespace test_enum_class_construction
11123 {
11124
11125 enum class byte : unsigned char
11126 {};
11127
11128 byte foo {42};
11129
11130 }
11131
11132 namespace test_constexpr_if
11133 {
11134
11135 template <bool cond>
11136 int f ()
11137 {
11138 if constexpr(cond)
11139 {
11140 return 13;
11141 }
11142 else
11143 {
11144 return 42;
11145 }
11146 }
11147
11148 }
11149
11150 namespace test_selection_statement_with_initializer
11151 {
11152
11153 int f()
11154 {
11155 return 13;
11156 }
11157
11158 int f2()
11159 {
11160 if (auto i = f(); i > 0)
11161 {
11162 return 3;
11163 }
11164
11165 switch (auto i = f(); i + 4)
11166 {
11167 case 17:
11168 return 2;
11169
11170 default:
11171 return 1;
11172 }
11173 }
11174
11175 }
11176
11177 namespace test_template_argument_deduction_for_class_templates
11178 {
11179
11180 template <typename T1, typename T2>
11181 struct pair
11182 {
11183 pair (T1 p1, T2 p2)
11184 : m1 {p1},
11185 m2 {p2}
11186 {}
11187
11188 T1 m1;
11189 T2 m2;
11190 };
11191
11192 void f()
11193 {
11194 [[maybe_unused]] auto p = pair{13, 42u};
11195 }
11196
11197 }
11198
11199 namespace test_non_type_auto_template_parameters
11200 {
11201
11202 template <auto n>
11203 struct B
11204 {};
11205
11206 B<5> b1;
11207 B<'a'> b2;
11208
11209 }
11210
11211 namespace test_structured_bindings
11212 {
11213
11214 int arr[2] = { 1, 2 };
11215 std::pair<int, int> pr = { 1, 2 };
11216
11217 auto f1() -> int(&)[2]
11218 {
11219 return arr;
11220 }
11221
11222 auto f2() -> std::pair<int, int>&
11223 {
11224 return pr;
11225 }
11226
11227 struct S
11228 {
11229 int x1 : 2;
11230 volatile double y1;
11231 };
11232
11233 S f3()
11234 {
11235 return {};
11236 }
11237
11238 auto [ x1, y1 ] = f1();
11239 auto& [ xr1, yr1 ] = f1();
11240 auto [ x2, y2 ] = f2();
11241 auto& [ xr2, yr2 ] = f2();
11242 const auto [ x3, y3 ] = f3();
11243
11244 }
11245
11246 namespace test_exception_spec_type_system
11247 {
11248
11249 struct Good {};
11250 struct Bad {};
11251
11252 void g1() noexcept;
11253 void g2();
11254
11255 template<typename T>
11256 Bad
11257 f(T*, T*);
11258
11259 template<typename T1, typename T2>
11260 Good
11261 f(T1*, T2*);
11262
11263 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
11264
11265 }
11266
11267 namespace test_inline_variables
11268 {
11269
11270 template<class T> void f(T)
11271 {}
11272
11273 template<class T> inline T g(T)
11274 {
11275 return T{};
11276 }
11277
11278 template<> inline void f<>(int)
11279 {}
11280
11281 template<> int g<>(int)
11282 {
11283 return 5;
11284 }
11285
11286 }
11287
11288 } // namespace cxx17
11289
11290 #endif // __cplusplus < 201703L
11291
11292
11293
11294 _ACEOF
11295 if ac_fn_cxx_try_compile "$LINENO"
11296 then :
11297 eval $cachevar=yes
11298 else case e in #(
11299 e) eval $cachevar=no ;;
11300 esac
11301 fi
11302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11303 CXX="$ac_save_CXX" ;;
11304 esac
11305 fi
11306 eval ac_res=\$$cachevar
11307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11308 printf "%s\n" "$ac_res" >&6; }
11309 if eval test x\$$cachevar = xyes; then
11310 CXX="$CXX $switch"
11311 if test -n "$CXXCPP" ; then
11312 CXXCPP="$CXXCPP $switch"
11313 fi
11314 ac_success=yes
11315 break
11316 fi
11317 done
11318 fi
11319
11320 if test x$ac_success = xno; then
11321 for alternative in ${ax_cxx_compile_alternatives}; do
11322 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
11323 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | sed "$as_sed_sh"`
11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
11325 printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
11326 if eval test \${$cachevar+y}
11327 then :
11328 printf %s "(cached) " >&6
11329 else case e in #(
11330 e) ac_save_CXX="$CXX"
11331 CXX="$CXX $switch"
11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333 /* end confdefs.h. */
11334
11335
11336 // If the compiler admits that it is not ready for C++11, why torture it?
11337 // Hopefully, this will speed up the test.
11338
11339 #ifndef __cplusplus
11340
11341 #error "This is not a C++ compiler"
11342
11343 #elif __cplusplus < 201103L
11344
11345 #error "This is not a C++11 compiler"
11346
11347 #else
11348
11349 namespace cxx11
11350 {
11351
11352 namespace test_static_assert
11353 {
11354
11355 template <typename T>
11356 struct check
11357 {
11358 static_assert(sizeof(int) <= sizeof(T), "not big enough");
11359 };
11360
11361 }
11362
11363 namespace test_final_override
11364 {
11365
11366 struct Base
11367 {
11368 virtual ~Base() {}
11369 virtual void f() {}
11370 };
11371
11372 struct Derived : public Base
11373 {
11374 virtual ~Derived() override {}
11375 virtual void f() override {}
11376 };
11377
11378 }
11379
11380 namespace test_double_right_angle_brackets
11381 {
11382
11383 template < typename T >
11384 struct check {};
11385
11386 typedef check<void> single_type;
11387 typedef check<check<void>> double_type;
11388 typedef check<check<check<void>>> triple_type;
11389 typedef check<check<check<check<void>>>> quadruple_type;
11390
11391 }
11392
11393 namespace test_decltype
11394 {
11395
11396 int
11397 f()
11398 {
11399 int a = 1;
11400 decltype(a) b = 2;
11401 return a + b;
11402 }
11403
11404 }
11405
11406 namespace test_type_deduction
11407 {
11408
11409 template < typename T1, typename T2 >
11410 struct is_same
11411 {
11412 static const bool value = false;
11413 };
11414
11415 template < typename T >
11416 struct is_same<T, T>
11417 {
11418 static const bool value = true;
11419 };
11420
11421 template < typename T1, typename T2 >
11422 auto
11423 add(T1 a1, T2 a2) -> decltype(a1 + a2)
11424 {
11425 return a1 + a2;
11426 }
11427
11428 int
11429 test(const int c, volatile int v)
11430 {
11431 static_assert(is_same<int, decltype(0)>::value == true, "");
11432 static_assert(is_same<int, decltype(c)>::value == false, "");
11433 static_assert(is_same<int, decltype(v)>::value == false, "");
11434 auto ac = c;
11435 auto av = v;
11436 auto sumi = ac + av + 'x';
11437 auto sumf = ac + av + 1.0;
11438 static_assert(is_same<int, decltype(ac)>::value == true, "");
11439 static_assert(is_same<int, decltype(av)>::value == true, "");
11440 static_assert(is_same<int, decltype(sumi)>::value == true, "");
11441 static_assert(is_same<int, decltype(sumf)>::value == false, "");
11442 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
11443 return (sumf > 0.0) ? sumi : add(c, v);
11444 }
11445
11446 }
11447
11448 namespace test_noexcept
11449 {
11450
11451 int f() { return 0; }
11452 int g() noexcept { return 0; }
11453
11454 static_assert(noexcept(f()) == false, "");
11455 static_assert(noexcept(g()) == true, "");
11456
11457 }
11458
11459 namespace test_constexpr
11460 {
11461
11462 template < typename CharT >
11463 unsigned long constexpr
11464 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
11465 {
11466 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
11467 }
11468
11469 template < typename CharT >
11470 unsigned long constexpr
11471 strlen_c(const CharT *const s) noexcept
11472 {
11473 return strlen_c_r(s, 0UL);
11474 }
11475
11476 static_assert(strlen_c("") == 0UL, "");
11477 static_assert(strlen_c("1") == 1UL, "");
11478 static_assert(strlen_c("example") == 7UL, "");
11479 static_assert(strlen_c("another\0example") == 7UL, "");
11480
11481 }
11482
11483 namespace test_rvalue_references
11484 {
11485
11486 template < int N >
11487 struct answer
11488 {
11489 static constexpr int value = N;
11490 };
11491
11492 answer<1> f(int&) { return answer<1>(); }
11493 answer<2> f(const int&) { return answer<2>(); }
11494 answer<3> f(int&&) { return answer<3>(); }
11495
11496 void
11497 test()
11498 {
11499 int i = 0;
11500 const int c = 0;
11501 static_assert(decltype(f(i))::value == 1, "");
11502 static_assert(decltype(f(c))::value == 2, "");
11503 static_assert(decltype(f(0))::value == 3, "");
11504 }
11505
11506 }
11507
11508 namespace test_uniform_initialization
11509 {
11510
11511 struct test
11512 {
11513 static const int zero {};
11514 static const int one {1};
11515 };
11516
11517 static_assert(test::zero == 0, "");
11518 static_assert(test::one == 1, "");
11519
11520 }
11521
11522 namespace test_lambdas
11523 {
11524
11525 void
11526 test1()
11527 {
11528 auto lambda1 = [](){};
11529 auto lambda2 = lambda1;
11530 lambda1();
11531 lambda2();
11532 }
11533
11534 int
11535 test2()
11536 {
11537 auto a = [](int i, int j){ return i + j; }(1, 2);
11538 auto b = []() -> int { return '0'; }();
11539 auto c = [=](){ return a + b; }();
11540 auto d = [&](){ return c; }();
11541 auto e = [a, &b](int x) mutable {
11542 const auto identity = [](int y){ return y; };
11543 for (auto i = 0; i < a; ++i)
11544 a += b--;
11545 return x + identity(a + b);
11546 }(0);
11547 return a + b + c + d + e;
11548 }
11549
11550 int
11551 test3()
11552 {
11553 const auto nullary = [](){ return 0; };
11554 const auto unary = [](int x){ return x; };
11555 using nullary_t = decltype(nullary);
11556 using unary_t = decltype(unary);
11557 const auto higher1st = [](nullary_t f){ return f(); };
11558 const auto higher2nd = [unary](nullary_t f1){
11559 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
11560 };
11561 return higher1st(nullary) + higher2nd(nullary)(unary);
11562 }
11563
11564 }
11565
11566 namespace test_variadic_templates
11567 {
11568
11569 template <int...>
11570 struct sum;
11571
11572 template <int N0, int... N1toN>
11573 struct sum<N0, N1toN...>
11574 {
11575 static constexpr auto value = N0 + sum<N1toN...>::value;
11576 };
11577
11578 template <>
11579 struct sum<>
11580 {
11581 static constexpr auto value = 0;
11582 };
11583
11584 static_assert(sum<>::value == 0, "");
11585 static_assert(sum<1>::value == 1, "");
11586 static_assert(sum<23>::value == 23, "");
11587 static_assert(sum<1, 2>::value == 3, "");
11588 static_assert(sum<5, 5, 11>::value == 21, "");
11589 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
11590
11591 }
11592
11593 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
11594 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
11595 // because of this.
11596 namespace test_template_alias_sfinae
11597 {
11598
11599 struct foo {};
11600
11601 template<typename T>
11602 using member = typename T::member_type;
11603
11604 template<typename T>
11605 void func(...) {}
11606
11607 template<typename T>
11608 void func(member<T>*) {}
11609
11610 void test();
11611
11612 void test() { func<foo>(0); }
11613
11614 }
11615
11616 } // namespace cxx11
11617
11618 #endif // __cplusplus >= 201103L
11619
11620
11621
11622
11623 // If the compiler admits that it is not ready for C++14, why torture it?
11624 // Hopefully, this will speed up the test.
11625
11626 #ifndef __cplusplus
11627
11628 #error "This is not a C++ compiler"
11629
11630 #elif __cplusplus < 201402L
11631
11632 #error "This is not a C++14 compiler"
11633
11634 #else
11635
11636 namespace cxx14
11637 {
11638
11639 namespace test_polymorphic_lambdas
11640 {
11641
11642 int
11643 test()
11644 {
11645 const auto lambda = [](auto&&... args){
11646 const auto istiny = [](auto x){
11647 return (sizeof(x) == 1UL) ? 1 : 0;
11648 };
11649 const int aretiny[] = { istiny(args)... };
11650 return aretiny[0];
11651 };
11652 return lambda(1, 1L, 1.0f, '1');
11653 }
11654
11655 }
11656
11657 namespace test_binary_literals
11658 {
11659
11660 constexpr auto ivii = 0b0000000000101010;
11661 static_assert(ivii == 42, "wrong value");
11662
11663 }
11664
11665 namespace test_generalized_constexpr
11666 {
11667
11668 template < typename CharT >
11669 constexpr unsigned long
11670 strlen_c(const CharT *const s) noexcept
11671 {
11672 auto length = 0UL;
11673 for (auto p = s; *p; ++p)
11674 ++length;
11675 return length;
11676 }
11677
11678 static_assert(strlen_c("") == 0UL, "");
11679 static_assert(strlen_c("x") == 1UL, "");
11680 static_assert(strlen_c("test") == 4UL, "");
11681 static_assert(strlen_c("another\0test") == 7UL, "");
11682
11683 }
11684
11685 namespace test_lambda_init_capture
11686 {
11687
11688 int
11689 test()
11690 {
11691 auto x = 0;
11692 const auto lambda1 = [a = x](int b){ return a + b; };
11693 const auto lambda2 = [a = lambda1(x)](){ return a; };
11694 return lambda2();
11695 }
11696
11697 }
11698
11699 namespace test_digit_separators
11700 {
11701
11702 constexpr auto ten_million = 100'000'000;
11703 static_assert(ten_million == 100000000, "");
11704
11705 }
11706
11707 namespace test_return_type_deduction
11708 {
11709
11710 auto f(int& x) { return x; }
11711 decltype(auto) g(int& x) { return x; }
11712
11713 template < typename T1, typename T2 >
11714 struct is_same
11715 {
11716 static constexpr auto value = false;
11717 };
11718
11719 template < typename T >
11720 struct is_same<T, T>
11721 {
11722 static constexpr auto value = true;
11723 };
11724
11725 int
11726 test()
11727 {
11728 auto x = 0;
11729 static_assert(is_same<int, decltype(f(x))>::value, "");
11730 static_assert(is_same<int&, decltype(g(x))>::value, "");
11731 return x;
11732 }
11733
11734 }
11735
11736 } // namespace cxx14
11737
11738 #endif // __cplusplus >= 201402L
11739
11740
11741
11742
11743 // If the compiler admits that it is not ready for C++17, why torture it?
11744 // Hopefully, this will speed up the test.
11745
11746 #ifndef __cplusplus
11747
11748 #error "This is not a C++ compiler"
11749
11750 #elif __cplusplus < 201703L
11751
11752 #error "This is not a C++17 compiler"
11753
11754 #else
11755
11756 #include <initializer_list>
11757 #include <utility>
11758 #include <type_traits>
11759
11760 namespace cxx17
11761 {
11762
11763 namespace test_constexpr_lambdas
11764 {
11765
11766 constexpr int foo = [](){return 42;}();
11767
11768 }
11769
11770 namespace test::nested_namespace::definitions
11771 {
11772
11773 }
11774
11775 namespace test_fold_expression
11776 {
11777
11778 template<typename... Args>
11779 int multiply(Args... args)
11780 {
11781 return (args * ... * 1);
11782 }
11783
11784 template<typename... Args>
11785 bool all(Args... args)
11786 {
11787 return (args && ...);
11788 }
11789
11790 }
11791
11792 namespace test_extended_static_assert
11793 {
11794
11795 static_assert (true);
11796
11797 }
11798
11799 namespace test_auto_brace_init_list
11800 {
11801
11802 auto foo = {5};
11803 auto bar {5};
11804
11805 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
11806 static_assert(std::is_same<int, decltype(bar)>::value);
11807 }
11808
11809 namespace test_typename_in_template_template_parameter
11810 {
11811
11812 template<template<typename> typename X> struct D;
11813
11814 }
11815
11816 namespace test_fallthrough_nodiscard_maybe_unused_attributes
11817 {
11818
11819 int f1()
11820 {
11821 return 42;
11822 }
11823
11824 [[nodiscard]] int f2()
11825 {
11826 [[maybe_unused]] auto unused = f1();
11827
11828 switch (f1())
11829 {
11830 case 17:
11831 f1();
11832 [[fallthrough]];
11833 case 42:
11834 f1();
11835 }
11836 return f1();
11837 }
11838
11839 }
11840
11841 namespace test_extended_aggregate_initialization
11842 {
11843
11844 struct base1
11845 {
11846 int b1, b2 = 42;
11847 };
11848
11849 struct base2
11850 {
11851 base2() {
11852 b3 = 42;
11853 }
11854 int b3;
11855 };
11856
11857 struct derived : base1, base2
11858 {
11859 int d;
11860 };
11861
11862 derived d1 {{1, 2}, {}, 4}; // full initialization
11863 derived d2 {{}, {}, 4}; // value-initialized bases
11864
11865 }
11866
11867 namespace test_general_range_based_for_loop
11868 {
11869
11870 struct iter
11871 {
11872 int i;
11873
11874 int& operator* ()
11875 {
11876 return i;
11877 }
11878
11879 const int& operator* () const
11880 {
11881 return i;
11882 }
11883
11884 iter& operator++()
11885 {
11886 ++i;
11887 return *this;
11888 }
11889 };
11890
11891 struct sentinel
11892 {
11893 int i;
11894 };
11895
11896 bool operator== (const iter& i, const sentinel& s)
11897 {
11898 return i.i == s.i;
11899 }
11900
11901 bool operator!= (const iter& i, const sentinel& s)
11902 {
11903 return !(i == s);
11904 }
11905
11906 struct range
11907 {
11908 iter begin() const
11909 {
11910 return {0};
11911 }
11912
11913 sentinel end() const
11914 {
11915 return {5};
11916 }
11917 };
11918
11919 void f()
11920 {
11921 range r {};
11922
11923 for (auto i : r)
11924 {
11925 [[maybe_unused]] auto v = i;
11926 }
11927 }
11928
11929 }
11930
11931 namespace test_lambda_capture_asterisk_this_by_value
11932 {
11933
11934 struct t
11935 {
11936 int i;
11937 int foo()
11938 {
11939 return [*this]()
11940 {
11941 return i;
11942 }();
11943 }
11944 };
11945
11946 }
11947
11948 namespace test_enum_class_construction
11949 {
11950
11951 enum class byte : unsigned char
11952 {};
11953
11954 byte foo {42};
11955
11956 }
11957
11958 namespace test_constexpr_if
11959 {
11960
11961 template <bool cond>
11962 int f ()
11963 {
11964 if constexpr(cond)
11965 {
11966 return 13;
11967 }
11968 else
11969 {
11970 return 42;
11971 }
11972 }
11973
11974 }
11975
11976 namespace test_selection_statement_with_initializer
11977 {
11978
11979 int f()
11980 {
11981 return 13;
11982 }
11983
11984 int f2()
11985 {
11986 if (auto i = f(); i > 0)
11987 {
11988 return 3;
11989 }
11990
11991 switch (auto i = f(); i + 4)
11992 {
11993 case 17:
11994 return 2;
11995
11996 default:
11997 return 1;
11998 }
11999 }
12000
12001 }
12002
12003 namespace test_template_argument_deduction_for_class_templates
12004 {
12005
12006 template <typename T1, typename T2>
12007 struct pair
12008 {
12009 pair (T1 p1, T2 p2)
12010 : m1 {p1},
12011 m2 {p2}
12012 {}
12013
12014 T1 m1;
12015 T2 m2;
12016 };
12017
12018 void f()
12019 {
12020 [[maybe_unused]] auto p = pair{13, 42u};
12021 }
12022
12023 }
12024
12025 namespace test_non_type_auto_template_parameters
12026 {
12027
12028 template <auto n>
12029 struct B
12030 {};
12031
12032 B<5> b1;
12033 B<'a'> b2;
12034
12035 }
12036
12037 namespace test_structured_bindings
12038 {
12039
12040 int arr[2] = { 1, 2 };
12041 std::pair<int, int> pr = { 1, 2 };
12042
12043 auto f1() -> int(&)[2]
12044 {
12045 return arr;
12046 }
12047
12048 auto f2() -> std::pair<int, int>&
12049 {
12050 return pr;
12051 }
12052
12053 struct S
12054 {
12055 int x1 : 2;
12056 volatile double y1;
12057 };
12058
12059 S f3()
12060 {
12061 return {};
12062 }
12063
12064 auto [ x1, y1 ] = f1();
12065 auto& [ xr1, yr1 ] = f1();
12066 auto [ x2, y2 ] = f2();
12067 auto& [ xr2, yr2 ] = f2();
12068 const auto [ x3, y3 ] = f3();
12069
12070 }
12071
12072 namespace test_exception_spec_type_system
12073 {
12074
12075 struct Good {};
12076 struct Bad {};
12077
12078 void g1() noexcept;
12079 void g2();
12080
12081 template<typename T>
12082 Bad
12083 f(T*, T*);
12084
12085 template<typename T1, typename T2>
12086 Good
12087 f(T1*, T2*);
12088
12089 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
12090
12091 }
12092
12093 namespace test_inline_variables
12094 {
12095
12096 template<class T> void f(T)
12097 {}
12098
12099 template<class T> inline T g(T)
12100 {
12101 return T{};
12102 }
12103
12104 template<> inline void f<>(int)
12105 {}
12106
12107 template<> int g<>(int)
12108 {
12109 return 5;
12110 }
12111
12112 }
12113
12114 } // namespace cxx17
12115
12116 #endif // __cplusplus < 201703L
12117
12118
12119
12120 _ACEOF
12121 if ac_fn_cxx_try_compile "$LINENO"
12122 then :
12123 eval $cachevar=yes
12124 else case e in #(
12125 e) eval $cachevar=no ;;
12126 esac
12127 fi
12128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12129 CXX="$ac_save_CXX" ;;
12130 esac
12131 fi
12132 eval ac_res=\$$cachevar
12133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12134 printf "%s\n" "$ac_res" >&6; }
12135 if eval test x\$$cachevar = xyes; then
12136 CXX="$CXX $switch"
12137 if test -n "$CXXCPP" ; then
12138 CXXCPP="$CXXCPP $switch"
12139 fi
12140 ac_success=yes
12141 break
12142 fi
12143 done
12144 if test x$ac_success = xyes; then
12145 break
12146 fi
12147 done
12148 fi
12149 ac_ext=c
12150 ac_cpp='$CPP $CPPFLAGS'
12151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12154
12155 if test x$ax_cxx_compile_cxx17_required = xtrue; then
12156 if test x$ac_success = xno; then
12157 as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
12158 fi
12159 fi
12160 if test x$ac_success = xno; then
12161 HAVE_CXX17=0
12162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
12163 printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;}
12164 else
12165 HAVE_CXX17=1
12166
12167 printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h
12168
12169 fi
12170
12171
12172
12173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12174 printf %s "checking for grep that handles long lines and -e... " >&6; }
12175 if test ${ac_cv_path_GREP+y}
12176 then :
12177 printf %s "(cached) " >&6
12178 else case e in #(
12179 e) if test -z "$GREP"; then
12180 ac_path_GREP_found=false
12181 # Loop through the user's path and test for each of PROGNAME-LIST
12182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12184 do
12185 IFS=$as_save_IFS
12186 case $as_dir in #(((
12187 '') as_dir=./ ;;
12188 */) ;;
12189 *) as_dir=$as_dir/ ;;
12190 esac
12191 for ac_prog in grep ggrep
12192 do
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
12195 as_fn_executable_p "$ac_path_GREP" || continue
12196 # Check for GNU ac_path_GREP and select it if it is found.
12197 # Check for GNU $ac_path_GREP
12198 case `"$ac_path_GREP" --version 2>&1` in #(
12199 *GNU*)
12200 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12201 #(
12202 *)
12203 ac_count=0
12204 printf %s 0123456789 >"conftest.in"
12205 while :
12206 do
12207 cat "conftest.in" "conftest.in" >"conftest.tmp"
12208 mv "conftest.tmp" "conftest.in"
12209 cp "conftest.in" "conftest.nl"
12210 printf "%s\n" 'GREP' >> "conftest.nl"
12211 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12213 as_fn_arith $ac_count + 1 && ac_count=$as_val
12214 if test $ac_count -gt ${ac_path_GREP_max-0}; then
12215 # Best one so far, save it but keep looking for a better one
12216 ac_cv_path_GREP="$ac_path_GREP"
12217 ac_path_GREP_max=$ac_count
12218 fi
12219 # 10*(2^10) chars as input seems more than enough
12220 test $ac_count -gt 10 && break
12221 done
12222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12223 esac
12224
12225 $ac_path_GREP_found && break 3
12226 done
12227 done
12228 done
12229 IFS=$as_save_IFS
12230 if test -z "$ac_cv_path_GREP"; then
12231 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12232 fi
12233 else
12234 ac_cv_path_GREP=$GREP
12235 fi
12236 ;;
12237 esac
12238 fi
12239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12240 printf "%s\n" "$ac_cv_path_GREP" >&6; }
12241 GREP="$ac_cv_path_GREP"
12242
12243
12244 case `pwd` in
12245 *\ * | *\ *)
12246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12247 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12248 esac
12249
12250
12251
12252 macro_version='2.5.4'
12253 macro_revision='2.5.4'
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268 ltmain=$ac_aux_dir/ltmain.sh
12269
12270 # Backslashify metacharacters that are still active within
12271 # double-quoted strings.
12272 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12273
12274 # Same as above, but do not quote variable references.
12275 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12276
12277 # Sed substitution to delay expansion of an escaped shell variable in a
12278 # double_quote_subst'ed string.
12279 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12280
12281 # Sed substitution to delay expansion of an escaped single quote.
12282 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12283
12284 # Sed substitution to avoid accidental globbing in evaled expressions
12285 no_glob_subst='s/\*/\\\*/g'
12286
12287 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12288 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12289 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12290
12291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12292 printf %s "checking how to print strings... " >&6; }
12293 # Test print first, because it will be a builtin if present.
12294 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
12295 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12296 ECHO='print -r --'
12297 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12298 ECHO='printf %s\n'
12299 else
12300 # Use this function as a fallback that always works.
12301 func_fallback_echo ()
12302 {
12303 eval 'cat <<_LTECHO_EOF
12304 $1
12305 _LTECHO_EOF'
12306 }
12307 ECHO='func_fallback_echo'
12308 fi
12309
12310 # func_echo_all arg...
12311 # Invoke $ECHO with all args, space-separated.
12312 func_echo_all ()
12313 {
12314 $ECHO ""
12315 }
12316
12317 case $ECHO in
12318 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12319 printf "%s\n" "printf" >&6; } ;;
12320 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12321 printf "%s\n" "print -r" >&6; } ;;
12322 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12323 printf "%s\n" "cat" >&6; } ;;
12324 esac
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12340 printf %s "checking for a sed that does not truncate output... " >&6; }
12341 if test ${ac_cv_path_SED+y}
12342 then :
12343 printf %s "(cached) " >&6
12344 else case e in #(
12345 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12346 for ac_i in 1 2 3 4 5 6 7; do
12347 ac_script="$ac_script$as_nl$ac_script"
12348 done
12349 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12350 { ac_script=; unset ac_script;}
12351 if test -z "$SED"; then
12352 ac_path_SED_found=false
12353 # Loop through the user's path and test for each of PROGNAME-LIST
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $PATH
12356 do
12357 IFS=$as_save_IFS
12358 case $as_dir in #(((
12359 '') as_dir=./ ;;
12360 */) ;;
12361 *) as_dir=$as_dir/ ;;
12362 esac
12363 for ac_prog in sed gsed
12364 do
12365 for ac_exec_ext in '' $ac_executable_extensions; do
12366 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
12367 as_fn_executable_p "$ac_path_SED" || continue
12368 # Check for GNU ac_path_SED and select it if it is found.
12369 # Check for GNU $ac_path_SED
12370 case `"$ac_path_SED" --version 2>&1` in #(
12371 *GNU*)
12372 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12373 #(
12374 *)
12375 ac_count=0
12376 printf %s 0123456789 >"conftest.in"
12377 while :
12378 do
12379 cat "conftest.in" "conftest.in" >"conftest.tmp"
12380 mv "conftest.tmp" "conftest.in"
12381 cp "conftest.in" "conftest.nl"
12382 printf "%s\n" '' >> "conftest.nl"
12383 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12384 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12385 as_fn_arith $ac_count + 1 && ac_count=$as_val
12386 if test $ac_count -gt ${ac_path_SED_max-0}; then
12387 # Best one so far, save it but keep looking for a better one
12388 ac_cv_path_SED="$ac_path_SED"
12389 ac_path_SED_max=$ac_count
12390 fi
12391 # 10*(2^10) chars as input seems more than enough
12392 test $ac_count -gt 10 && break
12393 done
12394 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12395 esac
12396
12397 $ac_path_SED_found && break 3
12398 done
12399 done
12400 done
12401 IFS=$as_save_IFS
12402 if test -z "$ac_cv_path_SED"; then
12403 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12404 fi
12405 else
12406 ac_cv_path_SED=$SED
12407 fi
12408 ;;
12409 esac
12410 fi
12411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12412 printf "%s\n" "$ac_cv_path_SED" >&6; }
12413 SED="$ac_cv_path_SED"
12414 rm -f conftest.sed
12415
12416 test -z "$SED" && SED=sed
12417 Xsed="$SED -e 1s/^X//"
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12430 printf %s "checking for egrep... " >&6; }
12431 if test ${ac_cv_path_EGREP+y}
12432 then :
12433 printf %s "(cached) " >&6
12434 else case e in #(
12435 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12436 then ac_cv_path_EGREP="$GREP -E"
12437 else
12438 if test -z "$EGREP"; then
12439 ac_path_EGREP_found=false
12440 # Loop through the user's path and test for each of PROGNAME-LIST
12441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12443 do
12444 IFS=$as_save_IFS
12445 case $as_dir in #(((
12446 '') as_dir=./ ;;
12447 */) ;;
12448 *) as_dir=$as_dir/ ;;
12449 esac
12450 for ac_prog in egrep
12451 do
12452 for ac_exec_ext in '' $ac_executable_extensions; do
12453 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
12454 as_fn_executable_p "$ac_path_EGREP" || continue
12455 # Check for GNU ac_path_EGREP and select it if it is found.
12456 # Check for GNU $ac_path_EGREP
12457 case `"$ac_path_EGREP" --version 2>&1` in #(
12458 *GNU*)
12459 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12460 #(
12461 *)
12462 ac_count=0
12463 printf %s 0123456789 >"conftest.in"
12464 while :
12465 do
12466 cat "conftest.in" "conftest.in" >"conftest.tmp"
12467 mv "conftest.tmp" "conftest.in"
12468 cp "conftest.in" "conftest.nl"
12469 printf "%s\n" 'EGREP' >> "conftest.nl"
12470 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12472 as_fn_arith $ac_count + 1 && ac_count=$as_val
12473 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12474 # Best one so far, save it but keep looking for a better one
12475 ac_cv_path_EGREP="$ac_path_EGREP"
12476 ac_path_EGREP_max=$ac_count
12477 fi
12478 # 10*(2^10) chars as input seems more than enough
12479 test $ac_count -gt 10 && break
12480 done
12481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12482 esac
12483
12484 $ac_path_EGREP_found && break 3
12485 done
12486 done
12487 done
12488 IFS=$as_save_IFS
12489 if test -z "$ac_cv_path_EGREP"; then
12490 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12491 fi
12492 else
12493 ac_cv_path_EGREP=$EGREP
12494 fi
12495
12496 fi ;;
12497 esac
12498 fi
12499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12500 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
12501 EGREP="$ac_cv_path_EGREP"
12502
12503 EGREP_TRADITIONAL=$EGREP
12504 ac_cv_path_EGREP_TRADITIONAL=$EGREP
12505
12506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12507 printf %s "checking for fgrep... " >&6; }
12508 if test ${ac_cv_path_FGREP+y}
12509 then :
12510 printf %s "(cached) " >&6
12511 else case e in #(
12512 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12513 then ac_cv_path_FGREP="$GREP -F"
12514 else
12515 if test -z "$FGREP"; then
12516 ac_path_FGREP_found=false
12517 # Loop through the user's path and test for each of PROGNAME-LIST
12518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12520 do
12521 IFS=$as_save_IFS
12522 case $as_dir in #(((
12523 '') as_dir=./ ;;
12524 */) ;;
12525 *) as_dir=$as_dir/ ;;
12526 esac
12527 for ac_prog in fgrep
12528 do
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
12531 as_fn_executable_p "$ac_path_FGREP" || continue
12532 # Check for GNU ac_path_FGREP and select it if it is found.
12533 # Check for GNU $ac_path_FGREP
12534 case `"$ac_path_FGREP" --version 2>&1` in #(
12535 *GNU*)
12536 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12537 #(
12538 *)
12539 ac_count=0
12540 printf %s 0123456789 >"conftest.in"
12541 while :
12542 do
12543 cat "conftest.in" "conftest.in" >"conftest.tmp"
12544 mv "conftest.tmp" "conftest.in"
12545 cp "conftest.in" "conftest.nl"
12546 printf "%s\n" 'FGREP' >> "conftest.nl"
12547 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12549 as_fn_arith $ac_count + 1 && ac_count=$as_val
12550 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12551 # Best one so far, save it but keep looking for a better one
12552 ac_cv_path_FGREP="$ac_path_FGREP"
12553 ac_path_FGREP_max=$ac_count
12554 fi
12555 # 10*(2^10) chars as input seems more than enough
12556 test $ac_count -gt 10 && break
12557 done
12558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12559 esac
12560
12561 $ac_path_FGREP_found && break 3
12562 done
12563 done
12564 done
12565 IFS=$as_save_IFS
12566 if test -z "$ac_cv_path_FGREP"; then
12567 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12568 fi
12569 else
12570 ac_cv_path_FGREP=$FGREP
12571 fi
12572
12573 fi ;;
12574 esac
12575 fi
12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12577 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
12578 FGREP="$ac_cv_path_FGREP"
12579
12580
12581 test -z "$GREP" && GREP=grep
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601 # Check whether --with-gnu-ld was given.
12602 if test ${with_gnu_ld+y}
12603 then :
12604 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12605 else case e in #(
12606 e) with_gnu_ld=no ;;
12607 esac
12608 fi
12609
12610 ac_prog=ld
12611 if test yes = "$GCC"; then
12612 # Check if gcc -print-prog-name=ld gives a path.
12613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12614 printf %s "checking for ld used by $CC... " >&6; }
12615 case $host in
12616 *-*-mingw* | *-*-windows*)
12617 # gcc leaves a trailing carriage return, which upsets mingw
12618 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12619 *)
12620 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12621 esac
12622 case $ac_prog in
12623 # Accept absolute paths.
12624 [\\/]* | ?:[\\/]*)
12625 re_direlt='/[^/][^/]*/\.\./'
12626 # Canonicalize the pathname of ld
12627 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12628 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12629 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12630 done
12631 test -z "$LD" && LD=$ac_prog
12632 ;;
12633 "")
12634 # If it fails, then pretend we aren't using GCC.
12635 ac_prog=ld
12636 ;;
12637 *)
12638 # If it is relative, then search for the first ld in PATH.
12639 with_gnu_ld=unknown
12640 ;;
12641 esac
12642 elif test yes = "$with_gnu_ld"; then
12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12644 printf %s "checking for GNU ld... " >&6; }
12645 else
12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12647 printf %s "checking for non-GNU ld... " >&6; }
12648 fi
12649 if test ${lt_cv_path_LD+y}
12650 then :
12651 printf %s "(cached) " >&6
12652 else case e in #(
12653 e) if test -z "$LD"; then
12654 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12655 for ac_dir in $PATH; do
12656 IFS=$lt_save_ifs
12657 test -z "$ac_dir" && ac_dir=.
12658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12659 lt_cv_path_LD=$ac_dir/$ac_prog
12660 # Check to see if the program is GNU ld. I'd rather use --version,
12661 # but apparently some variants of GNU ld only accept -v.
12662 # Break only if it was the GNU/non-GNU ld that we prefer.
12663 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12664 *GNU* | *'with BFD'*)
12665 test no != "$with_gnu_ld" && break
12666 ;;
12667 *)
12668 test yes != "$with_gnu_ld" && break
12669 ;;
12670 esac
12671 fi
12672 done
12673 IFS=$lt_save_ifs
12674 else
12675 lt_cv_path_LD=$LD # Let the user override the test with a path.
12676 fi ;;
12677 esac
12678 fi
12679
12680 LD=$lt_cv_path_LD
12681 if test -n "$LD"; then
12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12683 printf "%s\n" "$LD" >&6; }
12684 else
12685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 printf "%s\n" "no" >&6; }
12687 fi
12688 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12690 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
12691 if test ${lt_cv_prog_gnu_ld+y}
12692 then :
12693 printf %s "(cached) " >&6
12694 else case e in #(
12695 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
12696 case `$LD -v 2>&1 </dev/null` in
12697 *GNU* | *'with BFD'*)
12698 lt_cv_prog_gnu_ld=yes
12699 ;;
12700 *)
12701 lt_cv_prog_gnu_ld=no
12702 ;;
12703 esac ;;
12704 esac
12705 fi
12706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12707 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
12708 with_gnu_ld=$lt_cv_prog_gnu_ld
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12719 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12720 if test ${lt_cv_path_NM+y}
12721 then :
12722 printf %s "(cached) " >&6
12723 else case e in #(
12724 e) if test -n "$NM"; then
12725 # Let the user override the test.
12726 lt_cv_path_NM=$NM
12727 else
12728 lt_nm_to_check=${ac_tool_prefix}nm
12729 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12730 lt_nm_to_check="$lt_nm_to_check nm"
12731 fi
12732 for lt_tmp_nm in $lt_nm_to_check; do
12733 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12734 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12735 IFS=$lt_save_ifs
12736 test -z "$ac_dir" && ac_dir=.
12737 tmp_nm=$ac_dir/$lt_tmp_nm
12738 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12739 # Check to see if the nm accepts a BSD-compat flag.
12740 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12741 # nm: unknown option "B" ignored
12742 # Tru64's nm complains that /dev/null is an invalid object file
12743 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12744 case $build_os in
12745 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
12746 *) lt_bad_file=/dev/null ;;
12747 esac
12748 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
12749 *$lt_bad_file* | *'Invalid file or object type'*)
12750 lt_cv_path_NM="$tmp_nm -B"
12751 break 2
12752 ;;
12753 *)
12754 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
12755 */dev/null*)
12756 lt_cv_path_NM="$tmp_nm -p"
12757 break 2
12758 ;;
12759 *)
12760 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12761 continue # so that we can try to find one that supports BSD flags
12762 ;;
12763 esac
12764 ;;
12765 esac
12766 fi
12767 done
12768 IFS=$lt_save_ifs
12769 done
12770 : ${lt_cv_path_NM=no}
12771 fi ;;
12772 esac
12773 fi
12774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12775 printf "%s\n" "$lt_cv_path_NM" >&6; }
12776 if test no != "$lt_cv_path_NM"; then
12777 NM=$lt_cv_path_NM
12778 else
12779 # Didn't find any BSD compatible name lister, look for dumpbin.
12780 if test -n "$DUMPBIN"; then :
12781 # Let the user override the test.
12782 else
12783 if test -n "$ac_tool_prefix"; then
12784 for ac_prog in dumpbin "link -dump"
12785 do
12786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12789 printf %s "checking for $ac_word... " >&6; }
12790 if test ${ac_cv_prog_DUMPBIN+y}
12791 then :
12792 printf %s "(cached) " >&6
12793 else case e in #(
12794 e) if test -n "$DUMPBIN"; then
12795 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12796 else
12797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798 for as_dir in $PATH
12799 do
12800 IFS=$as_save_IFS
12801 case $as_dir in #(((
12802 '') as_dir=./ ;;
12803 */) ;;
12804 *) as_dir=$as_dir/ ;;
12805 esac
12806 for ac_exec_ext in '' $ac_executable_extensions; do
12807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12808 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12810 break 2
12811 fi
12812 done
12813 done
12814 IFS=$as_save_IFS
12815
12816 fi ;;
12817 esac
12818 fi
12819 DUMPBIN=$ac_cv_prog_DUMPBIN
12820 if test -n "$DUMPBIN"; then
12821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12822 printf "%s\n" "$DUMPBIN" >&6; }
12823 else
12824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825 printf "%s\n" "no" >&6; }
12826 fi
12827
12828
12829 test -n "$DUMPBIN" && break
12830 done
12831 fi
12832 if test -z "$DUMPBIN"; then
12833 ac_ct_DUMPBIN=$DUMPBIN
12834 for ac_prog in dumpbin "link -dump"
12835 do
12836 # Extract the first word of "$ac_prog", so it can be a program name with args.
12837 set dummy $ac_prog; ac_word=$2
12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 printf %s "checking for $ac_word... " >&6; }
12840 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
12841 then :
12842 printf %s "(cached) " >&6
12843 else case e in #(
12844 e) if test -n "$ac_ct_DUMPBIN"; then
12845 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12846 else
12847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12848 for as_dir in $PATH
12849 do
12850 IFS=$as_save_IFS
12851 case $as_dir in #(((
12852 '') as_dir=./ ;;
12853 */) ;;
12854 *) as_dir=$as_dir/ ;;
12855 esac
12856 for ac_exec_ext in '' $ac_executable_extensions; do
12857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12858 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12860 break 2
12861 fi
12862 done
12863 done
12864 IFS=$as_save_IFS
12865
12866 fi ;;
12867 esac
12868 fi
12869 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12870 if test -n "$ac_ct_DUMPBIN"; then
12871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12872 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
12873 else
12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 printf "%s\n" "no" >&6; }
12876 fi
12877
12878
12879 test -n "$ac_ct_DUMPBIN" && break
12880 done
12881
12882 if test "x$ac_ct_DUMPBIN" = x; then
12883 DUMPBIN=":"
12884 else
12885 case $cross_compiling:$ac_tool_warned in
12886 yes:)
12887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12888 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12889 ac_tool_warned=yes ;;
12890 esac
12891 DUMPBIN=$ac_ct_DUMPBIN
12892 fi
12893 fi
12894
12895 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12896 *COFF*)
12897 DUMPBIN="$DUMPBIN -symbols -headers"
12898 ;;
12899 *)
12900 DUMPBIN=:
12901 ;;
12902 esac
12903 fi
12904
12905 if test : != "$DUMPBIN"; then
12906 NM=$DUMPBIN
12907 fi
12908 fi
12909 test -z "$NM" && NM=nm
12910
12911
12912
12913
12914
12915
12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12917 printf %s "checking the name lister ($NM) interface... " >&6; }
12918 if test ${lt_cv_nm_interface+y}
12919 then :
12920 printf %s "(cached) " >&6
12921 else case e in #(
12922 e) lt_cv_nm_interface="BSD nm"
12923 echo "int some_variable = 0;" > conftest.$ac_ext
12924 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12925 (eval "$ac_compile" 2>conftest.err)
12926 cat conftest.err >&5
12927 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12928 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12929 cat conftest.err >&5
12930 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12931 cat conftest.out >&5
12932 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12933 lt_cv_nm_interface="MS dumpbin"
12934 fi
12935 rm -f conftest* ;;
12936 esac
12937 fi
12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12939 printf "%s\n" "$lt_cv_nm_interface" >&6; }
12940
12941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12942 printf %s "checking whether ln -s works... " >&6; }
12943 LN_S=$as_ln_s
12944 if test "$LN_S" = "ln -s"; then
12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12946 printf "%s\n" "yes" >&6; }
12947 else
12948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12949 printf "%s\n" "no, using $LN_S" >&6; }
12950 fi
12951
12952 # find the maximum length of command line arguments
12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12954 printf %s "checking the maximum length of command line arguments... " >&6; }
12955 if test ${lt_cv_sys_max_cmd_len+y}
12956 then :
12957 printf %s "(cached) " >&6
12958 else case e in #(
12959 e) i=0
12960 teststring=ABCD
12961
12962 case $build_os in
12963 msdosdjgpp*)
12964 # On DJGPP, this test can blow up pretty badly due to problems in libc
12965 # (any single argument exceeding 2000 bytes causes a buffer overrun
12966 # during glob expansion). Even if it were fixed, the result of this
12967 # check would be larger than it should be.
12968 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12969 ;;
12970
12971 gnu* | ironclad*)
12972 # Under GNU Hurd and Ironclad, this test is not required because there
12973 # is no limit to the length of command line arguments.
12974 # Libtool will interpret -1 as no limit whatsoever
12975 lt_cv_sys_max_cmd_len=-1;
12976 ;;
12977
12978 cygwin* | mingw* | windows* | cegcc*)
12979 # On Win9x/ME, this test blows up -- it succeeds, but takes
12980 # about 5 minutes as the teststring grows exponentially.
12981 # Worse, since 9x/ME are not pre-emptively multitasking,
12982 # you end up with a "frozen" computer, even though with patience
12983 # the test eventually succeeds (with a max line length of 256k).
12984 # Instead, let's just punt: use the minimum linelength reported by
12985 # all of the supported platforms: 8192 (on NT/2K/XP).
12986 lt_cv_sys_max_cmd_len=8192;
12987 ;;
12988
12989 mint*)
12990 # On MiNT this can take a long time and run out of memory.
12991 lt_cv_sys_max_cmd_len=8192;
12992 ;;
12993
12994 amigaos*)
12995 # On AmigaOS with pdksh, this test takes hours, literally.
12996 # So we just punt and use a minimum line length of 8192.
12997 lt_cv_sys_max_cmd_len=8192;
12998 ;;
12999
13000 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
13001 # This has been around since 386BSD, at least. Likely further.
13002 if test -x /sbin/sysctl; then
13003 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13004 elif test -x /usr/sbin/sysctl; then
13005 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13006 else
13007 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13008 fi
13009 # And add a safety zone
13010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13012 ;;
13013
13014 interix*)
13015 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13016 lt_cv_sys_max_cmd_len=196608
13017 ;;
13018
13019 os2*)
13020 # The test takes a long time on OS/2.
13021 lt_cv_sys_max_cmd_len=8192
13022 ;;
13023
13024 osf*)
13025 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13026 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13027 # nice to cause kernel panics so lets avoid the loop below.
13028 # First set a reasonable default.
13029 lt_cv_sys_max_cmd_len=16384
13030 #
13031 if test -x /sbin/sysconfig; then
13032 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13033 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13034 esac
13035 fi
13036 ;;
13037 sco3.2v5*)
13038 lt_cv_sys_max_cmd_len=102400
13039 ;;
13040 sysv5* | sco5v6* | sysv4.2uw2*)
13041 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13042 if test -n "$kargmax"; then
13043 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
13044 else
13045 lt_cv_sys_max_cmd_len=32768
13046 fi
13047 ;;
13048 *)
13049 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13050 if test -n "$lt_cv_sys_max_cmd_len" && \
13051 test undefined != "$lt_cv_sys_max_cmd_len"; then
13052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13054 else
13055 # Make teststring a little bigger before we do anything with it.
13056 # a 1K string should be a reasonable start.
13057 for i in 1 2 3 4 5 6 7 8; do
13058 teststring=$teststring$teststring
13059 done
13060 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13061 # If test is not a shell built-in, we'll probably end up computing a
13062 # maximum length that is only half of the actual maximum length, but
13063 # we can't tell.
13064 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
13065 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13066 test 17 != "$i" # 1/2 MB should be enough
13067 do
13068 i=`expr $i + 1`
13069 teststring=$teststring$teststring
13070 done
13071 # Only check the string length outside the loop.
13072 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13073 teststring=
13074 # Add a significant safety factor because C++ compilers can tack on
13075 # massive amounts of additional arguments before passing them to the
13076 # linker. It appears as though 1/2 is a usable value.
13077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13078 fi
13079 ;;
13080 esac
13081 ;;
13082 esac
13083 fi
13084
13085 if test -n "$lt_cv_sys_max_cmd_len"; then
13086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13087 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
13088 else
13089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
13090 printf "%s\n" "none" >&6; }
13091 fi
13092 max_cmd_len=$lt_cv_sys_max_cmd_len
13093
13094
13095
13096
13097
13098
13099 : ${CP="cp -f"}
13100 : ${MV="mv -f"}
13101 : ${RM="rm -f"}
13102
13103 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13104 lt_unset=unset
13105 else
13106 lt_unset=false
13107 fi
13108
13109
13110
13111
13112
13113 # test EBCDIC or ASCII
13114 case `echo X|tr X '\101'` in
13115 A) # ASCII based system
13116 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13117 lt_SP2NL='tr \040 \012'
13118 lt_NL2SP='tr \015\012 \040\040'
13119 ;;
13120 *) # EBCDIC based system
13121 lt_SP2NL='tr \100 \n'
13122 lt_NL2SP='tr \r\n \100\100'
13123 ;;
13124 esac
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
13135 printf %s "checking how to convert $build file names to $host format... " >&6; }
13136 if test ${lt_cv_to_host_file_cmd+y}
13137 then :
13138 printf %s "(cached) " >&6
13139 else case e in #(
13140 e) case $host in
13141 *-*-mingw* )
13142 case $build in
13143 *-*-mingw* | *-*-windows* ) # actually msys
13144 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
13145 ;;
13146 *-*-cygwin* )
13147 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
13148 ;;
13149 * ) # otherwise, assume *nix
13150 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
13151 ;;
13152 esac
13153 ;;
13154 *-*-cygwin* )
13155 case $build in
13156 *-*-mingw* | *-*-windows* ) # actually msys
13157 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
13158 ;;
13159 *-*-cygwin* )
13160 lt_cv_to_host_file_cmd=func_convert_file_noop
13161 ;;
13162 * ) # otherwise, assume *nix
13163 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
13164 ;;
13165 esac
13166 ;;
13167 * ) # unhandled hosts (and "normal" native builds)
13168 lt_cv_to_host_file_cmd=func_convert_file_noop
13169 ;;
13170 esac
13171 ;;
13172 esac
13173 fi
13174
13175 to_host_file_cmd=$lt_cv_to_host_file_cmd
13176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
13177 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
13178
13179
13180
13181
13182
13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
13184 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
13185 if test ${lt_cv_to_tool_file_cmd+y}
13186 then :
13187 printf %s "(cached) " >&6
13188 else case e in #(
13189 e) #assume ordinary cross tools, or native build.
13190 lt_cv_to_tool_file_cmd=func_convert_file_noop
13191 case $host in
13192 *-*-mingw* | *-*-windows* )
13193 case $build in
13194 *-*-mingw* | *-*-windows* ) # actually msys
13195 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
13196 ;;
13197 esac
13198 ;;
13199 esac
13200 ;;
13201 esac
13202 fi
13203
13204 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
13206 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
13207
13208
13209
13210
13211
13212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13213 printf %s "checking for $LD option to reload object files... " >&6; }
13214 if test ${lt_cv_ld_reload_flag+y}
13215 then :
13216 printf %s "(cached) " >&6
13217 else case e in #(
13218 e) lt_cv_ld_reload_flag='-r' ;;
13219 esac
13220 fi
13221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13222 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
13223 reload_flag=$lt_cv_ld_reload_flag
13224 case $reload_flag in
13225 "" | " "*) ;;
13226 *) reload_flag=" $reload_flag" ;;
13227 esac
13228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13229 case $host_os in
13230 cygwin* | mingw* | windows* | pw32* | cegcc*)
13231 if test yes != "$GCC"; then
13232 reload_cmds=false
13233 fi
13234 ;;
13235 darwin*)
13236 if test yes = "$GCC"; then
13237 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
13238 else
13239 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13240 fi
13241 ;;
13242 esac
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252 # Extract the first word of "file", so it can be a program name with args.
13253 set dummy file; ac_word=$2
13254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255 printf %s "checking for $ac_word... " >&6; }
13256 if test ${ac_cv_prog_FILECMD+y}
13257 then :
13258 printf %s "(cached) " >&6
13259 else case e in #(
13260 e) if test -n "$FILECMD"; then
13261 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
13262 else
13263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264 for as_dir in $PATH
13265 do
13266 IFS=$as_save_IFS
13267 case $as_dir in #(((
13268 '') as_dir=./ ;;
13269 */) ;;
13270 *) as_dir=$as_dir/ ;;
13271 esac
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13274 ac_cv_prog_FILECMD="file"
13275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13276 break 2
13277 fi
13278 done
13279 done
13280 IFS=$as_save_IFS
13281
13282 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
13283 fi ;;
13284 esac
13285 fi
13286 FILECMD=$ac_cv_prog_FILECMD
13287 if test -n "$FILECMD"; then
13288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
13289 printf "%s\n" "$FILECMD" >&6; }
13290 else
13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292 printf "%s\n" "no" >&6; }
13293 fi
13294
13295
13296
13297
13298
13299
13300
13301
13302 if test -n "$ac_tool_prefix"; then
13303 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13304 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306 printf %s "checking for $ac_word... " >&6; }
13307 if test ${ac_cv_prog_OBJDUMP+y}
13308 then :
13309 printf %s "(cached) " >&6
13310 else case e in #(
13311 e) if test -n "$OBJDUMP"; then
13312 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13313 else
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315 for as_dir in $PATH
13316 do
13317 IFS=$as_save_IFS
13318 case $as_dir in #(((
13319 '') as_dir=./ ;;
13320 */) ;;
13321 *) as_dir=$as_dir/ ;;
13322 esac
13323 for ac_exec_ext in '' $ac_executable_extensions; do
13324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13325 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13327 break 2
13328 fi
13329 done
13330 done
13331 IFS=$as_save_IFS
13332
13333 fi ;;
13334 esac
13335 fi
13336 OBJDUMP=$ac_cv_prog_OBJDUMP
13337 if test -n "$OBJDUMP"; then
13338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13339 printf "%s\n" "$OBJDUMP" >&6; }
13340 else
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 printf "%s\n" "no" >&6; }
13343 fi
13344
13345
13346 fi
13347 if test -z "$ac_cv_prog_OBJDUMP"; then
13348 ac_ct_OBJDUMP=$OBJDUMP
13349 # Extract the first word of "objdump", so it can be a program name with args.
13350 set dummy objdump; ac_word=$2
13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13352 printf %s "checking for $ac_word... " >&6; }
13353 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
13354 then :
13355 printf %s "(cached) " >&6
13356 else case e in #(
13357 e) if test -n "$ac_ct_OBJDUMP"; then
13358 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13359 else
13360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361 for as_dir in $PATH
13362 do
13363 IFS=$as_save_IFS
13364 case $as_dir in #(((
13365 '') as_dir=./ ;;
13366 */) ;;
13367 *) as_dir=$as_dir/ ;;
13368 esac
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13371 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13373 break 2
13374 fi
13375 done
13376 done
13377 IFS=$as_save_IFS
13378
13379 fi ;;
13380 esac
13381 fi
13382 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13383 if test -n "$ac_ct_OBJDUMP"; then
13384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13385 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
13386 else
13387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388 printf "%s\n" "no" >&6; }
13389 fi
13390
13391 if test "x$ac_ct_OBJDUMP" = x; then
13392 OBJDUMP="false"
13393 else
13394 case $cross_compiling:$ac_tool_warned in
13395 yes:)
13396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13397 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13398 ac_tool_warned=yes ;;
13399 esac
13400 OBJDUMP=$ac_ct_OBJDUMP
13401 fi
13402 else
13403 OBJDUMP="$ac_cv_prog_OBJDUMP"
13404 fi
13405
13406 test -z "$OBJDUMP" && OBJDUMP=objdump
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13417 printf %s "checking how to recognize dependent libraries... " >&6; }
13418 if test ${lt_cv_deplibs_check_method+y}
13419 then :
13420 printf %s "(cached) " >&6
13421 else case e in #(
13422 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
13423 lt_cv_file_magic_test_file=
13424 lt_cv_deplibs_check_method='unknown'
13425 # Need to set the preceding variable on all platforms that support
13426 # interlibrary dependencies.
13427 # 'none' -- dependencies not supported.
13428 # 'unknown' -- same as none, but documents that we really don't know.
13429 # 'pass_all' -- all dependencies passed with no checks.
13430 # 'file_magic [[regex]]' -- check by looking for files in library path
13431 # that responds to the $file_magic_cmd with a given extended regex.
13432 # If you have 'file' or equivalent on your system and you're not sure
13433 # whether 'pass_all' will *always* work, you probably want this one.
13434
13435 case $host_os in
13436 aix[4-9]*)
13437 lt_cv_deplibs_check_method=pass_all
13438 ;;
13439
13440 beos*)
13441 lt_cv_deplibs_check_method=pass_all
13442 ;;
13443
13444 bsdi[45]*)
13445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13446 lt_cv_file_magic_cmd='$FILECMD -L'
13447 lt_cv_file_magic_test_file=/shlib/libc.so
13448 ;;
13449
13450 cygwin*)
13451 # func_win32_libid is a shell function defined in ltmain.sh
13452 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13453 lt_cv_file_magic_cmd='func_win32_libid'
13454 ;;
13455
13456 mingw* | windows* | pw32*)
13457 # Base MSYS/MinGW do not provide the 'file' command needed by
13458 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13459 # unless we find 'file', for example because we are cross-compiling.
13460 if ( file / ) >/dev/null 2>&1; then
13461 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13462 lt_cv_file_magic_cmd='func_win32_libid'
13463 else
13464 # Keep this pattern in sync with the one in func_win32_libid.
13465 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
13466 lt_cv_file_magic_cmd='$OBJDUMP -f'
13467 fi
13468 ;;
13469
13470 cegcc*)
13471 # use the weaker test based on 'objdump'. See mingw*.
13472 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13473 lt_cv_file_magic_cmd='$OBJDUMP -f'
13474 ;;
13475
13476 darwin* | rhapsody*)
13477 lt_cv_deplibs_check_method=pass_all
13478 ;;
13479
13480 freebsd* | dragonfly* | midnightbsd*)
13481 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13482 case $host_cpu in
13483 i*86 )
13484 # Not sure whether the presence of OpenBSD here was a mistake.
13485 # Let's accept both of them until this is cleared up.
13486 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13487 lt_cv_file_magic_cmd=$FILECMD
13488 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13489 ;;
13490 esac
13491 else
13492 lt_cv_deplibs_check_method=pass_all
13493 fi
13494 ;;
13495
13496 haiku*)
13497 lt_cv_deplibs_check_method=pass_all
13498 ;;
13499
13500 hpux10.20* | hpux11*)
13501 lt_cv_file_magic_cmd=$FILECMD
13502 case $host_cpu in
13503 ia64*)
13504 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13505 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13506 ;;
13507 hppa*64*)
13508 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]'
13509 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13510 ;;
13511 *)
13512 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13513 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13514 ;;
13515 esac
13516 ;;
13517
13518 interix[3-9]*)
13519 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13521 ;;
13522
13523 irix5* | irix6* | nonstopux*)
13524 case $LD in
13525 *-32|*"-32 ") libmagic=32-bit;;
13526 *-n32|*"-n32 ") libmagic=N32;;
13527 *-64|*"-64 ") libmagic=64-bit;;
13528 *) libmagic=never-match;;
13529 esac
13530 lt_cv_deplibs_check_method=pass_all
13531 ;;
13532
13533 # This must be glibc/ELF.
13534 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13535 lt_cv_deplibs_check_method=pass_all
13536 ;;
13537
13538 *-mlibc)
13539 lt_cv_deplibs_check_method=pass_all
13540 ;;
13541
13542 netbsd* | netbsdelf*-gnu)
13543 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13544 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13545 else
13546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13547 fi
13548 ;;
13549
13550 newos6*)
13551 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13552 lt_cv_file_magic_cmd=$FILECMD
13553 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13554 ;;
13555
13556 *nto* | *qnx*)
13557 lt_cv_deplibs_check_method=pass_all
13558 ;;
13559
13560 openbsd*)
13561 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13563 else
13564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13565 fi
13566 ;;
13567
13568 osf3* | osf4* | osf5*)
13569 lt_cv_deplibs_check_method=pass_all
13570 ;;
13571
13572 rdos*)
13573 lt_cv_deplibs_check_method=pass_all
13574 ;;
13575
13576 serenity*)
13577 lt_cv_deplibs_check_method=pass_all
13578 ;;
13579
13580 solaris*)
13581 lt_cv_deplibs_check_method=pass_all
13582 ;;
13583
13584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13585 lt_cv_deplibs_check_method=pass_all
13586 ;;
13587
13588 sysv4 | sysv4.3*)
13589 case $host_vendor in
13590 motorola)
13591 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]'
13592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13593 ;;
13594 ncr)
13595 lt_cv_deplibs_check_method=pass_all
13596 ;;
13597 sequent)
13598 lt_cv_file_magic_cmd='/bin/file'
13599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13600 ;;
13601 sni)
13602 lt_cv_file_magic_cmd='/bin/file'
13603 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13604 lt_cv_file_magic_test_file=/lib/libc.so
13605 ;;
13606 siemens)
13607 lt_cv_deplibs_check_method=pass_all
13608 ;;
13609 pc)
13610 lt_cv_deplibs_check_method=pass_all
13611 ;;
13612 esac
13613 ;;
13614
13615 tpf*)
13616 lt_cv_deplibs_check_method=pass_all
13617 ;;
13618 os2*)
13619 lt_cv_deplibs_check_method=pass_all
13620 ;;
13621 esac
13622 ;;
13623 esac
13624 fi
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13626 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
13627
13628 file_magic_glob=
13629 want_nocaseglob=no
13630 if test "$build" = "$host"; then
13631 case $host_os in
13632 mingw* | windows* | pw32*)
13633 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13634 want_nocaseglob=yes
13635 else
13636 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13637 fi
13638 ;;
13639 esac
13640 fi
13641
13642 file_magic_cmd=$lt_cv_file_magic_cmd
13643 deplibs_check_method=$lt_cv_deplibs_check_method
13644 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667 if test -n "$ac_tool_prefix"; then
13668 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13669 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13671 printf %s "checking for $ac_word... " >&6; }
13672 if test ${ac_cv_prog_DLLTOOL+y}
13673 then :
13674 printf %s "(cached) " >&6
13675 else case e in #(
13676 e) if test -n "$DLLTOOL"; then
13677 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13678 else
13679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680 for as_dir in $PATH
13681 do
13682 IFS=$as_save_IFS
13683 case $as_dir in #(((
13684 '') as_dir=./ ;;
13685 */) ;;
13686 *) as_dir=$as_dir/ ;;
13687 esac
13688 for ac_exec_ext in '' $ac_executable_extensions; do
13689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13690 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13692 break 2
13693 fi
13694 done
13695 done
13696 IFS=$as_save_IFS
13697
13698 fi ;;
13699 esac
13700 fi
13701 DLLTOOL=$ac_cv_prog_DLLTOOL
13702 if test -n "$DLLTOOL"; then
13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13704 printf "%s\n" "$DLLTOOL" >&6; }
13705 else
13706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707 printf "%s\n" "no" >&6; }
13708 fi
13709
13710
13711 fi
13712 if test -z "$ac_cv_prog_DLLTOOL"; then
13713 ac_ct_DLLTOOL=$DLLTOOL
13714 # Extract the first word of "dlltool", so it can be a program name with args.
13715 set dummy dlltool; ac_word=$2
13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13717 printf %s "checking for $ac_word... " >&6; }
13718 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
13719 then :
13720 printf %s "(cached) " >&6
13721 else case e in #(
13722 e) if test -n "$ac_ct_DLLTOOL"; then
13723 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13724 else
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13727 do
13728 IFS=$as_save_IFS
13729 case $as_dir in #(((
13730 '') as_dir=./ ;;
13731 */) ;;
13732 *) as_dir=$as_dir/ ;;
13733 esac
13734 for ac_exec_ext in '' $ac_executable_extensions; do
13735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13736 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13738 break 2
13739 fi
13740 done
13741 done
13742 IFS=$as_save_IFS
13743
13744 fi ;;
13745 esac
13746 fi
13747 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13748 if test -n "$ac_ct_DLLTOOL"; then
13749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13750 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
13751 else
13752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753 printf "%s\n" "no" >&6; }
13754 fi
13755
13756 if test "x$ac_ct_DLLTOOL" = x; then
13757 DLLTOOL="false"
13758 else
13759 case $cross_compiling:$ac_tool_warned in
13760 yes:)
13761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13762 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13763 ac_tool_warned=yes ;;
13764 esac
13765 DLLTOOL=$ac_ct_DLLTOOL
13766 fi
13767 else
13768 DLLTOOL="$ac_cv_prog_DLLTOOL"
13769 fi
13770
13771 test -z "$DLLTOOL" && DLLTOOL=dlltool
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13783 printf %s "checking how to associate runtime and link libraries... " >&6; }
13784 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
13785 then :
13786 printf %s "(cached) " >&6
13787 else case e in #(
13788 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
13789
13790 case $host_os in
13791 cygwin* | mingw* | windows* | pw32* | cegcc*)
13792 # two different shell functions defined in ltmain.sh;
13793 # decide which one to use based on capabilities of $DLLTOOL
13794 case `$DLLTOOL --help 2>&1` in
13795 *--identify-strict*)
13796 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13797 ;;
13798 *)
13799 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13800 ;;
13801 esac
13802 ;;
13803 *)
13804 # fallback: assume linklib IS sharedlib
13805 lt_cv_sharedlib_from_linklib_cmd=$ECHO
13806 ;;
13807 esac
13808 ;;
13809 esac
13810 fi
13811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13812 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13813 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13814 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13815
13816
13817
13818
13819
13820
13821
13822 if test -n "$ac_tool_prefix"; then
13823 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13824 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13826 printf %s "checking for $ac_word... " >&6; }
13827 if test ${ac_cv_prog_RANLIB+y}
13828 then :
13829 printf %s "(cached) " >&6
13830 else case e in #(
13831 e) if test -n "$RANLIB"; then
13832 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13833 else
13834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13835 for as_dir in $PATH
13836 do
13837 IFS=$as_save_IFS
13838 case $as_dir in #(((
13839 '') as_dir=./ ;;
13840 */) ;;
13841 *) as_dir=$as_dir/ ;;
13842 esac
13843 for ac_exec_ext in '' $ac_executable_extensions; do
13844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13845 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13847 break 2
13848 fi
13849 done
13850 done
13851 IFS=$as_save_IFS
13852
13853 fi ;;
13854 esac
13855 fi
13856 RANLIB=$ac_cv_prog_RANLIB
13857 if test -n "$RANLIB"; then
13858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13859 printf "%s\n" "$RANLIB" >&6; }
13860 else
13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862 printf "%s\n" "no" >&6; }
13863 fi
13864
13865
13866 fi
13867 if test -z "$ac_cv_prog_RANLIB"; then
13868 ac_ct_RANLIB=$RANLIB
13869 # Extract the first word of "ranlib", so it can be a program name with args.
13870 set dummy ranlib; ac_word=$2
13871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13872 printf %s "checking for $ac_word... " >&6; }
13873 if test ${ac_cv_prog_ac_ct_RANLIB+y}
13874 then :
13875 printf %s "(cached) " >&6
13876 else case e in #(
13877 e) if test -n "$ac_ct_RANLIB"; then
13878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13879 else
13880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881 for as_dir in $PATH
13882 do
13883 IFS=$as_save_IFS
13884 case $as_dir in #(((
13885 '') as_dir=./ ;;
13886 */) ;;
13887 *) as_dir=$as_dir/ ;;
13888 esac
13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13891 ac_cv_prog_ac_ct_RANLIB="ranlib"
13892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13893 break 2
13894 fi
13895 done
13896 done
13897 IFS=$as_save_IFS
13898
13899 fi ;;
13900 esac
13901 fi
13902 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13903 if test -n "$ac_ct_RANLIB"; then
13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13905 printf "%s\n" "$ac_ct_RANLIB" >&6; }
13906 else
13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908 printf "%s\n" "no" >&6; }
13909 fi
13910
13911 if test "x$ac_ct_RANLIB" = x; then
13912 RANLIB=":"
13913 else
13914 case $cross_compiling:$ac_tool_warned in
13915 yes:)
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13917 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13918 ac_tool_warned=yes ;;
13919 esac
13920 RANLIB=$ac_ct_RANLIB
13921 fi
13922 else
13923 RANLIB="$ac_cv_prog_RANLIB"
13924 fi
13925
13926 if test -n "$ac_tool_prefix"; then
13927 for ac_prog in ar
13928 do
13929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13932 printf %s "checking for $ac_word... " >&6; }
13933 if test ${ac_cv_prog_AR+y}
13934 then :
13935 printf %s "(cached) " >&6
13936 else case e in #(
13937 e) if test -n "$AR"; then
13938 ac_cv_prog_AR="$AR" # Let the user override the test.
13939 else
13940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13941 for as_dir in $PATH
13942 do
13943 IFS=$as_save_IFS
13944 case $as_dir in #(((
13945 '') as_dir=./ ;;
13946 */) ;;
13947 *) as_dir=$as_dir/ ;;
13948 esac
13949 for ac_exec_ext in '' $ac_executable_extensions; do
13950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13951 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13953 break 2
13954 fi
13955 done
13956 done
13957 IFS=$as_save_IFS
13958
13959 fi ;;
13960 esac
13961 fi
13962 AR=$ac_cv_prog_AR
13963 if test -n "$AR"; then
13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13965 printf "%s\n" "$AR" >&6; }
13966 else
13967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13968 printf "%s\n" "no" >&6; }
13969 fi
13970
13971
13972 test -n "$AR" && break
13973 done
13974 fi
13975 if test -z "$AR"; then
13976 ac_ct_AR=$AR
13977 for ac_prog in ar
13978 do
13979 # Extract the first word of "$ac_prog", so it can be a program name with args.
13980 set dummy $ac_prog; ac_word=$2
13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13982 printf %s "checking for $ac_word... " >&6; }
13983 if test ${ac_cv_prog_ac_ct_AR+y}
13984 then :
13985 printf %s "(cached) " >&6
13986 else case e in #(
13987 e) if test -n "$ac_ct_AR"; then
13988 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13989 else
13990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13991 for as_dir in $PATH
13992 do
13993 IFS=$as_save_IFS
13994 case $as_dir in #(((
13995 '') as_dir=./ ;;
13996 */) ;;
13997 *) as_dir=$as_dir/ ;;
13998 esac
13999 for ac_exec_ext in '' $ac_executable_extensions; do
14000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14001 ac_cv_prog_ac_ct_AR="$ac_prog"
14002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14003 break 2
14004 fi
14005 done
14006 done
14007 IFS=$as_save_IFS
14008
14009 fi ;;
14010 esac
14011 fi
14012 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14013 if test -n "$ac_ct_AR"; then
14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14015 printf "%s\n" "$ac_ct_AR" >&6; }
14016 else
14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018 printf "%s\n" "no" >&6; }
14019 fi
14020
14021
14022 test -n "$ac_ct_AR" && break
14023 done
14024
14025 if test "x$ac_ct_AR" = x; then
14026 AR="false"
14027 else
14028 case $cross_compiling:$ac_tool_warned in
14029 yes:)
14030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14031 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14032 ac_tool_warned=yes ;;
14033 esac
14034 AR=$ac_ct_AR
14035 fi
14036 fi
14037
14038 : ${AR=ar}
14039
14040
14041
14042
14043
14044
14045 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
14046 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
14047 # higher priority because that's what people were doing historically (setting
14048 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
14049 # variable obsoleted/removed.
14050
14051 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
14052 lt_ar_flags=$AR_FLAGS
14053
14054
14055
14056
14057
14058
14059 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
14060 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
14061
14062
14063
14064
14065
14066
14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
14068 printf %s "checking for archiver @FILE support... " >&6; }
14069 if test ${lt_cv_ar_at_file+y}
14070 then :
14071 printf %s "(cached) " >&6
14072 else case e in #(
14073 e) lt_cv_ar_at_file=no
14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h. */
14076
14077 int
14078 main (void)
14079 {
14080
14081 ;
14082 return 0;
14083 }
14084 _ACEOF
14085 if ac_fn_c_try_compile "$LINENO"
14086 then :
14087 echo conftest.$ac_objext > conftest.lst
14088 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
14089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
14090 (eval $lt_ar_try) 2>&5
14091 ac_status=$?
14092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14093 test $ac_status = 0; }
14094 if test 0 -eq "$ac_status"; then
14095 # Ensure the archiver fails upon bogus file names.
14096 rm -f conftest.$ac_objext libconftest.a
14097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
14098 (eval $lt_ar_try) 2>&5
14099 ac_status=$?
14100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14101 test $ac_status = 0; }
14102 if test 0 -ne "$ac_status"; then
14103 lt_cv_ar_at_file=@
14104 fi
14105 fi
14106 rm -f conftest.* libconftest.a
14107
14108 fi
14109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14110 ;;
14111 esac
14112 fi
14113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
14114 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
14115
14116 if test no = "$lt_cv_ar_at_file"; then
14117 archiver_list_spec=
14118 else
14119 archiver_list_spec=$lt_cv_ar_at_file
14120 fi
14121
14122
14123
14124
14125
14126
14127
14128 if test -n "$ac_tool_prefix"; then
14129 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14130 set dummy ${ac_tool_prefix}strip; ac_word=$2
14131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14132 printf %s "checking for $ac_word... " >&6; }
14133 if test ${ac_cv_prog_STRIP+y}
14134 then :
14135 printf %s "(cached) " >&6
14136 else case e in #(
14137 e) if test -n "$STRIP"; then
14138 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14139 else
14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 for as_dir in $PATH
14142 do
14143 IFS=$as_save_IFS
14144 case $as_dir in #(((
14145 '') as_dir=./ ;;
14146 */) ;;
14147 *) as_dir=$as_dir/ ;;
14148 esac
14149 for ac_exec_ext in '' $ac_executable_extensions; do
14150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14151 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14153 break 2
14154 fi
14155 done
14156 done
14157 IFS=$as_save_IFS
14158
14159 fi ;;
14160 esac
14161 fi
14162 STRIP=$ac_cv_prog_STRIP
14163 if test -n "$STRIP"; then
14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14165 printf "%s\n" "$STRIP" >&6; }
14166 else
14167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14168 printf "%s\n" "no" >&6; }
14169 fi
14170
14171
14172 fi
14173 if test -z "$ac_cv_prog_STRIP"; then
14174 ac_ct_STRIP=$STRIP
14175 # Extract the first word of "strip", so it can be a program name with args.
14176 set dummy strip; ac_word=$2
14177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14178 printf %s "checking for $ac_word... " >&6; }
14179 if test ${ac_cv_prog_ac_ct_STRIP+y}
14180 then :
14181 printf %s "(cached) " >&6
14182 else case e in #(
14183 e) if test -n "$ac_ct_STRIP"; then
14184 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14185 else
14186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187 for as_dir in $PATH
14188 do
14189 IFS=$as_save_IFS
14190 case $as_dir in #(((
14191 '') as_dir=./ ;;
14192 */) ;;
14193 *) as_dir=$as_dir/ ;;
14194 esac
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14197 ac_cv_prog_ac_ct_STRIP="strip"
14198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14199 break 2
14200 fi
14201 done
14202 done
14203 IFS=$as_save_IFS
14204
14205 fi ;;
14206 esac
14207 fi
14208 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14209 if test -n "$ac_ct_STRIP"; then
14210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14211 printf "%s\n" "$ac_ct_STRIP" >&6; }
14212 else
14213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14214 printf "%s\n" "no" >&6; }
14215 fi
14216
14217 if test "x$ac_ct_STRIP" = x; then
14218 STRIP=":"
14219 else
14220 case $cross_compiling:$ac_tool_warned in
14221 yes:)
14222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14223 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14224 ac_tool_warned=yes ;;
14225 esac
14226 STRIP=$ac_ct_STRIP
14227 fi
14228 else
14229 STRIP="$ac_cv_prog_STRIP"
14230 fi
14231
14232 test -z "$STRIP" && STRIP=:
14233
14234
14235
14236
14237
14238
14239
14240 test -z "$RANLIB" && RANLIB=:
14241
14242
14243
14244
14245
14246
14247 # Determine commands to create old-style static archives.
14248 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14249 old_postinstall_cmds='chmod 644 $oldlib'
14250 old_postuninstall_cmds=
14251
14252 if test -n "$RANLIB"; then
14253 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
14254 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
14255 fi
14256
14257 case $host_os in
14258 darwin*)
14259 lock_old_archive_extraction=yes ;;
14260 *)
14261 lock_old_archive_extraction=no ;;
14262 esac
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302 # If no C compiler was specified, use CC.
14303 LTCC=${LTCC-"$CC"}
14304
14305 # If no C compiler flags were specified, use CFLAGS.
14306 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14307
14308 # Allow CC to be a program name with arguments.
14309 compiler=$CC
14310
14311
14312 # Check for command to grab the raw symbol name followed by C symbol from nm.
14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14314 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
14315 if test ${lt_cv_sys_global_symbol_pipe+y}
14316 then :
14317 printf %s "(cached) " >&6
14318 else case e in #(
14319 e)
14320 # These are sane defaults that work on at least a few old systems.
14321 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14322
14323 # Character class describing NM global symbol codes.
14324 symcode='[BCDEGRST]'
14325
14326 # Regexp to match symbols that can be accessed directly from C.
14327 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14328
14329 # Define system-specific variables.
14330 case $host_os in
14331 aix*)
14332 symcode='[BCDT]'
14333 ;;
14334 cygwin* | mingw* | windows* | pw32* | cegcc*)
14335 symcode='[ABCDGISTW]'
14336 ;;
14337 hpux*)
14338 if test ia64 = "$host_cpu"; then
14339 symcode='[ABCDEGRST]'
14340 fi
14341 ;;
14342 irix* | nonstopux*)
14343 symcode='[BCDEGRST]'
14344 ;;
14345 osf*)
14346 symcode='[BCDEGQRST]'
14347 ;;
14348 solaris*)
14349 symcode='[BCDRT]'
14350 ;;
14351 sco3.2v5*)
14352 symcode='[DT]'
14353 ;;
14354 sysv4.2uw2*)
14355 symcode='[DT]'
14356 ;;
14357 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14358 symcode='[ABDT]'
14359 ;;
14360 sysv4)
14361 symcode='[DFNSTU]'
14362 ;;
14363 esac
14364
14365 # If we're using GNU nm, then use its standard symbol codes.
14366 case `$NM -V 2>&1` in
14367 *GNU* | *'with BFD'*)
14368 symcode='[ABCDGIRSTW]' ;;
14369 esac
14370
14371 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14372 # Gets list of data symbols to import.
14373 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
14374 # Adjust the below global symbol transforms to fixup imported variables.
14375 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
14376 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
14377 lt_c_name_lib_hook="\
14378 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
14379 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
14380 else
14381 # Disable hooks by default.
14382 lt_cv_sys_global_symbol_to_import=
14383 lt_cdecl_hook=
14384 lt_c_name_hook=
14385 lt_c_name_lib_hook=
14386 fi
14387
14388 # Transform an extracted symbol line into a proper C declaration.
14389 # Some systems (esp. on ia64) link data and code symbols differently,
14390 # so use this general approach.
14391 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
14392 $lt_cdecl_hook\
14393 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
14394 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
14395
14396 # Transform an extracted symbol line into symbol name and symbol address
14397 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
14398 $lt_c_name_hook\
14399 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
14400 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
14401
14402 # Transform an extracted symbol line into symbol name with lib prefix and
14403 # symbol address.
14404 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
14405 $lt_c_name_lib_hook\
14406 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
14407 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
14408 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
14409
14410 # Handle CRLF in mingw tool chain
14411 opt_cr=
14412 case $build_os in
14413 mingw* | windows*)
14414 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14415 ;;
14416 esac
14417
14418 # Try without a prefix underscore, then with it.
14419 for ac_symprfx in "" "_"; do
14420
14421 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14422 symxfrm="\\1 $ac_symprfx\\2 \\2"
14423
14424 # Write the raw and C identifiers.
14425 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14426 # Fake it for dumpbin and say T for any non-static function,
14427 # D for any global variable and I for any imported variable.
14428 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
14429 # which start with @ or ?.
14430 lt_cv_sys_global_symbol_pipe="$AWK '"\
14431 " {last_section=section; section=\$ 3};"\
14432 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
14433 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14434 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
14435 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
14436 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
14437 " \$ 0!~/External *\|/{next};"\
14438 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14439 " {if(hide[section]) next};"\
14440 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
14441 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
14442 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
14443 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
14444 " ' prfx=^$ac_symprfx"
14445 else
14446 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14447 fi
14448 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
14449
14450 # Check to see that the pipe works correctly.
14451 pipe_works=no
14452
14453 rm -f conftest*
14454 cat > conftest.$ac_ext <<_LT_EOF
14455 #ifdef __cplusplus
14456 extern "C" {
14457 #endif
14458 char nm_test_var;
14459 void nm_test_func(void);
14460 void nm_test_func(void){}
14461 #ifdef __cplusplus
14462 }
14463 #endif
14464 int main(void){nm_test_var='a';nm_test_func();return(0);}
14465 _LT_EOF
14466
14467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14468 (eval $ac_compile) 2>&5
14469 ac_status=$?
14470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14471 test $ac_status = 0; }; then
14472 # Now try to grab the symbols.
14473 nlist=conftest.nm
14474 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
14475 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
14476 # Try sorting and uniquifying the output.
14477 if sort "$nlist" | uniq > "$nlist"T; then
14478 mv -f "$nlist"T "$nlist"
14479 else
14480 rm -f "$nlist"T
14481 fi
14482
14483 # Make sure that we snagged all the symbols we need.
14484 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14485 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14486 cat <<_LT_EOF > conftest.$ac_ext
14487 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
14488 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
14489 /* DATA imports from DLLs on WIN32 can't be const, because runtime
14490 relocations are performed -- see ld's documentation on pseudo-relocs. */
14491 # define LT_DLSYM_CONST
14492 #elif defined __osf__
14493 /* This system does not cope well with relocations in const data. */
14494 # define LT_DLSYM_CONST
14495 #else
14496 # define LT_DLSYM_CONST const
14497 #endif
14498
14499 #ifdef __cplusplus
14500 extern "C" {
14501 #endif
14502
14503 _LT_EOF
14504 # Now generate the symbol file.
14505 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14506
14507 cat <<_LT_EOF >> conftest.$ac_ext
14508
14509 /* The mapping between symbol names and symbols. */
14510 LT_DLSYM_CONST struct {
14511 const char *name;
14512 void *address;
14513 }
14514 lt__PROGRAM__LTX_preloaded_symbols[] =
14515 {
14516 { "@PROGRAM@", (void *) 0 },
14517 _LT_EOF
14518 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14519 cat <<\_LT_EOF >> conftest.$ac_ext
14520 {0, (void *) 0}
14521 };
14522
14523 /* This works around a problem in FreeBSD linker */
14524 #ifdef FREEBSD_WORKAROUND
14525 static const void *lt_preloaded_setup() {
14526 return lt__PROGRAM__LTX_preloaded_symbols;
14527 }
14528 #endif
14529
14530 #ifdef __cplusplus
14531 }
14532 #endif
14533 _LT_EOF
14534 # Now try linking the two files.
14535 mv conftest.$ac_objext conftstm.$ac_objext
14536 lt_globsym_save_LIBS=$LIBS
14537 lt_globsym_save_CFLAGS=$CFLAGS
14538 LIBS=conftstm.$ac_objext
14539 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14541 (eval $ac_link) 2>&5
14542 ac_status=$?
14543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14544 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14545 pipe_works=yes
14546 fi
14547 LIBS=$lt_globsym_save_LIBS
14548 CFLAGS=$lt_globsym_save_CFLAGS
14549 else
14550 echo "cannot find nm_test_func in $nlist" >&5
14551 fi
14552 else
14553 echo "cannot find nm_test_var in $nlist" >&5
14554 fi
14555 else
14556 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14557 fi
14558 else
14559 echo "$progname: failed program was:" >&5
14560 cat conftest.$ac_ext >&5
14561 fi
14562 rm -rf conftest* conftst*
14563
14564 # Do not use the global_symbol_pipe unless it works.
14565 if test yes = "$pipe_works"; then
14566 break
14567 else
14568 lt_cv_sys_global_symbol_pipe=
14569 fi
14570 done
14571 ;;
14572 esac
14573 fi
14574
14575 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14576 lt_cv_sys_global_symbol_to_cdecl=
14577 fi
14578 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14580 printf "%s\n" "failed" >&6; }
14581 else
14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14583 printf "%s\n" "ok" >&6; }
14584 fi
14585
14586 # Response file support.
14587 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14588 nm_file_list_spec='@'
14589 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
14590 nm_file_list_spec='@'
14591 fi
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14630 printf %s "checking for sysroot... " >&6; }
14631
14632 # Check whether --with-sysroot was given.
14633 if test ${with_sysroot+y}
14634 then :
14635 withval=$with_sysroot;
14636 else case e in #(
14637 e) with_sysroot=no ;;
14638 esac
14639 fi
14640
14641
14642 lt_sysroot=
14643 case $with_sysroot in #(
14644 yes)
14645 if test yes = "$GCC"; then
14646 # Trim trailing / since we'll always append absolute paths and we want
14647 # to avoid //, if only for less confusing output for the user.
14648 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
14649 fi
14650 ;; #(
14651 /*)
14652 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
14653 ;; #(
14654 no|'')
14655 ;; #(
14656 *)
14657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14658 printf "%s\n" "$with_sysroot" >&6; }
14659 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14660 ;;
14661 esac
14662
14663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14664 printf "%s\n" "${lt_sysroot:-no}" >&6; }
14665
14666
14667
14668
14669
14670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14671 printf %s "checking for a working dd... " >&6; }
14672 if test ${ac_cv_path_lt_DD+y}
14673 then :
14674 printf %s "(cached) " >&6
14675 else case e in #(
14676 e) printf 0123456789abcdef0123456789abcdef >conftest.i
14677 cat conftest.i conftest.i >conftest2.i
14678 : ${lt_DD:=$DD}
14679 if test -z "$lt_DD"; then
14680 ac_path_lt_DD_found=false
14681 # Loop through the user's path and test for each of PROGNAME-LIST
14682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14683 for as_dir in $PATH
14684 do
14685 IFS=$as_save_IFS
14686 case $as_dir in #(((
14687 '') as_dir=./ ;;
14688 */) ;;
14689 *) as_dir=$as_dir/ ;;
14690 esac
14691 for ac_prog in dd
14692 do
14693 for ac_exec_ext in '' $ac_executable_extensions; do
14694 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
14695 as_fn_executable_p "$ac_path_lt_DD" || continue
14696 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14697 cmp -s conftest.i conftest.out \
14698 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14699 fi
14700 $ac_path_lt_DD_found && break 3
14701 done
14702 done
14703 done
14704 IFS=$as_save_IFS
14705 if test -z "$ac_cv_path_lt_DD"; then
14706 :
14707 fi
14708 else
14709 ac_cv_path_lt_DD=$lt_DD
14710 fi
14711
14712 rm -f conftest.i conftest2.i conftest.out ;;
14713 esac
14714 fi
14715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14716 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
14717
14718
14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14720 printf %s "checking how to truncate binary pipes... " >&6; }
14721 if test ${lt_cv_truncate_bin+y}
14722 then :
14723 printf %s "(cached) " >&6
14724 else case e in #(
14725 e) printf 0123456789abcdef0123456789abcdef >conftest.i
14726 cat conftest.i conftest.i >conftest2.i
14727 lt_cv_truncate_bin=
14728 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14729 cmp -s conftest.i conftest.out \
14730 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14731 fi
14732 rm -f conftest.i conftest2.i conftest.out
14733 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
14734 esac
14735 fi
14736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14737 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
14738
14739
14740
14741
14742
14743
14744
14745 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14746 func_cc_basename ()
14747 {
14748 for cc_temp in $*""; do
14749 case $cc_temp in
14750 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14751 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14752 \-*) ;;
14753 *) break;;
14754 esac
14755 done
14756 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14757 }
14758
14759 # Check whether --enable-libtool-lock was given.
14760 if test ${enable_libtool_lock+y}
14761 then :
14762 enableval=$enable_libtool_lock;
14763 fi
14764
14765 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14766
14767 # Some flags need to be propagated to the compiler or linker for good
14768 # libtool support.
14769 case $host in
14770 ia64-*-hpux*)
14771 # Find out what ABI is being produced by ac_compile, and set mode
14772 # options accordingly.
14773 echo 'int i;' > conftest.$ac_ext
14774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14775 (eval $ac_compile) 2>&5
14776 ac_status=$?
14777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14778 test $ac_status = 0; }; then
14779 case `$FILECMD conftest.$ac_objext` in
14780 *ELF-32*)
14781 HPUX_IA64_MODE=32
14782 ;;
14783 *ELF-64*)
14784 HPUX_IA64_MODE=64
14785 ;;
14786 esac
14787 fi
14788 rm -rf conftest*
14789 ;;
14790 *-*-irix6*)
14791 # Find out what ABI is being produced by ac_compile, and set linker
14792 # options accordingly.
14793 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14795 (eval $ac_compile) 2>&5
14796 ac_status=$?
14797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14798 test $ac_status = 0; }; then
14799 if test yes = "$lt_cv_prog_gnu_ld"; then
14800 case `$FILECMD conftest.$ac_objext` in
14801 *32-bit*)
14802 LD="${LD-ld} -melf32bsmip"
14803 ;;
14804 *N32*)
14805 LD="${LD-ld} -melf32bmipn32"
14806 ;;
14807 *64-bit*)
14808 LD="${LD-ld} -melf64bmip"
14809 ;;
14810 esac
14811 else
14812 case `$FILECMD conftest.$ac_objext` in
14813 *32-bit*)
14814 LD="${LD-ld} -32"
14815 ;;
14816 *N32*)
14817 LD="${LD-ld} -n32"
14818 ;;
14819 *64-bit*)
14820 LD="${LD-ld} -64"
14821 ;;
14822 esac
14823 fi
14824 fi
14825 rm -rf conftest*
14826 ;;
14827
14828 mips64*-*linux*)
14829 # Find out what ABI is being produced by ac_compile, and set linker
14830 # options accordingly.
14831 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14833 (eval $ac_compile) 2>&5
14834 ac_status=$?
14835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14836 test $ac_status = 0; }; then
14837 emul=elf
14838 case `$FILECMD conftest.$ac_objext` in
14839 *32-bit*)
14840 emul="${emul}32"
14841 ;;
14842 *64-bit*)
14843 emul="${emul}64"
14844 ;;
14845 esac
14846 case `$FILECMD conftest.$ac_objext` in
14847 *MSB*)
14848 emul="${emul}btsmip"
14849 ;;
14850 *LSB*)
14851 emul="${emul}ltsmip"
14852 ;;
14853 esac
14854 case `$FILECMD conftest.$ac_objext` in
14855 *N32*)
14856 emul="${emul}n32"
14857 ;;
14858 esac
14859 LD="${LD-ld} -m $emul"
14860 fi
14861 rm -rf conftest*
14862 ;;
14863
14864 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14865 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
14866 # Find out what ABI is being produced by ac_compile, and set linker
14867 # options accordingly. Note that the listed cases only cover the
14868 # situations where additional linker options are needed (such as when
14869 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14870 # vice versa); the common cases where no linker options are needed do
14871 # not appear in the list.
14872 echo 'int i;' > conftest.$ac_ext
14873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14874 (eval $ac_compile) 2>&5
14875 ac_status=$?
14876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14877 test $ac_status = 0; }; then
14878 case `$FILECMD conftest.o` in
14879 *32-bit*)
14880 case $host in
14881 x86_64-*kfreebsd*-gnu)
14882 LD="${LD-ld} -m elf_i386_fbsd"
14883 ;;
14884 x86_64-*linux*|x86_64-gnu*)
14885 case `$FILECMD conftest.o` in
14886 *x86-64*)
14887 LD="${LD-ld} -m elf32_x86_64"
14888 ;;
14889 *)
14890 LD="${LD-ld} -m elf_i386"
14891 ;;
14892 esac
14893 ;;
14894 powerpc64le-*linux*)
14895 LD="${LD-ld} -m elf32lppclinux"
14896 ;;
14897 powerpc64-*linux*)
14898 LD="${LD-ld} -m elf32ppclinux"
14899 ;;
14900 s390x-*linux*)
14901 LD="${LD-ld} -m elf_s390"
14902 ;;
14903 sparc64-*linux*)
14904 LD="${LD-ld} -m elf32_sparc"
14905 ;;
14906 esac
14907 ;;
14908 *64-bit*)
14909 case $host in
14910 x86_64-*kfreebsd*-gnu)
14911 LD="${LD-ld} -m elf_x86_64_fbsd"
14912 ;;
14913 x86_64-*linux*|x86_64-gnu*)
14914 LD="${LD-ld} -m elf_x86_64"
14915 ;;
14916 powerpcle-*linux*)
14917 LD="${LD-ld} -m elf64lppc"
14918 ;;
14919 powerpc-*linux*)
14920 LD="${LD-ld} -m elf64ppc"
14921 ;;
14922 s390*-*linux*|s390*-*tpf*)
14923 LD="${LD-ld} -m elf64_s390"
14924 ;;
14925 sparc*-*linux*)
14926 LD="${LD-ld} -m elf64_sparc"
14927 ;;
14928 esac
14929 ;;
14930 esac
14931 fi
14932 rm -rf conftest*
14933 ;;
14934
14935 *-*-sco3.2v5*)
14936 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14937 SAVE_CFLAGS=$CFLAGS
14938 CFLAGS="$CFLAGS -belf"
14939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14940 printf %s "checking whether the C compiler needs -belf... " >&6; }
14941 if test ${lt_cv_cc_needs_belf+y}
14942 then :
14943 printf %s "(cached) " >&6
14944 else case e in #(
14945 e) ac_ext=c
14946 ac_cpp='$CPP $CPPFLAGS'
14947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14950
14951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14952 /* end confdefs.h. */
14953
14954 int
14955 main (void)
14956 {
14957
14958 ;
14959 return 0;
14960 }
14961 _ACEOF
14962 if ac_fn_c_try_link "$LINENO"
14963 then :
14964 lt_cv_cc_needs_belf=yes
14965 else case e in #(
14966 e) lt_cv_cc_needs_belf=no ;;
14967 esac
14968 fi
14969 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14970 conftest$ac_exeext conftest.$ac_ext
14971 ac_ext=c
14972 ac_cpp='$CPP $CPPFLAGS'
14973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14976 ;;
14977 esac
14978 fi
14979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14980 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14981 if test yes != "$lt_cv_cc_needs_belf"; then
14982 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14983 CFLAGS=$SAVE_CFLAGS
14984 fi
14985 ;;
14986 *-*solaris*)
14987 # Find out what ABI is being produced by ac_compile, and set linker
14988 # options accordingly.
14989 echo 'int i;' > conftest.$ac_ext
14990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14991 (eval $ac_compile) 2>&5
14992 ac_status=$?
14993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14994 test $ac_status = 0; }; then
14995 case `$FILECMD conftest.o` in
14996 *64-bit*)
14997 case $lt_cv_prog_gnu_ld in
14998 yes*)
14999 case $host in
15000 i?86-*-solaris*|x86_64-*-solaris*)
15001 LD="${LD-ld} -m elf_x86_64"
15002 ;;
15003 sparc*-*-solaris*)
15004 LD="${LD-ld} -m elf64_sparc"
15005 ;;
15006 esac
15007 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
15008 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
15009 LD=${LD-ld}_sol2
15010 fi
15011 ;;
15012 *)
15013 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15014 LD="${LD-ld} -64"
15015 fi
15016 ;;
15017 esac
15018 ;;
15019 esac
15020 fi
15021 rm -rf conftest*
15022 ;;
15023 esac
15024
15025 need_locks=$enable_libtool_lock
15026
15027 if test -n "$ac_tool_prefix"; then
15028 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
15029 set dummy ${ac_tool_prefix}mt; ac_word=$2
15030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15031 printf %s "checking for $ac_word... " >&6; }
15032 if test ${ac_cv_prog_MANIFEST_TOOL+y}
15033 then :
15034 printf %s "(cached) " >&6
15035 else case e in #(
15036 e) if test -n "$MANIFEST_TOOL"; then
15037 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
15038 else
15039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15040 for as_dir in $PATH
15041 do
15042 IFS=$as_save_IFS
15043 case $as_dir in #(((
15044 '') as_dir=./ ;;
15045 */) ;;
15046 *) as_dir=$as_dir/ ;;
15047 esac
15048 for ac_exec_ext in '' $ac_executable_extensions; do
15049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15050 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
15051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15052 break 2
15053 fi
15054 done
15055 done
15056 IFS=$as_save_IFS
15057
15058 fi ;;
15059 esac
15060 fi
15061 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
15062 if test -n "$MANIFEST_TOOL"; then
15063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
15064 printf "%s\n" "$MANIFEST_TOOL" >&6; }
15065 else
15066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15067 printf "%s\n" "no" >&6; }
15068 fi
15069
15070
15071 fi
15072 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
15073 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
15074 # Extract the first word of "mt", so it can be a program name with args.
15075 set dummy mt; ac_word=$2
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15077 printf %s "checking for $ac_word... " >&6; }
15078 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
15079 then :
15080 printf %s "(cached) " >&6
15081 else case e in #(
15082 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
15083 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
15084 else
15085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15086 for as_dir in $PATH
15087 do
15088 IFS=$as_save_IFS
15089 case $as_dir in #(((
15090 '') as_dir=./ ;;
15091 */) ;;
15092 *) as_dir=$as_dir/ ;;
15093 esac
15094 for ac_exec_ext in '' $ac_executable_extensions; do
15095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15096 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
15097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15098 break 2
15099 fi
15100 done
15101 done
15102 IFS=$as_save_IFS
15103
15104 fi ;;
15105 esac
15106 fi
15107 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
15108 if test -n "$ac_ct_MANIFEST_TOOL"; then
15109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
15110 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
15111 else
15112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15113 printf "%s\n" "no" >&6; }
15114 fi
15115
15116 if test "x$ac_ct_MANIFEST_TOOL" = x; then
15117 MANIFEST_TOOL=":"
15118 else
15119 case $cross_compiling:$ac_tool_warned in
15120 yes:)
15121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15122 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15123 ac_tool_warned=yes ;;
15124 esac
15125 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
15126 fi
15127 else
15128 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
15129 fi
15130
15131 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
15132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
15133 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
15134 if test ${lt_cv_path_manifest_tool+y}
15135 then :
15136 printf %s "(cached) " >&6
15137 else case e in #(
15138 e) lt_cv_path_manifest_tool=no
15139 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
15140 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
15141 cat conftest.err >&5
15142 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
15143 lt_cv_path_manifest_tool=yes
15144 fi
15145 rm -f conftest* ;;
15146 esac
15147 fi
15148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
15149 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
15150 if test yes != "$lt_cv_path_manifest_tool"; then
15151 MANIFEST_TOOL=:
15152 fi
15153
15154
15155
15156
15157
15158
15159 case $host_os in
15160 rhapsody* | darwin*)
15161 if test -n "$ac_tool_prefix"; then
15162 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15163 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15165 printf %s "checking for $ac_word... " >&6; }
15166 if test ${ac_cv_prog_DSYMUTIL+y}
15167 then :
15168 printf %s "(cached) " >&6
15169 else case e in #(
15170 e) if test -n "$DSYMUTIL"; then
15171 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15172 else
15173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15174 for as_dir in $PATH
15175 do
15176 IFS=$as_save_IFS
15177 case $as_dir in #(((
15178 '') as_dir=./ ;;
15179 */) ;;
15180 *) as_dir=$as_dir/ ;;
15181 esac
15182 for ac_exec_ext in '' $ac_executable_extensions; do
15183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15184 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15186 break 2
15187 fi
15188 done
15189 done
15190 IFS=$as_save_IFS
15191
15192 fi ;;
15193 esac
15194 fi
15195 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15196 if test -n "$DSYMUTIL"; then
15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15198 printf "%s\n" "$DSYMUTIL" >&6; }
15199 else
15200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15201 printf "%s\n" "no" >&6; }
15202 fi
15203
15204
15205 fi
15206 if test -z "$ac_cv_prog_DSYMUTIL"; then
15207 ac_ct_DSYMUTIL=$DSYMUTIL
15208 # Extract the first word of "dsymutil", so it can be a program name with args.
15209 set dummy dsymutil; ac_word=$2
15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15211 printf %s "checking for $ac_word... " >&6; }
15212 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
15213 then :
15214 printf %s "(cached) " >&6
15215 else case e in #(
15216 e) if test -n "$ac_ct_DSYMUTIL"; then
15217 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15218 else
15219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15220 for as_dir in $PATH
15221 do
15222 IFS=$as_save_IFS
15223 case $as_dir in #(((
15224 '') as_dir=./ ;;
15225 */) ;;
15226 *) as_dir=$as_dir/ ;;
15227 esac
15228 for ac_exec_ext in '' $ac_executable_extensions; do
15229 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15230 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15232 break 2
15233 fi
15234 done
15235 done
15236 IFS=$as_save_IFS
15237
15238 fi ;;
15239 esac
15240 fi
15241 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15242 if test -n "$ac_ct_DSYMUTIL"; then
15243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15244 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
15245 else
15246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15247 printf "%s\n" "no" >&6; }
15248 fi
15249
15250 if test "x$ac_ct_DSYMUTIL" = x; then
15251 DSYMUTIL=":"
15252 else
15253 case $cross_compiling:$ac_tool_warned in
15254 yes:)
15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15256 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15257 ac_tool_warned=yes ;;
15258 esac
15259 DSYMUTIL=$ac_ct_DSYMUTIL
15260 fi
15261 else
15262 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15263 fi
15264
15265 if test -n "$ac_tool_prefix"; then
15266 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15267 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15269 printf %s "checking for $ac_word... " >&6; }
15270 if test ${ac_cv_prog_NMEDIT+y}
15271 then :
15272 printf %s "(cached) " >&6
15273 else case e in #(
15274 e) if test -n "$NMEDIT"; then
15275 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15276 else
15277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15278 for as_dir in $PATH
15279 do
15280 IFS=$as_save_IFS
15281 case $as_dir in #(((
15282 '') as_dir=./ ;;
15283 */) ;;
15284 *) as_dir=$as_dir/ ;;
15285 esac
15286 for ac_exec_ext in '' $ac_executable_extensions; do
15287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15288 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15290 break 2
15291 fi
15292 done
15293 done
15294 IFS=$as_save_IFS
15295
15296 fi ;;
15297 esac
15298 fi
15299 NMEDIT=$ac_cv_prog_NMEDIT
15300 if test -n "$NMEDIT"; then
15301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15302 printf "%s\n" "$NMEDIT" >&6; }
15303 else
15304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15305 printf "%s\n" "no" >&6; }
15306 fi
15307
15308
15309 fi
15310 if test -z "$ac_cv_prog_NMEDIT"; then
15311 ac_ct_NMEDIT=$NMEDIT
15312 # Extract the first word of "nmedit", so it can be a program name with args.
15313 set dummy nmedit; ac_word=$2
15314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15315 printf %s "checking for $ac_word... " >&6; }
15316 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
15317 then :
15318 printf %s "(cached) " >&6
15319 else case e in #(
15320 e) if test -n "$ac_ct_NMEDIT"; then
15321 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15322 else
15323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15324 for as_dir in $PATH
15325 do
15326 IFS=$as_save_IFS
15327 case $as_dir in #(((
15328 '') as_dir=./ ;;
15329 */) ;;
15330 *) as_dir=$as_dir/ ;;
15331 esac
15332 for ac_exec_ext in '' $ac_executable_extensions; do
15333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15334 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15336 break 2
15337 fi
15338 done
15339 done
15340 IFS=$as_save_IFS
15341
15342 fi ;;
15343 esac
15344 fi
15345 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15346 if test -n "$ac_ct_NMEDIT"; then
15347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15348 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
15349 else
15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15351 printf "%s\n" "no" >&6; }
15352 fi
15353
15354 if test "x$ac_ct_NMEDIT" = x; then
15355 NMEDIT=":"
15356 else
15357 case $cross_compiling:$ac_tool_warned in
15358 yes:)
15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15360 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15361 ac_tool_warned=yes ;;
15362 esac
15363 NMEDIT=$ac_ct_NMEDIT
15364 fi
15365 else
15366 NMEDIT="$ac_cv_prog_NMEDIT"
15367 fi
15368
15369 if test -n "$ac_tool_prefix"; then
15370 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15371 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15373 printf %s "checking for $ac_word... " >&6; }
15374 if test ${ac_cv_prog_LIPO+y}
15375 then :
15376 printf %s "(cached) " >&6
15377 else case e in #(
15378 e) if test -n "$LIPO"; then
15379 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15380 else
15381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15382 for as_dir in $PATH
15383 do
15384 IFS=$as_save_IFS
15385 case $as_dir in #(((
15386 '') as_dir=./ ;;
15387 */) ;;
15388 *) as_dir=$as_dir/ ;;
15389 esac
15390 for ac_exec_ext in '' $ac_executable_extensions; do
15391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15392 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15394 break 2
15395 fi
15396 done
15397 done
15398 IFS=$as_save_IFS
15399
15400 fi ;;
15401 esac
15402 fi
15403 LIPO=$ac_cv_prog_LIPO
15404 if test -n "$LIPO"; then
15405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15406 printf "%s\n" "$LIPO" >&6; }
15407 else
15408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15409 printf "%s\n" "no" >&6; }
15410 fi
15411
15412
15413 fi
15414 if test -z "$ac_cv_prog_LIPO"; then
15415 ac_ct_LIPO=$LIPO
15416 # Extract the first word of "lipo", so it can be a program name with args.
15417 set dummy lipo; ac_word=$2
15418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15419 printf %s "checking for $ac_word... " >&6; }
15420 if test ${ac_cv_prog_ac_ct_LIPO+y}
15421 then :
15422 printf %s "(cached) " >&6
15423 else case e in #(
15424 e) if test -n "$ac_ct_LIPO"; then
15425 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15426 else
15427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15428 for as_dir in $PATH
15429 do
15430 IFS=$as_save_IFS
15431 case $as_dir in #(((
15432 '') as_dir=./ ;;
15433 */) ;;
15434 *) as_dir=$as_dir/ ;;
15435 esac
15436 for ac_exec_ext in '' $ac_executable_extensions; do
15437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15438 ac_cv_prog_ac_ct_LIPO="lipo"
15439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15440 break 2
15441 fi
15442 done
15443 done
15444 IFS=$as_save_IFS
15445
15446 fi ;;
15447 esac
15448 fi
15449 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15450 if test -n "$ac_ct_LIPO"; then
15451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15452 printf "%s\n" "$ac_ct_LIPO" >&6; }
15453 else
15454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15455 printf "%s\n" "no" >&6; }
15456 fi
15457
15458 if test "x$ac_ct_LIPO" = x; then
15459 LIPO=":"
15460 else
15461 case $cross_compiling:$ac_tool_warned in
15462 yes:)
15463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15464 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15465 ac_tool_warned=yes ;;
15466 esac
15467 LIPO=$ac_ct_LIPO
15468 fi
15469 else
15470 LIPO="$ac_cv_prog_LIPO"
15471 fi
15472
15473 if test -n "$ac_tool_prefix"; then
15474 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15475 set dummy ${ac_tool_prefix}otool; ac_word=$2
15476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15477 printf %s "checking for $ac_word... " >&6; }
15478 if test ${ac_cv_prog_OTOOL+y}
15479 then :
15480 printf %s "(cached) " >&6
15481 else case e in #(
15482 e) if test -n "$OTOOL"; then
15483 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15484 else
15485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15486 for as_dir in $PATH
15487 do
15488 IFS=$as_save_IFS
15489 case $as_dir in #(((
15490 '') as_dir=./ ;;
15491 */) ;;
15492 *) as_dir=$as_dir/ ;;
15493 esac
15494 for ac_exec_ext in '' $ac_executable_extensions; do
15495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15496 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15498 break 2
15499 fi
15500 done
15501 done
15502 IFS=$as_save_IFS
15503
15504 fi ;;
15505 esac
15506 fi
15507 OTOOL=$ac_cv_prog_OTOOL
15508 if test -n "$OTOOL"; then
15509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15510 printf "%s\n" "$OTOOL" >&6; }
15511 else
15512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15513 printf "%s\n" "no" >&6; }
15514 fi
15515
15516
15517 fi
15518 if test -z "$ac_cv_prog_OTOOL"; then
15519 ac_ct_OTOOL=$OTOOL
15520 # Extract the first word of "otool", so it can be a program name with args.
15521 set dummy otool; ac_word=$2
15522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15523 printf %s "checking for $ac_word... " >&6; }
15524 if test ${ac_cv_prog_ac_ct_OTOOL+y}
15525 then :
15526 printf %s "(cached) " >&6
15527 else case e in #(
15528 e) if test -n "$ac_ct_OTOOL"; then
15529 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15530 else
15531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15532 for as_dir in $PATH
15533 do
15534 IFS=$as_save_IFS
15535 case $as_dir in #(((
15536 '') as_dir=./ ;;
15537 */) ;;
15538 *) as_dir=$as_dir/ ;;
15539 esac
15540 for ac_exec_ext in '' $ac_executable_extensions; do
15541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15542 ac_cv_prog_ac_ct_OTOOL="otool"
15543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15544 break 2
15545 fi
15546 done
15547 done
15548 IFS=$as_save_IFS
15549
15550 fi ;;
15551 esac
15552 fi
15553 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15554 if test -n "$ac_ct_OTOOL"; then
15555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15556 printf "%s\n" "$ac_ct_OTOOL" >&6; }
15557 else
15558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15559 printf "%s\n" "no" >&6; }
15560 fi
15561
15562 if test "x$ac_ct_OTOOL" = x; then
15563 OTOOL=":"
15564 else
15565 case $cross_compiling:$ac_tool_warned in
15566 yes:)
15567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15568 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15569 ac_tool_warned=yes ;;
15570 esac
15571 OTOOL=$ac_ct_OTOOL
15572 fi
15573 else
15574 OTOOL="$ac_cv_prog_OTOOL"
15575 fi
15576
15577 if test -n "$ac_tool_prefix"; then
15578 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15579 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15581 printf %s "checking for $ac_word... " >&6; }
15582 if test ${ac_cv_prog_OTOOL64+y}
15583 then :
15584 printf %s "(cached) " >&6
15585 else case e in #(
15586 e) if test -n "$OTOOL64"; then
15587 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15588 else
15589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15590 for as_dir in $PATH
15591 do
15592 IFS=$as_save_IFS
15593 case $as_dir in #(((
15594 '') as_dir=./ ;;
15595 */) ;;
15596 *) as_dir=$as_dir/ ;;
15597 esac
15598 for ac_exec_ext in '' $ac_executable_extensions; do
15599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15600 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15602 break 2
15603 fi
15604 done
15605 done
15606 IFS=$as_save_IFS
15607
15608 fi ;;
15609 esac
15610 fi
15611 OTOOL64=$ac_cv_prog_OTOOL64
15612 if test -n "$OTOOL64"; then
15613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15614 printf "%s\n" "$OTOOL64" >&6; }
15615 else
15616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15617 printf "%s\n" "no" >&6; }
15618 fi
15619
15620
15621 fi
15622 if test -z "$ac_cv_prog_OTOOL64"; then
15623 ac_ct_OTOOL64=$OTOOL64
15624 # Extract the first word of "otool64", so it can be a program name with args.
15625 set dummy otool64; ac_word=$2
15626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15627 printf %s "checking for $ac_word... " >&6; }
15628 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
15629 then :
15630 printf %s "(cached) " >&6
15631 else case e in #(
15632 e) if test -n "$ac_ct_OTOOL64"; then
15633 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15634 else
15635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15636 for as_dir in $PATH
15637 do
15638 IFS=$as_save_IFS
15639 case $as_dir in #(((
15640 '') as_dir=./ ;;
15641 */) ;;
15642 *) as_dir=$as_dir/ ;;
15643 esac
15644 for ac_exec_ext in '' $ac_executable_extensions; do
15645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15646 ac_cv_prog_ac_ct_OTOOL64="otool64"
15647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15648 break 2
15649 fi
15650 done
15651 done
15652 IFS=$as_save_IFS
15653
15654 fi ;;
15655 esac
15656 fi
15657 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15658 if test -n "$ac_ct_OTOOL64"; then
15659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15660 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
15661 else
15662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15663 printf "%s\n" "no" >&6; }
15664 fi
15665
15666 if test "x$ac_ct_OTOOL64" = x; then
15667 OTOOL64=":"
15668 else
15669 case $cross_compiling:$ac_tool_warned in
15670 yes:)
15671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15672 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15673 ac_tool_warned=yes ;;
15674 esac
15675 OTOOL64=$ac_ct_OTOOL64
15676 fi
15677 else
15678 OTOOL64="$ac_cv_prog_OTOOL64"
15679 fi
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15708 printf %s "checking for -single_module linker flag... " >&6; }
15709 if test ${lt_cv_apple_cc_single_mod+y}
15710 then :
15711 printf %s "(cached) " >&6
15712 else case e in #(
15713 e) lt_cv_apple_cc_single_mod=no
15714 if test -z "$LT_MULTI_MODULE"; then
15715 # By default we will add the -single_module flag. You can override
15716 # by either setting the environment variable LT_MULTI_MODULE
15717 # non-empty at configure time, or by adding -multi_module to the
15718 # link flags.
15719 rm -rf libconftest.dylib*
15720 echo "int foo(void){return 1;}" > conftest.c
15721 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15722 -dynamiclib -Wl,-single_module conftest.c" >&5
15723 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15724 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15725 _lt_result=$?
15726 # If there is a non-empty error log, and "single_module"
15727 # appears in it, assume the flag caused a linker warning
15728 if test -s conftest.err && $GREP single_module conftest.err; then
15729 cat conftest.err >&5
15730 # Otherwise, if the output was created with a 0 exit code from
15731 # the compiler, it worked.
15732 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15733 lt_cv_apple_cc_single_mod=yes
15734 else
15735 cat conftest.err >&5
15736 fi
15737 rm -rf libconftest.dylib*
15738 rm -f conftest.*
15739 fi ;;
15740 esac
15741 fi
15742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15743 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
15744
15745 # Feature test to disable chained fixups since it is not
15746 # compatible with '-undefined dynamic_lookup'
15747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
15748 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
15749 if test ${lt_cv_support_no_fixup_chains+y}
15750 then :
15751 printf %s "(cached) " >&6
15752 else case e in #(
15753 e) save_LDFLAGS=$LDFLAGS
15754 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15756 /* end confdefs.h. */
15757
15758 int
15759 main (void)
15760 {
15761
15762 ;
15763 return 0;
15764 }
15765 _ACEOF
15766 if ac_fn_c_try_link "$LINENO"
15767 then :
15768 lt_cv_support_no_fixup_chains=yes
15769 else case e in #(
15770 e) lt_cv_support_no_fixup_chains=no
15771 ;;
15772 esac
15773 fi
15774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15775 conftest$ac_exeext conftest.$ac_ext
15776 LDFLAGS=$save_LDFLAGS
15777
15778 ;;
15779 esac
15780 fi
15781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
15782 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
15783
15784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15785 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
15786 if test ${lt_cv_ld_exported_symbols_list+y}
15787 then :
15788 printf %s "(cached) " >&6
15789 else case e in #(
15790 e) lt_cv_ld_exported_symbols_list=no
15791 save_LDFLAGS=$LDFLAGS
15792 echo "_main" > conftest.sym
15793 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15795 /* end confdefs.h. */
15796
15797 int
15798 main (void)
15799 {
15800
15801 ;
15802 return 0;
15803 }
15804 _ACEOF
15805 if ac_fn_c_try_link "$LINENO"
15806 then :
15807 lt_cv_ld_exported_symbols_list=yes
15808 else case e in #(
15809 e) lt_cv_ld_exported_symbols_list=no ;;
15810 esac
15811 fi
15812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15813 conftest$ac_exeext conftest.$ac_ext
15814 LDFLAGS=$save_LDFLAGS
15815 ;;
15816 esac
15817 fi
15818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15819 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
15820
15821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15822 printf %s "checking for -force_load linker flag... " >&6; }
15823 if test ${lt_cv_ld_force_load+y}
15824 then :
15825 printf %s "(cached) " >&6
15826 else case e in #(
15827 e) lt_cv_ld_force_load=no
15828 cat > conftest.c << _LT_EOF
15829 int forced_loaded() { return 2;}
15830 _LT_EOF
15831 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15832 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15833 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
15834 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
15835 echo "$RANLIB libconftest.a" >&5
15836 $RANLIB libconftest.a 2>&5
15837 cat > conftest.c << _LT_EOF
15838 int main(void) { return 0;}
15839 _LT_EOF
15840 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15841 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15842 _lt_result=$?
15843 if test -s conftest.err && $GREP force_load conftest.err; then
15844 cat conftest.err >&5
15845 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15846 lt_cv_ld_force_load=yes
15847 else
15848 cat conftest.err >&5
15849 fi
15850 rm -f conftest.err libconftest.a conftest conftest.c
15851 rm -rf conftest.dSYM
15852 ;;
15853 esac
15854 fi
15855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15856 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
15857 case $host_os in
15858 rhapsody* | darwin1.[012])
15859 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15860 darwin1.*)
15861 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15862 darwin*)
15863 case $MACOSX_DEPLOYMENT_TARGET,$host in
15864 10.[012],*|,*powerpc*-darwin[5-8]*)
15865 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15866 *)
15867 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
15868 if test yes = "$lt_cv_support_no_fixup_chains"; then
15869 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
15870 fi
15871 ;;
15872 esac
15873 ;;
15874 esac
15875 if test yes = "$lt_cv_apple_cc_single_mod"; then
15876 _lt_dar_single_mod='$single_module'
15877 fi
15878 _lt_dar_needs_single_mod=no
15879 case $host_os in
15880 rhapsody* | darwin1.*)
15881 _lt_dar_needs_single_mod=yes ;;
15882 darwin*)
15883 # When targeting Mac OS X 10.4 (darwin 8) or later,
15884 # -single_module is the default and -multi_module is unsupported.
15885 # The toolchain on macOS 10.14 (darwin 18) and later cannot
15886 # target any OS version that needs -single_module.
15887 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15888 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
15889 _lt_dar_needs_single_mod=yes ;;
15890 esac
15891 ;;
15892 esac
15893 if test yes = "$lt_cv_ld_exported_symbols_list"; then
15894 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15895 else
15896 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15897 fi
15898 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15899 _lt_dsymutil='~$DSYMUTIL $lib || :'
15900 else
15901 _lt_dsymutil=
15902 fi
15903 ;;
15904 esac
15905
15906 # func_munge_path_list VARIABLE PATH
15907 # -----------------------------------
15908 # VARIABLE is name of variable containing _space_ separated list of
15909 # directories to be munged by the contents of PATH, which is string
15910 # having a format:
15911 # "DIR[:DIR]:"
15912 # string "DIR[ DIR]" will be prepended to VARIABLE
15913 # ":DIR[:DIR]"
15914 # string "DIR[ DIR]" will be appended to VARIABLE
15915 # "DIRP[:DIRP]::[DIRA:]DIRA"
15916 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15917 # "DIRA[ DIRA]" will be appended to VARIABLE
15918 # "DIR[:DIR]"
15919 # VARIABLE will be replaced by "DIR[ DIR]"
15920 func_munge_path_list ()
15921 {
15922 case x$2 in
15923 x)
15924 ;;
15925 *:)
15926 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15927 ;;
15928 x:*)
15929 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15930 ;;
15931 *::*)
15932 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15933 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15934 ;;
15935 *)
15936 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15937 ;;
15938 esac
15939 }
15940
15941 ac_header= ac_cache=
15942 for ac_item in $ac_header_c_list
15943 do
15944 if test $ac_cache; then
15945 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
15946 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
15947 printf "%s\n" "#define $ac_item 1" >> confdefs.h
15948 fi
15949 ac_header= ac_cache=
15950 elif test $ac_header; then
15951 ac_cache=$ac_item
15952 else
15953 ac_header=$ac_item
15954 fi
15955 done
15956
15957
15958
15959
15960
15961
15962
15963
15964 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
15965 then :
15966
15967 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
15968
15969 fi
15970 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15971 "
15972 if test "x$ac_cv_header_dlfcn_h" = xyes
15973 then :
15974 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15975
15976 fi
15977
15978
15979
15980 func_stripname_cnf ()
15981 {
15982 case $2 in
15983 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15984 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
15985 esac
15986 } # func_stripname_cnf
15987
15988
15989
15990
15991
15992 # Set options
15993
15994
15995
15996 enable_dlopen=no
15997
15998
15999 enable_win32_dll=no
16000
16001
16002 # Check whether --enable-shared was given.
16003 if test ${enable_shared+y}
16004 then :
16005 enableval=$enable_shared; p=${PACKAGE-default}
16006 case $enableval in
16007 yes) enable_shared=yes ;;
16008 no) enable_shared=no ;;
16009 *)
16010 enable_shared=no
16011 # Look at the argument we got. We use all the common list separators.
16012 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16013 for pkg in $enableval; do
16014 IFS=$lt_save_ifs
16015 if test "X$pkg" = "X$p"; then
16016 enable_shared=yes
16017 fi
16018 done
16019 IFS=$lt_save_ifs
16020 ;;
16021 esac
16022 else case e in #(
16023 e) enable_shared=yes ;;
16024 esac
16025 fi
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035 # Check whether --enable-static was given.
16036 if test ${enable_static+y}
16037 then :
16038 enableval=$enable_static; p=${PACKAGE-default}
16039 case $enableval in
16040 yes) enable_static=yes ;;
16041 no) enable_static=no ;;
16042 *)
16043 enable_static=no
16044 # Look at the argument we got. We use all the common list separators.
16045 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16046 for pkg in $enableval; do
16047 IFS=$lt_save_ifs
16048 if test "X$pkg" = "X$p"; then
16049 enable_static=yes
16050 fi
16051 done
16052 IFS=$lt_save_ifs
16053 ;;
16054 esac
16055 else case e in #(
16056 e) enable_static=yes ;;
16057 esac
16058 fi
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068 # Check whether --enable-pic was given.
16069 if test ${enable_pic+y}
16070 then :
16071 enableval=$enable_pic; lt_p=${PACKAGE-default}
16072 case $enableval in
16073 yes|no) pic_mode=$enableval ;;
16074 *)
16075 pic_mode=default
16076 # Look at the argument we got. We use all the common list separators.
16077 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16078 for lt_pkg in $enableval; do
16079 IFS=$lt_save_ifs
16080 if test "X$lt_pkg" = "X$lt_p"; then
16081 pic_mode=yes
16082 fi
16083 done
16084 IFS=$lt_save_ifs
16085 ;;
16086 esac
16087 else case e in #(
16088 e) # Check whether --with-pic was given.
16089 if test ${with_pic+y}
16090 then :
16091 withval=$with_pic; lt_p=${PACKAGE-default}
16092 case $withval in
16093 yes|no) pic_mode=$withval ;;
16094 *)
16095 pic_mode=default
16096 # Look at the argument we got. We use all the common list separators.
16097 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16098 for lt_pkg in $withval; do
16099 IFS=$lt_save_ifs
16100 if test "X$lt_pkg" = "X$lt_p"; then
16101 pic_mode=yes
16102 fi
16103 done
16104 IFS=$lt_save_ifs
16105 ;;
16106 esac
16107 else case e in #(
16108 e) pic_mode=default ;;
16109 esac
16110 fi
16111
16112 ;;
16113 esac
16114 fi
16115
16116
16117
16118
16119
16120
16121
16122
16123 # Check whether --enable-fast-install was given.
16124 if test ${enable_fast_install+y}
16125 then :
16126 enableval=$enable_fast_install; p=${PACKAGE-default}
16127 case $enableval in
16128 yes) enable_fast_install=yes ;;
16129 no) enable_fast_install=no ;;
16130 *)
16131 enable_fast_install=no
16132 # Look at the argument we got. We use all the common list separators.
16133 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16134 for pkg in $enableval; do
16135 IFS=$lt_save_ifs
16136 if test "X$pkg" = "X$p"; then
16137 enable_fast_install=yes
16138 fi
16139 done
16140 IFS=$lt_save_ifs
16141 ;;
16142 esac
16143 else case e in #(
16144 e) enable_fast_install=yes ;;
16145 esac
16146 fi
16147
16148
16149
16150
16151
16152
16153
16154
16155 shared_archive_member_spec=
16156 case $host,$enable_shared in
16157 power*-*-aix[5-9]*,yes)
16158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
16159 printf %s "checking which variant of shared library versioning to provide... " >&6; }
16160 # Check whether --enable-aix-soname was given.
16161 if test ${enable_aix_soname+y}
16162 then :
16163 enableval=$enable_aix_soname; case $enableval in
16164 aix|svr4|both)
16165 ;;
16166 *)
16167 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
16168 ;;
16169 esac
16170 lt_cv_with_aix_soname=$enable_aix_soname
16171 else case e in #(
16172 e) # Check whether --with-aix-soname was given.
16173 if test ${with_aix_soname+y}
16174 then :
16175 withval=$with_aix_soname; case $withval in
16176 aix|svr4|both)
16177 ;;
16178 *)
16179 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
16180 ;;
16181 esac
16182 lt_cv_with_aix_soname=$with_aix_soname
16183 else case e in #(
16184 e) if test ${lt_cv_with_aix_soname+y}
16185 then :
16186 printf %s "(cached) " >&6
16187 else case e in #(
16188 e) lt_cv_with_aix_soname=aix ;;
16189 esac
16190 fi
16191 ;;
16192 esac
16193 fi
16194
16195 enable_aix_soname=$lt_cv_with_aix_soname ;;
16196 esac
16197 fi
16198
16199 with_aix_soname=$enable_aix_soname
16200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
16201 printf "%s\n" "$with_aix_soname" >&6; }
16202 if test aix != "$with_aix_soname"; then
16203 # For the AIX way of multilib, we name the shared archive member
16204 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
16205 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
16206 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
16207 # the AIX toolchain works better with OBJECT_MODE set (default 32).
16208 if test 64 = "${OBJECT_MODE-32}"; then
16209 shared_archive_member_spec=shr_64
16210 else
16211 shared_archive_member_spec=shr
16212 fi
16213 fi
16214 ;;
16215 *)
16216 with_aix_soname=aix
16217 ;;
16218 esac
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229 # This can be used to rebuild libtool when needed
16230 LIBTOOL_DEPS=$ltmain
16231
16232 # Always use our own libtool.
16233 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264 test -z "$LN_S" && LN_S="ln -s"
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279 if test -n "${ZSH_VERSION+set}"; then
16280 setopt NO_GLOB_SUBST
16281 fi
16282
16283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16284 printf %s "checking for objdir... " >&6; }
16285 if test ${lt_cv_objdir+y}
16286 then :
16287 printf %s "(cached) " >&6
16288 else case e in #(
16289 e) rm -f .libs 2>/dev/null
16290 mkdir .libs 2>/dev/null
16291 if test -d .libs; then
16292 lt_cv_objdir=.libs
16293 else
16294 # MS-DOS does not allow filenames that begin with a dot.
16295 lt_cv_objdir=_libs
16296 fi
16297 rmdir .libs 2>/dev/null ;;
16298 esac
16299 fi
16300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16301 printf "%s\n" "$lt_cv_objdir" >&6; }
16302 objdir=$lt_cv_objdir
16303
16304
16305
16306
16307
16308 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
16309
16310
16311
16312
16313 case $host_os in
16314 aix3*)
16315 # AIX sometimes has problems with the GCC collect2 program. For some
16316 # reason, if we set the COLLECT_NAMES environment variable, the problems
16317 # vanish in a puff of smoke.
16318 if test set != "${COLLECT_NAMES+set}"; then
16319 COLLECT_NAMES=
16320 export COLLECT_NAMES
16321 fi
16322 ;;
16323 esac
16324
16325 # Global variables:
16326 ofile=libtool
16327 can_build_shared=yes
16328
16329 # All known linkers require a '.a' archive for static linking (except MSVC and
16330 # ICC, which need '.lib').
16331 libext=a
16332
16333 with_gnu_ld=$lt_cv_prog_gnu_ld
16334
16335 old_CC=$CC
16336 old_CFLAGS=$CFLAGS
16337
16338 # Set sane defaults for various variables
16339 test -z "$CC" && CC=cc
16340 test -z "$LTCC" && LTCC=$CC
16341 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16342 test -z "$LD" && LD=ld
16343 test -z "$ac_objext" && ac_objext=o
16344
16345 func_cc_basename $compiler
16346 cc_basename=$func_cc_basename_result
16347
16348
16349 # Only perform the check for file, if the check method requires it
16350 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16351 case $deplibs_check_method in
16352 file_magic*)
16353 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16355 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
16356 if test ${lt_cv_path_MAGIC_CMD+y}
16357 then :
16358 printf %s "(cached) " >&6
16359 else case e in #(
16360 e) case $MAGIC_CMD in
16361 [\\/*] | ?:[\\/]*)
16362 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
16363 ;;
16364 *)
16365 lt_save_MAGIC_CMD=$MAGIC_CMD
16366 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16367 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16368 for ac_dir in $ac_dummy; do
16369 IFS=$lt_save_ifs
16370 test -z "$ac_dir" && ac_dir=.
16371 if test -f "$ac_dir/${ac_tool_prefix}file"; then
16372 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
16373 if test -n "$file_magic_test_file"; then
16374 case $deplibs_check_method in
16375 "file_magic "*)
16376 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16377 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16378 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16379 $EGREP "$file_magic_regex" > /dev/null; then
16380 :
16381 else
16382 cat <<_LT_EOF 1>&2
16383
16384 *** Warning: the command libtool uses to detect shared libraries,
16385 *** $file_magic_cmd, produces output that libtool cannot recognize.
16386 *** The result is that libtool may fail to recognize shared libraries
16387 *** as such. This will affect the creation of libtool libraries that
16388 *** depend on shared libraries, but programs linked with such libtool
16389 *** libraries will work regardless of this problem. Nevertheless, you
16390 *** may want to report the problem to your system manager and/or to
16391 *** [email protected]
16392
16393 _LT_EOF
16394 fi ;;
16395 esac
16396 fi
16397 break
16398 fi
16399 done
16400 IFS=$lt_save_ifs
16401 MAGIC_CMD=$lt_save_MAGIC_CMD
16402 ;;
16403 esac ;;
16404 esac
16405 fi
16406
16407 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16408 if test -n "$MAGIC_CMD"; then
16409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16410 printf "%s\n" "$MAGIC_CMD" >&6; }
16411 else
16412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16413 printf "%s\n" "no" >&6; }
16414 fi
16415
16416
16417
16418
16419
16420 if test -z "$lt_cv_path_MAGIC_CMD"; then
16421 if test -n "$ac_tool_prefix"; then
16422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16423 printf %s "checking for file... " >&6; }
16424 if test ${lt_cv_path_MAGIC_CMD+y}
16425 then :
16426 printf %s "(cached) " >&6
16427 else case e in #(
16428 e) case $MAGIC_CMD in
16429 [\\/*] | ?:[\\/]*)
16430 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
16431 ;;
16432 *)
16433 lt_save_MAGIC_CMD=$MAGIC_CMD
16434 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16435 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16436 for ac_dir in $ac_dummy; do
16437 IFS=$lt_save_ifs
16438 test -z "$ac_dir" && ac_dir=.
16439 if test -f "$ac_dir/file"; then
16440 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
16441 if test -n "$file_magic_test_file"; then
16442 case $deplibs_check_method in
16443 "file_magic "*)
16444 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16445 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16446 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16447 $EGREP "$file_magic_regex" > /dev/null; then
16448 :
16449 else
16450 cat <<_LT_EOF 1>&2
16451
16452 *** Warning: the command libtool uses to detect shared libraries,
16453 *** $file_magic_cmd, produces output that libtool cannot recognize.
16454 *** The result is that libtool may fail to recognize shared libraries
16455 *** as such. This will affect the creation of libtool libraries that
16456 *** depend on shared libraries, but programs linked with such libtool
16457 *** libraries will work regardless of this problem. Nevertheless, you
16458 *** may want to report the problem to your system manager and/or to
16459 *** [email protected]
16460
16461 _LT_EOF
16462 fi ;;
16463 esac
16464 fi
16465 break
16466 fi
16467 done
16468 IFS=$lt_save_ifs
16469 MAGIC_CMD=$lt_save_MAGIC_CMD
16470 ;;
16471 esac ;;
16472 esac
16473 fi
16474
16475 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16476 if test -n "$MAGIC_CMD"; then
16477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16478 printf "%s\n" "$MAGIC_CMD" >&6; }
16479 else
16480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16481 printf "%s\n" "no" >&6; }
16482 fi
16483
16484
16485 else
16486 MAGIC_CMD=:
16487 fi
16488 fi
16489
16490 fi
16491 ;;
16492 esac
16493
16494 # Use C for the default configuration in the libtool script
16495
16496 lt_save_CC=$CC
16497 ac_ext=c
16498 ac_cpp='$CPP $CPPFLAGS'
16499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16502
16503
16504 # Source file extension for C test sources.
16505 ac_ext=c
16506
16507 # Object file extension for compiled C test sources.
16508 objext=o
16509 objext=$objext
16510
16511 # Code to be used in simple compile tests
16512 lt_simple_compile_test_code="int some_variable = 0;"
16513
16514 # Code to be used in simple link tests
16515 lt_simple_link_test_code='int main(void){return(0);}'
16516
16517
16518
16519
16520
16521
16522
16523 # If no C compiler was specified, use CC.
16524 LTCC=${LTCC-"$CC"}
16525
16526 # If no C compiler flags were specified, use CFLAGS.
16527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16528
16529 # Allow CC to be a program name with arguments.
16530 compiler=$CC
16531
16532 # Save the default compiler, since it gets overwritten when the other
16533 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16534 compiler_DEFAULT=$CC
16535
16536 # save warnings/boilerplate of simple test code
16537 ac_outfile=conftest.$ac_objext
16538 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16539 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16540 _lt_compiler_boilerplate=`cat conftest.err`
16541 $RM conftest*
16542
16543 ac_outfile=conftest.$ac_objext
16544 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16545 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16546 _lt_linker_boilerplate=`cat conftest.err`
16547 $RM -r conftest*
16548
16549
16550 ## CAVEAT EMPTOR:
16551 ## There is no encapsulation within the following macros, do not change
16552 ## the running order or otherwise move them around unless you know exactly
16553 ## what you are doing...
16554 if test -n "$compiler"; then
16555
16556 lt_prog_compiler_no_builtin_flag=
16557
16558 if test yes = "$GCC"; then
16559 case $cc_basename in
16560 nvcc*)
16561 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16562 *)
16563 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16564 esac
16565
16566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16567 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16568 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
16569 then :
16570 printf %s "(cached) " >&6
16571 else case e in #(
16572 e) lt_cv_prog_compiler_rtti_exceptions=no
16573 ac_outfile=conftest.$ac_objext
16574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16575 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
16576 # Insert the option either (1) after the last *FLAGS variable, or
16577 # (2) before a word containing "conftest.", or (3) at the end.
16578 # Note that $ac_compile itself does not contain backslashes and begins
16579 # with a dollar sign (not a hyphen), so the echo should work correctly.
16580 # The option is referenced via a variable to avoid confusing sed.
16581 lt_compile=`echo "$ac_compile" | $SED \
16582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16584 -e 's:$: $lt_compiler_flag:'`
16585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16586 (eval "$lt_compile" 2>conftest.err)
16587 ac_status=$?
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 if (exit $ac_status) && test -s "$ac_outfile"; then
16591 # The compiler can only warn and ignore the option if not recognized
16592 # So say no if there are warnings other than the usual output.
16593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16595 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16596 lt_cv_prog_compiler_rtti_exceptions=yes
16597 fi
16598 fi
16599 $RM conftest*
16600 ;;
16601 esac
16602 fi
16603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16604 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16605
16606 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
16607 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16608 else
16609 :
16610 fi
16611
16612 fi
16613
16614
16615
16616
16617
16618
16619 lt_prog_compiler_wl=
16620 lt_prog_compiler_pic=
16621 lt_prog_compiler_static=
16622
16623
16624 if test yes = "$GCC"; then
16625 lt_prog_compiler_wl='-Wl,'
16626 lt_prog_compiler_static='-static'
16627
16628 case $host_os in
16629 aix*)
16630 # All AIX code is PIC.
16631 if test ia64 = "$host_cpu"; then
16632 # AIX 5 now supports IA64 processor
16633 lt_prog_compiler_static='-Bstatic'
16634 fi
16635 lt_prog_compiler_pic='-fPIC'
16636 ;;
16637
16638 amigaos*)
16639 case $host_cpu in
16640 powerpc)
16641 # see comment about AmigaOS4 .so support
16642 lt_prog_compiler_pic='-fPIC'
16643 ;;
16644 m68k)
16645 # FIXME: we need at least 68020 code to build shared libraries, but
16646 # adding the '-m68020' flag to GCC prevents building anything better,
16647 # like '-m68040'.
16648 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16649 ;;
16650 esac
16651 ;;
16652
16653 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16654 # PIC is the default for these OSes.
16655 ;;
16656
16657 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
16658 # This hack is so that the source file can tell whether it is being
16659 # built for inclusion in a dll (and should export symbols for example).
16660 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16661 # (--disable-auto-import) libraries
16662 lt_prog_compiler_pic='-DDLL_EXPORT'
16663 case $host_os in
16664 os2*)
16665 lt_prog_compiler_static='$wl-static'
16666 ;;
16667 esac
16668 ;;
16669
16670 darwin* | rhapsody*)
16671 # PIC is the default on this platform
16672 # Common symbols not allowed in MH_DYLIB files
16673 lt_prog_compiler_pic='-fno-common'
16674 ;;
16675
16676 haiku*)
16677 # PIC is the default for Haiku.
16678 # The "-static" flag exists, but is broken.
16679 lt_prog_compiler_static=
16680 ;;
16681
16682 hpux*)
16683 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16684 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16685 # sets the default TLS model and affects inlining.
16686 case $host_cpu in
16687 hppa*64*)
16688 # +Z the default
16689 ;;
16690 *)
16691 lt_prog_compiler_pic='-fPIC'
16692 ;;
16693 esac
16694 ;;
16695
16696 interix[3-9]*)
16697 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16698 # Instead, we relocate shared libraries at runtime.
16699 ;;
16700
16701 msdosdjgpp*)
16702 # Just because we use GCC doesn't mean we suddenly get shared libraries
16703 # on systems that don't support them.
16704 lt_prog_compiler_can_build_shared=no
16705 enable_shared=no
16706 ;;
16707
16708 *nto* | *qnx*)
16709 # QNX uses GNU C++, but need to define -shared option too, otherwise
16710 # it will coredump.
16711 lt_prog_compiler_pic='-fPIC -shared'
16712 ;;
16713
16714 sysv4*MP*)
16715 if test -d /usr/nec; then
16716 lt_prog_compiler_pic=-Kconform_pic
16717 fi
16718 ;;
16719
16720 *)
16721 lt_prog_compiler_pic='-fPIC'
16722 ;;
16723 esac
16724
16725 case $cc_basename in
16726 nvcc*) # Cuda Compiler Driver 2.2
16727 lt_prog_compiler_wl='-Xlinker '
16728 if test -n "$lt_prog_compiler_pic"; then
16729 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16730 fi
16731 ;;
16732 esac
16733 else
16734 # PORTME Check for flag to pass linker flags through the system compiler.
16735 case $host_os in
16736 aix*)
16737 lt_prog_compiler_wl='-Wl,'
16738 if test ia64 = "$host_cpu"; then
16739 # AIX 5 now supports IA64 processor
16740 lt_prog_compiler_static='-Bstatic'
16741 else
16742 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16743 fi
16744 ;;
16745
16746 darwin* | rhapsody*)
16747 # PIC is the default on this platform
16748 # Common symbols not allowed in MH_DYLIB files
16749 lt_prog_compiler_pic='-fno-common'
16750 case $cc_basename in
16751 nagfor*)
16752 # NAG Fortran compiler
16753 lt_prog_compiler_wl='-Wl,-Wl,,'
16754 lt_prog_compiler_pic='-PIC'
16755 lt_prog_compiler_static='-Bstatic'
16756 ;;
16757 esac
16758 ;;
16759
16760 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
16761 # This hack is so that the source file can tell whether it is being
16762 # built for inclusion in a dll (and should export symbols for example).
16763 lt_prog_compiler_pic='-DDLL_EXPORT'
16764 case $host_os in
16765 os2*)
16766 lt_prog_compiler_static='$wl-static'
16767 ;;
16768 esac
16769 ;;
16770
16771 hpux9* | hpux10* | hpux11*)
16772 lt_prog_compiler_wl='-Wl,'
16773 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16774 # not for PA HP-UX.
16775 case $host_cpu in
16776 hppa*64*|ia64*)
16777 # +Z the default
16778 ;;
16779 *)
16780 lt_prog_compiler_pic='+Z'
16781 ;;
16782 esac
16783 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16784 lt_prog_compiler_static='$wl-a ${wl}archive'
16785 ;;
16786
16787 irix5* | irix6* | nonstopux*)
16788 lt_prog_compiler_wl='-Wl,'
16789 # PIC (with -KPIC) is the default.
16790 lt_prog_compiler_static='-non_shared'
16791 ;;
16792
16793 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16794 case $cc_basename in
16795 # old Intel for x86_64, which still supported -KPIC.
16796 ecc*)
16797 lt_prog_compiler_wl='-Wl,'
16798 lt_prog_compiler_pic='-KPIC'
16799 lt_prog_compiler_static='-static'
16800 ;;
16801 *flang* | ftn | f18* | f95*)
16802 # Flang compiler.
16803 lt_prog_compiler_wl='-Wl,'
16804 lt_prog_compiler_pic='-fPIC'
16805 lt_prog_compiler_static='-static'
16806 ;;
16807 # flang / f18. f95 an alias for gfortran or flang on Debian
16808 flang* | f18* | f95*)
16809 lt_prog_compiler_wl='-Wl,'
16810 lt_prog_compiler_pic='-fPIC'
16811 lt_prog_compiler_static='-static'
16812 ;;
16813 # icc used to be incompatible with GCC.
16814 # ICC 10 doesn't accept -KPIC any more.
16815 icc* | ifort*)
16816 lt_prog_compiler_wl='-Wl,'
16817 lt_prog_compiler_pic='-fPIC'
16818 lt_prog_compiler_static='-static'
16819 ;;
16820 # Lahey Fortran 8.1.
16821 lf95*)
16822 lt_prog_compiler_wl='-Wl,'
16823 lt_prog_compiler_pic='--shared'
16824 lt_prog_compiler_static='--static'
16825 ;;
16826 nagfor*)
16827 # NAG Fortran compiler
16828 lt_prog_compiler_wl='-Wl,-Wl,,'
16829 lt_prog_compiler_pic='-PIC'
16830 lt_prog_compiler_static='-Bstatic'
16831 ;;
16832 tcc*)
16833 # Fabrice Bellard et al's Tiny C Compiler
16834 lt_prog_compiler_wl='-Wl,'
16835 lt_prog_compiler_pic='-fPIC'
16836 lt_prog_compiler_static='-static'
16837 ;;
16838 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16839 # Portland Group compilers (*not* the Pentium gcc compiler,
16840 # which looks to be a dead project)
16841 lt_prog_compiler_wl='-Wl,'
16842 lt_prog_compiler_pic='-fpic'
16843 lt_prog_compiler_static='-Bstatic'
16844 ;;
16845 ccc*)
16846 lt_prog_compiler_wl='-Wl,'
16847 # All Alpha code is PIC.
16848 lt_prog_compiler_static='-non_shared'
16849 ;;
16850 xl* | bgxl* | bgf* | mpixl*)
16851 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16852 lt_prog_compiler_wl='-Wl,'
16853 lt_prog_compiler_pic='-qpic'
16854 lt_prog_compiler_static='-qstaticlink'
16855 ;;
16856 *)
16857 case `$CC -V 2>&1 | $SED 5q` in
16858 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16859 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16860 lt_prog_compiler_pic='-KPIC'
16861 lt_prog_compiler_static='-Bstatic'
16862 lt_prog_compiler_wl=''
16863 ;;
16864 *Sun\ F* | *Sun*Fortran*)
16865 lt_prog_compiler_pic='-KPIC'
16866 lt_prog_compiler_static='-Bstatic'
16867 lt_prog_compiler_wl='-Qoption ld '
16868 ;;
16869 *Sun\ C*)
16870 # Sun C 5.9
16871 lt_prog_compiler_pic='-KPIC'
16872 lt_prog_compiler_static='-Bstatic'
16873 lt_prog_compiler_wl='-Wl,'
16874 ;;
16875 *Intel*\ [CF]*Compiler*)
16876 lt_prog_compiler_wl='-Wl,'
16877 lt_prog_compiler_pic='-fPIC'
16878 lt_prog_compiler_static='-static'
16879 ;;
16880 *Portland\ Group*)
16881 lt_prog_compiler_wl='-Wl,'
16882 lt_prog_compiler_pic='-fpic'
16883 lt_prog_compiler_static='-Bstatic'
16884 ;;
16885 esac
16886 ;;
16887 esac
16888 ;;
16889
16890 newsos6)
16891 lt_prog_compiler_pic='-KPIC'
16892 lt_prog_compiler_static='-Bstatic'
16893 ;;
16894
16895 *-mlibc)
16896 lt_prog_compiler_wl='-Wl,'
16897 lt_prog_compiler_pic='-fPIC'
16898 lt_prog_compiler_static='-static'
16899 ;;
16900
16901 *nto* | *qnx*)
16902 # QNX uses GNU C++, but need to define -shared option too, otherwise
16903 # it will coredump.
16904 lt_prog_compiler_pic='-fPIC -shared'
16905 ;;
16906
16907 osf3* | osf4* | osf5*)
16908 lt_prog_compiler_wl='-Wl,'
16909 # All OSF/1 code is PIC.
16910 lt_prog_compiler_static='-non_shared'
16911 ;;
16912
16913 rdos*)
16914 lt_prog_compiler_static='-non_shared'
16915 ;;
16916
16917 serenity*)
16918 ;;
16919
16920 solaris*)
16921 lt_prog_compiler_pic='-KPIC'
16922 lt_prog_compiler_static='-Bstatic'
16923 case $cc_basename in
16924 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16925 lt_prog_compiler_wl='-Qoption ld ';;
16926 *)
16927 lt_prog_compiler_wl='-Wl,';;
16928 esac
16929 ;;
16930
16931 sunos4*)
16932 lt_prog_compiler_wl='-Qoption ld '
16933 lt_prog_compiler_pic='-PIC'
16934 lt_prog_compiler_static='-Bstatic'
16935 ;;
16936
16937 sysv4 | sysv4.2uw2* | sysv4.3*)
16938 lt_prog_compiler_wl='-Wl,'
16939 lt_prog_compiler_pic='-KPIC'
16940 lt_prog_compiler_static='-Bstatic'
16941 ;;
16942
16943 sysv4*MP*)
16944 if test -d /usr/nec; then
16945 lt_prog_compiler_pic='-Kconform_pic'
16946 lt_prog_compiler_static='-Bstatic'
16947 fi
16948 ;;
16949
16950 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16951 lt_prog_compiler_wl='-Wl,'
16952 lt_prog_compiler_pic='-KPIC'
16953 lt_prog_compiler_static='-Bstatic'
16954 ;;
16955
16956 unicos*)
16957 lt_prog_compiler_wl='-Wl,'
16958 lt_prog_compiler_can_build_shared=no
16959 ;;
16960
16961 uts4*)
16962 lt_prog_compiler_pic='-pic'
16963 lt_prog_compiler_static='-Bstatic'
16964 ;;
16965
16966 *)
16967 lt_prog_compiler_can_build_shared=no
16968 ;;
16969 esac
16970 fi
16971
16972 case $host_os in
16973 # For platforms that do not support PIC, -DPIC is meaningless:
16974 *djgpp*)
16975 lt_prog_compiler_pic=
16976 ;;
16977 *)
16978 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16979 ;;
16980 esac
16981
16982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16983 printf %s "checking for $compiler option to produce PIC... " >&6; }
16984 if test ${lt_cv_prog_compiler_pic+y}
16985 then :
16986 printf %s "(cached) " >&6
16987 else case e in #(
16988 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
16989 esac
16990 fi
16991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16992 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
16993 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
16994
16995 #
16996 # Check to make sure the PIC flag actually works.
16997 #
16998 if test -n "$lt_prog_compiler_pic"; then
16999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17000 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17001 if test ${lt_cv_prog_compiler_pic_works+y}
17002 then :
17003 printf %s "(cached) " >&6
17004 else case e in #(
17005 e) lt_cv_prog_compiler_pic_works=no
17006 ac_outfile=conftest.$ac_objext
17007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17008 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
17009 # Insert the option either (1) after the last *FLAGS variable, or
17010 # (2) before a word containing "conftest.", or (3) at the end.
17011 # Note that $ac_compile itself does not contain backslashes and begins
17012 # with a dollar sign (not a hyphen), so the echo should work correctly.
17013 # The option is referenced via a variable to avoid confusing sed.
17014 lt_compile=`echo "$ac_compile" | $SED \
17015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17017 -e 's:$: $lt_compiler_flag:'`
17018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17019 (eval "$lt_compile" 2>conftest.err)
17020 ac_status=$?
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 if (exit $ac_status) && test -s "$ac_outfile"; then
17024 # The compiler can only warn and ignore the option if not recognized
17025 # So say no if there are warnings other than the usual output.
17026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17029 lt_cv_prog_compiler_pic_works=yes
17030 fi
17031 fi
17032 $RM conftest*
17033 ;;
17034 esac
17035 fi
17036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17037 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
17038
17039 if test yes = "$lt_cv_prog_compiler_pic_works"; then
17040 case $lt_prog_compiler_pic in
17041 "" | " "*) ;;
17042 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17043 esac
17044 else
17045 lt_prog_compiler_pic=
17046 lt_prog_compiler_can_build_shared=no
17047 fi
17048
17049 fi
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061 #
17062 # Check to make sure the static flag actually works.
17063 #
17064 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17066 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17067 if test ${lt_cv_prog_compiler_static_works+y}
17068 then :
17069 printf %s "(cached) " >&6
17070 else case e in #(
17071 e) lt_cv_prog_compiler_static_works=no
17072 save_LDFLAGS=$LDFLAGS
17073 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17074 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17075 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17076 # The linker can only warn and ignore the option if not recognized
17077 # So say no if there are warnings
17078 if test -s conftest.err; then
17079 # Append any errors to the config.log.
17080 cat conftest.err 1>&5
17081 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17083 if diff conftest.exp conftest.er2 >/dev/null; then
17084 lt_cv_prog_compiler_static_works=yes
17085 fi
17086 else
17087 lt_cv_prog_compiler_static_works=yes
17088 fi
17089 fi
17090 $RM -r conftest*
17091 LDFLAGS=$save_LDFLAGS
17092 ;;
17093 esac
17094 fi
17095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17096 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
17097
17098 if test yes = "$lt_cv_prog_compiler_static_works"; then
17099 :
17100 else
17101 lt_prog_compiler_static=
17102 fi
17103
17104
17105
17106
17107
17108
17109
17110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17111 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17112 if test ${lt_cv_prog_compiler_c_o+y}
17113 then :
17114 printf %s "(cached) " >&6
17115 else case e in #(
17116 e) lt_cv_prog_compiler_c_o=no
17117 $RM -r conftest 2>/dev/null
17118 mkdir conftest
17119 cd conftest
17120 mkdir out
17121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17122
17123 lt_compiler_flag="-o out/conftest2.$ac_objext"
17124 # Insert the option either (1) after the last *FLAGS variable, or
17125 # (2) before a word containing "conftest.", or (3) at the end.
17126 # Note that $ac_compile itself does not contain backslashes and begins
17127 # with a dollar sign (not a hyphen), so the echo should work correctly.
17128 lt_compile=`echo "$ac_compile" | $SED \
17129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17131 -e 's:$: $lt_compiler_flag:'`
17132 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17133 (eval "$lt_compile" 2>out/conftest.err)
17134 ac_status=$?
17135 cat out/conftest.err >&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17138 then
17139 # The compiler can only warn and ignore the option if not recognized
17140 # So say no if there are warnings
17141 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17142 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17143 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17144 lt_cv_prog_compiler_c_o=yes
17145 fi
17146 fi
17147 chmod u+w . 2>&5
17148 $RM conftest*
17149 # SGI C++ compiler will create directory out/ii_files/ for
17150 # template instantiation
17151 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17152 $RM out/* && rmdir out
17153 cd ..
17154 $RM -r conftest
17155 $RM conftest*
17156 ;;
17157 esac
17158 fi
17159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17160 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
17161
17162
17163
17164
17165
17166
17167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17168 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17169 if test ${lt_cv_prog_compiler_c_o+y}
17170 then :
17171 printf %s "(cached) " >&6
17172 else case e in #(
17173 e) lt_cv_prog_compiler_c_o=no
17174 $RM -r conftest 2>/dev/null
17175 mkdir conftest
17176 cd conftest
17177 mkdir out
17178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17179
17180 lt_compiler_flag="-o out/conftest2.$ac_objext"
17181 # Insert the option either (1) after the last *FLAGS variable, or
17182 # (2) before a word containing "conftest.", or (3) at the end.
17183 # Note that $ac_compile itself does not contain backslashes and begins
17184 # with a dollar sign (not a hyphen), so the echo should work correctly.
17185 lt_compile=`echo "$ac_compile" | $SED \
17186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17188 -e 's:$: $lt_compiler_flag:'`
17189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17190 (eval "$lt_compile" 2>out/conftest.err)
17191 ac_status=$?
17192 cat out/conftest.err >&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17195 then
17196 # The compiler can only warn and ignore the option if not recognized
17197 # So say no if there are warnings
17198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17201 lt_cv_prog_compiler_c_o=yes
17202 fi
17203 fi
17204 chmod u+w . 2>&5
17205 $RM conftest*
17206 # SGI C++ compiler will create directory out/ii_files/ for
17207 # template instantiation
17208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17209 $RM out/* && rmdir out
17210 cd ..
17211 $RM -r conftest
17212 $RM conftest*
17213 ;;
17214 esac
17215 fi
17216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17217 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
17218
17219
17220
17221
17222 hard_links=nottested
17223 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
17224 # do not overwrite the value of need_locks provided by the user
17225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17226 printf %s "checking if we can lock with hard links... " >&6; }
17227 hard_links=yes
17228 $RM conftest*
17229 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17230 touch conftest.a
17231 ln conftest.a conftest.b 2>&5 || hard_links=no
17232 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17234 printf "%s\n" "$hard_links" >&6; }
17235 if test no = "$hard_links"; then
17236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17237 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17238 need_locks=warn
17239 fi
17240 else
17241 need_locks=no
17242 fi
17243
17244
17245
17246
17247
17248
17249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17250 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17251
17252 runpath_var=
17253 allow_undefined_flag=
17254 always_export_symbols=no
17255 archive_cmds=
17256 archive_expsym_cmds=
17257 compiler_needs_object=no
17258 enable_shared_with_static_runtimes=no
17259 export_dynamic_flag_spec=
17260 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17261 hardcode_automatic=no
17262 hardcode_direct=no
17263 hardcode_direct_absolute=no
17264 hardcode_libdir_flag_spec=
17265 hardcode_libdir_separator=
17266 hardcode_minus_L=no
17267 hardcode_shlibpath_var=unsupported
17268 inherit_rpath=no
17269 link_all_deplibs=unknown
17270 module_cmds=
17271 module_expsym_cmds=
17272 old_archive_from_new_cmds=
17273 old_archive_from_expsyms_cmds=
17274 thread_safe_flag_spec=
17275 whole_archive_flag_spec=
17276 # include_expsyms should be a list of space-separated symbols to be *always*
17277 # included in the symbol list
17278 include_expsyms=
17279 # exclude_expsyms can be an extended regexp of symbols to exclude
17280 # it will be wrapped by ' (' and ')$', so one must not match beginning or
17281 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
17282 # as well as any symbol that contains 'd'.
17283 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17284 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17285 # platforms (ab)use it in PIC code, but their linkers get confused if
17286 # the symbol is explicitly referenced. Since portable code cannot
17287 # rely on this symbol name, it's probably fine to never include it in
17288 # preloaded symbol tables.
17289 # Exclude shared library initialization/finalization symbols.
17290 extract_expsyms_cmds=
17291
17292 case $host_os in
17293 cygwin* | mingw* | windows* | pw32* | cegcc*)
17294 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
17295 # When not using gcc, we currently assume that we are using
17296 # Microsoft Visual C++ or Intel C++ Compiler.
17297 if test yes != "$GCC"; then
17298 with_gnu_ld=no
17299 fi
17300 ;;
17301 interix*)
17302 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
17303 with_gnu_ld=yes
17304 ;;
17305 linux* | k*bsd*-gnu | gnu*)
17306 link_all_deplibs=no
17307 ;;
17308 esac
17309
17310 ld_shlibs=yes
17311
17312 # On some targets, GNU ld is compatible enough with the native linker
17313 # that we're better off using the native interface for both.
17314 lt_use_gnu_ld_interface=no
17315 if test yes = "$with_gnu_ld"; then
17316 case $host_os in
17317 aix*)
17318 # The AIX port of GNU ld has always aspired to compatibility
17319 # with the native linker. However, as the warning in the GNU ld
17320 # block says, versions before 2.19.5* couldn't really create working
17321 # shared libraries, regardless of the interface used.
17322 case `$LD -v 2>&1` in
17323 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17324 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17325 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17326 *)
17327 lt_use_gnu_ld_interface=yes
17328 ;;
17329 esac
17330 ;;
17331 *)
17332 lt_use_gnu_ld_interface=yes
17333 ;;
17334 esac
17335 fi
17336
17337 if test yes = "$lt_use_gnu_ld_interface"; then
17338 # If archive_cmds runs LD, not CC, wlarc should be empty
17339 wlarc='$wl'
17340
17341 # Set some defaults for GNU ld with shared library support. These
17342 # are reset later if shared libraries are not supported. Putting them
17343 # here allows them to be overridden if necessary.
17344 runpath_var=LD_RUN_PATH
17345 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17346 export_dynamic_flag_spec='$wl--export-dynamic'
17347 # ancient GNU ld didn't support --whole-archive et. al.
17348 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17349 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17350 else
17351 whole_archive_flag_spec=
17352 fi
17353 supports_anon_versioning=no
17354 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
17355 *GNU\ gold*) supports_anon_versioning=yes ;;
17356 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17357 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17358 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17359 *\ 2.11.*) ;; # other 2.11 versions
17360 *) supports_anon_versioning=yes ;;
17361 esac
17362
17363 # See if GNU ld supports shared libraries.
17364 case $host_os in
17365 aix[3-9]*)
17366 # On AIX/PPC, the GNU linker is very broken
17367 if test ia64 != "$host_cpu"; then
17368 ld_shlibs=no
17369 cat <<_LT_EOF 1>&2
17370
17371 *** Warning: the GNU linker, at least up to release 2.19, is reported
17372 *** to be unable to reliably create shared libraries on AIX.
17373 *** Therefore, libtool is disabling shared libraries support. If you
17374 *** really care for shared libraries, you may want to install binutils
17375 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17376 *** You will then need to restart the configuration process.
17377
17378 _LT_EOF
17379 fi
17380 ;;
17381
17382 amigaos*)
17383 case $host_cpu in
17384 powerpc)
17385 # see comment about AmigaOS4 .so support
17386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17387 archive_expsym_cmds=''
17388 ;;
17389 m68k)
17390 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)'
17391 hardcode_libdir_flag_spec='-L$libdir'
17392 hardcode_minus_L=yes
17393 ;;
17394 esac
17395 ;;
17396
17397 beos*)
17398 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17399 allow_undefined_flag=unsupported
17400 # Joseph Beckenbach <[email protected]> says some releases of gcc
17401 # support --undefined. This deserves some investigation. FIXME
17402 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17403 else
17404 ld_shlibs=no
17405 fi
17406 ;;
17407
17408 cygwin* | mingw* | windows* | pw32* | cegcc*)
17409 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17410 # as there is no search path for DLLs.
17411 hardcode_libdir_flag_spec='-L$libdir'
17412 export_dynamic_flag_spec='$wl--export-all-symbols'
17413 allow_undefined_flag=unsupported
17414 always_export_symbols=no
17415 enable_shared_with_static_runtimes=yes
17416 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'
17417 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17418 file_list_spec='@'
17419
17420 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17422 # If the export-symbols file already is a .def file, use it as
17423 # is; otherwise, prepend EXPORTS...
17424 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17425 cp $export_symbols $output_objdir/$soname.def;
17426 else
17427 echo EXPORTS > $output_objdir/$soname.def;
17428 cat $export_symbols >> $output_objdir/$soname.def;
17429 fi~
17430 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17431 else
17432 ld_shlibs=no
17433 fi
17434 ;;
17435
17436 haiku*)
17437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17438 link_all_deplibs=no
17439 ;;
17440
17441 os2*)
17442 hardcode_libdir_flag_spec='-L$libdir'
17443 hardcode_minus_L=yes
17444 allow_undefined_flag=unsupported
17445 shrext_cmds=.dll
17446 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17447 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17448 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17449 $ECHO EXPORTS >> $output_objdir/$libname.def~
17450 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17451 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17452 emximp -o $lib $output_objdir/$libname.def'
17453 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17454 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17455 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17456 $ECHO EXPORTS >> $output_objdir/$libname.def~
17457 prefix_cmds="$SED"~
17458 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17459 prefix_cmds="$prefix_cmds -e 1d";
17460 fi~
17461 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17462 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17463 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17464 emximp -o $lib $output_objdir/$libname.def'
17465 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17466 enable_shared_with_static_runtimes=yes
17467 file_list_spec='@'
17468 ;;
17469
17470 interix[3-9]*)
17471 hardcode_direct=no
17472 hardcode_shlibpath_var=no
17473 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17474 export_dynamic_flag_spec='$wl-E'
17475 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17476 # Instead, shared libraries are loaded at an image base (0x10000000 by
17477 # default) and relocated if they conflict, which is a slow very memory
17478 # consuming and fragmenting process. To avoid this, we pick a random,
17479 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17480 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17481 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17482 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'
17483 ;;
17484
17485 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17486 tmp_diet=no
17487 if test linux-dietlibc = "$host_os"; then
17488 case $cc_basename in
17489 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17490 esac
17491 fi
17492 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17493 && test no = "$tmp_diet"
17494 then
17495 tmp_addflag=' $pic_flag'
17496 tmp_sharedflag='-shared'
17497 case $cc_basename,$host_cpu in
17498 pgcc*) # Portland Group C compiler
17499 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'
17500 tmp_addflag=' $pic_flag'
17501 ;;
17502 pgf77* | pgf90* | pgf95* | pgfortran*)
17503 # Portland Group f77 and f90 compilers
17504 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'
17505 tmp_addflag=' $pic_flag -Mnomain' ;;
17506 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17507 tmp_addflag=' -i_dynamic' ;;
17508 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17509 tmp_addflag=' -i_dynamic -nofor_main' ;;
17510 ifc* | ifort*) # Intel Fortran compiler
17511 tmp_addflag=' -nofor_main' ;;
17512 lf95*) # Lahey Fortran 8.1
17513 whole_archive_flag_spec=
17514 tmp_sharedflag='--shared' ;;
17515 nagfor*) # NAGFOR 5.3
17516 tmp_sharedflag='-Wl,-shared' ;;
17517 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17518 tmp_sharedflag='-qmkshrobj'
17519 tmp_addflag= ;;
17520 nvcc*) # Cuda Compiler Driver 2.2
17521 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'
17522 compiler_needs_object=yes
17523 ;;
17524 esac
17525 case `$CC -V 2>&1 | $SED 5q` in
17526 *Sun\ C*) # Sun C 5.9
17527 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'
17528 compiler_needs_object=yes
17529 tmp_sharedflag='-G' ;;
17530 *Sun\ F*) # Sun Fortran 8.3
17531 tmp_sharedflag='-G' ;;
17532 esac
17533 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17534
17535 if test yes = "$supports_anon_versioning"; then
17536 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17537 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17538 echo "local: *; };" >> $output_objdir/$libname.ver~
17539 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17540 fi
17541
17542 case $cc_basename in
17543 tcc*)
17544 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17545 export_dynamic_flag_spec='-rdynamic'
17546 ;;
17547 xlf* | bgf* | bgxlf* | mpixlf*)
17548 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17549 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17550 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17551 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
17552 if test yes = "$supports_anon_versioning"; then
17553 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17554 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17555 echo "local: *; };" >> $output_objdir/$libname.ver~
17556 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17557 fi
17558 ;;
17559 esac
17560 else
17561 ld_shlibs=no
17562 fi
17563 ;;
17564
17565 *-mlibc)
17566 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17567 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17568 ;;
17569
17570 netbsd* | netbsdelf*-gnu)
17571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17572 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17573 wlarc=
17574 else
17575 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17576 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17577 fi
17578 ;;
17579
17580 solaris*)
17581 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17582 ld_shlibs=no
17583 cat <<_LT_EOF 1>&2
17584
17585 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17586 *** create shared libraries on Solaris systems. Therefore, libtool
17587 *** is disabling shared libraries support. We urge you to upgrade GNU
17588 *** binutils to release 2.9.1 or newer. Another option is to modify
17589 *** your PATH or compiler configuration so that the native linker is
17590 *** used, and then restart.
17591
17592 _LT_EOF
17593 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17594 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17595 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17596 else
17597 ld_shlibs=no
17598 fi
17599 ;;
17600
17601 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17602 case `$LD -v 2>&1` in
17603 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17604 ld_shlibs=no
17605 cat <<_LT_EOF 1>&2
17606
17607 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
17608 *** reliably create shared libraries on SCO systems. Therefore, libtool
17609 *** is disabling shared libraries support. We urge you to upgrade GNU
17610 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17611 *** your PATH or compiler configuration so that the native linker is
17612 *** used, and then restart.
17613
17614 _LT_EOF
17615 ;;
17616 *)
17617 # For security reasons, it is highly recommended that you always
17618 # use absolute paths for naming shared libraries, and exclude the
17619 # DT_RUNPATH tag from executables and libraries. But doing so
17620 # requires that you compile everything twice, which is a pain.
17621 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17622 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17624 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17625 else
17626 ld_shlibs=no
17627 fi
17628 ;;
17629 esac
17630 ;;
17631
17632 sunos4*)
17633 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17634 wlarc=
17635 hardcode_direct=yes
17636 hardcode_shlibpath_var=no
17637 ;;
17638
17639 *)
17640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17641 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17642 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17643 else
17644 ld_shlibs=no
17645 fi
17646 ;;
17647 esac
17648
17649 if test no = "$ld_shlibs"; then
17650 runpath_var=
17651 hardcode_libdir_flag_spec=
17652 export_dynamic_flag_spec=
17653 whole_archive_flag_spec=
17654 fi
17655 else
17656 # PORTME fill in a description of your system's linker (not GNU ld)
17657 case $host_os in
17658 aix3*)
17659 allow_undefined_flag=unsupported
17660 always_export_symbols=yes
17661 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'
17662 # Note: this linker hardcodes the directories in LIBPATH if there
17663 # are no directories specified by -L.
17664 hardcode_minus_L=yes
17665 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
17666 # Neither direct hardcoding nor static linking is supported with a
17667 # broken collect2.
17668 hardcode_direct=unsupported
17669 fi
17670 ;;
17671
17672 aix[4-9]*)
17673 if test ia64 = "$host_cpu"; then
17674 # On IA64, the linker does run time linking by default, so we don't
17675 # have to do anything special.
17676 aix_use_runtimelinking=no
17677 exp_sym_flag='-Bexport'
17678 no_entry_flag=
17679 else
17680 # If we're using GNU nm, then we don't want the "-C" option.
17681 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17682 # Without the "-l" option, or with the "-B" option, AIX nm treats
17683 # weak defined symbols like other global defined symbols, whereas
17684 # GNU nm marks them as "W".
17685 # While the 'weak' keyword is ignored in the Export File, we need
17686 # it in the Import File for the 'aix-soname' feature, so we have
17687 # to replace the "-B" option with "-P" for AIX nm.
17688 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17689 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'
17690 else
17691 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17692 fi
17693 aix_use_runtimelinking=no
17694
17695 # Test if we are trying to use run time linking or normal
17696 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17697 # have runtime linking enabled, and use it for executables.
17698 # For shared libraries, we enable/disable runtime linking
17699 # depending on the kind of the shared library created -
17700 # when "with_aix_soname,aix_use_runtimelinking" is:
17701 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
17702 # "aix,yes" lib.so shared, rtl:yes, for executables
17703 # lib.a static archive
17704 # "both,no" lib.so.V(shr.o) shared, rtl:yes
17705 # lib.a(lib.so.V) shared, rtl:no, for executables
17706 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17707 # lib.a(lib.so.V) shared, rtl:no
17708 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
17709 # lib.a static archive
17710 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17711 for ld_flag in $LDFLAGS; do
17712 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
17713 aix_use_runtimelinking=yes
17714 break
17715 fi
17716 done
17717 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17718 # With aix-soname=svr4, we create the lib.so.V shared archives only,
17719 # so we don't have lib.a shared libs to link our executables.
17720 # We have to force runtime linking in this case.
17721 aix_use_runtimelinking=yes
17722 LDFLAGS="$LDFLAGS -Wl,-brtl"
17723 fi
17724 ;;
17725 esac
17726
17727 exp_sym_flag='-bexport'
17728 no_entry_flag='-bnoentry'
17729 fi
17730
17731 # When large executables or shared objects are built, AIX ld can
17732 # have problems creating the table of contents. If linking a library
17733 # or program results in "error TOC overflow" add -mminimal-toc to
17734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17736
17737 archive_cmds=''
17738 hardcode_direct=yes
17739 hardcode_direct_absolute=yes
17740 hardcode_libdir_separator=':'
17741 link_all_deplibs=yes
17742 file_list_spec='$wl-f,'
17743 case $with_aix_soname,$aix_use_runtimelinking in
17744 aix,*) ;; # traditional, no import file
17745 svr4,* | *,yes) # use import file
17746 # The Import File defines what to hardcode.
17747 hardcode_direct=no
17748 hardcode_direct_absolute=no
17749 ;;
17750 esac
17751
17752 if test yes = "$GCC"; then
17753 case $host_os in aix4.[012]|aix4.[012].*)
17754 # We only want to do this on AIX 4.2 and lower, the check
17755 # below for broken collect2 doesn't work under 4.3+
17756 collect2name=`$CC -print-prog-name=collect2`
17757 if test -f "$collect2name" &&
17758 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17759 then
17760 # We have reworked collect2
17761 :
17762 else
17763 # We have old collect2
17764 hardcode_direct=unsupported
17765 # It fails to find uninstalled libraries when the uninstalled
17766 # path is not listed in the libpath. Setting hardcode_minus_L
17767 # to unsupported forces relinking
17768 hardcode_minus_L=yes
17769 hardcode_libdir_flag_spec='-L$libdir'
17770 hardcode_libdir_separator=
17771 fi
17772 ;;
17773 esac
17774 shared_flag='-shared'
17775 if test yes = "$aix_use_runtimelinking"; then
17776 shared_flag="$shared_flag "'$wl-G'
17777 fi
17778 # Need to ensure runtime linking is disabled for the traditional
17779 # shared library, or the linker may eventually find shared libraries
17780 # /with/ Import File - we do not want to mix them.
17781 shared_flag_aix='-shared'
17782 shared_flag_svr4='-shared $wl-G'
17783 else
17784 # not using gcc
17785 if test ia64 = "$host_cpu"; then
17786 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17787 # chokes on -Wl,-G. The following line is correct:
17788 shared_flag='-G'
17789 else
17790 if test yes = "$aix_use_runtimelinking"; then
17791 shared_flag='$wl-G'
17792 else
17793 shared_flag='$wl-bM:SRE'
17794 fi
17795 shared_flag_aix='$wl-bM:SRE'
17796 shared_flag_svr4='$wl-G'
17797 fi
17798 fi
17799
17800 export_dynamic_flag_spec='$wl-bexpall'
17801 # It seems that -bexpall does not export symbols beginning with
17802 # underscore (_), so it is better to generate a list of symbols to export.
17803 always_export_symbols=yes
17804 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17805 # Warning - without using the other runtime loading flags (-brtl),
17806 # -berok will link without error, but may produce a broken library.
17807 allow_undefined_flag='-berok'
17808 # Determine the default libpath from the value encoded in an
17809 # empty executable.
17810 if test set = "${lt_cv_aix_libpath+set}"; then
17811 aix_libpath=$lt_cv_aix_libpath
17812 else
17813 if test ${lt_cv_aix_libpath_+y}
17814 then :
17815 printf %s "(cached) " >&6
17816 else case e in #(
17817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818 /* end confdefs.h. */
17819
17820 int
17821 main (void)
17822 {
17823
17824 ;
17825 return 0;
17826 }
17827 _ACEOF
17828 if ac_fn_c_try_link "$LINENO"
17829 then :
17830
17831 lt_aix_libpath_sed='
17832 /Import File Strings/,/^$/ {
17833 /^0/ {
17834 s/^0 *\([^ ]*\) *$/\1/
17835 p
17836 }
17837 }'
17838 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17839 # Check for a 64-bit object if we didn't find anything.
17840 if test -z "$lt_cv_aix_libpath_"; then
17841 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17842 fi
17843 fi
17844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17845 conftest$ac_exeext conftest.$ac_ext
17846 if test -z "$lt_cv_aix_libpath_"; then
17847 lt_cv_aix_libpath_=/usr/lib:/lib
17848 fi
17849 ;;
17850 esac
17851 fi
17852
17853 aix_libpath=$lt_cv_aix_libpath_
17854 fi
17855
17856 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17857 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
17858 else
17859 if test ia64 = "$host_cpu"; then
17860 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
17861 allow_undefined_flag="-z nodefs"
17862 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"
17863 else
17864 # Determine the default libpath from the value encoded in an
17865 # empty executable.
17866 if test set = "${lt_cv_aix_libpath+set}"; then
17867 aix_libpath=$lt_cv_aix_libpath
17868 else
17869 if test ${lt_cv_aix_libpath_+y}
17870 then :
17871 printf %s "(cached) " >&6
17872 else case e in #(
17873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874 /* end confdefs.h. */
17875
17876 int
17877 main (void)
17878 {
17879
17880 ;
17881 return 0;
17882 }
17883 _ACEOF
17884 if ac_fn_c_try_link "$LINENO"
17885 then :
17886
17887 lt_aix_libpath_sed='
17888 /Import File Strings/,/^$/ {
17889 /^0/ {
17890 s/^0 *\([^ ]*\) *$/\1/
17891 p
17892 }
17893 }'
17894 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17895 # Check for a 64-bit object if we didn't find anything.
17896 if test -z "$lt_cv_aix_libpath_"; then
17897 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17898 fi
17899 fi
17900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17901 conftest$ac_exeext conftest.$ac_ext
17902 if test -z "$lt_cv_aix_libpath_"; then
17903 lt_cv_aix_libpath_=/usr/lib:/lib
17904 fi
17905 ;;
17906 esac
17907 fi
17908
17909 aix_libpath=$lt_cv_aix_libpath_
17910 fi
17911
17912 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17913 # Warning - without using the other run time loading flags,
17914 # -berok will link without error, but may produce a broken library.
17915 no_undefined_flag=' $wl-bernotok'
17916 allow_undefined_flag=' $wl-berok'
17917 if test yes = "$with_gnu_ld"; then
17918 # We only use this code for GNU lds that support --whole-archive.
17919 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
17920 else
17921 # Exported symbols can be pulled into shared objects from archives
17922 whole_archive_flag_spec='$convenience'
17923 fi
17924 archive_cmds_need_lc=yes
17925 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17926 # -brtl affects multiple linker settings, -berok does not and is overridden later
17927 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17928 if test svr4 != "$with_aix_soname"; then
17929 # This is similar to how AIX traditionally builds its shared libraries.
17930 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'
17931 fi
17932 if test aix != "$with_aix_soname"; then
17933 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'
17934 else
17935 # used by -dlpreopen to get the symbols
17936 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
17937 fi
17938 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
17939 fi
17940 fi
17941 ;;
17942
17943 amigaos*)
17944 case $host_cpu in
17945 powerpc)
17946 # see comment about AmigaOS4 .so support
17947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17948 archive_expsym_cmds=''
17949 ;;
17950 m68k)
17951 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)'
17952 hardcode_libdir_flag_spec='-L$libdir'
17953 hardcode_minus_L=yes
17954 ;;
17955 esac
17956 ;;
17957
17958 bsdi[45]*)
17959 export_dynamic_flag_spec=-rdynamic
17960 ;;
17961
17962 cygwin* | mingw* | windows* | pw32* | cegcc*)
17963 # When not using gcc, we currently assume that we are using
17964 # Microsoft Visual C++ or Intel C++ Compiler.
17965 # hardcode_libdir_flag_spec is actually meaningless, as there is
17966 # no search path for DLLs.
17967 case $cc_basename in
17968 cl* | icl*)
17969 # Native MSVC or ICC
17970 hardcode_libdir_flag_spec=' '
17971 allow_undefined_flag=unsupported
17972 always_export_symbols=yes
17973 file_list_spec='@'
17974 # Tell ltmain to make .lib files, not .a files.
17975 libext=lib
17976 # Tell ltmain to make .dll files, not .so files.
17977 shrext_cmds=.dll
17978 # FIXME: Setting linknames here is a bad hack.
17979 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17980 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17981 cp "$export_symbols" "$output_objdir/$soname.def";
17982 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17983 else
17984 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17985 fi~
17986 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17987 linknames='
17988 # The linker will not automatically build a static lib if we build a DLL.
17989 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17990 enable_shared_with_static_runtimes=yes
17991 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17992 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17993 # Don't use ranlib
17994 old_postinstall_cmds='chmod 644 $oldlib'
17995 postlink_cmds='lt_outputfile="@OUTPUT@"~
17996 lt_tool_outputfile="@TOOL_OUTPUT@"~
17997 case $lt_outputfile in
17998 *.exe|*.EXE) ;;
17999 *)
18000 lt_outputfile=$lt_outputfile.exe
18001 lt_tool_outputfile=$lt_tool_outputfile.exe
18002 ;;
18003 esac~
18004 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
18005 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18006 $RM "$lt_outputfile.manifest";
18007 fi'
18008 ;;
18009 *)
18010 # Assume MSVC and ICC wrapper
18011 hardcode_libdir_flag_spec=' '
18012 allow_undefined_flag=unsupported
18013 # Tell ltmain to make .lib files, not .a files.
18014 libext=lib
18015 # Tell ltmain to make .dll files, not .so files.
18016 shrext_cmds=.dll
18017 # FIXME: Setting linknames here is a bad hack.
18018 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18019 # The linker will automatically build a .lib file if we build a DLL.
18020 old_archive_from_new_cmds='true'
18021 # FIXME: Should let the user specify the lib program.
18022 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18023 enable_shared_with_static_runtimes=yes
18024 ;;
18025 esac
18026 ;;
18027
18028 darwin* | rhapsody*)
18029
18030
18031 archive_cmds_need_lc=no
18032 hardcode_direct=no
18033 hardcode_automatic=yes
18034 hardcode_shlibpath_var=unsupported
18035 if test yes = "$lt_cv_ld_force_load"; then
18036 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\"`'
18037
18038 else
18039 whole_archive_flag_spec=''
18040 fi
18041 link_all_deplibs=yes
18042 allow_undefined_flag=$_lt_dar_allow_undefined
18043 case $cc_basename in
18044 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
18045 *) _lt_dar_can_shared=$GCC ;;
18046 esac
18047 if test yes = "$_lt_dar_can_shared"; then
18048 output_verbose_link_cmd=func_echo_all
18049 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
18050 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
18051 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"
18052 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"
18053
18054 else
18055 ld_shlibs=no
18056 fi
18057
18058 ;;
18059
18060 dgux*)
18061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18062 hardcode_libdir_flag_spec='-L$libdir'
18063 hardcode_shlibpath_var=no
18064 ;;
18065
18066 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18067 # support. Future versions do this automatically, but an explicit c++rt0.o
18068 # does not break anything, and helps significantly (at the cost of a little
18069 # extra space).
18070 freebsd2.2*)
18071 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18072 hardcode_libdir_flag_spec='-R$libdir'
18073 hardcode_direct=yes
18074 hardcode_shlibpath_var=no
18075 ;;
18076
18077 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18078 freebsd2.*)
18079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18080 hardcode_direct=yes
18081 hardcode_minus_L=yes
18082 hardcode_shlibpath_var=no
18083 ;;
18084
18085 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18086 freebsd* | dragonfly* | midnightbsd*)
18087 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18088 hardcode_libdir_flag_spec='-R$libdir'
18089 hardcode_direct=yes
18090 hardcode_shlibpath_var=no
18091 ;;
18092
18093 hpux9*)
18094 if test yes = "$GCC"; then
18095 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'
18096 else
18097 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'
18098 fi
18099 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18100 hardcode_libdir_separator=:
18101 hardcode_direct=yes
18102
18103 # hardcode_minus_L: Not really in the search PATH,
18104 # but as the default location of the library.
18105 hardcode_minus_L=yes
18106 export_dynamic_flag_spec='$wl-E'
18107 ;;
18108
18109 hpux10*)
18110 if test yes,no = "$GCC,$with_gnu_ld"; then
18111 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18112 else
18113 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18114 fi
18115 if test no = "$with_gnu_ld"; then
18116 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18117 hardcode_libdir_separator=:
18118 hardcode_direct=yes
18119 hardcode_direct_absolute=yes
18120 export_dynamic_flag_spec='$wl-E'
18121 # hardcode_minus_L: Not really in the search PATH,
18122 # but as the default location of the library.
18123 hardcode_minus_L=yes
18124 fi
18125 ;;
18126
18127 hpux11*)
18128 if test yes,no = "$GCC,$with_gnu_ld"; then
18129 case $host_cpu in
18130 hppa*64*)
18131 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18132 ;;
18133 ia64*)
18134 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18135 ;;
18136 *)
18137 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18138 ;;
18139 esac
18140 else
18141 case $host_cpu in
18142 hppa*64*)
18143 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18144 ;;
18145 ia64*)
18146 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18147 ;;
18148 *)
18149
18150 # Older versions of the 11.00 compiler do not understand -b yet
18151 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18153 printf %s "checking if $CC understands -b... " >&6; }
18154 if test ${lt_cv_prog_compiler__b+y}
18155 then :
18156 printf %s "(cached) " >&6
18157 else case e in #(
18158 e) lt_cv_prog_compiler__b=no
18159 save_LDFLAGS=$LDFLAGS
18160 LDFLAGS="$LDFLAGS -b"
18161 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18162 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18163 # The linker can only warn and ignore the option if not recognized
18164 # So say no if there are warnings
18165 if test -s conftest.err; then
18166 # Append any errors to the config.log.
18167 cat conftest.err 1>&5
18168 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18170 if diff conftest.exp conftest.er2 >/dev/null; then
18171 lt_cv_prog_compiler__b=yes
18172 fi
18173 else
18174 lt_cv_prog_compiler__b=yes
18175 fi
18176 fi
18177 $RM -r conftest*
18178 LDFLAGS=$save_LDFLAGS
18179 ;;
18180 esac
18181 fi
18182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18183 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
18184
18185 if test yes = "$lt_cv_prog_compiler__b"; then
18186 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18187 else
18188 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18189 fi
18190
18191 ;;
18192 esac
18193 fi
18194 if test no = "$with_gnu_ld"; then
18195 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18196 hardcode_libdir_separator=:
18197
18198 case $host_cpu in
18199 hppa*64*|ia64*)
18200 hardcode_direct=no
18201 hardcode_shlibpath_var=no
18202 ;;
18203 *)
18204 hardcode_direct=yes
18205 hardcode_direct_absolute=yes
18206 export_dynamic_flag_spec='$wl-E'
18207
18208 # hardcode_minus_L: Not really in the search PATH,
18209 # but as the default location of the library.
18210 hardcode_minus_L=yes
18211 ;;
18212 esac
18213 fi
18214 ;;
18215
18216 irix5* | irix6* | nonstopux*)
18217 if test yes = "$GCC"; then
18218 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'
18219 # Try to use the -exported_symbol ld option, if it does not
18220 # work, assume that -exports_file does not work either and
18221 # implicitly export all symbols.
18222 # This should be the same for all languages, so no per-tag cache variable.
18223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
18224 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
18225 if test ${lt_cv_irix_exported_symbol+y}
18226 then :
18227 printf %s "(cached) " >&6
18228 else case e in #(
18229 e) save_LDFLAGS=$LDFLAGS
18230 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
18231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h. */
18233 int foo (void) { return 0; }
18234 _ACEOF
18235 if ac_fn_c_try_link "$LINENO"
18236 then :
18237 lt_cv_irix_exported_symbol=yes
18238 else case e in #(
18239 e) lt_cv_irix_exported_symbol=no ;;
18240 esac
18241 fi
18242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18243 conftest$ac_exeext conftest.$ac_ext
18244 LDFLAGS=$save_LDFLAGS ;;
18245 esac
18246 fi
18247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
18248 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
18249 if test yes = "$lt_cv_irix_exported_symbol"; then
18250 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'
18251 fi
18252 link_all_deplibs=no
18253 else
18254 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'
18255 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'
18256 fi
18257 archive_cmds_need_lc='no'
18258 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18259 hardcode_libdir_separator=:
18260 inherit_rpath=yes
18261 link_all_deplibs=yes
18262 ;;
18263
18264 linux*)
18265 case $cc_basename in
18266 tcc*)
18267 # Fabrice Bellard et al's Tiny C Compiler
18268 ld_shlibs=yes
18269 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18270 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18271 ;;
18272 esac
18273 ;;
18274
18275 *-mlibc)
18276 ;;
18277
18278 netbsd* | netbsdelf*-gnu)
18279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18281 else
18282 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18283 fi
18284 hardcode_libdir_flag_spec='-R$libdir'
18285 hardcode_direct=yes
18286 hardcode_shlibpath_var=no
18287 ;;
18288
18289 newsos6)
18290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18291 hardcode_direct=yes
18292 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18293 hardcode_libdir_separator=:
18294 hardcode_shlibpath_var=no
18295 ;;
18296
18297 *nto* | *qnx*)
18298 ;;
18299
18300 openbsd*)
18301 if test -f /usr/libexec/ld.so; then
18302 hardcode_direct=yes
18303 hardcode_shlibpath_var=no
18304 hardcode_direct_absolute=yes
18305 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18307 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
18308 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18309 export_dynamic_flag_spec='$wl-E'
18310 else
18311 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18312 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18313 fi
18314 else
18315 ld_shlibs=no
18316 fi
18317 ;;
18318
18319 os2*)
18320 hardcode_libdir_flag_spec='-L$libdir'
18321 hardcode_minus_L=yes
18322 allow_undefined_flag=unsupported
18323 shrext_cmds=.dll
18324 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18325 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18326 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18327 $ECHO EXPORTS >> $output_objdir/$libname.def~
18328 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18329 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18330 emximp -o $lib $output_objdir/$libname.def'
18331 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18332 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18333 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18334 $ECHO EXPORTS >> $output_objdir/$libname.def~
18335 prefix_cmds="$SED"~
18336 if test EXPORTS = "`$SED 1q $export_symbols`"; then
18337 prefix_cmds="$prefix_cmds -e 1d";
18338 fi~
18339 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18340 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18341 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18342 emximp -o $lib $output_objdir/$libname.def'
18343 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18344 enable_shared_with_static_runtimes=yes
18345 file_list_spec='@'
18346 ;;
18347
18348 osf3*)
18349 if test yes = "$GCC"; then
18350 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18351 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'
18352 else
18353 allow_undefined_flag=' -expect_unresolved \*'
18354 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'
18355 fi
18356 archive_cmds_need_lc='no'
18357 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18358 hardcode_libdir_separator=:
18359 ;;
18360
18361 osf4* | osf5*) # as osf3* with the addition of -msym flag
18362 if test yes = "$GCC"; then
18363 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18364 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'
18365 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18366 else
18367 allow_undefined_flag=' -expect_unresolved \*'
18368 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'
18369 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~
18370 $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'
18371
18372 # Both c and cxx compiler support -rpath directly
18373 hardcode_libdir_flag_spec='-rpath $libdir'
18374 fi
18375 archive_cmds_need_lc='no'
18376 hardcode_libdir_separator=:
18377 ;;
18378
18379 serenity*)
18380 ;;
18381
18382 solaris*)
18383 no_undefined_flag=' -z defs'
18384 if test yes = "$GCC"; then
18385 wlarc='$wl'
18386 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18388 $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'
18389 else
18390 case `$CC -V 2>&1` in
18391 *"Compilers 5.0"*)
18392 wlarc=''
18393 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
18394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18395 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18396 ;;
18397 *)
18398 wlarc='$wl'
18399 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18401 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18402 ;;
18403 esac
18404 fi
18405 hardcode_libdir_flag_spec='-R$libdir'
18406 hardcode_shlibpath_var=no
18407 case $host_os in
18408 solaris2.[0-5] | solaris2.[0-5].*) ;;
18409 *)
18410 # The compiler driver will combine and reorder linker options,
18411 # but understands '-z linker_flag'. GCC discards it without '$wl',
18412 # but is careful enough not to reorder.
18413 # Supported since Solaris 2.6 (maybe 2.5.1?)
18414 if test yes = "$GCC"; then
18415 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18416 else
18417 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18418 fi
18419 ;;
18420 esac
18421 link_all_deplibs=yes
18422 ;;
18423
18424 sunos4*)
18425 if test sequent = "$host_vendor"; then
18426 # Use $CC to link under sequent, because it throws in some extra .o
18427 # files that make .init and .fini sections work.
18428 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18429 else
18430 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18431 fi
18432 hardcode_libdir_flag_spec='-L$libdir'
18433 hardcode_direct=yes
18434 hardcode_minus_L=yes
18435 hardcode_shlibpath_var=no
18436 ;;
18437
18438 sysv4)
18439 case $host_vendor in
18440 sni)
18441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18442 hardcode_direct=yes # is this really true???
18443 ;;
18444 siemens)
18445 ## LD is ld it makes a PLAMLIB
18446 ## CC just makes a GrossModule.
18447 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18448 reload_cmds='$CC -r -o $output$reload_objs'
18449 hardcode_direct=no
18450 ;;
18451 motorola)
18452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18453 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18454 ;;
18455 esac
18456 runpath_var='LD_RUN_PATH'
18457 hardcode_shlibpath_var=no
18458 ;;
18459
18460 sysv4.3*)
18461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18462 hardcode_shlibpath_var=no
18463 export_dynamic_flag_spec='-Bexport'
18464 ;;
18465
18466 sysv4*MP*)
18467 if test -d /usr/nec; then
18468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18469 hardcode_shlibpath_var=no
18470 runpath_var=LD_RUN_PATH
18471 hardcode_runpath_var=yes
18472 ld_shlibs=yes
18473 fi
18474 ;;
18475
18476 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18477 no_undefined_flag='$wl-z,text'
18478 archive_cmds_need_lc=no
18479 hardcode_shlibpath_var=no
18480 runpath_var='LD_RUN_PATH'
18481
18482 if test yes = "$GCC"; then
18483 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18484 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18485 else
18486 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18487 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18488 fi
18489 ;;
18490
18491 sysv5* | sco3.2v5* | sco5v6*)
18492 # Note: We CANNOT use -z defs as we might desire, because we do not
18493 # link with -lc, and that would cause any symbols used from libc to
18494 # always be unresolved, which means just about no library would
18495 # ever link correctly. If we're not using GNU ld we use -z text
18496 # though, which does catch some bad symbols but isn't as heavy-handed
18497 # as -z defs.
18498 no_undefined_flag='$wl-z,text'
18499 allow_undefined_flag='$wl-z,nodefs'
18500 archive_cmds_need_lc=no
18501 hardcode_shlibpath_var=no
18502 hardcode_libdir_flag_spec='$wl-R,$libdir'
18503 hardcode_libdir_separator=':'
18504 link_all_deplibs=yes
18505 export_dynamic_flag_spec='$wl-Bexport'
18506 runpath_var='LD_RUN_PATH'
18507
18508 if test yes = "$GCC"; then
18509 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18510 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18511 else
18512 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18513 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18514 fi
18515 ;;
18516
18517 uts4*)
18518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18519 hardcode_libdir_flag_spec='-L$libdir'
18520 hardcode_shlibpath_var=no
18521 ;;
18522
18523 *)
18524 ld_shlibs=no
18525 ;;
18526 esac
18527
18528 if test sni = "$host_vendor"; then
18529 case $host in
18530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18531 export_dynamic_flag_spec='$wl-Blargedynsym'
18532 ;;
18533 esac
18534 fi
18535 fi
18536
18537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18538 printf "%s\n" "$ld_shlibs" >&6; }
18539 test no = "$ld_shlibs" && can_build_shared=no
18540
18541 with_gnu_ld=$with_gnu_ld
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557 #
18558 # Do we need to explicitly link libc?
18559 #
18560 case "x$archive_cmds_need_lc" in
18561 x|xyes)
18562 # Assume -lc should be added
18563 archive_cmds_need_lc=yes
18564
18565 if test yes,yes = "$GCC,$enable_shared"; then
18566 case $archive_cmds in
18567 *'~'*)
18568 # FIXME: we may have to deal with multi-command sequences.
18569 ;;
18570 '$CC '*)
18571 # Test whether the compiler implicitly links with -lc since on some
18572 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18573 # to ld, don't add -lc before -lgcc.
18574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18575 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18576 if test ${lt_cv_archive_cmds_need_lc+y}
18577 then :
18578 printf %s "(cached) " >&6
18579 else case e in #(
18580 e) $RM conftest*
18581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18582
18583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18584 (eval $ac_compile) 2>&5
18585 ac_status=$?
18586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18587 test $ac_status = 0; } 2>conftest.err; then
18588 soname=conftest
18589 lib=conftest
18590 libobjs=conftest.$ac_objext
18591 deplibs=
18592 wl=$lt_prog_compiler_wl
18593 pic_flag=$lt_prog_compiler_pic
18594 compiler_flags=-v
18595 linker_flags=-v
18596 verstring=
18597 output_objdir=.
18598 libname=conftest
18599 lt_save_allow_undefined_flag=$allow_undefined_flag
18600 allow_undefined_flag=
18601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18602 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18603 ac_status=$?
18604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18605 test $ac_status = 0; }
18606 then
18607 lt_cv_archive_cmds_need_lc=no
18608 else
18609 lt_cv_archive_cmds_need_lc=yes
18610 fi
18611 allow_undefined_flag=$lt_save_allow_undefined_flag
18612 else
18613 cat conftest.err 1>&5
18614 fi
18615 $RM conftest*
18616 ;;
18617 esac
18618 fi
18619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18620 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
18621 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18622 ;;
18623 esac
18624 fi
18625 ;;
18626 esac
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18780 printf %s "checking dynamic linker characteristics... " >&6; }
18781
18782 if test yes = "$GCC"; then
18783 case $host_os in
18784 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
18785 *) lt_awk_arg='/^libraries:/' ;;
18786 esac
18787 case $host_os in
18788 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
18789 *) lt_sed_strip_eq='s|=/|/|g' ;;
18790 esac
18791 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18792 case $lt_search_path_spec in
18793 *\;*)
18794 # if the path contains ";" then we assume it to be the separator
18795 # otherwise default to the standard path separator (i.e. ":") - it is
18796 # assumed that no part of a normal pathname contains ";" but that should
18797 # okay in the real world where ";" in dirpaths is itself problematic.
18798 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18799 ;;
18800 *)
18801 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18802 ;;
18803 esac
18804 # Ok, now we have the path, separated by spaces, we can step through it
18805 # and add multilib dir if necessary...
18806 lt_tmp_lt_search_path_spec=
18807 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18808 # ...but if some path component already ends with the multilib dir we assume
18809 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
18810 case "$lt_multi_os_dir; $lt_search_path_spec " in
18811 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
18812 lt_multi_os_dir=
18813 ;;
18814 esac
18815 for lt_sys_path in $lt_search_path_spec; do
18816 if test -d "$lt_sys_path$lt_multi_os_dir"; then
18817 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
18818 elif test -n "$lt_multi_os_dir"; then
18819 test -d "$lt_sys_path" && \
18820 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18821 fi
18822 done
18823 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18824 BEGIN {RS = " "; FS = "/|\n";} {
18825 lt_foo = "";
18826 lt_count = 0;
18827 for (lt_i = NF; lt_i > 0; lt_i--) {
18828 if ($lt_i != "" && $lt_i != ".") {
18829 if ($lt_i == "..") {
18830 lt_count++;
18831 } else {
18832 if (lt_count == 0) {
18833 lt_foo = "/" $lt_i lt_foo;
18834 } else {
18835 lt_count--;
18836 }
18837 }
18838 }
18839 }
18840 if (lt_foo != "") { lt_freq[lt_foo]++; }
18841 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18842 }'`
18843 # AWK program above erroneously prepends '/' to C:/dos/paths
18844 # for these hosts.
18845 case $host_os in
18846 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18847 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
18848 esac
18849 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18850 else
18851 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18852 fi
18853 library_names_spec=
18854 libname_spec='lib$name'
18855 soname_spec=
18856 shrext_cmds=.so
18857 postinstall_cmds=
18858 postuninstall_cmds=
18859 finish_cmds=
18860 finish_eval=
18861 shlibpath_var=
18862 shlibpath_overrides_runpath=unknown
18863 version_type=none
18864 dynamic_linker="$host_os ld.so"
18865 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18866 need_lib_prefix=unknown
18867 hardcode_into_libs=no
18868
18869 # when you set need_version to no, make sure it does not cause -set_version
18870 # flags to be left without arguments
18871 need_version=unknown
18872
18873
18874
18875 case $host_os in
18876 aix3*)
18877 version_type=linux # correct to gnu/linux during the next big refactor
18878 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18879 shlibpath_var=LIBPATH
18880
18881 # AIX 3 has no versioning support, so we append a major version to the name.
18882 soname_spec='$libname$release$shared_ext$major'
18883 ;;
18884
18885 aix[4-9]*)
18886 version_type=linux # correct to gnu/linux during the next big refactor
18887 need_lib_prefix=no
18888 need_version=no
18889 hardcode_into_libs=yes
18890 if test ia64 = "$host_cpu"; then
18891 # AIX 5 supports IA64
18892 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18893 shlibpath_var=LD_LIBRARY_PATH
18894 else
18895 # With GCC up to 2.95.x, collect2 would create an import file
18896 # for dependence libraries. The import file would start with
18897 # the line '#! .'. This would cause the generated library to
18898 # depend on '.', always an invalid library. This was fixed in
18899 # development snapshots of GCC prior to 3.0.
18900 case $host_os in
18901 aix4 | aix4.[01] | aix4.[01].*)
18902 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18903 echo ' yes '
18904 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18905 :
18906 else
18907 can_build_shared=no
18908 fi
18909 ;;
18910 esac
18911 # Using Import Files as archive members, it is possible to support
18912 # filename-based versioning of shared library archives on AIX. While
18913 # this would work for both with and without runtime linking, it will
18914 # prevent static linking of such archives. So we do filename-based
18915 # shared library versioning with .so extension only, which is used
18916 # when both runtime linking and shared linking is enabled.
18917 # Unfortunately, runtime linking may impact performance, so we do
18918 # not want this to be the default eventually. Also, we use the
18919 # versioned .so libs for executables only if there is the -brtl
18920 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18921 # To allow for filename-based versioning support, we need to create
18922 # libNAME.so.V as an archive file, containing:
18923 # *) an Import File, referring to the versioned filename of the
18924 # archive as well as the shared archive member, telling the
18925 # bitwidth (32 or 64) of that shared object, and providing the
18926 # list of exported symbols of that shared object, eventually
18927 # decorated with the 'weak' keyword
18928 # *) the shared object with the F_LOADONLY flag set, to really avoid
18929 # it being seen by the linker.
18930 # At run time we better use the real file rather than another symlink,
18931 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18932
18933 case $with_aix_soname,$aix_use_runtimelinking in
18934 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18935 # soname into executable. Probably we can add versioning support to
18936 # collect2, so additional links can be useful in future.
18937 aix,yes) # traditional libtool
18938 dynamic_linker='AIX unversionable lib.so'
18939 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18940 # instead of lib<name>.a to let people know that these are not
18941 # typical AIX shared libraries.
18942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18943 ;;
18944 aix,no) # traditional AIX only
18945 dynamic_linker='AIX lib.a(lib.so.V)'
18946 # We preserve .a as extension for shared libraries through AIX4.2
18947 # and later when we are not doing run time linking.
18948 library_names_spec='$libname$release.a $libname.a'
18949 soname_spec='$libname$release$shared_ext$major'
18950 ;;
18951 svr4,*) # full svr4 only
18952 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18953 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18954 # We do not specify a path in Import Files, so LIBPATH fires.
18955 shlibpath_overrides_runpath=yes
18956 ;;
18957 *,yes) # both, prefer svr4
18958 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18959 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18960 # unpreferred sharedlib libNAME.a needs extra handling
18961 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"'
18962 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"'
18963 # We do not specify a path in Import Files, so LIBPATH fires.
18964 shlibpath_overrides_runpath=yes
18965 ;;
18966 *,no) # both, prefer aix
18967 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18968 library_names_spec='$libname$release.a $libname.a'
18969 soname_spec='$libname$release$shared_ext$major'
18970 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18971 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)'
18972 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"'
18973 ;;
18974 esac
18975 shlibpath_var=LIBPATH
18976 fi
18977 ;;
18978
18979 amigaos*)
18980 case $host_cpu in
18981 powerpc)
18982 # Since July 2007 AmigaOS4 officially supports .so libraries.
18983 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18985 ;;
18986 m68k)
18987 library_names_spec='$libname.ixlibrary $libname.a'
18988 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18989 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'
18990 ;;
18991 esac
18992 ;;
18993
18994 beos*)
18995 library_names_spec='$libname$shared_ext'
18996 dynamic_linker="$host_os ld.so"
18997 shlibpath_var=LIBRARY_PATH
18998 ;;
18999
19000 bsdi[45]*)
19001 version_type=linux # correct to gnu/linux during the next big refactor
19002 need_version=no
19003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19004 soname_spec='$libname$release$shared_ext$major'
19005 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19006 shlibpath_var=LD_LIBRARY_PATH
19007 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19008 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19009 # the default ld.so.conf also contains /usr/contrib/lib and
19010 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19011 # libtool to hard-code these into programs
19012 ;;
19013
19014 cygwin* | mingw* | windows* | pw32* | cegcc*)
19015 version_type=windows
19016 shrext_cmds=.dll
19017 need_version=no
19018 need_lib_prefix=no
19019
19020 case $GCC,$cc_basename in
19021 yes,*)
19022 # gcc
19023 library_names_spec='$libname.dll.a'
19024 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19025 # If user builds GCC with multilib enabled,
19026 # it should just install on $(libdir)
19027 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
19028 if test xyes = x"$multilib"; then
19029 postinstall_cmds='base_file=`basename \$file`~
19030 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19031 dldir=$destdir/`dirname \$dlpath`~
19032 $install_prog $dir/$dlname $destdir/$dlname~
19033 chmod a+x $destdir/$dlname~
19034 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19035 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
19036 fi'
19037 else
19038 postinstall_cmds='base_file=`basename \$file`~
19039 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19040 dldir=$destdir/`dirname \$dlpath`~
19041 test -d \$dldir || mkdir -p \$dldir~
19042 $install_prog $dir/$dlname \$dldir/$dlname~
19043 chmod a+x \$dldir/$dlname~
19044 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19045 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19046 fi'
19047 fi
19048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19049 dlpath=$dir/\$dldll~
19050 $RM \$dlpath'
19051 shlibpath_overrides_runpath=yes
19052
19053 case $host_os in
19054 cygwin*)
19055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19056 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19057
19058 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
19059 ;;
19060 mingw* | windows* | cegcc*)
19061 # MinGW DLLs use traditional 'lib' prefix
19062 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19063 ;;
19064 pw32*)
19065 # pw32 DLLs use 'pw' prefix rather than 'lib'
19066 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19067 ;;
19068 esac
19069 dynamic_linker='Win32 ld.exe'
19070 ;;
19071
19072 *,cl* | *,icl*)
19073 # Native MSVC or ICC
19074 libname_spec='$name'
19075 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19076 library_names_spec='$libname.dll.lib'
19077
19078 case $build_os in
19079 mingw* | windows*)
19080 sys_lib_search_path_spec=
19081 lt_save_ifs=$IFS
19082 IFS=';'
19083 for lt_path in $LIB
19084 do
19085 IFS=$lt_save_ifs
19086 # Let DOS variable expansion print the short 8.3 style file name.
19087 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19088 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19089 done
19090 IFS=$lt_save_ifs
19091 # Convert to MSYS style.
19092 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19093 ;;
19094 cygwin*)
19095 # Convert to unix form, then to dos form, then back to unix form
19096 # but this time dos style (no spaces!) so that the unix form looks
19097 # like /cygdrive/c/PROGRA~1:/cygdr...
19098 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19099 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19100 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19101 ;;
19102 *)
19103 sys_lib_search_path_spec=$LIB
19104 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19105 # It is most probably a Windows format PATH.
19106 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19107 else
19108 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19109 fi
19110 # FIXME: find the short name or the path components, as spaces are
19111 # common. (e.g. "Program Files" -> "PROGRA~1")
19112 ;;
19113 esac
19114
19115 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19116 postinstall_cmds='base_file=`basename \$file`~
19117 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19118 dldir=$destdir/`dirname \$dlpath`~
19119 test -d \$dldir || mkdir -p \$dldir~
19120 $install_prog $dir/$dlname \$dldir/$dlname'
19121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19122 dlpath=$dir/\$dldll~
19123 $RM \$dlpath'
19124 shlibpath_overrides_runpath=yes
19125 dynamic_linker='Win32 link.exe'
19126 ;;
19127
19128 *)
19129 # Assume MSVC and ICC wrapper
19130 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19131 dynamic_linker='Win32 ld.exe'
19132 ;;
19133 esac
19134 # FIXME: first we should search . and the directory the executable is in
19135 shlibpath_var=PATH
19136 ;;
19137
19138 darwin* | rhapsody*)
19139 dynamic_linker="$host_os dyld"
19140 version_type=darwin
19141 need_lib_prefix=no
19142 need_version=no
19143 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19144 soname_spec='$libname$release$major$shared_ext'
19145 shlibpath_overrides_runpath=yes
19146 shlibpath_var=DYLD_LIBRARY_PATH
19147 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19148
19149 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19150 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19151 ;;
19152
19153 dgux*)
19154 version_type=linux # correct to gnu/linux during the next big refactor
19155 need_lib_prefix=no
19156 need_version=no
19157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19158 soname_spec='$libname$release$shared_ext$major'
19159 shlibpath_var=LD_LIBRARY_PATH
19160 ;;
19161
19162 freebsd* | dragonfly* | midnightbsd*)
19163 # DragonFly does not have aout. When/if they implement a new
19164 # versioning mechanism, adjust this.
19165 if test -x /usr/bin/objformat; then
19166 objformat=`/usr/bin/objformat`
19167 else
19168 case $host_os in
19169 freebsd[23].*) objformat=aout ;;
19170 *) objformat=elf ;;
19171 esac
19172 fi
19173 version_type=freebsd-$objformat
19174 case $version_type in
19175 freebsd-elf*)
19176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19177 soname_spec='$libname$release$shared_ext$major'
19178 need_version=no
19179 need_lib_prefix=no
19180 ;;
19181 freebsd-*)
19182 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19183 need_version=yes
19184 ;;
19185 esac
19186 case $host_cpu in
19187 powerpc64)
19188 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
19189 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
19190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h. */
19192 int test_pointer_size[sizeof (void *) - 5];
19193
19194 _ACEOF
19195 if ac_fn_c_try_compile "$LINENO"
19196 then :
19197 shlibpath_var=LD_LIBRARY_PATH
19198 else case e in #(
19199 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
19200 esac
19201 fi
19202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19203 ;;
19204 *)
19205 shlibpath_var=LD_LIBRARY_PATH
19206 ;;
19207 esac
19208 case $host_os in
19209 freebsd2.*)
19210 shlibpath_overrides_runpath=yes
19211 ;;
19212 freebsd3.[01]* | freebsdelf3.[01]*)
19213 shlibpath_overrides_runpath=yes
19214 hardcode_into_libs=yes
19215 ;;
19216 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19217 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19218 shlibpath_overrides_runpath=no
19219 hardcode_into_libs=yes
19220 ;;
19221 *) # from 4.6 on, and DragonFly
19222 shlibpath_overrides_runpath=yes
19223 hardcode_into_libs=yes
19224 ;;
19225 esac
19226 ;;
19227
19228 haiku*)
19229 version_type=linux # correct to gnu/linux during the next big refactor
19230 need_lib_prefix=no
19231 need_version=no
19232 dynamic_linker="$host_os runtime_loader"
19233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19234 soname_spec='$libname$release$shared_ext$major'
19235 shlibpath_var=LIBRARY_PATH
19236 shlibpath_overrides_runpath=no
19237 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
19238 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
19239 hardcode_into_libs=no
19240 ;;
19241
19242 hpux9* | hpux10* | hpux11*)
19243 # Give a soname corresponding to the major version so that dld.sl refuses to
19244 # link against other versions.
19245 version_type=sunos
19246 need_lib_prefix=no
19247 need_version=no
19248 case $host_cpu in
19249 ia64*)
19250 shrext_cmds='.so'
19251 hardcode_into_libs=yes
19252 dynamic_linker="$host_os dld.so"
19253 shlibpath_var=LD_LIBRARY_PATH
19254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19256 soname_spec='$libname$release$shared_ext$major'
19257 if test 32 = "$HPUX_IA64_MODE"; then
19258 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19259 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19260 else
19261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19262 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19263 fi
19264 ;;
19265 hppa*64*)
19266 shrext_cmds='.sl'
19267 hardcode_into_libs=yes
19268 dynamic_linker="$host_os dld.sl"
19269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19272 soname_spec='$libname$release$shared_ext$major'
19273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19275 ;;
19276 *)
19277 shrext_cmds='.sl'
19278 dynamic_linker="$host_os dld.sl"
19279 shlibpath_var=SHLIB_PATH
19280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19282 soname_spec='$libname$release$shared_ext$major'
19283 ;;
19284 esac
19285 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19286 postinstall_cmds='chmod 555 $lib'
19287 # or fails outright, so override atomically:
19288 install_override_mode=555
19289 ;;
19290
19291 interix[3-9]*)
19292 version_type=linux # correct to gnu/linux during the next big refactor
19293 need_lib_prefix=no
19294 need_version=no
19295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19296 soname_spec='$libname$release$shared_ext$major'
19297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19298 shlibpath_var=LD_LIBRARY_PATH
19299 shlibpath_overrides_runpath=no
19300 hardcode_into_libs=yes
19301 ;;
19302
19303 irix5* | irix6* | nonstopux*)
19304 case $host_os in
19305 nonstopux*) version_type=nonstopux ;;
19306 *)
19307 if test yes = "$lt_cv_prog_gnu_ld"; then
19308 version_type=linux # correct to gnu/linux during the next big refactor
19309 else
19310 version_type=irix
19311 fi ;;
19312 esac
19313 need_lib_prefix=no
19314 need_version=no
19315 soname_spec='$libname$release$shared_ext$major'
19316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19317 case $host_os in
19318 irix5* | nonstopux*)
19319 libsuff= shlibsuff=
19320 ;;
19321 *)
19322 case $LD in # libtool.m4 will add one of these switches to LD
19323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19324 libsuff= shlibsuff= libmagic=32-bit;;
19325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19326 libsuff=32 shlibsuff=N32 libmagic=N32;;
19327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19329 *) libsuff= shlibsuff= libmagic=never-match;;
19330 esac
19331 ;;
19332 esac
19333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19334 shlibpath_overrides_runpath=no
19335 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19336 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19337 hardcode_into_libs=yes
19338 ;;
19339
19340 # No shared lib support for Linux oldld, aout, or coff.
19341 linux*oldld* | linux*aout* | linux*coff*)
19342 dynamic_linker=no
19343 ;;
19344
19345 linux*android*)
19346 version_type=none # Android doesn't support versioned libraries.
19347 need_lib_prefix=no
19348 need_version=no
19349 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
19350 soname_spec='$libname$release$shared_ext'
19351 finish_cmds=
19352 shlibpath_var=LD_LIBRARY_PATH
19353 shlibpath_overrides_runpath=yes
19354
19355 # This implies no fast_install, which is unacceptable.
19356 # Some rework will be needed to allow for fast_install
19357 # before this can be enabled.
19358 hardcode_into_libs=yes
19359
19360 dynamic_linker='Android linker'
19361 # -rpath works at least for libraries that are not overridden by
19362 # libraries installed in system locations.
19363 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19364 ;;
19365
19366 # This must be glibc/ELF.
19367 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19368 version_type=linux # correct to gnu/linux during the next big refactor
19369 need_lib_prefix=no
19370 need_version=no
19371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19372 soname_spec='$libname$release$shared_ext$major'
19373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19374 shlibpath_var=LD_LIBRARY_PATH
19375 shlibpath_overrides_runpath=no
19376
19377 # Some binutils ld are patched to set DT_RUNPATH
19378 if test ${lt_cv_shlibpath_overrides_runpath+y}
19379 then :
19380 printf %s "(cached) " >&6
19381 else case e in #(
19382 e) lt_cv_shlibpath_overrides_runpath=no
19383 save_LDFLAGS=$LDFLAGS
19384 save_libdir=$libdir
19385 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19386 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19388 /* end confdefs.h. */
19389
19390 int
19391 main (void)
19392 {
19393
19394 ;
19395 return 0;
19396 }
19397 _ACEOF
19398 if ac_fn_c_try_link "$LINENO"
19399 then :
19400 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19401 then :
19402 lt_cv_shlibpath_overrides_runpath=yes
19403 fi
19404 fi
19405 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19406 conftest$ac_exeext conftest.$ac_ext
19407 LDFLAGS=$save_LDFLAGS
19408 libdir=$save_libdir
19409 ;;
19410 esac
19411 fi
19412
19413 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19414
19415 # This implies no fast_install, which is unacceptable.
19416 # Some rework will be needed to allow for fast_install
19417 # before this can be enabled.
19418 hardcode_into_libs=yes
19419
19420 # Ideally, we could use ldconfig to report *all* directories which are
19421 # searched for libraries, however this is still not possible. Aside from not
19422 # being certain /sbin/ldconfig is available, command
19423 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19424 # even though it is searched at run-time. Try to do the best guess by
19425 # appending ld.so.conf contents (and includes) to the search path.
19426 if test -f /etc/ld.so.conf; then
19427 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' ' '`
19428 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19429 fi
19430
19431 # We used to test for /lib/ld.so.1 and disable shared libraries on
19432 # powerpc, because MkLinux only supported shared libraries with the
19433 # GNU dynamic linker. Since this was broken with cross compilers,
19434 # most powerpc-linux boxes support dynamic linking these days and
19435 # people can always --disable-shared, the test was removed, and we
19436 # assume the GNU/Linux dynamic linker is in use.
19437 dynamic_linker='GNU/Linux ld.so'
19438 ;;
19439
19440 netbsdelf*-gnu)
19441 version_type=linux
19442 need_lib_prefix=no
19443 need_version=no
19444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19445 soname_spec='$libname$release$shared_ext$major'
19446 shlibpath_var=LD_LIBRARY_PATH
19447 shlibpath_overrides_runpath=no
19448 hardcode_into_libs=yes
19449 dynamic_linker='NetBSD ld.elf_so'
19450 ;;
19451
19452 netbsdelf*-gnu)
19453 version_type=linux
19454 need_lib_prefix=no
19455 need_version=no
19456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19457 soname_spec='${libname}${release}${shared_ext}$major'
19458 shlibpath_var=LD_LIBRARY_PATH
19459 shlibpath_overrides_runpath=no
19460 hardcode_into_libs=yes
19461 dynamic_linker='NetBSD ld.elf_so'
19462 ;;
19463
19464 netbsd*)
19465 version_type=sunos
19466 need_lib_prefix=no
19467 need_version=no
19468 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19469 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19471 dynamic_linker='NetBSD (a.out) ld.so'
19472 else
19473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19474 soname_spec='$libname$release$shared_ext$major'
19475 dynamic_linker='NetBSD ld.elf_so'
19476 fi
19477 shlibpath_var=LD_LIBRARY_PATH
19478 shlibpath_overrides_runpath=yes
19479 hardcode_into_libs=yes
19480 ;;
19481
19482 *-mlibc)
19483 version_type=linux # correct to gnu/linux during the next big refactor
19484 need_lib_prefix=no
19485 need_version=no
19486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19487 soname_spec='$libname$release$shared_ext$major'
19488 dynamic_linker='mlibc ld.so'
19489 shlibpath_var=LD_LIBRARY_PATH
19490 shlibpath_overrides_runpath=no
19491 hardcode_into_libs=yes
19492 ;;
19493
19494 newsos6)
19495 version_type=linux # correct to gnu/linux during the next big refactor
19496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19497 shlibpath_var=LD_LIBRARY_PATH
19498 shlibpath_overrides_runpath=yes
19499 ;;
19500
19501 *nto* | *qnx*)
19502 version_type=qnx
19503 need_lib_prefix=no
19504 need_version=no
19505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19506 soname_spec='$libname$release$shared_ext$major'
19507 shlibpath_var=LD_LIBRARY_PATH
19508 shlibpath_overrides_runpath=no
19509 hardcode_into_libs=yes
19510 dynamic_linker='ldqnx.so'
19511 ;;
19512
19513 openbsd*)
19514 version_type=sunos
19515 sys_lib_dlsearch_path_spec=/usr/lib
19516 need_lib_prefix=no
19517 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19518 need_version=no
19519 else
19520 need_version=yes
19521 fi
19522 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19524 shlibpath_var=LD_LIBRARY_PATH
19525 shlibpath_overrides_runpath=yes
19526 ;;
19527
19528 os2*)
19529 libname_spec='$name'
19530 version_type=windows
19531 shrext_cmds=.dll
19532 need_version=no
19533 need_lib_prefix=no
19534 # OS/2 can only load a DLL with a base name of 8 characters or less.
19535 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19536 v=$($ECHO $release$versuffix | tr -d .-);
19537 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19538 $ECHO $n$v`$shared_ext'
19539 library_names_spec='${libname}_dll.$libext'
19540 dynamic_linker='OS/2 ld.exe'
19541 shlibpath_var=BEGINLIBPATH
19542 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19544 postinstall_cmds='base_file=`basename \$file`~
19545 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19546 dldir=$destdir/`dirname \$dlpath`~
19547 test -d \$dldir || mkdir -p \$dldir~
19548 $install_prog $dir/$dlname \$dldir/$dlname~
19549 chmod a+x \$dldir/$dlname~
19550 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19551 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19552 fi'
19553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19554 dlpath=$dir/\$dldll~
19555 $RM \$dlpath'
19556 ;;
19557
19558 osf3* | osf4* | osf5*)
19559 version_type=osf
19560 need_lib_prefix=no
19561 need_version=no
19562 soname_spec='$libname$release$shared_ext$major'
19563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19564 shlibpath_var=LD_LIBRARY_PATH
19565 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19567 ;;
19568
19569 rdos*)
19570 dynamic_linker=no
19571 ;;
19572
19573 serenity*)
19574 version_type=linux # correct to gnu/linux during the next big refactor
19575 need_lib_prefix=no
19576 need_version=no
19577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19578 soname_spec='$libname$release$shared_ext$major'
19579 shlibpath_var=LD_LIBRARY_PATH
19580 shlibpath_overrides_runpath=no
19581 dynamic_linker='SerenityOS LibELF'
19582 ;;
19583
19584 solaris*)
19585 version_type=linux # correct to gnu/linux during the next big refactor
19586 need_lib_prefix=no
19587 need_version=no
19588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19589 soname_spec='$libname$release$shared_ext$major'
19590 shlibpath_var=LD_LIBRARY_PATH
19591 shlibpath_overrides_runpath=yes
19592 hardcode_into_libs=yes
19593 # ldd complains unless libraries are executable
19594 postinstall_cmds='chmod +x $lib'
19595 ;;
19596
19597 sunos4*)
19598 version_type=sunos
19599 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19600 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19601 shlibpath_var=LD_LIBRARY_PATH
19602 shlibpath_overrides_runpath=yes
19603 if test yes = "$with_gnu_ld"; then
19604 need_lib_prefix=no
19605 fi
19606 need_version=yes
19607 ;;
19608
19609 sysv4 | sysv4.3*)
19610 version_type=linux # correct to gnu/linux during the next big refactor
19611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19612 soname_spec='$libname$release$shared_ext$major'
19613 shlibpath_var=LD_LIBRARY_PATH
19614 case $host_vendor in
19615 sni)
19616 shlibpath_overrides_runpath=no
19617 need_lib_prefix=no
19618 runpath_var=LD_RUN_PATH
19619 ;;
19620 siemens)
19621 need_lib_prefix=no
19622 ;;
19623 motorola)
19624 need_lib_prefix=no
19625 need_version=no
19626 shlibpath_overrides_runpath=no
19627 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19628 ;;
19629 esac
19630 ;;
19631
19632 sysv4*MP*)
19633 if test -d /usr/nec; then
19634 version_type=linux # correct to gnu/linux during the next big refactor
19635 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19636 soname_spec='$libname$shared_ext.$major'
19637 shlibpath_var=LD_LIBRARY_PATH
19638 fi
19639 ;;
19640
19641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19642 version_type=sco
19643 need_lib_prefix=no
19644 need_version=no
19645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19646 soname_spec='$libname$release$shared_ext$major'
19647 shlibpath_var=LD_LIBRARY_PATH
19648 shlibpath_overrides_runpath=yes
19649 hardcode_into_libs=yes
19650 if test yes = "$with_gnu_ld"; then
19651 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19652 else
19653 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19654 case $host_os in
19655 sco3.2v5*)
19656 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19657 ;;
19658 esac
19659 fi
19660 sys_lib_dlsearch_path_spec='/usr/lib'
19661 ;;
19662
19663 tpf*)
19664 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19665 version_type=linux # correct to gnu/linux during the next big refactor
19666 need_lib_prefix=no
19667 need_version=no
19668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19669 shlibpath_var=LD_LIBRARY_PATH
19670 shlibpath_overrides_runpath=no
19671 hardcode_into_libs=yes
19672 ;;
19673
19674 uts4*)
19675 version_type=linux # correct to gnu/linux during the next big refactor
19676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19677 soname_spec='$libname$release$shared_ext$major'
19678 shlibpath_var=LD_LIBRARY_PATH
19679 ;;
19680
19681 emscripten*)
19682 version_type=none
19683 need_lib_prefix=no
19684 need_version=no
19685 library_names_spec='$libname$release$shared_ext'
19686 soname_spec='$libname$release$shared_ext'
19687 finish_cmds=
19688 dynamic_linker="Emscripten linker"
19689 lt_prog_compiler_wl=
19690 lt_prog_compiler_pic=
19691 lt_prog_compiler_static=
19692
19693
19694 if test yes = "$GCC"; then
19695 lt_prog_compiler_wl='-Wl,'
19696 lt_prog_compiler_static='-static'
19697
19698 case $host_os in
19699 aix*)
19700 # All AIX code is PIC.
19701 if test ia64 = "$host_cpu"; then
19702 # AIX 5 now supports IA64 processor
19703 lt_prog_compiler_static='-Bstatic'
19704 fi
19705 lt_prog_compiler_pic='-fPIC'
19706 ;;
19707
19708 amigaos*)
19709 case $host_cpu in
19710 powerpc)
19711 # see comment about AmigaOS4 .so support
19712 lt_prog_compiler_pic='-fPIC'
19713 ;;
19714 m68k)
19715 # FIXME: we need at least 68020 code to build shared libraries, but
19716 # adding the '-m68020' flag to GCC prevents building anything better,
19717 # like '-m68040'.
19718 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
19719 ;;
19720 esac
19721 ;;
19722
19723 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19724 # PIC is the default for these OSes.
19725 ;;
19726
19727 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
19728 # This hack is so that the source file can tell whether it is being
19729 # built for inclusion in a dll (and should export symbols for example).
19730 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19731 # (--disable-auto-import) libraries
19732 lt_prog_compiler_pic='-DDLL_EXPORT'
19733 case $host_os in
19734 os2*)
19735 lt_prog_compiler_static='$wl-static'
19736 ;;
19737 esac
19738 ;;
19739
19740 darwin* | rhapsody*)
19741 # PIC is the default on this platform
19742 # Common symbols not allowed in MH_DYLIB files
19743 lt_prog_compiler_pic='-fno-common'
19744 ;;
19745
19746 haiku*)
19747 # PIC is the default for Haiku.
19748 # The "-static" flag exists, but is broken.
19749 lt_prog_compiler_static=
19750 ;;
19751
19752 hpux*)
19753 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19754 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19755 # sets the default TLS model and affects inlining.
19756 case $host_cpu in
19757 hppa*64*)
19758 # +Z the default
19759 ;;
19760 *)
19761 lt_prog_compiler_pic='-fPIC'
19762 ;;
19763 esac
19764 ;;
19765
19766 interix[3-9]*)
19767 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19768 # Instead, we relocate shared libraries at runtime.
19769 ;;
19770
19771 msdosdjgpp*)
19772 # Just because we use GCC doesn't mean we suddenly get shared libraries
19773 # on systems that don't support them.
19774 lt_prog_compiler_can_build_shared=no
19775 enable_shared=no
19776 ;;
19777
19778 *nto* | *qnx*)
19779 # QNX uses GNU C++, but need to define -shared option too, otherwise
19780 # it will coredump.
19781 lt_prog_compiler_pic='-fPIC -shared'
19782 ;;
19783
19784 sysv4*MP*)
19785 if test -d /usr/nec; then
19786 lt_prog_compiler_pic=-Kconform_pic
19787 fi
19788 ;;
19789
19790 *)
19791 lt_prog_compiler_pic='-fPIC'
19792 ;;
19793 esac
19794
19795 case $cc_basename in
19796 nvcc*) # Cuda Compiler Driver 2.2
19797 lt_prog_compiler_wl='-Xlinker '
19798 if test -n "$lt_prog_compiler_pic"; then
19799 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
19800 fi
19801 ;;
19802 esac
19803 else
19804 # PORTME Check for flag to pass linker flags through the system compiler.
19805 case $host_os in
19806 aix*)
19807 lt_prog_compiler_wl='-Wl,'
19808 if test ia64 = "$host_cpu"; then
19809 # AIX 5 now supports IA64 processor
19810 lt_prog_compiler_static='-Bstatic'
19811 else
19812 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
19813 fi
19814 ;;
19815
19816 darwin* | rhapsody*)
19817 # PIC is the default on this platform
19818 # Common symbols not allowed in MH_DYLIB files
19819 lt_prog_compiler_pic='-fno-common'
19820 case $cc_basename in
19821 nagfor*)
19822 # NAG Fortran compiler
19823 lt_prog_compiler_wl='-Wl,-Wl,,'
19824 lt_prog_compiler_pic='-PIC'
19825 lt_prog_compiler_static='-Bstatic'
19826 ;;
19827 esac
19828 ;;
19829
19830 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
19831 # This hack is so that the source file can tell whether it is being
19832 # built for inclusion in a dll (and should export symbols for example).
19833 lt_prog_compiler_pic='-DDLL_EXPORT'
19834 case $host_os in
19835 os2*)
19836 lt_prog_compiler_static='$wl-static'
19837 ;;
19838 esac
19839 ;;
19840
19841 hpux9* | hpux10* | hpux11*)
19842 lt_prog_compiler_wl='-Wl,'
19843 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19844 # not for PA HP-UX.
19845 case $host_cpu in
19846 hppa*64*|ia64*)
19847 # +Z the default
19848 ;;
19849 *)
19850 lt_prog_compiler_pic='+Z'
19851 ;;
19852 esac
19853 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19854 lt_prog_compiler_static='$wl-a ${wl}archive'
19855 ;;
19856
19857 irix5* | irix6* | nonstopux*)
19858 lt_prog_compiler_wl='-Wl,'
19859 # PIC (with -KPIC) is the default.
19860 lt_prog_compiler_static='-non_shared'
19861 ;;
19862
19863 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19864 case $cc_basename in
19865 # old Intel for x86_64, which still supported -KPIC.
19866 ecc*)
19867 lt_prog_compiler_wl='-Wl,'
19868 lt_prog_compiler_pic='-KPIC'
19869 lt_prog_compiler_static='-static'
19870 ;;
19871 *flang* | ftn | f18* | f95*)
19872 # Flang compiler.
19873 lt_prog_compiler_wl='-Wl,'
19874 lt_prog_compiler_pic='-fPIC'
19875 lt_prog_compiler_static='-static'
19876 ;;
19877 # flang / f18. f95 an alias for gfortran or flang on Debian
19878 flang* | f18* | f95*)
19879 lt_prog_compiler_wl='-Wl,'
19880 lt_prog_compiler_pic='-fPIC'
19881 lt_prog_compiler_static='-static'
19882 ;;
19883 # icc used to be incompatible with GCC.
19884 # ICC 10 doesn't accept -KPIC any more.
19885 icc* | ifort*)
19886 lt_prog_compiler_wl='-Wl,'
19887 lt_prog_compiler_pic='-fPIC'
19888 lt_prog_compiler_static='-static'
19889 ;;
19890 # Lahey Fortran 8.1.
19891 lf95*)
19892 lt_prog_compiler_wl='-Wl,'
19893 lt_prog_compiler_pic='--shared'
19894 lt_prog_compiler_static='--static'
19895 ;;
19896 nagfor*)
19897 # NAG Fortran compiler
19898 lt_prog_compiler_wl='-Wl,-Wl,,'
19899 lt_prog_compiler_pic='-PIC'
19900 lt_prog_compiler_static='-Bstatic'
19901 ;;
19902 tcc*)
19903 # Fabrice Bellard et al's Tiny C Compiler
19904 lt_prog_compiler_wl='-Wl,'
19905 lt_prog_compiler_pic='-fPIC'
19906 lt_prog_compiler_static='-static'
19907 ;;
19908 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
19909 # Portland Group compilers (*not* the Pentium gcc compiler,
19910 # which looks to be a dead project)
19911 lt_prog_compiler_wl='-Wl,'
19912 lt_prog_compiler_pic='-fpic'
19913 lt_prog_compiler_static='-Bstatic'
19914 ;;
19915 ccc*)
19916 lt_prog_compiler_wl='-Wl,'
19917 # All Alpha code is PIC.
19918 lt_prog_compiler_static='-non_shared'
19919 ;;
19920 xl* | bgxl* | bgf* | mpixl*)
19921 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
19922 lt_prog_compiler_wl='-Wl,'
19923 lt_prog_compiler_pic='-qpic'
19924 lt_prog_compiler_static='-qstaticlink'
19925 ;;
19926 *)
19927 case `$CC -V 2>&1 | $SED 5q` in
19928 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
19929 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19930 lt_prog_compiler_pic='-KPIC'
19931 lt_prog_compiler_static='-Bstatic'
19932 lt_prog_compiler_wl=''
19933 ;;
19934 *Sun\ F* | *Sun*Fortran*)
19935 lt_prog_compiler_pic='-KPIC'
19936 lt_prog_compiler_static='-Bstatic'
19937 lt_prog_compiler_wl='-Qoption ld '
19938 ;;
19939 *Sun\ C*)
19940 # Sun C 5.9
19941 lt_prog_compiler_pic='-KPIC'
19942 lt_prog_compiler_static='-Bstatic'
19943 lt_prog_compiler_wl='-Wl,'
19944 ;;
19945 *Intel*\ [CF]*Compiler*)
19946 lt_prog_compiler_wl='-Wl,'
19947 lt_prog_compiler_pic='-fPIC'
19948 lt_prog_compiler_static='-static'
19949 ;;
19950 *Portland\ Group*)
19951 lt_prog_compiler_wl='-Wl,'
19952 lt_prog_compiler_pic='-fpic'
19953 lt_prog_compiler_static='-Bstatic'
19954 ;;
19955 esac
19956 ;;
19957 esac
19958 ;;
19959
19960 newsos6)
19961 lt_prog_compiler_pic='-KPIC'
19962 lt_prog_compiler_static='-Bstatic'
19963 ;;
19964
19965 *-mlibc)
19966 lt_prog_compiler_wl='-Wl,'
19967 lt_prog_compiler_pic='-fPIC'
19968 lt_prog_compiler_static='-static'
19969 ;;
19970
19971 *nto* | *qnx*)
19972 # QNX uses GNU C++, but need to define -shared option too, otherwise
19973 # it will coredump.
19974 lt_prog_compiler_pic='-fPIC -shared'
19975 ;;
19976
19977 osf3* | osf4* | osf5*)
19978 lt_prog_compiler_wl='-Wl,'
19979 # All OSF/1 code is PIC.
19980 lt_prog_compiler_static='-non_shared'
19981 ;;
19982
19983 rdos*)
19984 lt_prog_compiler_static='-non_shared'
19985 ;;
19986
19987 serenity*)
19988 ;;
19989
19990 solaris*)
19991 lt_prog_compiler_pic='-KPIC'
19992 lt_prog_compiler_static='-Bstatic'
19993 case $cc_basename in
19994 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
19995 lt_prog_compiler_wl='-Qoption ld ';;
19996 *)
19997 lt_prog_compiler_wl='-Wl,';;
19998 esac
19999 ;;
20000
20001 sunos4*)
20002 lt_prog_compiler_wl='-Qoption ld '
20003 lt_prog_compiler_pic='-PIC'
20004 lt_prog_compiler_static='-Bstatic'
20005 ;;
20006
20007 sysv4 | sysv4.2uw2* | sysv4.3*)
20008 lt_prog_compiler_wl='-Wl,'
20009 lt_prog_compiler_pic='-KPIC'
20010 lt_prog_compiler_static='-Bstatic'
20011 ;;
20012
20013 sysv4*MP*)
20014 if test -d /usr/nec; then
20015 lt_prog_compiler_pic='-Kconform_pic'
20016 lt_prog_compiler_static='-Bstatic'
20017 fi
20018 ;;
20019
20020 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20021 lt_prog_compiler_wl='-Wl,'
20022 lt_prog_compiler_pic='-KPIC'
20023 lt_prog_compiler_static='-Bstatic'
20024 ;;
20025
20026 unicos*)
20027 lt_prog_compiler_wl='-Wl,'
20028 lt_prog_compiler_can_build_shared=no
20029 ;;
20030
20031 uts4*)
20032 lt_prog_compiler_pic='-pic'
20033 lt_prog_compiler_static='-Bstatic'
20034 ;;
20035
20036 *)
20037 lt_prog_compiler_can_build_shared=no
20038 ;;
20039 esac
20040 fi
20041
20042 case $host_os in
20043 # For platforms that do not support PIC, -DPIC is meaningless:
20044 *djgpp*)
20045 lt_prog_compiler_pic=
20046 ;;
20047 *)
20048 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
20049 ;;
20050 esac
20051
20052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20053 printf %s "checking for $compiler option to produce PIC... " >&6; }
20054 if test ${lt_cv_prog_compiler_pic+y}
20055 then :
20056 printf %s "(cached) " >&6
20057 else case e in #(
20058 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
20059 esac
20060 fi
20061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
20062 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
20063 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
20064
20065 #
20066 # Check to make sure the PIC flag actually works.
20067 #
20068 if test -n "$lt_prog_compiler_pic"; then
20069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
20070 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
20071 if test ${lt_cv_prog_compiler_pic_works+y}
20072 then :
20073 printf %s "(cached) " >&6
20074 else case e in #(
20075 e) lt_cv_prog_compiler_pic_works=no
20076 ac_outfile=conftest.$ac_objext
20077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20078 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
20079 # Insert the option either (1) after the last *FLAGS variable, or
20080 # (2) before a word containing "conftest.", or (3) at the end.
20081 # Note that $ac_compile itself does not contain backslashes and begins
20082 # with a dollar sign (not a hyphen), so the echo should work correctly.
20083 # The option is referenced via a variable to avoid confusing sed.
20084 lt_compile=`echo "$ac_compile" | $SED \
20085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20087 -e 's:$: $lt_compiler_flag:'`
20088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20089 (eval "$lt_compile" 2>conftest.err)
20090 ac_status=$?
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 if (exit $ac_status) && test -s "$ac_outfile"; then
20094 # The compiler can only warn and ignore the option if not recognized
20095 # So say no if there are warnings other than the usual output.
20096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20098 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20099 lt_cv_prog_compiler_pic_works=yes
20100 fi
20101 fi
20102 $RM conftest*
20103 ;;
20104 esac
20105 fi
20106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
20107 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
20108
20109 if test yes = "$lt_cv_prog_compiler_pic_works"; then
20110 case $lt_prog_compiler_pic in
20111 "" | " "*) ;;
20112 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
20113 esac
20114 else
20115 lt_prog_compiler_pic=
20116 lt_prog_compiler_can_build_shared=no
20117 fi
20118
20119 fi
20120
20121
20122
20123
20124
20125 #
20126 # Check to make sure the static flag actually works.
20127 #
20128 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
20129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20130 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20131 if test ${lt_cv_prog_compiler_static_works+y}
20132 then :
20133 printf %s "(cached) " >&6
20134 else case e in #(
20135 e) lt_cv_prog_compiler_static_works=no
20136 save_LDFLAGS=$LDFLAGS
20137 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20138 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20139 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20140 # The linker can only warn and ignore the option if not recognized
20141 # So say no if there are warnings
20142 if test -s conftest.err; then
20143 # Append any errors to the config.log.
20144 cat conftest.err 1>&5
20145 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20147 if diff conftest.exp conftest.er2 >/dev/null; then
20148 lt_cv_prog_compiler_static_works=yes
20149 fi
20150 else
20151 lt_cv_prog_compiler_static_works=yes
20152 fi
20153 fi
20154 $RM -r conftest*
20155 LDFLAGS=$save_LDFLAGS
20156 ;;
20157 esac
20158 fi
20159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
20160 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
20161
20162 if test yes = "$lt_cv_prog_compiler_static_works"; then
20163 :
20164 else
20165 lt_prog_compiler_static=
20166 fi
20167
20168
20169
20170 ='-fPIC'
20171 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
20172 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
20173 archive_cmds_need_lc=no
20174 no_undefined_flag=
20175 ;;
20176
20177 *)
20178 dynamic_linker=no
20179 ;;
20180 esac
20181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20182 printf "%s\n" "$dynamic_linker" >&6; }
20183 test no = "$dynamic_linker" && can_build_shared=no
20184
20185 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20186 if test yes = "$GCC"; then
20187 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20188 fi
20189
20190 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20191 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20192 fi
20193
20194 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20195 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20196 fi
20197
20198 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20199 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20200
20201 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20202 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20203
20204 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20205 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20304 printf %s "checking how to hardcode library paths into programs... " >&6; }
20305 hardcode_action=
20306 if test -n "$hardcode_libdir_flag_spec" ||
20307 test -n "$runpath_var" ||
20308 test yes = "$hardcode_automatic"; then
20309
20310 # We can hardcode non-existent directories.
20311 if test no != "$hardcode_direct" &&
20312 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20313 # have to relink, otherwise we might link with an installed library
20314 # when we should be linking with a yet-to-be-installed one
20315 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
20316 test no != "$hardcode_minus_L"; then
20317 # Linking always hardcodes the temporary library directory.
20318 hardcode_action=relink
20319 else
20320 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20321 hardcode_action=immediate
20322 fi
20323 else
20324 # We cannot hardcode anything, or else we can only hardcode existing
20325 # directories.
20326 hardcode_action=unsupported
20327 fi
20328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
20329 printf "%s\n" "$hardcode_action" >&6; }
20330
20331 if test relink = "$hardcode_action" ||
20332 test yes = "$inherit_rpath"; then
20333 # Fast installation is not supported
20334 enable_fast_install=no
20335 elif test yes = "$shlibpath_overrides_runpath" ||
20336 test no = "$enable_shared"; then
20337 # Fast installation is not necessary
20338 enable_fast_install=needless
20339 fi
20340
20341
20342
20343
20344
20345
20346 if test yes != "$enable_dlopen"; then
20347 enable_dlopen=unknown
20348 enable_dlopen_self=unknown
20349 enable_dlopen_self_static=unknown
20350 else
20351 lt_cv_dlopen=no
20352 lt_cv_dlopen_libs=
20353
20354 case $host_os in
20355 beos*)
20356 lt_cv_dlopen=load_add_on
20357 lt_cv_dlopen_libs=
20358 lt_cv_dlopen_self=yes
20359 ;;
20360
20361 mingw* | windows* | pw32* | cegcc*)
20362 lt_cv_dlopen=LoadLibrary
20363 lt_cv_dlopen_libs=
20364 ;;
20365
20366 cygwin*)
20367 lt_cv_dlopen=dlopen
20368 lt_cv_dlopen_libs=
20369 ;;
20370
20371 darwin*)
20372 # if libdl is installed we need to link against it
20373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20374 printf %s "checking for dlopen in -ldl... " >&6; }
20375 if test ${ac_cv_lib_dl_dlopen+y}
20376 then :
20377 printf %s "(cached) " >&6
20378 else case e in #(
20379 e) ac_check_lib_save_LIBS=$LIBS
20380 LIBS="-ldl $LIBS"
20381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20382 /* end confdefs.h. */
20383
20384 /* Override any GCC internal prototype to avoid an error.
20385 Use char because int might match the return type of a GCC
20386 builtin and then its argument prototype would still apply.
20387 The 'extern "C"' is for builds by C++ compilers;
20388 although this is not generally supported in C code supporting it here
20389 has little cost and some practical benefit (sr 110532). */
20390 #ifdef __cplusplus
20391 extern "C"
20392 #endif
20393 char dlopen (void);
20394 int
20395 main (void)
20396 {
20397 return dlopen ();
20398 ;
20399 return 0;
20400 }
20401 _ACEOF
20402 if ac_fn_c_try_link "$LINENO"
20403 then :
20404 ac_cv_lib_dl_dlopen=yes
20405 else case e in #(
20406 e) ac_cv_lib_dl_dlopen=no ;;
20407 esac
20408 fi
20409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20410 conftest$ac_exeext conftest.$ac_ext
20411 LIBS=$ac_check_lib_save_LIBS ;;
20412 esac
20413 fi
20414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20415 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
20416 if test "x$ac_cv_lib_dl_dlopen" = xyes
20417 then :
20418 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20419 else case e in #(
20420 e)
20421 lt_cv_dlopen=dyld
20422 lt_cv_dlopen_libs=
20423 lt_cv_dlopen_self=yes
20424 ;;
20425 esac
20426 fi
20427
20428 ;;
20429
20430 tpf*)
20431 # Don't try to run any link tests for TPF. We know it's impossible
20432 # because TPF is a cross-compiler, and we know how we open DSOs.
20433 lt_cv_dlopen=dlopen
20434 lt_cv_dlopen_libs=
20435 lt_cv_dlopen_self=no
20436 ;;
20437
20438 *)
20439 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20440 if test "x$ac_cv_func_shl_load" = xyes
20441 then :
20442 lt_cv_dlopen=shl_load
20443 else case e in #(
20444 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20445 printf %s "checking for shl_load in -ldld... " >&6; }
20446 if test ${ac_cv_lib_dld_shl_load+y}
20447 then :
20448 printf %s "(cached) " >&6
20449 else case e in #(
20450 e) ac_check_lib_save_LIBS=$LIBS
20451 LIBS="-ldld $LIBS"
20452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20453 /* end confdefs.h. */
20454
20455 /* Override any GCC internal prototype to avoid an error.
20456 Use char because int might match the return type of a GCC
20457 builtin and then its argument prototype would still apply.
20458 The 'extern "C"' is for builds by C++ compilers;
20459 although this is not generally supported in C code supporting it here
20460 has little cost and some practical benefit (sr 110532). */
20461 #ifdef __cplusplus
20462 extern "C"
20463 #endif
20464 char shl_load (void);
20465 int
20466 main (void)
20467 {
20468 return shl_load ();
20469 ;
20470 return 0;
20471 }
20472 _ACEOF
20473 if ac_fn_c_try_link "$LINENO"
20474 then :
20475 ac_cv_lib_dld_shl_load=yes
20476 else case e in #(
20477 e) ac_cv_lib_dld_shl_load=no ;;
20478 esac
20479 fi
20480 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20481 conftest$ac_exeext conftest.$ac_ext
20482 LIBS=$ac_check_lib_save_LIBS ;;
20483 esac
20484 fi
20485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20486 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
20487 if test "x$ac_cv_lib_dld_shl_load" = xyes
20488 then :
20489 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
20490 else case e in #(
20491 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
20492 if test "x$ac_cv_func_dlopen" = xyes
20493 then :
20494 lt_cv_dlopen=dlopen
20495 else case e in #(
20496 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20497 printf %s "checking for dlopen in -ldl... " >&6; }
20498 if test ${ac_cv_lib_dl_dlopen+y}
20499 then :
20500 printf %s "(cached) " >&6
20501 else case e in #(
20502 e) ac_check_lib_save_LIBS=$LIBS
20503 LIBS="-ldl $LIBS"
20504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505 /* end confdefs.h. */
20506
20507 /* Override any GCC internal prototype to avoid an error.
20508 Use char because int might match the return type of a GCC
20509 builtin and then its argument prototype would still apply.
20510 The 'extern "C"' is for builds by C++ compilers;
20511 although this is not generally supported in C code supporting it here
20512 has little cost and some practical benefit (sr 110532). */
20513 #ifdef __cplusplus
20514 extern "C"
20515 #endif
20516 char dlopen (void);
20517 int
20518 main (void)
20519 {
20520 return dlopen ();
20521 ;
20522 return 0;
20523 }
20524 _ACEOF
20525 if ac_fn_c_try_link "$LINENO"
20526 then :
20527 ac_cv_lib_dl_dlopen=yes
20528 else case e in #(
20529 e) ac_cv_lib_dl_dlopen=no ;;
20530 esac
20531 fi
20532 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20533 conftest$ac_exeext conftest.$ac_ext
20534 LIBS=$ac_check_lib_save_LIBS ;;
20535 esac
20536 fi
20537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20538 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
20539 if test "x$ac_cv_lib_dl_dlopen" = xyes
20540 then :
20541 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20542 else case e in #(
20543 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20544 printf %s "checking for dlopen in -lsvld... " >&6; }
20545 if test ${ac_cv_lib_svld_dlopen+y}
20546 then :
20547 printf %s "(cached) " >&6
20548 else case e in #(
20549 e) ac_check_lib_save_LIBS=$LIBS
20550 LIBS="-lsvld $LIBS"
20551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20552 /* end confdefs.h. */
20553
20554 /* Override any GCC internal prototype to avoid an error.
20555 Use char because int might match the return type of a GCC
20556 builtin and then its argument prototype would still apply.
20557 The 'extern "C"' is for builds by C++ compilers;
20558 although this is not generally supported in C code supporting it here
20559 has little cost and some practical benefit (sr 110532). */
20560 #ifdef __cplusplus
20561 extern "C"
20562 #endif
20563 char dlopen (void);
20564 int
20565 main (void)
20566 {
20567 return dlopen ();
20568 ;
20569 return 0;
20570 }
20571 _ACEOF
20572 if ac_fn_c_try_link "$LINENO"
20573 then :
20574 ac_cv_lib_svld_dlopen=yes
20575 else case e in #(
20576 e) ac_cv_lib_svld_dlopen=no ;;
20577 esac
20578 fi
20579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20580 conftest$ac_exeext conftest.$ac_ext
20581 LIBS=$ac_check_lib_save_LIBS ;;
20582 esac
20583 fi
20584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20585 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
20586 if test "x$ac_cv_lib_svld_dlopen" = xyes
20587 then :
20588 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
20589 else case e in #(
20590 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20591 printf %s "checking for dld_link in -ldld... " >&6; }
20592 if test ${ac_cv_lib_dld_dld_link+y}
20593 then :
20594 printf %s "(cached) " >&6
20595 else case e in #(
20596 e) ac_check_lib_save_LIBS=$LIBS
20597 LIBS="-ldld $LIBS"
20598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20599 /* end confdefs.h. */
20600
20601 /* Override any GCC internal prototype to avoid an error.
20602 Use char because int might match the return type of a GCC
20603 builtin and then its argument prototype would still apply.
20604 The 'extern "C"' is for builds by C++ compilers;
20605 although this is not generally supported in C code supporting it here
20606 has little cost and some practical benefit (sr 110532). */
20607 #ifdef __cplusplus
20608 extern "C"
20609 #endif
20610 char dld_link (void);
20611 int
20612 main (void)
20613 {
20614 return dld_link ();
20615 ;
20616 return 0;
20617 }
20618 _ACEOF
20619 if ac_fn_c_try_link "$LINENO"
20620 then :
20621 ac_cv_lib_dld_dld_link=yes
20622 else case e in #(
20623 e) ac_cv_lib_dld_dld_link=no ;;
20624 esac
20625 fi
20626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20627 conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS ;;
20629 esac
20630 fi
20631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20632 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
20633 if test "x$ac_cv_lib_dld_dld_link" = xyes
20634 then :
20635 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
20636 fi
20637
20638 ;;
20639 esac
20640 fi
20641
20642 ;;
20643 esac
20644 fi
20645
20646 ;;
20647 esac
20648 fi
20649
20650 ;;
20651 esac
20652 fi
20653
20654 ;;
20655 esac
20656 fi
20657
20658 ;;
20659 esac
20660
20661 if test no = "$lt_cv_dlopen"; then
20662 enable_dlopen=no
20663 else
20664 enable_dlopen=yes
20665 fi
20666
20667 case $lt_cv_dlopen in
20668 dlopen)
20669 save_CPPFLAGS=$CPPFLAGS
20670 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20671
20672 save_LDFLAGS=$LDFLAGS
20673 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20674
20675 save_LIBS=$LIBS
20676 LIBS="$lt_cv_dlopen_libs $LIBS"
20677
20678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
20679 printf %s "checking whether a program can dlopen itself... " >&6; }
20680 if test ${lt_cv_dlopen_self+y}
20681 then :
20682 printf %s "(cached) " >&6
20683 else case e in #(
20684 e) if test yes = "$cross_compiling"; then :
20685 lt_cv_dlopen_self=cross
20686 else
20687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20688 lt_status=$lt_dlunknown
20689 cat > conftest.$ac_ext <<_LT_EOF
20690 #line $LINENO "configure"
20691 #include "confdefs.h"
20692
20693 #if HAVE_DLFCN_H
20694 #include <dlfcn.h>
20695 #endif
20696
20697 #include <stdio.h>
20698
20699 #ifdef RTLD_GLOBAL
20700 # define LT_DLGLOBAL RTLD_GLOBAL
20701 #else
20702 # ifdef DL_GLOBAL
20703 # define LT_DLGLOBAL DL_GLOBAL
20704 # else
20705 # define LT_DLGLOBAL 0
20706 # endif
20707 #endif
20708
20709 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20710 find out it does not work in some platform. */
20711 #ifndef LT_DLLAZY_OR_NOW
20712 # ifdef RTLD_LAZY
20713 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20714 # else
20715 # ifdef DL_LAZY
20716 # define LT_DLLAZY_OR_NOW DL_LAZY
20717 # else
20718 # ifdef RTLD_NOW
20719 # define LT_DLLAZY_OR_NOW RTLD_NOW
20720 # else
20721 # ifdef DL_NOW
20722 # define LT_DLLAZY_OR_NOW DL_NOW
20723 # else
20724 # define LT_DLLAZY_OR_NOW 0
20725 # endif
20726 # endif
20727 # endif
20728 # endif
20729 #endif
20730
20731 /* When -fvisibility=hidden is used, assume the code has been annotated
20732 correspondingly for the symbols needed. */
20733 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20734 int fnord (void) __attribute__((visibility("default")));
20735 #endif
20736
20737 int fnord (void) { return 42; }
20738 int main (void)
20739 {
20740 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20741 int status = $lt_dlunknown;
20742
20743 if (self)
20744 {
20745 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20746 else
20747 {
20748 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20749 else puts (dlerror ());
20750 }
20751 /* dlclose (self); */
20752 }
20753 else
20754 puts (dlerror ());
20755
20756 return status;
20757 }
20758 _LT_EOF
20759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20760 (eval $ac_link) 2>&5
20761 ac_status=$?
20762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20763 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20764 (./conftest; exit; ) >&5 2>/dev/null
20765 lt_status=$?
20766 case x$lt_status in
20767 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20768 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20769 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20770 esac
20771 else :
20772 # compilation failed
20773 lt_cv_dlopen_self=no
20774 fi
20775 fi
20776 rm -fr conftest*
20777
20778 ;;
20779 esac
20780 fi
20781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20782 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
20783
20784 if test yes = "$lt_cv_dlopen_self"; then
20785 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20787 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
20788 if test ${lt_cv_dlopen_self_static+y}
20789 then :
20790 printf %s "(cached) " >&6
20791 else case e in #(
20792 e) if test yes = "$cross_compiling"; then :
20793 lt_cv_dlopen_self_static=cross
20794 else
20795 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20796 lt_status=$lt_dlunknown
20797 cat > conftest.$ac_ext <<_LT_EOF
20798 #line $LINENO "configure"
20799 #include "confdefs.h"
20800
20801 #if HAVE_DLFCN_H
20802 #include <dlfcn.h>
20803 #endif
20804
20805 #include <stdio.h>
20806
20807 #ifdef RTLD_GLOBAL
20808 # define LT_DLGLOBAL RTLD_GLOBAL
20809 #else
20810 # ifdef DL_GLOBAL
20811 # define LT_DLGLOBAL DL_GLOBAL
20812 # else
20813 # define LT_DLGLOBAL 0
20814 # endif
20815 #endif
20816
20817 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20818 find out it does not work in some platform. */
20819 #ifndef LT_DLLAZY_OR_NOW
20820 # ifdef RTLD_LAZY
20821 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20822 # else
20823 # ifdef DL_LAZY
20824 # define LT_DLLAZY_OR_NOW DL_LAZY
20825 # else
20826 # ifdef RTLD_NOW
20827 # define LT_DLLAZY_OR_NOW RTLD_NOW
20828 # else
20829 # ifdef DL_NOW
20830 # define LT_DLLAZY_OR_NOW DL_NOW
20831 # else
20832 # define LT_DLLAZY_OR_NOW 0
20833 # endif
20834 # endif
20835 # endif
20836 # endif
20837 #endif
20838
20839 /* When -fvisibility=hidden is used, assume the code has been annotated
20840 correspondingly for the symbols needed. */
20841 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20842 int fnord (void) __attribute__((visibility("default")));
20843 #endif
20844
20845 int fnord (void) { return 42; }
20846 int main (void)
20847 {
20848 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20849 int status = $lt_dlunknown;
20850
20851 if (self)
20852 {
20853 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20854 else
20855 {
20856 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20857 else puts (dlerror ());
20858 }
20859 /* dlclose (self); */
20860 }
20861 else
20862 puts (dlerror ());
20863
20864 return status;
20865 }
20866 _LT_EOF
20867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20868 (eval $ac_link) 2>&5
20869 ac_status=$?
20870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20871 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20872 (./conftest; exit; ) >&5 2>/dev/null
20873 lt_status=$?
20874 case x$lt_status in
20875 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20876 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20877 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20878 esac
20879 else :
20880 # compilation failed
20881 lt_cv_dlopen_self_static=no
20882 fi
20883 fi
20884 rm -fr conftest*
20885
20886 ;;
20887 esac
20888 fi
20889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20890 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
20891 fi
20892
20893 CPPFLAGS=$save_CPPFLAGS
20894 LDFLAGS=$save_LDFLAGS
20895 LIBS=$save_LIBS
20896 ;;
20897 esac
20898
20899 case $lt_cv_dlopen_self in
20900 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20901 *) enable_dlopen_self=unknown ;;
20902 esac
20903
20904 case $lt_cv_dlopen_self_static in
20905 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20906 *) enable_dlopen_self_static=unknown ;;
20907 esac
20908 fi
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926 striplib=
20927 old_striplib=
20928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20929 printf %s "checking whether stripping libraries is possible... " >&6; }
20930 if test -z "$STRIP"; then
20931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20932 printf "%s\n" "no" >&6; }
20933 else
20934 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20935 old_striplib="$STRIP --strip-debug"
20936 striplib="$STRIP --strip-unneeded"
20937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20938 printf "%s\n" "yes" >&6; }
20939 else
20940 case $host_os in
20941 darwin*)
20942 # FIXME - insert some real tests, host_os isn't really good enough
20943 striplib="$STRIP -x"
20944 old_striplib="$STRIP -S"
20945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20946 printf "%s\n" "yes" >&6; }
20947 ;;
20948 freebsd*)
20949 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
20950 old_striplib="$STRIP --strip-debug"
20951 striplib="$STRIP --strip-unneeded"
20952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20953 printf "%s\n" "yes" >&6; }
20954 else
20955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20956 printf "%s\n" "no" >&6; }
20957 fi
20958 ;;
20959 *)
20960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20961 printf "%s\n" "no" >&6; }
20962 ;;
20963 esac
20964 fi
20965 fi
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978 # Report what library types will actually be built
20979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20980 printf %s "checking if libtool supports shared libraries... " >&6; }
20981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20982 printf "%s\n" "$can_build_shared" >&6; }
20983
20984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20985 printf %s "checking whether to build shared libraries... " >&6; }
20986 test no = "$can_build_shared" && enable_shared=no
20987
20988 # On AIX, shared libraries and static libraries use the same namespace, and
20989 # are all built from PIC.
20990 case $host_os in
20991 aix3*)
20992 test yes = "$enable_shared" && enable_static=no
20993 if test -n "$RANLIB"; then
20994 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20995 postinstall_cmds='$RANLIB $lib'
20996 fi
20997 ;;
20998
20999 aix[4-9]*)
21000 if test ia64 != "$host_cpu"; then
21001 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
21002 yes,aix,yes) ;; # shared object as lib.so file only
21003 yes,svr4,*) ;; # shared object as lib.so archive member only
21004 yes,*) enable_static=no ;; # shared object in lib.a archive as well
21005 esac
21006 fi
21007 ;;
21008 esac
21009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21010 printf "%s\n" "$enable_shared" >&6; }
21011
21012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21013 printf %s "checking whether to build static libraries... " >&6; }
21014 # Make sure either enable_shared or enable_static is yes.
21015 test yes = "$enable_shared" || enable_static=yes
21016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21017 printf "%s\n" "$enable_static" >&6; }
21018
21019
21020
21021
21022 fi
21023 ac_ext=c
21024 ac_cpp='$CPP $CPPFLAGS'
21025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21028
21029 CC=$lt_save_CC
21030
21031 if test -n "$CXX" && ( test no != "$CXX" &&
21032 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
21033 (test g++ != "$CXX"))); then
21034 ac_ext=cpp
21035 ac_cpp='$CXXCPP $CPPFLAGS'
21036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21040 printf %s "checking how to run the C++ preprocessor... " >&6; }
21041 if test -z "$CXXCPP"; then
21042 if test ${ac_cv_prog_CXXCPP+y}
21043 then :
21044 printf %s "(cached) " >&6
21045 else case e in #(
21046 e) # Double quotes because $CXX needs to be expanded
21047 for CXXCPP in "$CXX -E" cpp /lib/cpp
21048 do
21049 ac_preproc_ok=false
21050 for ac_cxx_preproc_warn_flag in '' yes
21051 do
21052 # Use a header file that comes with gcc, so configuring glibc
21053 # with a fresh cross-compiler works.
21054 # On the NeXT, cc -E runs the code through the compiler's parser,
21055 # not just through cpp. "Syntax error" is here to catch this case.
21056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21057 /* end confdefs.h. */
21058 #include <limits.h>
21059 Syntax error
21060 _ACEOF
21061 if ac_fn_cxx_try_cpp "$LINENO"
21062 then :
21063
21064 else case e in #(
21065 e) # Broken: fails on valid input.
21066 continue ;;
21067 esac
21068 fi
21069 rm -f conftest.err conftest.i conftest.$ac_ext
21070
21071 # OK, works on sane cases. Now check whether nonexistent headers
21072 # can be detected and how.
21073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21074 /* end confdefs.h. */
21075 #include <ac_nonexistent.h>
21076 _ACEOF
21077 if ac_fn_cxx_try_cpp "$LINENO"
21078 then :
21079 # Broken: success on invalid input.
21080 continue
21081 else case e in #(
21082 e) # Passes both tests.
21083 ac_preproc_ok=:
21084 break ;;
21085 esac
21086 fi
21087 rm -f conftest.err conftest.i conftest.$ac_ext
21088
21089 done
21090 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21091 rm -f conftest.i conftest.err conftest.$ac_ext
21092 if $ac_preproc_ok
21093 then :
21094 break
21095 fi
21096
21097 done
21098 ac_cv_prog_CXXCPP=$CXXCPP
21099 ;;
21100 esac
21101 fi
21102 CXXCPP=$ac_cv_prog_CXXCPP
21103 else
21104 ac_cv_prog_CXXCPP=$CXXCPP
21105 fi
21106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21107 printf "%s\n" "$CXXCPP" >&6; }
21108 ac_preproc_ok=false
21109 for ac_cxx_preproc_warn_flag in '' yes
21110 do
21111 # Use a header file that comes with gcc, so configuring glibc
21112 # with a fresh cross-compiler works.
21113 # On the NeXT, cc -E runs the code through the compiler's parser,
21114 # not just through cpp. "Syntax error" is here to catch this case.
21115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21116 /* end confdefs.h. */
21117 #include <limits.h>
21118 Syntax error
21119 _ACEOF
21120 if ac_fn_cxx_try_cpp "$LINENO"
21121 then :
21122
21123 else case e in #(
21124 e) # Broken: fails on valid input.
21125 continue ;;
21126 esac
21127 fi
21128 rm -f conftest.err conftest.i conftest.$ac_ext
21129
21130 # OK, works on sane cases. Now check whether nonexistent headers
21131 # can be detected and how.
21132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21133 /* end confdefs.h. */
21134 #include <ac_nonexistent.h>
21135 _ACEOF
21136 if ac_fn_cxx_try_cpp "$LINENO"
21137 then :
21138 # Broken: success on invalid input.
21139 continue
21140 else case e in #(
21141 e) # Passes both tests.
21142 ac_preproc_ok=:
21143 break ;;
21144 esac
21145 fi
21146 rm -f conftest.err conftest.i conftest.$ac_ext
21147
21148 done
21149 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21150 rm -f conftest.i conftest.err conftest.$ac_ext
21151 if $ac_preproc_ok
21152 then :
21153
21154 else case e in #(
21155 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21156 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21157 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
21158 See 'config.log' for more details" "$LINENO" 5; } ;;
21159 esac
21160 fi
21161
21162 ac_ext=c
21163 ac_cpp='$CPP $CPPFLAGS'
21164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21167
21168 else
21169 _lt_caught_CXX_error=yes
21170 fi
21171
21172 ac_ext=cpp
21173 ac_cpp='$CXXCPP $CPPFLAGS'
21174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21177
21178 archive_cmds_need_lc_CXX=no
21179 allow_undefined_flag_CXX=
21180 always_export_symbols_CXX=no
21181 archive_expsym_cmds_CXX=
21182 compiler_needs_object_CXX=no
21183 export_dynamic_flag_spec_CXX=
21184 hardcode_direct_CXX=no
21185 hardcode_direct_absolute_CXX=no
21186 hardcode_libdir_flag_spec_CXX=
21187 hardcode_libdir_separator_CXX=
21188 hardcode_minus_L_CXX=no
21189 hardcode_shlibpath_var_CXX=unsupported
21190 hardcode_automatic_CXX=no
21191 inherit_rpath_CXX=no
21192 module_cmds_CXX=
21193 module_expsym_cmds_CXX=
21194 link_all_deplibs_CXX=unknown
21195 old_archive_cmds_CXX=$old_archive_cmds
21196 reload_flag_CXX=$reload_flag
21197 reload_cmds_CXX=$reload_cmds
21198 no_undefined_flag_CXX=
21199 whole_archive_flag_spec_CXX=
21200 enable_shared_with_static_runtimes_CXX=no
21201
21202 # Source file extension for C++ test sources.
21203 ac_ext=cpp
21204
21205 # Object file extension for compiled C++ test sources.
21206 objext=o
21207 objext_CXX=$objext
21208
21209 # No sense in running all these tests if we already determined that
21210 # the CXX compiler isn't working. Some variables (like enable_shared)
21211 # are currently assumed to apply to all compilers on this platform,
21212 # and will be corrupted by setting them based on a non-working compiler.
21213 if test yes != "$_lt_caught_CXX_error"; then
21214 # Code to be used in simple compile tests
21215 lt_simple_compile_test_code="int some_variable = 0;"
21216
21217 # Code to be used in simple link tests
21218 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
21219
21220 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21221
21222
21223
21224
21225
21226
21227 # If no C compiler was specified, use CC.
21228 LTCC=${LTCC-"$CC"}
21229
21230 # If no C compiler flags were specified, use CFLAGS.
21231 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21232
21233 # Allow CC to be a program name with arguments.
21234 compiler=$CC
21235
21236
21237 # save warnings/boilerplate of simple test code
21238 ac_outfile=conftest.$ac_objext
21239 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21240 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21241 _lt_compiler_boilerplate=`cat conftest.err`
21242 $RM conftest*
21243
21244 ac_outfile=conftest.$ac_objext
21245 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21246 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21247 _lt_linker_boilerplate=`cat conftest.err`
21248 $RM -r conftest*
21249
21250
21251 # Allow CC to be a program name with arguments.
21252 lt_save_CC=$CC
21253 lt_save_CFLAGS=$CFLAGS
21254 lt_save_LD=$LD
21255 lt_save_GCC=$GCC
21256 GCC=$GXX
21257 lt_save_with_gnu_ld=$with_gnu_ld
21258 lt_save_path_LD=$lt_cv_path_LD
21259 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
21260 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
21261 else
21262 $as_unset lt_cv_prog_gnu_ld
21263 fi
21264 if test -n "${lt_cv_path_LDCXX+set}"; then
21265 lt_cv_path_LD=$lt_cv_path_LDCXX
21266 else
21267 $as_unset lt_cv_path_LD
21268 fi
21269 test -z "${LDCXX+set}" || LD=$LDCXX
21270 CC=${CXX-"c++"}
21271 CFLAGS=$CXXFLAGS
21272 compiler=$CC
21273 compiler_CXX=$CC
21274 func_cc_basename $compiler
21275 cc_basename=$func_cc_basename_result
21276
21277
21278 if test -n "$compiler"; then
21279 # We don't want -fno-exception when compiling C++ code, so set the
21280 # no_builtin_flag separately
21281 if test yes = "$GXX"; then
21282 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
21283 else
21284 lt_prog_compiler_no_builtin_flag_CXX=
21285 fi
21286
21287 if test yes = "$GXX"; then
21288 # Set up default GNU C++ configuration
21289
21290
21291
21292 # Check whether --with-gnu-ld was given.
21293 if test ${with_gnu_ld+y}
21294 then :
21295 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
21296 else case e in #(
21297 e) with_gnu_ld=no ;;
21298 esac
21299 fi
21300
21301 ac_prog=ld
21302 if test yes = "$GCC"; then
21303 # Check if gcc -print-prog-name=ld gives a path.
21304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
21305 printf %s "checking for ld used by $CC... " >&6; }
21306 case $host in
21307 *-*-mingw* | *-*-windows*)
21308 # gcc leaves a trailing carriage return, which upsets mingw
21309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21310 *)
21311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21312 esac
21313 case $ac_prog in
21314 # Accept absolute paths.
21315 [\\/]* | ?:[\\/]*)
21316 re_direlt='/[^/][^/]*/\.\./'
21317 # Canonicalize the pathname of ld
21318 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
21319 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
21320 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
21321 done
21322 test -z "$LD" && LD=$ac_prog
21323 ;;
21324 "")
21325 # If it fails, then pretend we aren't using GCC.
21326 ac_prog=ld
21327 ;;
21328 *)
21329 # If it is relative, then search for the first ld in PATH.
21330 with_gnu_ld=unknown
21331 ;;
21332 esac
21333 elif test yes = "$with_gnu_ld"; then
21334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21335 printf %s "checking for GNU ld... " >&6; }
21336 else
21337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21338 printf %s "checking for non-GNU ld... " >&6; }
21339 fi
21340 if test ${lt_cv_path_LD+y}
21341 then :
21342 printf %s "(cached) " >&6
21343 else case e in #(
21344 e) if test -z "$LD"; then
21345 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
21346 for ac_dir in $PATH; do
21347 IFS=$lt_save_ifs
21348 test -z "$ac_dir" && ac_dir=.
21349 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21350 lt_cv_path_LD=$ac_dir/$ac_prog
21351 # Check to see if the program is GNU ld. I'd rather use --version,
21352 # but apparently some variants of GNU ld only accept -v.
21353 # Break only if it was the GNU/non-GNU ld that we prefer.
21354 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
21355 *GNU* | *'with BFD'*)
21356 test no != "$with_gnu_ld" && break
21357 ;;
21358 *)
21359 test yes != "$with_gnu_ld" && break
21360 ;;
21361 esac
21362 fi
21363 done
21364 IFS=$lt_save_ifs
21365 else
21366 lt_cv_path_LD=$LD # Let the user override the test with a path.
21367 fi ;;
21368 esac
21369 fi
21370
21371 LD=$lt_cv_path_LD
21372 if test -n "$LD"; then
21373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21374 printf "%s\n" "$LD" >&6; }
21375 else
21376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21377 printf "%s\n" "no" >&6; }
21378 fi
21379 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
21380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21381 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
21382 if test ${lt_cv_prog_gnu_ld+y}
21383 then :
21384 printf %s "(cached) " >&6
21385 else case e in #(
21386 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
21387 case `$LD -v 2>&1 </dev/null` in
21388 *GNU* | *'with BFD'*)
21389 lt_cv_prog_gnu_ld=yes
21390 ;;
21391 *)
21392 lt_cv_prog_gnu_ld=no
21393 ;;
21394 esac ;;
21395 esac
21396 fi
21397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
21398 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
21399 with_gnu_ld=$lt_cv_prog_gnu_ld
21400
21401
21402
21403
21404
21405
21406
21407 # Check if GNU C++ uses GNU ld as the underlying linker, since the
21408 # archiving commands below assume that GNU ld is being used.
21409 if test yes = "$with_gnu_ld"; then
21410 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21411 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21412
21413 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21414 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21415
21416 # If archive_cmds runs LD, not CC, wlarc should be empty
21417 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
21418 # investigate it a little bit more. (MM)
21419 wlarc='$wl'
21420
21421 # ancient GNU ld didn't support --whole-archive et. al.
21422 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
21423 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
21424 else
21425 whole_archive_flag_spec_CXX=
21426 fi
21427 else
21428 with_gnu_ld=no
21429 wlarc=
21430
21431 # A generic and very simple default shared library creation
21432 # command for GNU C++ for the case where it uses the native
21433 # linker, instead of GNU ld. If possible, this setting should
21434 # overridden to take advantage of the native linker features on
21435 # the platform it is being used on.
21436 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21437 fi
21438
21439 # Commands to make compiler produce verbose output that lists
21440 # what "hidden" libraries, object files and flags are used when
21441 # linking a shared library.
21442 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
21443
21444 else
21445 GXX=no
21446 with_gnu_ld=no
21447 wlarc=
21448 fi
21449
21450 # PORTME: fill in a description of your system's C++ link characteristics
21451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21452 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21453 ld_shlibs_CXX=yes
21454 case $host_os in
21455 aix3*)
21456 # FIXME: insert proper C++ library support
21457 ld_shlibs_CXX=no
21458 ;;
21459 aix[4-9]*)
21460 if test ia64 = "$host_cpu"; then
21461 # On IA64, the linker does run time linking by default, so we don't
21462 # have to do anything special.
21463 aix_use_runtimelinking=no
21464 exp_sym_flag='-Bexport'
21465 no_entry_flag=
21466 else
21467 aix_use_runtimelinking=no
21468
21469 # Test if we are trying to use run time linking or normal
21470 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21471 # have runtime linking enabled, and use it for executables.
21472 # For shared libraries, we enable/disable runtime linking
21473 # depending on the kind of the shared library created -
21474 # when "with_aix_soname,aix_use_runtimelinking" is:
21475 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
21476 # "aix,yes" lib.so shared, rtl:yes, for executables
21477 # lib.a static archive
21478 # "both,no" lib.so.V(shr.o) shared, rtl:yes
21479 # lib.a(lib.so.V) shared, rtl:no, for executables
21480 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
21481 # lib.a(lib.so.V) shared, rtl:no
21482 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
21483 # lib.a static archive
21484 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21485 for ld_flag in $LDFLAGS; do
21486 case $ld_flag in
21487 *-brtl*)
21488 aix_use_runtimelinking=yes
21489 break
21490 ;;
21491 esac
21492 done
21493 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
21494 # With aix-soname=svr4, we create the lib.so.V shared archives only,
21495 # so we don't have lib.a shared libs to link our executables.
21496 # We have to force runtime linking in this case.
21497 aix_use_runtimelinking=yes
21498 LDFLAGS="$LDFLAGS -Wl,-brtl"
21499 fi
21500 ;;
21501 esac
21502
21503 exp_sym_flag='-bexport'
21504 no_entry_flag='-bnoentry'
21505 fi
21506
21507 # When large executables or shared objects are built, AIX ld can
21508 # have problems creating the table of contents. If linking a library
21509 # or program results in "error TOC overflow" add -mminimal-toc to
21510 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21511 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21512
21513 archive_cmds_CXX=''
21514 hardcode_direct_CXX=yes
21515 hardcode_direct_absolute_CXX=yes
21516 hardcode_libdir_separator_CXX=':'
21517 link_all_deplibs_CXX=yes
21518 file_list_spec_CXX='$wl-f,'
21519 case $with_aix_soname,$aix_use_runtimelinking in
21520 aix,*) ;; # no import file
21521 svr4,* | *,yes) # use import file
21522 # The Import File defines what to hardcode.
21523 hardcode_direct_CXX=no
21524 hardcode_direct_absolute_CXX=no
21525 ;;
21526 esac
21527
21528 if test yes = "$GXX"; then
21529 case $host_os in aix4.[012]|aix4.[012].*)
21530 # We only want to do this on AIX 4.2 and lower, the check
21531 # below for broken collect2 doesn't work under 4.3+
21532 collect2name=`$CC -print-prog-name=collect2`
21533 if test -f "$collect2name" &&
21534 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
21535 then
21536 # We have reworked collect2
21537 :
21538 else
21539 # We have old collect2
21540 hardcode_direct_CXX=unsupported
21541 # It fails to find uninstalled libraries when the uninstalled
21542 # path is not listed in the libpath. Setting hardcode_minus_L
21543 # to unsupported forces relinking
21544 hardcode_minus_L_CXX=yes
21545 hardcode_libdir_flag_spec_CXX='-L$libdir'
21546 hardcode_libdir_separator_CXX=
21547 fi
21548 esac
21549 shared_flag='-shared'
21550 if test yes = "$aix_use_runtimelinking"; then
21551 shared_flag=$shared_flag' $wl-G'
21552 fi
21553 # Need to ensure runtime linking is disabled for the traditional
21554 # shared library, or the linker may eventually find shared libraries
21555 # /with/ Import File - we do not want to mix them.
21556 shared_flag_aix='-shared'
21557 shared_flag_svr4='-shared $wl-G'
21558 else
21559 # not using gcc
21560 if test ia64 = "$host_cpu"; then
21561 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21562 # chokes on -Wl,-G. The following line is correct:
21563 shared_flag='-G'
21564 else
21565 if test yes = "$aix_use_runtimelinking"; then
21566 shared_flag='$wl-G'
21567 else
21568 shared_flag='$wl-bM:SRE'
21569 fi
21570 shared_flag_aix='$wl-bM:SRE'
21571 shared_flag_svr4='$wl-G'
21572 fi
21573 fi
21574
21575 export_dynamic_flag_spec_CXX='$wl-bexpall'
21576 # It seems that -bexpall does not export symbols beginning with
21577 # underscore (_), so it is better to generate a list of symbols to
21578 # export.
21579 always_export_symbols_CXX=yes
21580 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
21581 # Warning - without using the other runtime loading flags (-brtl),
21582 # -berok will link without error, but may produce a broken library.
21583 # The "-G" linker flag allows undefined symbols.
21584 no_undefined_flag_CXX='-bernotok'
21585 # Determine the default libpath from the value encoded in an empty
21586 # executable.
21587 if test set = "${lt_cv_aix_libpath+set}"; then
21588 aix_libpath=$lt_cv_aix_libpath
21589 else
21590 if test ${lt_cv_aix_libpath__CXX+y}
21591 then :
21592 printf %s "(cached) " >&6
21593 else case e in #(
21594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21595 /* end confdefs.h. */
21596
21597 int
21598 main (void)
21599 {
21600
21601 ;
21602 return 0;
21603 }
21604 _ACEOF
21605 if ac_fn_cxx_try_link "$LINENO"
21606 then :
21607
21608 lt_aix_libpath_sed='
21609 /Import File Strings/,/^$/ {
21610 /^0/ {
21611 s/^0 *\([^ ]*\) *$/\1/
21612 p
21613 }
21614 }'
21615 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21616 # Check for a 64-bit object if we didn't find anything.
21617 if test -z "$lt_cv_aix_libpath__CXX"; then
21618 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21619 fi
21620 fi
21621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21622 conftest$ac_exeext conftest.$ac_ext
21623 if test -z "$lt_cv_aix_libpath__CXX"; then
21624 lt_cv_aix_libpath__CXX=/usr/lib:/lib
21625 fi
21626 ;;
21627 esac
21628 fi
21629
21630 aix_libpath=$lt_cv_aix_libpath__CXX
21631 fi
21632
21633 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
21634
21635 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
21636 else
21637 if test ia64 = "$host_cpu"; then
21638 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
21639 allow_undefined_flag_CXX="-z nodefs"
21640 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
21641 else
21642 # Determine the default libpath from the value encoded in an
21643 # empty executable.
21644 if test set = "${lt_cv_aix_libpath+set}"; then
21645 aix_libpath=$lt_cv_aix_libpath
21646 else
21647 if test ${lt_cv_aix_libpath__CXX+y}
21648 then :
21649 printf %s "(cached) " >&6
21650 else case e in #(
21651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h. */
21653
21654 int
21655 main (void)
21656 {
21657
21658 ;
21659 return 0;
21660 }
21661 _ACEOF
21662 if ac_fn_cxx_try_link "$LINENO"
21663 then :
21664
21665 lt_aix_libpath_sed='
21666 /Import File Strings/,/^$/ {
21667 /^0/ {
21668 s/^0 *\([^ ]*\) *$/\1/
21669 p
21670 }
21671 }'
21672 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21673 # Check for a 64-bit object if we didn't find anything.
21674 if test -z "$lt_cv_aix_libpath__CXX"; then
21675 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21676 fi
21677 fi
21678 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21679 conftest$ac_exeext conftest.$ac_ext
21680 if test -z "$lt_cv_aix_libpath__CXX"; then
21681 lt_cv_aix_libpath__CXX=/usr/lib:/lib
21682 fi
21683 ;;
21684 esac
21685 fi
21686
21687 aix_libpath=$lt_cv_aix_libpath__CXX
21688 fi
21689
21690 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
21691 # Warning - without using the other run time loading flags,
21692 # -berok will link without error, but may produce a broken library.
21693 no_undefined_flag_CXX=' $wl-bernotok'
21694 allow_undefined_flag_CXX=' $wl-berok'
21695 if test yes = "$with_gnu_ld"; then
21696 # We only use this code for GNU lds that support --whole-archive.
21697 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
21698 else
21699 # Exported symbols can be pulled into shared objects from archives
21700 whole_archive_flag_spec_CXX='$convenience'
21701 fi
21702 archive_cmds_need_lc_CXX=yes
21703 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
21704 # -brtl affects multiple linker settings, -berok does not and is overridden later
21705 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
21706 if test svr4 != "$with_aix_soname"; then
21707 # This is similar to how AIX traditionally builds its shared
21708 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
21709 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
21710 fi
21711 if test aix != "$with_aix_soname"; then
21712 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
21713 else
21714 # used by -dlpreopen to get the symbols
21715 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
21716 fi
21717 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
21718 fi
21719 fi
21720 ;;
21721
21722 beos*)
21723 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21724 allow_undefined_flag_CXX=unsupported
21725 # Joseph Beckenbach <[email protected]> says some releases of gcc
21726 # support --undefined. This deserves some investigation. FIXME
21727 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21728 else
21729 ld_shlibs_CXX=no
21730 fi
21731 ;;
21732
21733 chorus*)
21734 case $cc_basename in
21735 *)
21736 # FIXME: insert proper C++ library support
21737 ld_shlibs_CXX=no
21738 ;;
21739 esac
21740 ;;
21741
21742 cygwin* | mingw* | windows* | pw32* | cegcc*)
21743 case $GXX,$cc_basename in
21744 ,cl* | no,cl* | ,icl* | no,icl*)
21745 # Native MSVC or ICC
21746 # hardcode_libdir_flag_spec is actually meaningless, as there is
21747 # no search path for DLLs.
21748 hardcode_libdir_flag_spec_CXX=' '
21749 allow_undefined_flag_CXX=unsupported
21750 always_export_symbols_CXX=yes
21751 file_list_spec_CXX='@'
21752 # Tell ltmain to make .lib files, not .a files.
21753 libext=lib
21754 # Tell ltmain to make .dll files, not .so files.
21755 shrext_cmds=.dll
21756 # FIXME: Setting linknames here is a bad hack.
21757 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
21758 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
21759 cp "$export_symbols" "$output_objdir/$soname.def";
21760 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
21761 else
21762 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
21763 fi~
21764 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
21765 linknames='
21766 # The linker will not automatically build a static lib if we build a DLL.
21767 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
21768 enable_shared_with_static_runtimes_CXX=yes
21769 # Don't use ranlib
21770 old_postinstall_cmds_CXX='chmod 644 $oldlib'
21771 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
21772 lt_tool_outputfile="@TOOL_OUTPUT@"~
21773 case $lt_outputfile in
21774 *.exe|*.EXE) ;;
21775 *)
21776 lt_outputfile=$lt_outputfile.exe
21777 lt_tool_outputfile=$lt_tool_outputfile.exe
21778 ;;
21779 esac~
21780 func_to_tool_file "$lt_outputfile"~
21781 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
21782 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
21783 $RM "$lt_outputfile.manifest";
21784 fi'
21785 ;;
21786 *)
21787 # g++
21788 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
21789 # as there is no search path for DLLs.
21790 hardcode_libdir_flag_spec_CXX='-L$libdir'
21791 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
21792 allow_undefined_flag_CXX=unsupported
21793 always_export_symbols_CXX=no
21794 enable_shared_with_static_runtimes_CXX=yes
21795 file_list_spec_CXX='@'
21796
21797 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
21798 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21799 # If the export-symbols file already is a .def file, use it as
21800 # is; otherwise, prepend EXPORTS...
21801 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
21802 cp $export_symbols $output_objdir/$soname.def;
21803 else
21804 echo EXPORTS > $output_objdir/$soname.def;
21805 cat $export_symbols >> $output_objdir/$soname.def;
21806 fi~
21807 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21808 else
21809 ld_shlibs_CXX=no
21810 fi
21811 ;;
21812 esac
21813 ;;
21814 darwin* | rhapsody*)
21815
21816
21817 archive_cmds_need_lc_CXX=no
21818 hardcode_direct_CXX=no
21819 hardcode_automatic_CXX=yes
21820 hardcode_shlibpath_var_CXX=unsupported
21821 if test yes = "$lt_cv_ld_force_load"; then
21822 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
21823
21824 else
21825 whole_archive_flag_spec_CXX=''
21826 fi
21827 link_all_deplibs_CXX=yes
21828 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
21829 case $cc_basename in
21830 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
21831 *) _lt_dar_can_shared=$GCC ;;
21832 esac
21833 if test yes = "$_lt_dar_can_shared"; then
21834 output_verbose_link_cmd=func_echo_all
21835 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
21836 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
21837 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
21838 module_expsym_cmds_CXX="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
21839 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
21840 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
21841 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
21842 fi
21843
21844 else
21845 ld_shlibs_CXX=no
21846 fi
21847
21848 ;;
21849
21850 os2*)
21851 hardcode_libdir_flag_spec_CXX='-L$libdir'
21852 hardcode_minus_L_CXX=yes
21853 allow_undefined_flag_CXX=unsupported
21854 shrext_cmds=.dll
21855 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21856 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21857 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21858 $ECHO EXPORTS >> $output_objdir/$libname.def~
21859 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
21860 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21861 emximp -o $lib $output_objdir/$libname.def'
21862 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21863 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21864 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21865 $ECHO EXPORTS >> $output_objdir/$libname.def~
21866 prefix_cmds="$SED"~
21867 if test EXPORTS = "`$SED 1q $export_symbols`"; then
21868 prefix_cmds="$prefix_cmds -e 1d";
21869 fi~
21870 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
21871 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
21872 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21873 emximp -o $lib $output_objdir/$libname.def'
21874 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
21875 enable_shared_with_static_runtimes_CXX=yes
21876 file_list_spec_CXX='@'
21877 ;;
21878
21879 dgux*)
21880 case $cc_basename in
21881 ec++*)
21882 # FIXME: insert proper C++ library support
21883 ld_shlibs_CXX=no
21884 ;;
21885 ghcx*)
21886 # Green Hills C++ Compiler
21887 # FIXME: insert proper C++ library support
21888 ld_shlibs_CXX=no
21889 ;;
21890 *)
21891 # FIXME: insert proper C++ library support
21892 ld_shlibs_CXX=no
21893 ;;
21894 esac
21895 ;;
21896
21897 freebsd2.*)
21898 # C++ shared libraries reported to be fairly broken before
21899 # switch to ELF
21900 ld_shlibs_CXX=no
21901 ;;
21902
21903 freebsd-elf*)
21904 archive_cmds_need_lc_CXX=no
21905 ;;
21906
21907 freebsd* | dragonfly* | midnightbsd*)
21908 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21909 # conventions
21910 ld_shlibs_CXX=yes
21911 ;;
21912
21913 haiku*)
21914 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21915 link_all_deplibs_CXX=no
21916 ;;
21917
21918 hpux9*)
21919 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
21920 hardcode_libdir_separator_CXX=:
21921 export_dynamic_flag_spec_CXX='$wl-E'
21922 hardcode_direct_CXX=yes
21923 hardcode_minus_L_CXX=yes # Not in the search PATH,
21924 # but as the default
21925 # location of the library.
21926
21927 case $cc_basename in
21928 CC*)
21929 # FIXME: insert proper C++ library support
21930 ld_shlibs_CXX=no
21931 ;;
21932 aCC*)
21933 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
21934 # Commands to make compiler produce verbose output that lists
21935 # what "hidden" libraries, object files and flags are used when
21936 # linking a shared library.
21937 #
21938 # There doesn't appear to be a way to prevent this compiler from
21939 # explicitly linking system object files so we need to strip them
21940 # from the output so that they don't get included in the library
21941 # dependencies.
21942 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "[-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
21943 ;;
21944 *)
21945 if test yes = "$GXX"; then
21946 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
21947 else
21948 # FIXME: insert proper C++ library support
21949 ld_shlibs_CXX=no
21950 fi
21951 ;;
21952 esac
21953 ;;
21954
21955 hpux10*|hpux11*)
21956 if test no = "$with_gnu_ld"; then
21957 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
21958 hardcode_libdir_separator_CXX=:
21959
21960 case $host_cpu in
21961 hppa*64*|ia64*)
21962 ;;
21963 *)
21964 export_dynamic_flag_spec_CXX='$wl-E'
21965 ;;
21966 esac
21967 fi
21968 case $host_cpu in
21969 hppa*64*|ia64*)
21970 hardcode_direct_CXX=no
21971 hardcode_shlibpath_var_CXX=no
21972 ;;
21973 *)
21974 hardcode_direct_CXX=yes
21975 hardcode_direct_absolute_CXX=yes
21976 hardcode_minus_L_CXX=yes # Not in the search PATH,
21977 # but as the default
21978 # location of the library.
21979 ;;
21980 esac
21981
21982 case $cc_basename in
21983 CC*)
21984 # FIXME: insert proper C++ library support
21985 ld_shlibs_CXX=no
21986 ;;
21987 aCC*)
21988 case $host_cpu in
21989 hppa*64*)
21990 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21991 ;;
21992 ia64*)
21993 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21994 ;;
21995 *)
21996 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21997 ;;
21998 esac
21999 # Commands to make compiler produce verbose output that lists
22000 # what "hidden" libraries, object files and flags are used when
22001 # linking a shared library.
22002 #
22003 # There doesn't appear to be a way to prevent this compiler from
22004 # explicitly linking system object files so we need to strip them
22005 # from the output so that they don't get included in the library
22006 # dependencies.
22007 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " [-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
22008 ;;
22009 *)
22010 if test yes = "$GXX"; then
22011 if test no = "$with_gnu_ld"; then
22012 case $host_cpu in
22013 hppa*64*)
22014 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22015 ;;
22016 ia64*)
22017 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22018 ;;
22019 *)
22020 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22021 ;;
22022 esac
22023 fi
22024 else
22025 # FIXME: insert proper C++ library support
22026 ld_shlibs_CXX=no
22027 fi
22028 ;;
22029 esac
22030 ;;
22031
22032 interix[3-9]*)
22033 hardcode_direct_CXX=no
22034 hardcode_shlibpath_var_CXX=no
22035 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22036 export_dynamic_flag_spec_CXX='$wl-E'
22037 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22038 # Instead, shared libraries are loaded at an image base (0x10000000 by
22039 # default) and relocated if they conflict, which is a slow very memory
22040 # consuming and fragmenting process. To avoid this, we pick a random,
22041 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22042 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22043 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22044 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22045 ;;
22046 irix5* | irix6*)
22047 case $cc_basename in
22048 CC*)
22049 # SGI C++
22050 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
22051
22052 # Archives containing C++ object files must be created using
22053 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22054 # necessary to make sure instantiated templates are included
22055 # in the archive.
22056 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22057 ;;
22058 *)
22059 if test yes = "$GXX"; then
22060 if test no = "$with_gnu_ld"; then
22061 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
22062 else
22063 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
22064 fi
22065 fi
22066 link_all_deplibs_CXX=yes
22067 ;;
22068 esac
22069 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22070 hardcode_libdir_separator_CXX=:
22071 inherit_rpath_CXX=yes
22072 ;;
22073
22074 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22075 case $cc_basename in
22076 KCC*)
22077 # Kuck and Associates, Inc. (KAI) C++ Compiler
22078
22079 # KCC will only create a shared library if the output file
22080 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22081 # to its proper name (with version) after linking.
22082 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
22083 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
22084 # Commands to make compiler produce verbose output that lists
22085 # what "hidden" libraries, object files and flags are used when
22086 # linking a shared library.
22087 #
22088 # There doesn't appear to be a way to prevent this compiler from
22089 # explicitly linking system object files so we need to strip them
22090 # from the output so that they don't get included in the library
22091 # dependencies.
22092 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
22093
22094 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22095 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
22096
22097 # Archives containing C++ object files must be created using
22098 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22099 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22100 ;;
22101 icpc* | ecpc* )
22102 # Intel C++
22103 with_gnu_ld=yes
22104 # version 8.0 and above of icpc choke on multiply defined symbols
22105 # if we add $predep_objects and $postdep_objects, however 7.1 and
22106 # earlier do not add the objects themselves.
22107 case `$CC -V 2>&1` in
22108 *"Version 7."*)
22109 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
22110 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
22111 ;;
22112 *) # Version 8.0 or newer
22113 tmp_idyn=
22114 case $host_cpu in
22115 ia64*) tmp_idyn=' -i_dynamic';;
22116 esac
22117 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22118 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
22119 ;;
22120 esac
22121 archive_cmds_need_lc_CXX=no
22122 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22123 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
22124 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
22125 ;;
22126 pgCC* | pgcpp*)
22127 # Portland Group C++ compiler
22128 case `$CC -V` in
22129 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22130 prelink_cmds_CXX='tpldir=Template.dir~
22131 rm -rf $tpldir~
22132 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22133 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22134 old_archive_cmds_CXX='tpldir=Template.dir~
22135 rm -rf $tpldir~
22136 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22137 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22138 $RANLIB $oldlib'
22139 archive_cmds_CXX='tpldir=Template.dir~
22140 rm -rf $tpldir~
22141 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22142 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
22143 archive_expsym_cmds_CXX='tpldir=Template.dir~
22144 rm -rf $tpldir~
22145 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22146 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
22147 ;;
22148 *) # Version 6 and above use weak symbols
22149 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
22150 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
22151 ;;
22152 esac
22153
22154 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
22155 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
22156 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
22157 ;;
22158 cxx*)
22159 # Compaq C++
22160 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
22161 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
22162
22163 runpath_var=LD_RUN_PATH
22164 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22165 hardcode_libdir_separator_CXX=:
22166
22167 # Commands to make compiler produce verbose output that lists
22168 # what "hidden" libraries, object files and flags are used when
22169 # linking a shared library.
22170 #
22171 # There doesn't appear to be a way to prevent this compiler from
22172 # explicitly linking system object files so we need to strip them
22173 # from the output so that they don't get included in the library
22174 # dependencies.
22175 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
22176 ;;
22177 xl* | mpixl* | bgxl*)
22178 # IBM XL 8.0 on PPC, with GNU ld
22179 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22180 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
22181 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22182 if test yes = "$supports_anon_versioning"; then
22183 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22184 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22185 echo "local: *; };" >> $output_objdir/$libname.ver~
22186 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
22187 fi
22188 ;;
22189 *)
22190 case `$CC -V 2>&1 | $SED 5q` in
22191 *Sun\ C*)
22192 # Sun C++ 5.9
22193 no_undefined_flag_CXX=' -zdefs'
22194 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22195 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
22196 hardcode_libdir_flag_spec_CXX='-R$libdir'
22197 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
22198 compiler_needs_object_CXX=yes
22199
22200 # Not sure whether something based on
22201 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22202 # would be better.
22203 output_verbose_link_cmd='func_echo_all'
22204
22205 # Archives containing C++ object files must be created using
22206 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22207 # necessary to make sure instantiated templates are included
22208 # in the archive.
22209 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22210 ;;
22211 esac
22212 ;;
22213 esac
22214 ;;
22215
22216 lynxos*)
22217 # FIXME: insert proper C++ library support
22218 ld_shlibs_CXX=no
22219 ;;
22220
22221 m88k*)
22222 # FIXME: insert proper C++ library support
22223 ld_shlibs_CXX=no
22224 ;;
22225
22226 mvs*)
22227 case $cc_basename in
22228 cxx*)
22229 # FIXME: insert proper C++ library support
22230 ld_shlibs_CXX=no
22231 ;;
22232 *)
22233 # FIXME: insert proper C++ library support
22234 ld_shlibs_CXX=no
22235 ;;
22236 esac
22237 ;;
22238
22239 *-mlibc)
22240 ld_shlibs_CXX=yes
22241 ;;
22242
22243 netbsd*)
22244 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22245 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22246 wlarc=
22247 hardcode_libdir_flag_spec_CXX='-R$libdir'
22248 hardcode_direct_CXX=yes
22249 hardcode_shlibpath_var_CXX=no
22250 fi
22251 # Workaround some broken pre-1.5 toolchains
22252 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22253 ;;
22254
22255 *nto* | *qnx*)
22256 ld_shlibs_CXX=yes
22257 ;;
22258
22259 openbsd*)
22260 if test -f /usr/libexec/ld.so; then
22261 hardcode_direct_CXX=yes
22262 hardcode_shlibpath_var_CXX=no
22263 hardcode_direct_absolute_CXX=yes
22264 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22265 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22266 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
22267 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
22268 export_dynamic_flag_spec_CXX='$wl-E'
22269 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
22270 fi
22271 output_verbose_link_cmd=func_echo_all
22272 else
22273 ld_shlibs_CXX=no
22274 fi
22275 ;;
22276
22277 osf3* | osf4* | osf5*)
22278 case $cc_basename in
22279 KCC*)
22280 # Kuck and Associates, Inc. (KAI) C++ Compiler
22281
22282 # KCC will only create a shared library if the output file
22283 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22284 # to its proper name (with version) after linking.
22285 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
22286
22287 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22288 hardcode_libdir_separator_CXX=:
22289
22290 # Archives containing C++ object files must be created using
22291 # the KAI C++ compiler.
22292 case $host in
22293 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
22294 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
22295 esac
22296 ;;
22297 RCC*)
22298 # Rational C++ 2.4.1
22299 # FIXME: insert proper C++ library support
22300 ld_shlibs_CXX=no
22301 ;;
22302 cxx*)
22303 case $host in
22304 osf3*)
22305 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
22306 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
22307 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22308 ;;
22309 *)
22310 allow_undefined_flag_CXX=' -expect_unresolved \*'
22311 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
22312 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
22313 echo "-hidden">> $lib.exp~
22314 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
22315 $RM $lib.exp'
22316 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22317 ;;
22318 esac
22319
22320 hardcode_libdir_separator_CXX=:
22321
22322 # Commands to make compiler produce verbose output that lists
22323 # what "hidden" libraries, object files and flags are used when
22324 # linking a shared library.
22325 #
22326 # There doesn't appear to be a way to prevent this compiler from
22327 # explicitly linking system object files so we need to strip them
22328 # from the output so that they don't get included in the library
22329 # dependencies.
22330 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
22331 ;;
22332 *)
22333 if test yes,no = "$GXX,$with_gnu_ld"; then
22334 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
22335 case $host in
22336 osf3*)
22337 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
22338 ;;
22339 *)
22340 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
22341 ;;
22342 esac
22343
22344 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22345 hardcode_libdir_separator_CXX=:
22346
22347 # Commands to make compiler produce verbose output that lists
22348 # what "hidden" libraries, object files and flags are used when
22349 # linking a shared library.
22350 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
22351
22352 else
22353 # FIXME: insert proper C++ library support
22354 ld_shlibs_CXX=no
22355 fi
22356 ;;
22357 esac
22358 ;;
22359
22360 psos*)
22361 # FIXME: insert proper C++ library support
22362 ld_shlibs_CXX=no
22363 ;;
22364
22365 serenity*)
22366 ;;
22367
22368 sunos4*)
22369 case $cc_basename in
22370 CC*)
22371 # Sun C++ 4.x
22372 # FIXME: insert proper C++ library support
22373 ld_shlibs_CXX=no
22374 ;;
22375 lcc*)
22376 # Lucid
22377 # FIXME: insert proper C++ library support
22378 ld_shlibs_CXX=no
22379 ;;
22380 *)
22381 # FIXME: insert proper C++ library support
22382 ld_shlibs_CXX=no
22383 ;;
22384 esac
22385 ;;
22386
22387 solaris*)
22388 case $cc_basename in
22389 CC* | sunCC*)
22390 # Sun C++ 4.2, 5.x and Centerline C++
22391 archive_cmds_need_lc_CXX=yes
22392 no_undefined_flag_CXX=' -zdefs'
22393 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22394 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22395 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22396
22397 hardcode_libdir_flag_spec_CXX='-R$libdir'
22398 hardcode_shlibpath_var_CXX=no
22399 case $host_os in
22400 solaris2.[0-5] | solaris2.[0-5].*) ;;
22401 *)
22402 # The compiler driver will combine and reorder linker options,
22403 # but understands '-z linker_flag'.
22404 # Supported since Solaris 2.6 (maybe 2.5.1?)
22405 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
22406 ;;
22407 esac
22408 link_all_deplibs_CXX=yes
22409
22410 output_verbose_link_cmd='func_echo_all'
22411
22412 # Archives containing C++ object files must be created using
22413 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22414 # necessary to make sure instantiated templates are included
22415 # in the archive.
22416 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22417 ;;
22418 gcx*)
22419 # Green Hills C++ Compiler
22420 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
22421
22422 # The C++ compiler must be used to create the archive.
22423 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
22424 ;;
22425 *)
22426 # GNU C++ compiler with Solaris linker
22427 if test yes,no = "$GXX,$with_gnu_ld"; then
22428 no_undefined_flag_CXX=' $wl-z ${wl}defs'
22429 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
22430 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
22431 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22432 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22433
22434 # Commands to make compiler produce verbose output that lists
22435 # what "hidden" libraries, object files and flags are used when
22436 # linking a shared library.
22437 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
22438 else
22439 # g++ 2.7 appears to require '-G' NOT '-shared' on this
22440 # platform.
22441 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
22442 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22443 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22444
22445 # Commands to make compiler produce verbose output that lists
22446 # what "hidden" libraries, object files and flags are used when
22447 # linking a shared library.
22448 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
22449 fi
22450
22451 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
22452 case $host_os in
22453 solaris2.[0-5] | solaris2.[0-5].*) ;;
22454 *)
22455 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
22456 ;;
22457 esac
22458 fi
22459 ;;
22460 esac
22461 ;;
22462
22463 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22464 no_undefined_flag_CXX='$wl-z,text'
22465 archive_cmds_need_lc_CXX=no
22466 hardcode_shlibpath_var_CXX=no
22467 runpath_var='LD_RUN_PATH'
22468
22469 case $cc_basename in
22470 CC*)
22471 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22472 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22473 ;;
22474 *)
22475 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22476 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22477 ;;
22478 esac
22479 ;;
22480
22481 sysv5* | sco3.2v5* | sco5v6*)
22482 # Note: We CANNOT use -z defs as we might desire, because we do not
22483 # link with -lc, and that would cause any symbols used from libc to
22484 # always be unresolved, which means just about no library would
22485 # ever link correctly. If we're not using GNU ld we use -z text
22486 # though, which does catch some bad symbols but isn't as heavy-handed
22487 # as -z defs.
22488 no_undefined_flag_CXX='$wl-z,text'
22489 allow_undefined_flag_CXX='$wl-z,nodefs'
22490 archive_cmds_need_lc_CXX=no
22491 hardcode_shlibpath_var_CXX=no
22492 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
22493 hardcode_libdir_separator_CXX=':'
22494 link_all_deplibs_CXX=yes
22495 export_dynamic_flag_spec_CXX='$wl-Bexport'
22496 runpath_var='LD_RUN_PATH'
22497
22498 case $cc_basename in
22499 CC*)
22500 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22501 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22502 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
22503 '"$old_archive_cmds_CXX"
22504 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
22505 '"$reload_cmds_CXX"
22506 ;;
22507 *)
22508 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22509 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22510 ;;
22511 esac
22512 ;;
22513
22514 tandem*)
22515 case $cc_basename in
22516 NCC*)
22517 # NonStop-UX NCC 3.20
22518 # FIXME: insert proper C++ library support
22519 ld_shlibs_CXX=no
22520 ;;
22521 *)
22522 # FIXME: insert proper C++ library support
22523 ld_shlibs_CXX=no
22524 ;;
22525 esac
22526 ;;
22527
22528 vxworks*)
22529 # FIXME: insert proper C++ library support
22530 ld_shlibs_CXX=no
22531 ;;
22532
22533 *)
22534 # FIXME: insert proper C++ library support
22535 ld_shlibs_CXX=no
22536 ;;
22537 esac
22538
22539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22540 printf "%s\n" "$ld_shlibs_CXX" >&6; }
22541 test no = "$ld_shlibs_CXX" && can_build_shared=no
22542
22543 GCC_CXX=$GXX
22544 LD_CXX=$LD
22545
22546 ## CAVEAT EMPTOR:
22547 ## There is no encapsulation within the following macros, do not change
22548 ## the running order or otherwise move them around unless you know exactly
22549 ## what you are doing...
22550 # Dependencies to place before and after the object being linked:
22551 predep_objects_CXX=
22552 postdep_objects_CXX=
22553 predeps_CXX=
22554 postdeps_CXX=
22555 compiler_lib_search_path_CXX=
22556
22557 cat > conftest.$ac_ext <<_LT_EOF
22558 class Foo
22559 {
22560 public:
22561 Foo (void) { a = 0; }
22562 private:
22563 int a;
22564 };
22565 _LT_EOF
22566
22567
22568 _lt_libdeps_save_CFLAGS=$CFLAGS
22569 case "$CC $CFLAGS " in #(
22570 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
22571 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
22572 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
22573 esac
22574
22575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22576 (eval $ac_compile) 2>&5
22577 ac_status=$?
22578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22579 test $ac_status = 0; }; then
22580 # Parse the compiler output and extract the necessary
22581 # objects, libraries and library flags.
22582
22583 # Sentinel used to keep track of whether or not we are before
22584 # the conftest object file.
22585 pre_test_object_deps_done=no
22586
22587 for p in `eval "$output_verbose_link_cmd"`; do
22588 case $prev$p in
22589
22590 -L* | -R* | -l*)
22591 # Some compilers place space between "-{L,R,l}" and the path.
22592 # Remove the space.
22593 if test x-L = x"$p" ||
22594 test x-R = x"$p" ||
22595 test x-l = x"$p"; then
22596 prev=$p
22597 continue
22598 fi
22599
22600 # Expand the sysroot to ease extracting the directories later.
22601 if test -z "$prev"; then
22602 case $p in
22603 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
22604 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
22605 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
22606 esac
22607 fi
22608 case $p in
22609 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
22610 esac
22611 if test no = "$pre_test_object_deps_done"; then
22612 case $prev in
22613 -L | -R)
22614 # Internal compiler library paths should come after those
22615 # provided the user. The postdeps already come after the
22616 # user supplied libs so there is no need to process them.
22617 if test -z "$compiler_lib_search_path_CXX"; then
22618 compiler_lib_search_path_CXX=$prev$p
22619 else
22620 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
22621 fi
22622 ;;
22623 # The "-l" case would never come before the object being
22624 # linked, so don't bother handling this case.
22625 esac
22626 else
22627 if test -z "$postdeps_CXX"; then
22628 postdeps_CXX=$prev$p
22629 else
22630 postdeps_CXX="${postdeps_CXX} $prev$p"
22631 fi
22632 fi
22633 prev=
22634 ;;
22635
22636 *.lto.$objext) ;; # Ignore GCC LTO objects
22637 *.$objext)
22638 # This assumes that the test object file only shows up
22639 # once in the compiler output.
22640 if test "$p" = "conftest.$objext"; then
22641 pre_test_object_deps_done=yes
22642 continue
22643 fi
22644
22645 if test no = "$pre_test_object_deps_done"; then
22646 if test -z "$predep_objects_CXX"; then
22647 predep_objects_CXX=$p
22648 else
22649 predep_objects_CXX="$predep_objects_CXX $p"
22650 fi
22651 else
22652 if test -z "$postdep_objects_CXX"; then
22653 postdep_objects_CXX=$p
22654 else
22655 postdep_objects_CXX="$postdep_objects_CXX $p"
22656 fi
22657 fi
22658 ;;
22659
22660 *) ;; # Ignore the rest.
22661
22662 esac
22663 done
22664
22665 # Clean up.
22666 rm -f a.out a.exe
22667 else
22668 echo "libtool.m4: error: problem compiling CXX test program"
22669 fi
22670
22671 $RM -f confest.$objext
22672 CFLAGS=$_lt_libdeps_save_CFLAGS
22673
22674 # PORTME: override above test on systems where it is broken
22675 case $host_os in
22676 interix[3-9]*)
22677 # Interix 3.5 installs completely hosed .la files for C++, so rather than
22678 # hack all around it, let's just trust "g++" to DTRT.
22679 predep_objects_CXX=
22680 postdep_objects_CXX=
22681 postdeps_CXX=
22682 ;;
22683 esac
22684
22685
22686 case " $postdeps_CXX " in
22687 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
22688 esac
22689 compiler_lib_search_dirs_CXX=
22690 if test -n "${compiler_lib_search_path_CXX}"; then
22691 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
22692 fi
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724 lt_prog_compiler_wl_CXX=
22725 lt_prog_compiler_pic_CXX=
22726 lt_prog_compiler_static_CXX=
22727
22728
22729 # C++ specific cases for pic, static, wl, etc.
22730 if test yes = "$GXX"; then
22731 lt_prog_compiler_wl_CXX='-Wl,'
22732 lt_prog_compiler_static_CXX='-static'
22733
22734 case $host_os in
22735 aix*)
22736 # All AIX code is PIC.
22737 if test ia64 = "$host_cpu"; then
22738 # AIX 5 now supports IA64 processor
22739 lt_prog_compiler_static_CXX='-Bstatic'
22740 fi
22741 lt_prog_compiler_pic_CXX='-fPIC'
22742 ;;
22743
22744 amigaos*)
22745 case $host_cpu in
22746 powerpc)
22747 # see comment about AmigaOS4 .so support
22748 lt_prog_compiler_pic_CXX='-fPIC'
22749 ;;
22750 m68k)
22751 # FIXME: we need at least 68020 code to build shared libraries, but
22752 # adding the '-m68020' flag to GCC prevents building anything better,
22753 # like '-m68040'.
22754 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
22755 ;;
22756 esac
22757 ;;
22758
22759 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22760 # PIC is the default for these OSes.
22761 ;;
22762 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
22763 # This hack is so that the source file can tell whether it is being
22764 # built for inclusion in a dll (and should export symbols for example).
22765 # Although the cygwin gcc ignores -fPIC, still need this for old-style
22766 # (--disable-auto-import) libraries
22767 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
22768 case $host_os in
22769 os2*)
22770 lt_prog_compiler_static_CXX='$wl-static'
22771 ;;
22772 esac
22773 ;;
22774 darwin* | rhapsody*)
22775 # PIC is the default on this platform
22776 # Common symbols not allowed in MH_DYLIB files
22777 lt_prog_compiler_pic_CXX='-fno-common'
22778 ;;
22779 *djgpp*)
22780 # DJGPP does not support shared libraries at all
22781 lt_prog_compiler_pic_CXX=
22782 ;;
22783 haiku*)
22784 # PIC is the default for Haiku.
22785 # The "-static" flag exists, but is broken.
22786 lt_prog_compiler_static_CXX=
22787 ;;
22788 interix[3-9]*)
22789 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22790 # Instead, we relocate shared libraries at runtime.
22791 ;;
22792 sysv4*MP*)
22793 if test -d /usr/nec; then
22794 lt_prog_compiler_pic_CXX=-Kconform_pic
22795 fi
22796 ;;
22797 hpux*)
22798 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
22799 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
22800 # sets the default TLS model and affects inlining.
22801 case $host_cpu in
22802 hppa*64*)
22803 ;;
22804 *)
22805 lt_prog_compiler_pic_CXX='-fPIC'
22806 ;;
22807 esac
22808 ;;
22809 *qnx* | *nto*)
22810 # QNX uses GNU C++, but need to define -shared option too, otherwise
22811 # it will coredump.
22812 lt_prog_compiler_pic_CXX='-fPIC -shared'
22813 ;;
22814 *)
22815 lt_prog_compiler_pic_CXX='-fPIC'
22816 ;;
22817 esac
22818 else
22819 case $host_os in
22820 aix[4-9]*)
22821 # All AIX code is PIC.
22822 if test ia64 = "$host_cpu"; then
22823 # AIX 5 now supports IA64 processor
22824 lt_prog_compiler_static_CXX='-Bstatic'
22825 else
22826 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
22827 fi
22828 ;;
22829 chorus*)
22830 case $cc_basename in
22831 cxch68*)
22832 # Green Hills C++ Compiler
22833 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
22834 ;;
22835 esac
22836 ;;
22837 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
22838 # This hack is so that the source file can tell whether it is being
22839 # built for inclusion in a dll (and should export symbols for example).
22840 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
22841 ;;
22842 dgux*)
22843 case $cc_basename in
22844 ec++*)
22845 lt_prog_compiler_pic_CXX='-KPIC'
22846 ;;
22847 ghcx*)
22848 # Green Hills C++ Compiler
22849 lt_prog_compiler_pic_CXX='-pic'
22850 ;;
22851 *)
22852 ;;
22853 esac
22854 ;;
22855 freebsd* | dragonfly* | midnightbsd*)
22856 # FreeBSD uses GNU C++
22857 ;;
22858 hpux9* | hpux10* | hpux11*)
22859 case $cc_basename in
22860 CC*)
22861 lt_prog_compiler_wl_CXX='-Wl,'
22862 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
22863 if test ia64 != "$host_cpu"; then
22864 lt_prog_compiler_pic_CXX='+Z'
22865 fi
22866 ;;
22867 aCC*)
22868 lt_prog_compiler_wl_CXX='-Wl,'
22869 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
22870 case $host_cpu in
22871 hppa*64*|ia64*)
22872 # +Z the default
22873 ;;
22874 *)
22875 lt_prog_compiler_pic_CXX='+Z'
22876 ;;
22877 esac
22878 ;;
22879 *)
22880 ;;
22881 esac
22882 ;;
22883 interix*)
22884 # This is c89, which is MS Visual C++ (no shared libs)
22885 # Anyone wants to do a port?
22886 ;;
22887 irix5* | irix6* | nonstopux*)
22888 case $cc_basename in
22889 CC*)
22890 lt_prog_compiler_wl_CXX='-Wl,'
22891 lt_prog_compiler_static_CXX='-non_shared'
22892 # CC pic flag -KPIC is the default.
22893 ;;
22894 *)
22895 ;;
22896 esac
22897 ;;
22898 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22899 case $cc_basename in
22900 KCC*)
22901 # KAI C++ Compiler
22902 lt_prog_compiler_wl_CXX='--backend -Wl,'
22903 lt_prog_compiler_pic_CXX='-fPIC'
22904 ;;
22905 ecpc* )
22906 # old Intel C++ for x86_64, which still supported -KPIC.
22907 lt_prog_compiler_wl_CXX='-Wl,'
22908 lt_prog_compiler_pic_CXX='-KPIC'
22909 lt_prog_compiler_static_CXX='-static'
22910 ;;
22911 icpc* )
22912 # Intel C++, used to be incompatible with GCC.
22913 # ICC 10 doesn't accept -KPIC any more.
22914 lt_prog_compiler_wl_CXX='-Wl,'
22915 lt_prog_compiler_pic_CXX='-fPIC'
22916 lt_prog_compiler_static_CXX='-static'
22917 ;;
22918 pgCC* | pgcpp*)
22919 # Portland Group C++ compiler
22920 lt_prog_compiler_wl_CXX='-Wl,'
22921 lt_prog_compiler_pic_CXX='-fpic'
22922 lt_prog_compiler_static_CXX='-Bstatic'
22923 ;;
22924 cxx*)
22925 # Compaq C++
22926 # Make sure the PIC flag is empty. It appears that all Alpha
22927 # Linux and Compaq Tru64 Unix objects are PIC.
22928 lt_prog_compiler_pic_CXX=
22929 lt_prog_compiler_static_CXX='-non_shared'
22930 ;;
22931 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
22932 # IBM XL 8.0, 9.0 on PPC and BlueGene
22933 lt_prog_compiler_wl_CXX='-Wl,'
22934 lt_prog_compiler_pic_CXX='-qpic'
22935 lt_prog_compiler_static_CXX='-qstaticlink'
22936 ;;
22937 *)
22938 case `$CC -V 2>&1 | $SED 5q` in
22939 *Sun\ C*)
22940 # Sun C++ 5.9
22941 lt_prog_compiler_pic_CXX='-KPIC'
22942 lt_prog_compiler_static_CXX='-Bstatic'
22943 lt_prog_compiler_wl_CXX='-Qoption ld '
22944 ;;
22945 esac
22946 ;;
22947 esac
22948 ;;
22949 lynxos*)
22950 ;;
22951 m88k*)
22952 ;;
22953 mvs*)
22954 case $cc_basename in
22955 cxx*)
22956 lt_prog_compiler_pic_CXX='-W c,exportall'
22957 ;;
22958 *)
22959 ;;
22960 esac
22961 ;;
22962 netbsd* | netbsdelf*-gnu)
22963 ;;
22964 *-mlibc)
22965 ;;
22966 *qnx* | *nto*)
22967 # QNX uses GNU C++, but need to define -shared option too, otherwise
22968 # it will coredump.
22969 lt_prog_compiler_pic_CXX='-fPIC -shared'
22970 ;;
22971 osf3* | osf4* | osf5*)
22972 case $cc_basename in
22973 KCC*)
22974 lt_prog_compiler_wl_CXX='--backend -Wl,'
22975 ;;
22976 RCC*)
22977 # Rational C++ 2.4.1
22978 lt_prog_compiler_pic_CXX='-pic'
22979 ;;
22980 cxx*)
22981 # Digital/Compaq C++
22982 lt_prog_compiler_wl_CXX='-Wl,'
22983 # Make sure the PIC flag is empty. It appears that all Alpha
22984 # Linux and Compaq Tru64 Unix objects are PIC.
22985 lt_prog_compiler_pic_CXX=
22986 lt_prog_compiler_static_CXX='-non_shared'
22987 ;;
22988 *)
22989 ;;
22990 esac
22991 ;;
22992 psos*)
22993 ;;
22994 serenity*)
22995 ;;
22996 solaris*)
22997 case $cc_basename in
22998 CC* | sunCC*)
22999 # Sun C++ 4.2, 5.x and Centerline C++
23000 lt_prog_compiler_pic_CXX='-KPIC'
23001 lt_prog_compiler_static_CXX='-Bstatic'
23002 lt_prog_compiler_wl_CXX='-Qoption ld '
23003 ;;
23004 gcx*)
23005 # Green Hills C++ Compiler
23006 lt_prog_compiler_pic_CXX='-PIC'
23007 ;;
23008 *)
23009 ;;
23010 esac
23011 ;;
23012 sunos4*)
23013 case $cc_basename in
23014 CC*)
23015 # Sun C++ 4.x
23016 lt_prog_compiler_pic_CXX='-pic'
23017 lt_prog_compiler_static_CXX='-Bstatic'
23018 ;;
23019 lcc*)
23020 # Lucid
23021 lt_prog_compiler_pic_CXX='-pic'
23022 ;;
23023 *)
23024 ;;
23025 esac
23026 ;;
23027 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23028 case $cc_basename in
23029 CC*)
23030 lt_prog_compiler_wl_CXX='-Wl,'
23031 lt_prog_compiler_pic_CXX='-KPIC'
23032 lt_prog_compiler_static_CXX='-Bstatic'
23033 ;;
23034 esac
23035 ;;
23036 tandem*)
23037 case $cc_basename in
23038 NCC*)
23039 # NonStop-UX NCC 3.20
23040 lt_prog_compiler_pic_CXX='-KPIC'
23041 ;;
23042 *)
23043 ;;
23044 esac
23045 ;;
23046 vxworks*)
23047 ;;
23048 *)
23049 lt_prog_compiler_can_build_shared_CXX=no
23050 ;;
23051 esac
23052 fi
23053
23054 case $host_os in
23055 # For platforms that do not support PIC, -DPIC is meaningless:
23056 *djgpp*)
23057 lt_prog_compiler_pic_CXX=
23058 ;;
23059 *)
23060 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23061 ;;
23062 esac
23063
23064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23065 printf %s "checking for $compiler option to produce PIC... " >&6; }
23066 if test ${lt_cv_prog_compiler_pic_CXX+y}
23067 then :
23068 printf %s "(cached) " >&6
23069 else case e in #(
23070 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
23071 esac
23072 fi
23073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
23074 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
23075 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
23076
23077 #
23078 # Check to make sure the PIC flag actually works.
23079 #
23080 if test -n "$lt_prog_compiler_pic_CXX"; then
23081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23082 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23083 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
23084 then :
23085 printf %s "(cached) " >&6
23086 else case e in #(
23087 e) lt_cv_prog_compiler_pic_works_CXX=no
23088 ac_outfile=conftest.$ac_objext
23089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23090 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
23091 # Insert the option either (1) after the last *FLAGS variable, or
23092 # (2) before a word containing "conftest.", or (3) at the end.
23093 # Note that $ac_compile itself does not contain backslashes and begins
23094 # with a dollar sign (not a hyphen), so the echo should work correctly.
23095 # The option is referenced via a variable to avoid confusing sed.
23096 lt_compile=`echo "$ac_compile" | $SED \
23097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23099 -e 's:$: $lt_compiler_flag:'`
23100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23101 (eval "$lt_compile" 2>conftest.err)
23102 ac_status=$?
23103 cat conftest.err >&5
23104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 if (exit $ac_status) && test -s "$ac_outfile"; then
23106 # The compiler can only warn and ignore the option if not recognized
23107 # So say no if there are warnings other than the usual output.
23108 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23111 lt_cv_prog_compiler_pic_works_CXX=yes
23112 fi
23113 fi
23114 $RM conftest*
23115 ;;
23116 esac
23117 fi
23118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23119 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23120
23121 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
23122 case $lt_prog_compiler_pic_CXX in
23123 "" | " "*) ;;
23124 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23125 esac
23126 else
23127 lt_prog_compiler_pic_CXX=
23128 lt_prog_compiler_can_build_shared_CXX=no
23129 fi
23130
23131 fi
23132
23133
23134
23135
23136
23137 #
23138 # Check to make sure the static flag actually works.
23139 #
23140 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23142 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23143 if test ${lt_cv_prog_compiler_static_works_CXX+y}
23144 then :
23145 printf %s "(cached) " >&6
23146 else case e in #(
23147 e) lt_cv_prog_compiler_static_works_CXX=no
23148 save_LDFLAGS=$LDFLAGS
23149 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23150 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23151 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23152 # The linker can only warn and ignore the option if not recognized
23153 # So say no if there are warnings
23154 if test -s conftest.err; then
23155 # Append any errors to the config.log.
23156 cat conftest.err 1>&5
23157 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23159 if diff conftest.exp conftest.er2 >/dev/null; then
23160 lt_cv_prog_compiler_static_works_CXX=yes
23161 fi
23162 else
23163 lt_cv_prog_compiler_static_works_CXX=yes
23164 fi
23165 fi
23166 $RM -r conftest*
23167 LDFLAGS=$save_LDFLAGS
23168 ;;
23169 esac
23170 fi
23171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23172 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23173
23174 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
23175 :
23176 else
23177 lt_prog_compiler_static_CXX=
23178 fi
23179
23180
23181
23182
23183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23184 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23185 if test ${lt_cv_prog_compiler_c_o_CXX+y}
23186 then :
23187 printf %s "(cached) " >&6
23188 else case e in #(
23189 e) lt_cv_prog_compiler_c_o_CXX=no
23190 $RM -r conftest 2>/dev/null
23191 mkdir conftest
23192 cd conftest
23193 mkdir out
23194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23195
23196 lt_compiler_flag="-o out/conftest2.$ac_objext"
23197 # Insert the option either (1) after the last *FLAGS variable, or
23198 # (2) before a word containing "conftest.", or (3) at the end.
23199 # Note that $ac_compile itself does not contain backslashes and begins
23200 # with a dollar sign (not a hyphen), so the echo should work correctly.
23201 lt_compile=`echo "$ac_compile" | $SED \
23202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23204 -e 's:$: $lt_compiler_flag:'`
23205 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23206 (eval "$lt_compile" 2>out/conftest.err)
23207 ac_status=$?
23208 cat out/conftest.err >&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23211 then
23212 # The compiler can only warn and ignore the option if not recognized
23213 # So say no if there are warnings
23214 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23215 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23216 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23217 lt_cv_prog_compiler_c_o_CXX=yes
23218 fi
23219 fi
23220 chmod u+w . 2>&5
23221 $RM conftest*
23222 # SGI C++ compiler will create directory out/ii_files/ for
23223 # template instantiation
23224 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23225 $RM out/* && rmdir out
23226 cd ..
23227 $RM -r conftest
23228 $RM conftest*
23229 ;;
23230 esac
23231 fi
23232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23233 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23234
23235
23236
23237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23238 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23239 if test ${lt_cv_prog_compiler_c_o_CXX+y}
23240 then :
23241 printf %s "(cached) " >&6
23242 else case e in #(
23243 e) lt_cv_prog_compiler_c_o_CXX=no
23244 $RM -r conftest 2>/dev/null
23245 mkdir conftest
23246 cd conftest
23247 mkdir out
23248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23249
23250 lt_compiler_flag="-o out/conftest2.$ac_objext"
23251 # Insert the option either (1) after the last *FLAGS variable, or
23252 # (2) before a word containing "conftest.", or (3) at the end.
23253 # Note that $ac_compile itself does not contain backslashes and begins
23254 # with a dollar sign (not a hyphen), so the echo should work correctly.
23255 lt_compile=`echo "$ac_compile" | $SED \
23256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23258 -e 's:$: $lt_compiler_flag:'`
23259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23260 (eval "$lt_compile" 2>out/conftest.err)
23261 ac_status=$?
23262 cat out/conftest.err >&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23265 then
23266 # The compiler can only warn and ignore the option if not recognized
23267 # So say no if there are warnings
23268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23269 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23270 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23271 lt_cv_prog_compiler_c_o_CXX=yes
23272 fi
23273 fi
23274 chmod u+w . 2>&5
23275 $RM conftest*
23276 # SGI C++ compiler will create directory out/ii_files/ for
23277 # template instantiation
23278 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23279 $RM out/* && rmdir out
23280 cd ..
23281 $RM -r conftest
23282 $RM conftest*
23283 ;;
23284 esac
23285 fi
23286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23287 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23288
23289
23290
23291
23292 hard_links=nottested
23293 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
23294 # do not overwrite the value of need_locks provided by the user
23295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
23296 printf %s "checking if we can lock with hard links... " >&6; }
23297 hard_links=yes
23298 $RM conftest*
23299 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23300 touch conftest.a
23301 ln conftest.a conftest.b 2>&5 || hard_links=no
23302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
23304 printf "%s\n" "$hard_links" >&6; }
23305 if test no = "$hard_links"; then
23306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
23307 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
23308 need_locks=warn
23309 fi
23310 else
23311 need_locks=no
23312 fi
23313
23314
23315
23316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23317 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
23318
23319 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23320 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23321 case $host_os in
23322 aix[4-9]*)
23323 # If we're using GNU nm, then we don't want the "-C" option.
23324 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
23325 # Without the "-l" option, or with the "-B" option, AIX nm treats
23326 # weak defined symbols like other global defined symbols, whereas
23327 # GNU nm marks them as "W".
23328 # While the 'weak' keyword is ignored in the Export File, we need
23329 # it in the Import File for the 'aix-soname' feature, so we have
23330 # to replace the "-B" option with "-P" for AIX nm.
23331 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
23332 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
23333 else
23334 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
23335 fi
23336 ;;
23337 pw32*)
23338 export_symbols_cmds_CXX=$ltdll_cmds
23339 ;;
23340 cygwin* | mingw* | windows* | cegcc*)
23341 case $cc_basename in
23342 cl* | icl*)
23343 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
23344 ;;
23345 *)
23346 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
23347 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
23348 ;;
23349 esac
23350 ;;
23351 linux* | k*bsd*-gnu | gnu*)
23352 link_all_deplibs_CXX=no
23353 ;;
23354 *)
23355 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23356 ;;
23357 esac
23358
23359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23360 printf "%s\n" "$ld_shlibs_CXX" >&6; }
23361 test no = "$ld_shlibs_CXX" && can_build_shared=no
23362
23363 with_gnu_ld_CXX=$with_gnu_ld
23364
23365
23366
23367
23368
23369
23370 #
23371 # Do we need to explicitly link libc?
23372 #
23373 case "x$archive_cmds_need_lc_CXX" in
23374 x|xyes)
23375 # Assume -lc should be added
23376 archive_cmds_need_lc_CXX=yes
23377
23378 if test yes,yes = "$GCC,$enable_shared"; then
23379 case $archive_cmds_CXX in
23380 *'~'*)
23381 # FIXME: we may have to deal with multi-command sequences.
23382 ;;
23383 '$CC '*)
23384 # Test whether the compiler implicitly links with -lc since on some
23385 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23386 # to ld, don't add -lc before -lgcc.
23387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
23388 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
23389 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
23390 then :
23391 printf %s "(cached) " >&6
23392 else case e in #(
23393 e) $RM conftest*
23394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23395
23396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23397 (eval $ac_compile) 2>&5
23398 ac_status=$?
23399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23400 test $ac_status = 0; } 2>conftest.err; then
23401 soname=conftest
23402 lib=conftest
23403 libobjs=conftest.$ac_objext
23404 deplibs=
23405 wl=$lt_prog_compiler_wl_CXX
23406 pic_flag=$lt_prog_compiler_pic_CXX
23407 compiler_flags=-v
23408 linker_flags=-v
23409 verstring=
23410 output_objdir=.
23411 libname=conftest
23412 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
23413 allow_undefined_flag_CXX=
23414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
23415 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23416 ac_status=$?
23417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23418 test $ac_status = 0; }
23419 then
23420 lt_cv_archive_cmds_need_lc_CXX=no
23421 else
23422 lt_cv_archive_cmds_need_lc_CXX=yes
23423 fi
23424 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
23425 else
23426 cat conftest.err 1>&5
23427 fi
23428 $RM conftest*
23429 ;;
23430 esac
23431 fi
23432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
23433 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
23434 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
23435 ;;
23436 esac
23437 fi
23438 ;;
23439 esac
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
23503 printf %s "checking dynamic linker characteristics... " >&6; }
23504
23505 library_names_spec=
23506 libname_spec='lib$name'
23507 soname_spec=
23508 shrext_cmds=.so
23509 postinstall_cmds=
23510 postuninstall_cmds=
23511 finish_cmds=
23512 finish_eval=
23513 shlibpath_var=
23514 shlibpath_overrides_runpath=unknown
23515 version_type=none
23516 dynamic_linker="$host_os ld.so"
23517 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23518 need_lib_prefix=unknown
23519 hardcode_into_libs=no
23520
23521 # when you set need_version to no, make sure it does not cause -set_version
23522 # flags to be left without arguments
23523 need_version=unknown
23524
23525
23526
23527 case $host_os in
23528 aix3*)
23529 version_type=linux # correct to gnu/linux during the next big refactor
23530 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
23531 shlibpath_var=LIBPATH
23532
23533 # AIX 3 has no versioning support, so we append a major version to the name.
23534 soname_spec='$libname$release$shared_ext$major'
23535 ;;
23536
23537 aix[4-9]*)
23538 version_type=linux # correct to gnu/linux during the next big refactor
23539 need_lib_prefix=no
23540 need_version=no
23541 hardcode_into_libs=yes
23542 if test ia64 = "$host_cpu"; then
23543 # AIX 5 supports IA64
23544 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
23545 shlibpath_var=LD_LIBRARY_PATH
23546 else
23547 # With GCC up to 2.95.x, collect2 would create an import file
23548 # for dependence libraries. The import file would start with
23549 # the line '#! .'. This would cause the generated library to
23550 # depend on '.', always an invalid library. This was fixed in
23551 # development snapshots of GCC prior to 3.0.
23552 case $host_os in
23553 aix4 | aix4.[01] | aix4.[01].*)
23554 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23555 echo ' yes '
23556 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
23557 :
23558 else
23559 can_build_shared=no
23560 fi
23561 ;;
23562 esac
23563 # Using Import Files as archive members, it is possible to support
23564 # filename-based versioning of shared library archives on AIX. While
23565 # this would work for both with and without runtime linking, it will
23566 # prevent static linking of such archives. So we do filename-based
23567 # shared library versioning with .so extension only, which is used
23568 # when both runtime linking and shared linking is enabled.
23569 # Unfortunately, runtime linking may impact performance, so we do
23570 # not want this to be the default eventually. Also, we use the
23571 # versioned .so libs for executables only if there is the -brtl
23572 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
23573 # To allow for filename-based versioning support, we need to create
23574 # libNAME.so.V as an archive file, containing:
23575 # *) an Import File, referring to the versioned filename of the
23576 # archive as well as the shared archive member, telling the
23577 # bitwidth (32 or 64) of that shared object, and providing the
23578 # list of exported symbols of that shared object, eventually
23579 # decorated with the 'weak' keyword
23580 # *) the shared object with the F_LOADONLY flag set, to really avoid
23581 # it being seen by the linker.
23582 # At run time we better use the real file rather than another symlink,
23583 # but for link time we create the symlink libNAME.so -> libNAME.so.V
23584
23585 case $with_aix_soname,$aix_use_runtimelinking in
23586 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
23587 # soname into executable. Probably we can add versioning support to
23588 # collect2, so additional links can be useful in future.
23589 aix,yes) # traditional libtool
23590 dynamic_linker='AIX unversionable lib.so'
23591 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23592 # instead of lib<name>.a to let people know that these are not
23593 # typical AIX shared libraries.
23594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23595 ;;
23596 aix,no) # traditional AIX only
23597 dynamic_linker='AIX lib.a(lib.so.V)'
23598 # We preserve .a as extension for shared libraries through AIX4.2
23599 # and later when we are not doing run time linking.
23600 library_names_spec='$libname$release.a $libname.a'
23601 soname_spec='$libname$release$shared_ext$major'
23602 ;;
23603 svr4,*) # full svr4 only
23604 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
23605 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
23606 # We do not specify a path in Import Files, so LIBPATH fires.
23607 shlibpath_overrides_runpath=yes
23608 ;;
23609 *,yes) # both, prefer svr4
23610 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
23611 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
23612 # unpreferred sharedlib libNAME.a needs extra handling
23613 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"'
23614 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"'
23615 # We do not specify a path in Import Files, so LIBPATH fires.
23616 shlibpath_overrides_runpath=yes
23617 ;;
23618 *,no) # both, prefer aix
23619 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
23620 library_names_spec='$libname$release.a $libname.a'
23621 soname_spec='$libname$release$shared_ext$major'
23622 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
23623 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)'
23624 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"'
23625 ;;
23626 esac
23627 shlibpath_var=LIBPATH
23628 fi
23629 ;;
23630
23631 amigaos*)
23632 case $host_cpu in
23633 powerpc)
23634 # Since July 2007 AmigaOS4 officially supports .so libraries.
23635 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
23636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23637 ;;
23638 m68k)
23639 library_names_spec='$libname.ixlibrary $libname.a'
23640 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23641 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'
23642 ;;
23643 esac
23644 ;;
23645
23646 beos*)
23647 library_names_spec='$libname$shared_ext'
23648 dynamic_linker="$host_os ld.so"
23649 shlibpath_var=LIBRARY_PATH
23650 ;;
23651
23652 bsdi[45]*)
23653 version_type=linux # correct to gnu/linux during the next big refactor
23654 need_version=no
23655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23656 soname_spec='$libname$release$shared_ext$major'
23657 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23658 shlibpath_var=LD_LIBRARY_PATH
23659 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23660 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23661 # the default ld.so.conf also contains /usr/contrib/lib and
23662 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23663 # libtool to hard-code these into programs
23664 ;;
23665
23666 cygwin* | mingw* | windows* | pw32* | cegcc*)
23667 version_type=windows
23668 shrext_cmds=.dll
23669 need_version=no
23670 need_lib_prefix=no
23671
23672 case $GCC,$cc_basename in
23673 yes,*)
23674 # gcc
23675 library_names_spec='$libname.dll.a'
23676 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23677 # If user builds GCC with multilib enabled,
23678 # it should just install on $(libdir)
23679 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
23680 if test xyes = x"$multilib"; then
23681 postinstall_cmds='base_file=`basename \$file`~
23682 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23683 dldir=$destdir/`dirname \$dlpath`~
23684 $install_prog $dir/$dlname $destdir/$dlname~
23685 chmod a+x $destdir/$dlname~
23686 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23687 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
23688 fi'
23689 else
23690 postinstall_cmds='base_file=`basename \$file`~
23691 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23692 dldir=$destdir/`dirname \$dlpath`~
23693 test -d \$dldir || mkdir -p \$dldir~
23694 $install_prog $dir/$dlname \$dldir/$dlname~
23695 chmod a+x \$dldir/$dlname~
23696 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23697 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23698 fi'
23699 fi
23700 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23701 dlpath=$dir/\$dldll~
23702 $RM \$dlpath'
23703 shlibpath_overrides_runpath=yes
23704
23705 case $host_os in
23706 cygwin*)
23707 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23708 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23709
23710 ;;
23711 mingw* | windows* | cegcc*)
23712 # MinGW DLLs use traditional 'lib' prefix
23713 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23714 ;;
23715 pw32*)
23716 # pw32 DLLs use 'pw' prefix rather than 'lib'
23717 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23718 ;;
23719 esac
23720 dynamic_linker='Win32 ld.exe'
23721 ;;
23722
23723 *,cl* | *,icl*)
23724 # Native MSVC or ICC
23725 libname_spec='$name'
23726 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23727 library_names_spec='$libname.dll.lib'
23728
23729 case $build_os in
23730 mingw* | windows*)
23731 sys_lib_search_path_spec=
23732 lt_save_ifs=$IFS
23733 IFS=';'
23734 for lt_path in $LIB
23735 do
23736 IFS=$lt_save_ifs
23737 # Let DOS variable expansion print the short 8.3 style file name.
23738 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
23739 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
23740 done
23741 IFS=$lt_save_ifs
23742 # Convert to MSYS style.
23743 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
23744 ;;
23745 cygwin*)
23746 # Convert to unix form, then to dos form, then back to unix form
23747 # but this time dos style (no spaces!) so that the unix form looks
23748 # like /cygdrive/c/PROGRA~1:/cygdr...
23749 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
23750 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
23751 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23752 ;;
23753 *)
23754 sys_lib_search_path_spec=$LIB
23755 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
23756 # It is most probably a Windows format PATH.
23757 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23758 else
23759 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23760 fi
23761 # FIXME: find the short name or the path components, as spaces are
23762 # common. (e.g. "Program Files" -> "PROGRA~1")
23763 ;;
23764 esac
23765
23766 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23767 postinstall_cmds='base_file=`basename \$file`~
23768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23769 dldir=$destdir/`dirname \$dlpath`~
23770 test -d \$dldir || mkdir -p \$dldir~
23771 $install_prog $dir/$dlname \$dldir/$dlname'
23772 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23773 dlpath=$dir/\$dldll~
23774 $RM \$dlpath'
23775 shlibpath_overrides_runpath=yes
23776 dynamic_linker='Win32 link.exe'
23777 ;;
23778
23779 *)
23780 # Assume MSVC and ICC wrapper
23781 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
23782 dynamic_linker='Win32 ld.exe'
23783 ;;
23784 esac
23785 # FIXME: first we should search . and the directory the executable is in
23786 shlibpath_var=PATH
23787 ;;
23788
23789 darwin* | rhapsody*)
23790 dynamic_linker="$host_os dyld"
23791 version_type=darwin
23792 need_lib_prefix=no
23793 need_version=no
23794 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
23795 soname_spec='$libname$release$major$shared_ext'
23796 shlibpath_overrides_runpath=yes
23797 shlibpath_var=DYLD_LIBRARY_PATH
23798 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23799
23800 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23801 ;;
23802
23803 dgux*)
23804 version_type=linux # correct to gnu/linux during the next big refactor
23805 need_lib_prefix=no
23806 need_version=no
23807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23808 soname_spec='$libname$release$shared_ext$major'
23809 shlibpath_var=LD_LIBRARY_PATH
23810 ;;
23811
23812 freebsd* | dragonfly* | midnightbsd*)
23813 # DragonFly does not have aout. When/if they implement a new
23814 # versioning mechanism, adjust this.
23815 if test -x /usr/bin/objformat; then
23816 objformat=`/usr/bin/objformat`
23817 else
23818 case $host_os in
23819 freebsd[23].*) objformat=aout ;;
23820 *) objformat=elf ;;
23821 esac
23822 fi
23823 version_type=freebsd-$objformat
23824 case $version_type in
23825 freebsd-elf*)
23826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23827 soname_spec='$libname$release$shared_ext$major'
23828 need_version=no
23829 need_lib_prefix=no
23830 ;;
23831 freebsd-*)
23832 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
23833 need_version=yes
23834 ;;
23835 esac
23836 case $host_cpu in
23837 powerpc64)
23838 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
23839 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
23840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23841 /* end confdefs.h. */
23842 int test_pointer_size[sizeof (void *) - 5];
23843
23844 _ACEOF
23845 if ac_fn_cxx_try_compile "$LINENO"
23846 then :
23847 shlibpath_var=LD_LIBRARY_PATH
23848 else case e in #(
23849 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
23850 esac
23851 fi
23852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23853 ;;
23854 *)
23855 shlibpath_var=LD_LIBRARY_PATH
23856 ;;
23857 esac
23858 case $host_os in
23859 freebsd2.*)
23860 shlibpath_overrides_runpath=yes
23861 ;;
23862 freebsd3.[01]* | freebsdelf3.[01]*)
23863 shlibpath_overrides_runpath=yes
23864 hardcode_into_libs=yes
23865 ;;
23866 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23867 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23868 shlibpath_overrides_runpath=no
23869 hardcode_into_libs=yes
23870 ;;
23871 *) # from 4.6 on, and DragonFly
23872 shlibpath_overrides_runpath=yes
23873 hardcode_into_libs=yes
23874 ;;
23875 esac
23876 ;;
23877
23878 haiku*)
23879 version_type=linux # correct to gnu/linux during the next big refactor
23880 need_lib_prefix=no
23881 need_version=no
23882 dynamic_linker="$host_os runtime_loader"
23883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23884 soname_spec='$libname$release$shared_ext$major'
23885 shlibpath_var=LIBRARY_PATH
23886 shlibpath_overrides_runpath=no
23887 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
23888 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
23889 hardcode_into_libs=no
23890 ;;
23891
23892 hpux9* | hpux10* | hpux11*)
23893 # Give a soname corresponding to the major version so that dld.sl refuses to
23894 # link against other versions.
23895 version_type=sunos
23896 need_lib_prefix=no
23897 need_version=no
23898 case $host_cpu in
23899 ia64*)
23900 shrext_cmds='.so'
23901 hardcode_into_libs=yes
23902 dynamic_linker="$host_os dld.so"
23903 shlibpath_var=LD_LIBRARY_PATH
23904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23906 soname_spec='$libname$release$shared_ext$major'
23907 if test 32 = "$HPUX_IA64_MODE"; then
23908 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23909 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
23910 else
23911 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23912 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
23913 fi
23914 ;;
23915 hppa*64*)
23916 shrext_cmds='.sl'
23917 hardcode_into_libs=yes
23918 dynamic_linker="$host_os dld.sl"
23919 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23922 soname_spec='$libname$release$shared_ext$major'
23923 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23925 ;;
23926 *)
23927 shrext_cmds='.sl'
23928 dynamic_linker="$host_os dld.sl"
23929 shlibpath_var=SHLIB_PATH
23930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23932 soname_spec='$libname$release$shared_ext$major'
23933 ;;
23934 esac
23935 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
23936 postinstall_cmds='chmod 555 $lib'
23937 # or fails outright, so override atomically:
23938 install_override_mode=555
23939 ;;
23940
23941 interix[3-9]*)
23942 version_type=linux # correct to gnu/linux during the next big refactor
23943 need_lib_prefix=no
23944 need_version=no
23945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23946 soname_spec='$libname$release$shared_ext$major'
23947 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23948 shlibpath_var=LD_LIBRARY_PATH
23949 shlibpath_overrides_runpath=no
23950 hardcode_into_libs=yes
23951 ;;
23952
23953 irix5* | irix6* | nonstopux*)
23954 case $host_os in
23955 nonstopux*) version_type=nonstopux ;;
23956 *)
23957 if test yes = "$lt_cv_prog_gnu_ld"; then
23958 version_type=linux # correct to gnu/linux during the next big refactor
23959 else
23960 version_type=irix
23961 fi ;;
23962 esac
23963 need_lib_prefix=no
23964 need_version=no
23965 soname_spec='$libname$release$shared_ext$major'
23966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
23967 case $host_os in
23968 irix5* | nonstopux*)
23969 libsuff= shlibsuff=
23970 ;;
23971 *)
23972 case $LD in # libtool.m4 will add one of these switches to LD
23973 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23974 libsuff= shlibsuff= libmagic=32-bit;;
23975 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23976 libsuff=32 shlibsuff=N32 libmagic=N32;;
23977 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23978 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23979 *) libsuff= shlibsuff= libmagic=never-match;;
23980 esac
23981 ;;
23982 esac
23983 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23984 shlibpath_overrides_runpath=no
23985 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
23986 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
23987 hardcode_into_libs=yes
23988 ;;
23989
23990 # No shared lib support for Linux oldld, aout, or coff.
23991 linux*oldld* | linux*aout* | linux*coff*)
23992 dynamic_linker=no
23993 ;;
23994
23995 linux*android*)
23996 version_type=none # Android doesn't support versioned libraries.
23997 need_lib_prefix=no
23998 need_version=no
23999 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
24000 soname_spec='$libname$release$shared_ext'
24001 finish_cmds=
24002 shlibpath_var=LD_LIBRARY_PATH
24003 shlibpath_overrides_runpath=yes
24004
24005 # This implies no fast_install, which is unacceptable.
24006 # Some rework will be needed to allow for fast_install
24007 # before this can be enabled.
24008 hardcode_into_libs=yes
24009
24010 dynamic_linker='Android linker'
24011 # -rpath works at least for libraries that are not overridden by
24012 # libraries installed in system locations.
24013 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
24014 ;;
24015
24016 # This must be glibc/ELF.
24017 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
24018 version_type=linux # correct to gnu/linux during the next big refactor
24019 need_lib_prefix=no
24020 need_version=no
24021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24022 soname_spec='$libname$release$shared_ext$major'
24023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24024 shlibpath_var=LD_LIBRARY_PATH
24025 shlibpath_overrides_runpath=no
24026
24027 # Some binutils ld are patched to set DT_RUNPATH
24028 if test ${lt_cv_shlibpath_overrides_runpath+y}
24029 then :
24030 printf %s "(cached) " >&6
24031 else case e in #(
24032 e) lt_cv_shlibpath_overrides_runpath=no
24033 save_LDFLAGS=$LDFLAGS
24034 save_libdir=$libdir
24035 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24036 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24038 /* end confdefs.h. */
24039
24040 int
24041 main (void)
24042 {
24043
24044 ;
24045 return 0;
24046 }
24047 _ACEOF
24048 if ac_fn_cxx_try_link "$LINENO"
24049 then :
24050 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
24051 then :
24052 lt_cv_shlibpath_overrides_runpath=yes
24053 fi
24054 fi
24055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24056 conftest$ac_exeext conftest.$ac_ext
24057 LDFLAGS=$save_LDFLAGS
24058 libdir=$save_libdir
24059 ;;
24060 esac
24061 fi
24062
24063 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24064
24065 # This implies no fast_install, which is unacceptable.
24066 # Some rework will be needed to allow for fast_install
24067 # before this can be enabled.
24068 hardcode_into_libs=yes
24069
24070 # Ideally, we could use ldconfig to report *all* directories which are
24071 # searched for libraries, however this is still not possible. Aside from not
24072 # being certain /sbin/ldconfig is available, command
24073 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
24074 # even though it is searched at run-time. Try to do the best guess by
24075 # appending ld.so.conf contents (and includes) to the search path.
24076 if test -f /etc/ld.so.conf; then
24077 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' ' '`
24078 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24079 fi
24080
24081 # We used to test for /lib/ld.so.1 and disable shared libraries on
24082 # powerpc, because MkLinux only supported shared libraries with the
24083 # GNU dynamic linker. Since this was broken with cross compilers,
24084 # most powerpc-linux boxes support dynamic linking these days and
24085 # people can always --disable-shared, the test was removed, and we
24086 # assume the GNU/Linux dynamic linker is in use.
24087 dynamic_linker='GNU/Linux ld.so'
24088 ;;
24089
24090 netbsdelf*-gnu)
24091 version_type=linux
24092 need_lib_prefix=no
24093 need_version=no
24094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24095 soname_spec='$libname$release$shared_ext$major'
24096 shlibpath_var=LD_LIBRARY_PATH
24097 shlibpath_overrides_runpath=no
24098 hardcode_into_libs=yes
24099 dynamic_linker='NetBSD ld.elf_so'
24100 ;;
24101
24102 netbsdelf*-gnu)
24103 version_type=linux
24104 need_lib_prefix=no
24105 need_version=no
24106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24107 soname_spec='${libname}${release}${shared_ext}$major'
24108 shlibpath_var=LD_LIBRARY_PATH
24109 shlibpath_overrides_runpath=no
24110 hardcode_into_libs=yes
24111 dynamic_linker='NetBSD ld.elf_so'
24112 ;;
24113
24114 netbsd*)
24115 version_type=sunos
24116 need_lib_prefix=no
24117 need_version=no
24118 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24119 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24121 dynamic_linker='NetBSD (a.out) ld.so'
24122 else
24123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24124 soname_spec='$libname$release$shared_ext$major'
24125 dynamic_linker='NetBSD ld.elf_so'
24126 fi
24127 shlibpath_var=LD_LIBRARY_PATH
24128 shlibpath_overrides_runpath=yes
24129 hardcode_into_libs=yes
24130 ;;
24131
24132 *-mlibc)
24133 version_type=linux # correct to gnu/linux during the next big refactor
24134 need_lib_prefix=no
24135 need_version=no
24136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24137 soname_spec='$libname$release$shared_ext$major'
24138 dynamic_linker='mlibc ld.so'
24139 shlibpath_var=LD_LIBRARY_PATH
24140 shlibpath_overrides_runpath=no
24141 hardcode_into_libs=yes
24142 ;;
24143
24144 newsos6)
24145 version_type=linux # correct to gnu/linux during the next big refactor
24146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24147 shlibpath_var=LD_LIBRARY_PATH
24148 shlibpath_overrides_runpath=yes
24149 ;;
24150
24151 *nto* | *qnx*)
24152 version_type=qnx
24153 need_lib_prefix=no
24154 need_version=no
24155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24156 soname_spec='$libname$release$shared_ext$major'
24157 shlibpath_var=LD_LIBRARY_PATH
24158 shlibpath_overrides_runpath=no
24159 hardcode_into_libs=yes
24160 dynamic_linker='ldqnx.so'
24161 ;;
24162
24163 openbsd*)
24164 version_type=sunos
24165 sys_lib_dlsearch_path_spec=/usr/lib
24166 need_lib_prefix=no
24167 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
24168 need_version=no
24169 else
24170 need_version=yes
24171 fi
24172 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24174 shlibpath_var=LD_LIBRARY_PATH
24175 shlibpath_overrides_runpath=yes
24176 ;;
24177
24178 os2*)
24179 libname_spec='$name'
24180 version_type=windows
24181 shrext_cmds=.dll
24182 need_version=no
24183 need_lib_prefix=no
24184 # OS/2 can only load a DLL with a base name of 8 characters or less.
24185 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
24186 v=$($ECHO $release$versuffix | tr -d .-);
24187 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
24188 $ECHO $n$v`$shared_ext'
24189 library_names_spec='${libname}_dll.$libext'
24190 dynamic_linker='OS/2 ld.exe'
24191 shlibpath_var=BEGINLIBPATH
24192 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24193 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24194 postinstall_cmds='base_file=`basename \$file`~
24195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
24196 dldir=$destdir/`dirname \$dlpath`~
24197 test -d \$dldir || mkdir -p \$dldir~
24198 $install_prog $dir/$dlname \$dldir/$dlname~
24199 chmod a+x \$dldir/$dlname~
24200 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24201 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24202 fi'
24203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
24204 dlpath=$dir/\$dldll~
24205 $RM \$dlpath'
24206 ;;
24207
24208 osf3* | osf4* | osf5*)
24209 version_type=osf
24210 need_lib_prefix=no
24211 need_version=no
24212 soname_spec='$libname$release$shared_ext$major'
24213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24214 shlibpath_var=LD_LIBRARY_PATH
24215 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24217 ;;
24218
24219 rdos*)
24220 dynamic_linker=no
24221 ;;
24222
24223 serenity*)
24224 version_type=linux # correct to gnu/linux during the next big refactor
24225 need_lib_prefix=no
24226 need_version=no
24227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24228 soname_spec='$libname$release$shared_ext$major'
24229 shlibpath_var=LD_LIBRARY_PATH
24230 shlibpath_overrides_runpath=no
24231 dynamic_linker='SerenityOS LibELF'
24232 ;;
24233
24234 solaris*)
24235 version_type=linux # correct to gnu/linux during the next big refactor
24236 need_lib_prefix=no
24237 need_version=no
24238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24239 soname_spec='$libname$release$shared_ext$major'
24240 shlibpath_var=LD_LIBRARY_PATH
24241 shlibpath_overrides_runpath=yes
24242 hardcode_into_libs=yes
24243 # ldd complains unless libraries are executable
24244 postinstall_cmds='chmod +x $lib'
24245 ;;
24246
24247 sunos4*)
24248 version_type=sunos
24249 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24250 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24251 shlibpath_var=LD_LIBRARY_PATH
24252 shlibpath_overrides_runpath=yes
24253 if test yes = "$with_gnu_ld"; then
24254 need_lib_prefix=no
24255 fi
24256 need_version=yes
24257 ;;
24258
24259 sysv4 | sysv4.3*)
24260 version_type=linux # correct to gnu/linux during the next big refactor
24261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24262 soname_spec='$libname$release$shared_ext$major'
24263 shlibpath_var=LD_LIBRARY_PATH
24264 case $host_vendor in
24265 sni)
24266 shlibpath_overrides_runpath=no
24267 need_lib_prefix=no
24268 runpath_var=LD_RUN_PATH
24269 ;;
24270 siemens)
24271 need_lib_prefix=no
24272 ;;
24273 motorola)
24274 need_lib_prefix=no
24275 need_version=no
24276 shlibpath_overrides_runpath=no
24277 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24278 ;;
24279 esac
24280 ;;
24281
24282 sysv4*MP*)
24283 if test -d /usr/nec; then
24284 version_type=linux # correct to gnu/linux during the next big refactor
24285 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
24286 soname_spec='$libname$shared_ext.$major'
24287 shlibpath_var=LD_LIBRARY_PATH
24288 fi
24289 ;;
24290
24291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24292 version_type=sco
24293 need_lib_prefix=no
24294 need_version=no
24295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
24296 soname_spec='$libname$release$shared_ext$major'
24297 shlibpath_var=LD_LIBRARY_PATH
24298 shlibpath_overrides_runpath=yes
24299 hardcode_into_libs=yes
24300 if test yes = "$with_gnu_ld"; then
24301 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24302 else
24303 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24304 case $host_os in
24305 sco3.2v5*)
24306 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24307 ;;
24308 esac
24309 fi
24310 sys_lib_dlsearch_path_spec='/usr/lib'
24311 ;;
24312
24313 tpf*)
24314 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24315 version_type=linux # correct to gnu/linux during the next big refactor
24316 need_lib_prefix=no
24317 need_version=no
24318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24319 shlibpath_var=LD_LIBRARY_PATH
24320 shlibpath_overrides_runpath=no
24321 hardcode_into_libs=yes
24322 ;;
24323
24324 uts4*)
24325 version_type=linux # correct to gnu/linux during the next big refactor
24326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24327 soname_spec='$libname$release$shared_ext$major'
24328 shlibpath_var=LD_LIBRARY_PATH
24329 ;;
24330
24331 emscripten*)
24332 version_type=none
24333 need_lib_prefix=no
24334 need_version=no
24335 library_names_spec='$libname$release$shared_ext'
24336 soname_spec='$libname$release$shared_ext'
24337 finish_cmds=
24338 dynamic_linker="Emscripten linker"
24339 lt_prog_compiler_wl_CXX=
24340 lt_prog_compiler_pic_CXX=
24341 lt_prog_compiler_static_CXX=
24342
24343
24344 # C++ specific cases for pic, static, wl, etc.
24345 if test yes = "$GXX"; then
24346 lt_prog_compiler_wl_CXX='-Wl,'
24347 lt_prog_compiler_static_CXX='-static'
24348
24349 case $host_os in
24350 aix*)
24351 # All AIX code is PIC.
24352 if test ia64 = "$host_cpu"; then
24353 # AIX 5 now supports IA64 processor
24354 lt_prog_compiler_static_CXX='-Bstatic'
24355 fi
24356 lt_prog_compiler_pic_CXX='-fPIC'
24357 ;;
24358
24359 amigaos*)
24360 case $host_cpu in
24361 powerpc)
24362 # see comment about AmigaOS4 .so support
24363 lt_prog_compiler_pic_CXX='-fPIC'
24364 ;;
24365 m68k)
24366 # FIXME: we need at least 68020 code to build shared libraries, but
24367 # adding the '-m68020' flag to GCC prevents building anything better,
24368 # like '-m68040'.
24369 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
24370 ;;
24371 esac
24372 ;;
24373
24374 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24375 # PIC is the default for these OSes.
24376 ;;
24377 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
24378 # This hack is so that the source file can tell whether it is being
24379 # built for inclusion in a dll (and should export symbols for example).
24380 # Although the cygwin gcc ignores -fPIC, still need this for old-style
24381 # (--disable-auto-import) libraries
24382 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
24383 case $host_os in
24384 os2*)
24385 lt_prog_compiler_static_CXX='$wl-static'
24386 ;;
24387 esac
24388 ;;
24389 darwin* | rhapsody*)
24390 # PIC is the default on this platform
24391 # Common symbols not allowed in MH_DYLIB files
24392 lt_prog_compiler_pic_CXX='-fno-common'
24393 ;;
24394 *djgpp*)
24395 # DJGPP does not support shared libraries at all
24396 lt_prog_compiler_pic_CXX=
24397 ;;
24398 haiku*)
24399 # PIC is the default for Haiku.
24400 # The "-static" flag exists, but is broken.
24401 lt_prog_compiler_static_CXX=
24402 ;;
24403 interix[3-9]*)
24404 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24405 # Instead, we relocate shared libraries at runtime.
24406 ;;
24407 sysv4*MP*)
24408 if test -d /usr/nec; then
24409 lt_prog_compiler_pic_CXX=-Kconform_pic
24410 fi
24411 ;;
24412 hpux*)
24413 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
24414 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
24415 # sets the default TLS model and affects inlining.
24416 case $host_cpu in
24417 hppa*64*)
24418 ;;
24419 *)
24420 lt_prog_compiler_pic_CXX='-fPIC'
24421 ;;
24422 esac
24423 ;;
24424 *qnx* | *nto*)
24425 # QNX uses GNU C++, but need to define -shared option too, otherwise
24426 # it will coredump.
24427 lt_prog_compiler_pic_CXX='-fPIC -shared'
24428 ;;
24429 *)
24430 lt_prog_compiler_pic_CXX='-fPIC'
24431 ;;
24432 esac
24433 else
24434 case $host_os in
24435 aix[4-9]*)
24436 # All AIX code is PIC.
24437 if test ia64 = "$host_cpu"; then
24438 # AIX 5 now supports IA64 processor
24439 lt_prog_compiler_static_CXX='-Bstatic'
24440 else
24441 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
24442 fi
24443 ;;
24444 chorus*)
24445 case $cc_basename in
24446 cxch68*)
24447 # Green Hills C++ Compiler
24448 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
24449 ;;
24450 esac
24451 ;;
24452 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
24453 # This hack is so that the source file can tell whether it is being
24454 # built for inclusion in a dll (and should export symbols for example).
24455 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
24456 ;;
24457 dgux*)
24458 case $cc_basename in
24459 ec++*)
24460 lt_prog_compiler_pic_CXX='-KPIC'
24461 ;;
24462 ghcx*)
24463 # Green Hills C++ Compiler
24464 lt_prog_compiler_pic_CXX='-pic'
24465 ;;
24466 *)
24467 ;;
24468 esac
24469 ;;
24470 freebsd* | dragonfly* | midnightbsd*)
24471 # FreeBSD uses GNU C++
24472 ;;
24473 hpux9* | hpux10* | hpux11*)
24474 case $cc_basename in
24475 CC*)
24476 lt_prog_compiler_wl_CXX='-Wl,'
24477 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
24478 if test ia64 != "$host_cpu"; then
24479 lt_prog_compiler_pic_CXX='+Z'
24480 fi
24481 ;;
24482 aCC*)
24483 lt_prog_compiler_wl_CXX='-Wl,'
24484 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
24485 case $host_cpu in
24486 hppa*64*|ia64*)
24487 # +Z the default
24488 ;;
24489 *)
24490 lt_prog_compiler_pic_CXX='+Z'
24491 ;;
24492 esac
24493 ;;
24494 *)
24495 ;;
24496 esac
24497 ;;
24498 interix*)
24499 # This is c89, which is MS Visual C++ (no shared libs)
24500 # Anyone wants to do a port?
24501 ;;
24502 irix5* | irix6* | nonstopux*)
24503 case $cc_basename in
24504 CC*)
24505 lt_prog_compiler_wl_CXX='-Wl,'
24506 lt_prog_compiler_static_CXX='-non_shared'
24507 # CC pic flag -KPIC is the default.
24508 ;;
24509 *)
24510 ;;
24511 esac
24512 ;;
24513 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
24514 case $cc_basename in
24515 KCC*)
24516 # KAI C++ Compiler
24517 lt_prog_compiler_wl_CXX='--backend -Wl,'
24518 lt_prog_compiler_pic_CXX='-fPIC'
24519 ;;
24520 ecpc* )
24521 # old Intel C++ for x86_64, which still supported -KPIC.
24522 lt_prog_compiler_wl_CXX='-Wl,'
24523 lt_prog_compiler_pic_CXX='-KPIC'
24524 lt_prog_compiler_static_CXX='-static'
24525 ;;
24526 icpc* )
24527 # Intel C++, used to be incompatible with GCC.
24528 # ICC 10 doesn't accept -KPIC any more.
24529 lt_prog_compiler_wl_CXX='-Wl,'
24530 lt_prog_compiler_pic_CXX='-fPIC'
24531 lt_prog_compiler_static_CXX='-static'
24532 ;;
24533 pgCC* | pgcpp*)
24534 # Portland Group C++ compiler
24535 lt_prog_compiler_wl_CXX='-Wl,'
24536 lt_prog_compiler_pic_CXX='-fpic'
24537 lt_prog_compiler_static_CXX='-Bstatic'
24538 ;;
24539 cxx*)
24540 # Compaq C++
24541 # Make sure the PIC flag is empty. It appears that all Alpha
24542 # Linux and Compaq Tru64 Unix objects are PIC.
24543 lt_prog_compiler_pic_CXX=
24544 lt_prog_compiler_static_CXX='-non_shared'
24545 ;;
24546 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
24547 # IBM XL 8.0, 9.0 on PPC and BlueGene
24548 lt_prog_compiler_wl_CXX='-Wl,'
24549 lt_prog_compiler_pic_CXX='-qpic'
24550 lt_prog_compiler_static_CXX='-qstaticlink'
24551 ;;
24552 *)
24553 case `$CC -V 2>&1 | $SED 5q` in
24554 *Sun\ C*)
24555 # Sun C++ 5.9
24556 lt_prog_compiler_pic_CXX='-KPIC'
24557 lt_prog_compiler_static_CXX='-Bstatic'
24558 lt_prog_compiler_wl_CXX='-Qoption ld '
24559 ;;
24560 esac
24561 ;;
24562 esac
24563 ;;
24564 lynxos*)
24565 ;;
24566 m88k*)
24567 ;;
24568 mvs*)
24569 case $cc_basename in
24570 cxx*)
24571 lt_prog_compiler_pic_CXX='-W c,exportall'
24572 ;;
24573 *)
24574 ;;
24575 esac
24576 ;;
24577 netbsd* | netbsdelf*-gnu)
24578 ;;
24579 *-mlibc)
24580 ;;
24581 *qnx* | *nto*)
24582 # QNX uses GNU C++, but need to define -shared option too, otherwise
24583 # it will coredump.
24584 lt_prog_compiler_pic_CXX='-fPIC -shared'
24585 ;;
24586 osf3* | osf4* | osf5*)
24587 case $cc_basename in
24588 KCC*)
24589 lt_prog_compiler_wl_CXX='--backend -Wl,'
24590 ;;
24591 RCC*)
24592 # Rational C++ 2.4.1
24593 lt_prog_compiler_pic_CXX='-pic'
24594 ;;
24595 cxx*)
24596 # Digital/Compaq C++
24597 lt_prog_compiler_wl_CXX='-Wl,'
24598 # Make sure the PIC flag is empty. It appears that all Alpha
24599 # Linux and Compaq Tru64 Unix objects are PIC.
24600 lt_prog_compiler_pic_CXX=
24601 lt_prog_compiler_static_CXX='-non_shared'
24602 ;;
24603 *)
24604 ;;
24605 esac
24606 ;;
24607 psos*)
24608 ;;
24609 serenity*)
24610 ;;
24611 solaris*)
24612 case $cc_basename in
24613 CC* | sunCC*)
24614 # Sun C++ 4.2, 5.x and Centerline C++
24615 lt_prog_compiler_pic_CXX='-KPIC'
24616 lt_prog_compiler_static_CXX='-Bstatic'
24617 lt_prog_compiler_wl_CXX='-Qoption ld '
24618 ;;
24619 gcx*)
24620 # Green Hills C++ Compiler
24621 lt_prog_compiler_pic_CXX='-PIC'
24622 ;;
24623 *)
24624 ;;
24625 esac
24626 ;;
24627 sunos4*)
24628 case $cc_basename in
24629 CC*)
24630 # Sun C++ 4.x
24631 lt_prog_compiler_pic_CXX='-pic'
24632 lt_prog_compiler_static_CXX='-Bstatic'
24633 ;;
24634 lcc*)
24635 # Lucid
24636 lt_prog_compiler_pic_CXX='-pic'
24637 ;;
24638 *)
24639 ;;
24640 esac
24641 ;;
24642 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24643 case $cc_basename in
24644 CC*)
24645 lt_prog_compiler_wl_CXX='-Wl,'
24646 lt_prog_compiler_pic_CXX='-KPIC'
24647 lt_prog_compiler_static_CXX='-Bstatic'
24648 ;;
24649 esac
24650 ;;
24651 tandem*)
24652 case $cc_basename in
24653 NCC*)
24654 # NonStop-UX NCC 3.20
24655 lt_prog_compiler_pic_CXX='-KPIC'
24656 ;;
24657 *)
24658 ;;
24659 esac
24660 ;;
24661 vxworks*)
24662 ;;
24663 *)
24664 lt_prog_compiler_can_build_shared_CXX=no
24665 ;;
24666 esac
24667 fi
24668
24669 case $host_os in
24670 # For platforms that do not support PIC, -DPIC is meaningless:
24671 *djgpp*)
24672 lt_prog_compiler_pic_CXX=
24673 ;;
24674 *)
24675 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
24676 ;;
24677 esac
24678
24679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
24680 printf %s "checking for $compiler option to produce PIC... " >&6; }
24681 if test ${lt_cv_prog_compiler_pic_CXX+y}
24682 then :
24683 printf %s "(cached) " >&6
24684 else case e in #(
24685 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
24686 esac
24687 fi
24688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
24689 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
24690 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
24691
24692 #
24693 # Check to make sure the PIC flag actually works.
24694 #
24695 if test -n "$lt_prog_compiler_pic_CXX"; then
24696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
24697 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
24698 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
24699 then :
24700 printf %s "(cached) " >&6
24701 else case e in #(
24702 e) lt_cv_prog_compiler_pic_works_CXX=no
24703 ac_outfile=conftest.$ac_objext
24704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24705 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
24706 # Insert the option either (1) after the last *FLAGS variable, or
24707 # (2) before a word containing "conftest.", or (3) at the end.
24708 # Note that $ac_compile itself does not contain backslashes and begins
24709 # with a dollar sign (not a hyphen), so the echo should work correctly.
24710 # The option is referenced via a variable to avoid confusing sed.
24711 lt_compile=`echo "$ac_compile" | $SED \
24712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24714 -e 's:$: $lt_compiler_flag:'`
24715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24716 (eval "$lt_compile" 2>conftest.err)
24717 ac_status=$?
24718 cat conftest.err >&5
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 if (exit $ac_status) && test -s "$ac_outfile"; then
24721 # The compiler can only warn and ignore the option if not recognized
24722 # So say no if there are warnings other than the usual output.
24723 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
24724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24725 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24726 lt_cv_prog_compiler_pic_works_CXX=yes
24727 fi
24728 fi
24729 $RM conftest*
24730 ;;
24731 esac
24732 fi
24733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
24734 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
24735
24736 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
24737 case $lt_prog_compiler_pic_CXX in
24738 "" | " "*) ;;
24739 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
24740 esac
24741 else
24742 lt_prog_compiler_pic_CXX=
24743 lt_prog_compiler_can_build_shared_CXX=no
24744 fi
24745
24746 fi
24747
24748
24749
24750
24751
24752 #
24753 # Check to make sure the static flag actually works.
24754 #
24755 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
24756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24757 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
24758 if test ${lt_cv_prog_compiler_static_works_CXX+y}
24759 then :
24760 printf %s "(cached) " >&6
24761 else case e in #(
24762 e) lt_cv_prog_compiler_static_works_CXX=no
24763 save_LDFLAGS=$LDFLAGS
24764 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24765 echo "$lt_simple_link_test_code" > conftest.$ac_ext
24766 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24767 # The linker can only warn and ignore the option if not recognized
24768 # So say no if there are warnings
24769 if test -s conftest.err; then
24770 # Append any errors to the config.log.
24771 cat conftest.err 1>&5
24772 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
24773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24774 if diff conftest.exp conftest.er2 >/dev/null; then
24775 lt_cv_prog_compiler_static_works_CXX=yes
24776 fi
24777 else
24778 lt_cv_prog_compiler_static_works_CXX=yes
24779 fi
24780 fi
24781 $RM -r conftest*
24782 LDFLAGS=$save_LDFLAGS
24783 ;;
24784 esac
24785 fi
24786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
24787 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
24788
24789 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
24790 :
24791 else
24792 lt_prog_compiler_static_CXX=
24793 fi
24794
24795
24796
24797 ='-fPIC'
24798 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
24799 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
24800 archive_cmds_need_lc_CXX=no
24801 no_undefined_flag_CXX=
24802 ;;
24803
24804 *)
24805 dynamic_linker=no
24806 ;;
24807 esac
24808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24809 printf "%s\n" "$dynamic_linker" >&6; }
24810 test no = "$dynamic_linker" && can_build_shared=no
24811
24812 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24813 if test yes = "$GCC"; then
24814 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24815 fi
24816
24817 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
24818 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
24819 fi
24820
24821 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
24822 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
24823 fi
24824
24825 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
24826 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
24827
24828 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
24829 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
24830
24831 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
24832 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24874 printf %s "checking how to hardcode library paths into programs... " >&6; }
24875 hardcode_action_CXX=
24876 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24877 test -n "$runpath_var_CXX" ||
24878 test yes = "$hardcode_automatic_CXX"; then
24879
24880 # We can hardcode non-existent directories.
24881 if test no != "$hardcode_direct_CXX" &&
24882 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24883 # have to relink, otherwise we might link with an installed library
24884 # when we should be linking with a yet-to-be-installed one
24885 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
24886 test no != "$hardcode_minus_L_CXX"; then
24887 # Linking always hardcodes the temporary library directory.
24888 hardcode_action_CXX=relink
24889 else
24890 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24891 hardcode_action_CXX=immediate
24892 fi
24893 else
24894 # We cannot hardcode anything, or else we can only hardcode existing
24895 # directories.
24896 hardcode_action_CXX=unsupported
24897 fi
24898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24899 printf "%s\n" "$hardcode_action_CXX" >&6; }
24900
24901 if test relink = "$hardcode_action_CXX" ||
24902 test yes = "$inherit_rpath_CXX"; then
24903 # Fast installation is not supported
24904 enable_fast_install=no
24905 elif test yes = "$shlibpath_overrides_runpath" ||
24906 test no = "$enable_shared"; then
24907 # Fast installation is not necessary
24908 enable_fast_install=needless
24909 fi
24910
24911
24912
24913
24914
24915
24916
24917 fi # test -n "$compiler"
24918
24919 CC=$lt_save_CC
24920 CFLAGS=$lt_save_CFLAGS
24921 LDCXX=$LD
24922 LD=$lt_save_LD
24923 GCC=$lt_save_GCC
24924 with_gnu_ld=$lt_save_with_gnu_ld
24925 lt_cv_path_LDCXX=$lt_cv_path_LD
24926 lt_cv_path_LD=$lt_save_path_LD
24927 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24928 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24929 fi # test yes != "$_lt_caught_CXX_error"
24930
24931 ac_ext=c
24932 ac_cpp='$CPP $CPPFLAGS'
24933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951 ac_config_commands="$ac_config_commands libtool"
24952
24953
24954
24955
24956 # Only expand once:
24957
24958
24959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
24960 printf %s "checking for a sed that does not truncate output... " >&6; }
24961 if test ${ac_cv_path_SED+y}
24962 then :
24963 printf %s "(cached) " >&6
24964 else case e in #(
24965 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
24966 for ac_i in 1 2 3 4 5 6 7; do
24967 ac_script="$ac_script$as_nl$ac_script"
24968 done
24969 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
24970 { ac_script=; unset ac_script;}
24971 if test -z "$SED"; then
24972 ac_path_SED_found=false
24973 # Loop through the user's path and test for each of PROGNAME-LIST
24974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24975 for as_dir in $PATH
24976 do
24977 IFS=$as_save_IFS
24978 case $as_dir in #(((
24979 '') as_dir=./ ;;
24980 */) ;;
24981 *) as_dir=$as_dir/ ;;
24982 esac
24983 for ac_prog in sed gsed
24984 do
24985 for ac_exec_ext in '' $ac_executable_extensions; do
24986 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
24987 as_fn_executable_p "$ac_path_SED" || continue
24988 # Check for GNU ac_path_SED and select it if it is found.
24989 # Check for GNU $ac_path_SED
24990 case `"$ac_path_SED" --version 2>&1` in #(
24991 *GNU*)
24992 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
24993 #(
24994 *)
24995 ac_count=0
24996 printf %s 0123456789 >"conftest.in"
24997 while :
24998 do
24999 cat "conftest.in" "conftest.in" >"conftest.tmp"
25000 mv "conftest.tmp" "conftest.in"
25001 cp "conftest.in" "conftest.nl"
25002 printf "%s\n" '' >> "conftest.nl"
25003 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
25004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
25005 as_fn_arith $ac_count + 1 && ac_count=$as_val
25006 if test $ac_count -gt ${ac_path_SED_max-0}; then
25007 # Best one so far, save it but keep looking for a better one
25008 ac_cv_path_SED="$ac_path_SED"
25009 ac_path_SED_max=$ac_count
25010 fi
25011 # 10*(2^10) chars as input seems more than enough
25012 test $ac_count -gt 10 && break
25013 done
25014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
25015 esac
25016
25017 $ac_path_SED_found && break 3
25018 done
25019 done
25020 done
25021 IFS=$as_save_IFS
25022 if test -z "$ac_cv_path_SED"; then
25023 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
25024 fi
25025 else
25026 ac_cv_path_SED=$SED
25027 fi
25028 ;;
25029 esac
25030 fi
25031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
25032 printf "%s\n" "$ac_cv_path_SED" >&6; }
25033 SED="$ac_cv_path_SED"
25034 rm -f conftest.sed
25035
25036
25037
25038
25039
25040
25041
25042 if test -n "$PYTHON"; then
25043 # If the user set $PYTHON, use it and don't search something else.
25044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
25045 printf %s "checking whether $PYTHON version is >= 3.6... " >&6; }
25046 prog="import sys
25047 # split strings by '.' and convert to numeric. Append some zeros
25048 # because we need at least 4 digits for the hex conversion.
25049 # map returns an iterator in Python 3.0 and a list in 2.x
25050 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
25051 minverhex = 0
25052 # xrange is not present in Python 3.0 and range returns an iterator
25053 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
25054 sys.exit(sys.hexversion < minverhex)"
25055 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
25056 ($PYTHON -c "$prog") >&5 2>&5
25057 ac_status=$?
25058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059 (exit $ac_status); }
25060 then :
25061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25062 printf "%s\n" "yes" >&6; }
25063 else case e in #(
25064 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25065 printf "%s\n" "no" >&6; }
25066 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;;
25067 esac
25068 fi
25069 am_display_PYTHON=$PYTHON
25070 else
25071 # Otherwise, try each interpreter until we find one that satisfies
25072 # VERSION.
25073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
25074 printf %s "checking for a Python interpreter with version >= 3.6... " >&6; }
25075 if test ${am_cv_pathless_PYTHON+y}
25076 then :
25077 printf %s "(cached) " >&6
25078 else case e in #(
25079 e)
25080 for am_cv_pathless_PYTHON in python python3 python3.20 python3.19 python3.18 python3.17 python3.16 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
25081 test "$am_cv_pathless_PYTHON" = none && break
25082 prog="import sys
25083 # split strings by '.' and convert to numeric. Append some zeros
25084 # because we need at least 4 digits for the hex conversion.
25085 # map returns an iterator in Python 3.0 and a list in 2.x
25086 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
25087 minverhex = 0
25088 # xrange is not present in Python 3.0 and range returns an iterator
25089 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
25090 sys.exit(sys.hexversion < minverhex)"
25091 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
25092 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
25093 ac_status=$?
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); }
25096 then :
25097 break
25098 fi
25099 done ;;
25100 esac
25101 fi
25102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
25103 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
25104 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
25105 if test "$am_cv_pathless_PYTHON" = none; then
25106 PYTHON=:
25107 else
25108 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
25109 set dummy $am_cv_pathless_PYTHON; ac_word=$2
25110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25111 printf %s "checking for $ac_word... " >&6; }
25112 if test ${ac_cv_path_PYTHON+y}
25113 then :
25114 printf %s "(cached) " >&6
25115 else case e in #(
25116 e) case $PYTHON in
25117 [\\/]* | ?:[\\/]*)
25118 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
25119 ;;
25120 *)
25121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25122 for as_dir in $PATH
25123 do
25124 IFS=$as_save_IFS
25125 case $as_dir in #(((
25126 '') as_dir=./ ;;
25127 */) ;;
25128 *) as_dir=$as_dir/ ;;
25129 esac
25130 for ac_exec_ext in '' $ac_executable_extensions; do
25131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25132 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
25133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25134 break 2
25135 fi
25136 done
25137 done
25138 IFS=$as_save_IFS
25139
25140 ;;
25141 esac ;;
25142 esac
25143 fi
25144 PYTHON=$ac_cv_path_PYTHON
25145 if test -n "$PYTHON"; then
25146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
25147 printf "%s\n" "$PYTHON" >&6; }
25148 else
25149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25150 printf "%s\n" "no" >&6; }
25151 fi
25152
25153
25154 fi
25155 am_display_PYTHON=$am_cv_pathless_PYTHON
25156 fi
25157
25158
25159 if test "$PYTHON" = :; then
25160 :
25161 else
25162
25163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
25164 printf %s "checking for $am_display_PYTHON version... " >&6; }
25165 if test ${am_cv_python_version+y}
25166 then :
25167 printf %s "(cached) " >&6
25168 else case e in #(
25169 e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;;
25170 esac
25171 fi
25172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
25173 printf "%s\n" "$am_cv_python_version" >&6; }
25174 PYTHON_VERSION=$am_cv_python_version
25175
25176
25177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
25178 printf %s "checking for $am_display_PYTHON platform... " >&6; }
25179 if test ${am_cv_python_platform+y}
25180 then :
25181 printf %s "(cached) " >&6
25182 else case e in #(
25183 e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;;
25184 esac
25185 fi
25186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
25187 printf "%s\n" "$am_cv_python_platform" >&6; }
25188 PYTHON_PLATFORM=$am_cv_python_platform
25189
25190
25191 if test "x$prefix" = xNONE; then
25192 am__usable_prefix=$ac_default_prefix
25193 else
25194 am__usable_prefix=$prefix
25195 fi
25196
25197 # Allow user to request using sys.* values from Python,
25198 # instead of the GNU $prefix values.
25199
25200 # Check whether --with-python-sys-prefix was given.
25201 if test ${with_python_sys_prefix+y}
25202 then :
25203 withval=$with_python_sys_prefix; am_use_python_sys=:
25204 else case e in #(
25205 e) am_use_python_sys=false ;;
25206 esac
25207 fi
25208
25209
25210 # Allow user to override whatever the default Python prefix is.
25211
25212 # Check whether --with-python_prefix was given.
25213 if test ${with_python_prefix+y}
25214 then :
25215 withval=$with_python_prefix; am_python_prefix_subst=$withval
25216 am_cv_python_prefix=$withval
25217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
25218 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
25219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
25220 printf "%s\n" "$am_cv_python_prefix" >&6; }
25221 else case e in #(
25222 e)
25223 if $am_use_python_sys; then
25224 # using python sys.prefix value, not GNU
25225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
25226 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
25227 if test ${am_cv_python_prefix+y}
25228 then :
25229 printf %s "(cached) " >&6
25230 else case e in #(
25231 e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;;
25232 esac
25233 fi
25234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
25235 printf "%s\n" "$am_cv_python_prefix" >&6; }
25236
25237 case $am_cv_python_prefix in
25238 $am__usable_prefix*)
25239 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
25240 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
25241 ;;
25242 *)
25243 am_python_prefix_subst=$am_cv_python_prefix
25244 ;;
25245 esac
25246 else # using GNU prefix value, not python sys.prefix
25247 am_python_prefix_subst='${prefix}'
25248 am_python_prefix=$am_python_prefix_subst
25249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
25250 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
25251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
25252 printf "%s\n" "$am_python_prefix" >&6; }
25253 fi ;;
25254 esac
25255 fi
25256
25257 # Substituting python_prefix_subst value.
25258 PYTHON_PREFIX=$am_python_prefix_subst
25259
25260
25261 # emacs-page Now do it all over again for Python exec_prefix, but with yet
25262 # another conditional: fall back to regular prefix if that was specified.
25263
25264 # Check whether --with-python_exec_prefix was given.
25265 if test ${with_python_exec_prefix+y}
25266 then :
25267 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
25268 am_cv_python_exec_prefix=$withval
25269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
25270 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
25271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
25272 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
25273 else case e in #(
25274 e)
25275 # no explicit --with-python_exec_prefix, but if
25276 # --with-python_prefix was given, use its value for python_exec_prefix too.
25277 if test -n "$with_python_prefix"
25278 then :
25279 am_python_exec_prefix_subst=$with_python_prefix
25280 am_cv_python_exec_prefix=$with_python_prefix
25281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
25282 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
25283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
25284 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
25285 else case e in #(
25286 e)
25287 # Set am__usable_exec_prefix whether using GNU or Python values,
25288 # since we use that variable for pyexecdir.
25289 if test "x$exec_prefix" = xNONE; then
25290 am__usable_exec_prefix=$am__usable_prefix
25291 else
25292 am__usable_exec_prefix=$exec_prefix
25293 fi
25294 #
25295 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
25296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
25297 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
25298 if test ${am_cv_python_exec_prefix+y}
25299 then :
25300 printf %s "(cached) " >&6
25301 else case e in #(
25302 e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;;
25303 esac
25304 fi
25305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
25306 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
25307 case $am_cv_python_exec_prefix in
25308 $am__usable_exec_prefix*)
25309 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
25310 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
25311 ;;
25312 *)
25313 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
25314 ;;
25315 esac
25316 else # using GNU $exec_prefix, not python sys.exec_prefix
25317 am_python_exec_prefix_subst='${exec_prefix}'
25318 am_python_exec_prefix=$am_python_exec_prefix_subst
25319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
25320 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
25321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
25322 printf "%s\n" "$am_python_exec_prefix" >&6; }
25323 fi ;;
25324 esac
25325 fi ;;
25326 esac
25327 fi
25328
25329 # Substituting python_exec_prefix_subst.
25330 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
25331
25332
25333 # Factor out some code duplication into this shell variable.
25334 am_python_setup_sysconfig="\
25335 import sys
25336 # Prefer sysconfig over distutils.sysconfig, for better compatibility
25337 # with python 3.x. See automake bug#10227.
25338 try:
25339 import sysconfig
25340 except ImportError:
25341 can_use_sysconfig = 0
25342 else:
25343 can_use_sysconfig = 1
25344 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
25345 # <https://github.com/pypa/virtualenv/issues/118>
25346 try:
25347 from platform import python_implementation
25348 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
25349 can_use_sysconfig = 0
25350 except ImportError:
25351 pass" # end of am_python_setup_sysconfig
25352
25353 # More repeated code, for figuring out the installation scheme to use.
25354 am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'):
25355 scheme = sysconfig.get_default_scheme()
25356 else:
25357 scheme = sysconfig._get_default_scheme()
25358 if scheme == 'posix_local':
25359 if '$am_py_prefix' == '/usr':
25360 scheme = 'deb_system' # should only happen during Debian package builds
25361 else:
25362 # Debian's default scheme installs to /usr/local/ but we want to
25363 # follow the prefix, as we always have.
25364 # See bugs#54412, #64837, et al.
25365 scheme = 'posix_prefix'" # end of am_python_setup_scheme
25366
25367
25368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
25369 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
25370 if test ${am_cv_python_pythondir+y}
25371 then :
25372 printf %s "(cached) " >&6
25373 else case e in #(
25374 e) if test "x$am_cv_python_prefix" = x; then
25375 am_py_prefix=$am__usable_prefix
25376 else
25377 am_py_prefix=$am_cv_python_prefix
25378 fi
25379 am_cv_python_pythondir=`$PYTHON -c "
25380 $am_python_setup_sysconfig
25381 if can_use_sysconfig:
25382 try:
25383 $am_python_setup_scheme
25384 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
25385 except:
25386 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
25387 else:
25388 from distutils import sysconfig
25389 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
25390 sys.stdout.write(sitedir)"`
25391 #
25392 case $am_cv_python_pythondir in
25393 $am_py_prefix*)
25394 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
25395 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
25396 ;;
25397 *)
25398 case $am_py_prefix in
25399 /usr|/System*) ;;
25400 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
25401 ;;
25402 esac
25403 ;;
25404 esac
25405 ;;
25406 esac
25407 fi
25408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
25409 printf "%s\n" "$am_cv_python_pythondir" >&6; }
25410 pythondir=$am_cv_python_pythondir
25411
25412
25413 pkgpythondir=\${pythondir}/$PACKAGE
25414
25415
25416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
25417 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
25418 if test ${am_cv_python_pyexecdir+y}
25419 then :
25420 printf %s "(cached) " >&6
25421 else case e in #(
25422 e) if test "x$am_cv_python_exec_prefix" = x; then
25423 am_py_exec_prefix=$am__usable_exec_prefix
25424 else
25425 am_py_exec_prefix=$am_cv_python_exec_prefix
25426 fi
25427 am_cv_python_pyexecdir=`$PYTHON -c "
25428 $am_python_setup_sysconfig
25429 if can_use_sysconfig:
25430 try:
25431 $am_python_setup_scheme
25432 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
25433 except:
25434 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
25435 else:
25436 from distutils import sysconfig
25437 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
25438 sys.stdout.write(sitedir)"`
25439 #
25440 case $am_cv_python_pyexecdir in
25441 $am_py_exec_prefix*)
25442 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
25443 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
25444 ;;
25445 *)
25446 case $am_py_exec_prefix in
25447 /usr|/System*) ;;
25448 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
25449 ;;
25450 esac
25451 ;;
25452 esac
25453 ;;
25454 esac
25455 fi
25456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
25457 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
25458 pyexecdir=$am_cv_python_pyexecdir
25459
25460
25461 pkgpyexecdir=\${pyexecdir}/$PACKAGE
25462
25463
25464
25465 fi
25466
25467 if test "$PYTHON" != :; then
25468 HAVE_PYTHON_TRUE=
25469 HAVE_PYTHON_FALSE='#'
25470 else
25471 HAVE_PYTHON_TRUE='#'
25472 HAVE_PYTHON_FALSE=
25473 fi
25474
25475
25476 # Extract the first word of "cygpath", so it can be a program name with args.
25477 set dummy cygpath; ac_word=$2
25478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25479 printf %s "checking for $ac_word... " >&6; }
25480 if test ${ac_cv_prog_CYGPATH+y}
25481 then :
25482 printf %s "(cached) " >&6
25483 else case e in #(
25484 e) if test -n "$CYGPATH"; then
25485 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
25486 else
25487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25488 for as_dir in $PATH
25489 do
25490 IFS=$as_save_IFS
25491 case $as_dir in #(((
25492 '') as_dir=./ ;;
25493 */) ;;
25494 *) as_dir=$as_dir/ ;;
25495 esac
25496 for ac_exec_ext in '' $ac_executable_extensions; do
25497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25498 ac_cv_prog_CYGPATH="cygpath"
25499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25500 break 2
25501 fi
25502 done
25503 done
25504 IFS=$as_save_IFS
25505
25506 fi ;;
25507 esac
25508 fi
25509 CYGPATH=$ac_cv_prog_CYGPATH
25510 if test -n "$CYGPATH"; then
25511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
25512 printf "%s\n" "$CYGPATH" >&6; }
25513 else
25514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25515 printf "%s\n" "no" >&6; }
25516 fi
25517
25518
25519 # Extract the first word of "perl", so it can be a program name with args.
25520 set dummy perl; ac_word=$2
25521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25522 printf %s "checking for $ac_word... " >&6; }
25523 if test ${ac_cv_prog_PERL+y}
25524 then :
25525 printf %s "(cached) " >&6
25526 else case e in #(
25527 e) if test -n "$PERL"; then
25528 ac_cv_prog_PERL="$PERL" # Let the user override the test.
25529 else
25530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25531 for as_dir in $PATH
25532 do
25533 IFS=$as_save_IFS
25534 case $as_dir in #(((
25535 '') as_dir=./ ;;
25536 */) ;;
25537 *) as_dir=$as_dir/ ;;
25538 esac
25539 for ac_exec_ext in '' $ac_executable_extensions; do
25540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25541 ac_cv_prog_PERL="perl"
25542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25543 break 2
25544 fi
25545 done
25546 done
25547 IFS=$as_save_IFS
25548
25549 fi ;;
25550 esac
25551 fi
25552 PERL=$ac_cv_prog_PERL
25553 if test -n "$PERL"; then
25554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
25555 printf "%s\n" "$PERL" >&6; }
25556 else
25557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25558 printf "%s\n" "no" >&6; }
25559 fi
25560
25561
25562 # Extract the first word of "pdflatex", so it can be a program name with args.
25563 set dummy pdflatex; ac_word=$2
25564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25565 printf %s "checking for $ac_word... " >&6; }
25566 if test ${ac_cv_prog_PDFLATEX+y}
25567 then :
25568 printf %s "(cached) " >&6
25569 else case e in #(
25570 e) if test -n "$PDFLATEX"; then
25571 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
25572 else
25573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25574 for as_dir in $PATH
25575 do
25576 IFS=$as_save_IFS
25577 case $as_dir in #(((
25578 '') as_dir=./ ;;
25579 */) ;;
25580 *) as_dir=$as_dir/ ;;
25581 esac
25582 for ac_exec_ext in '' $ac_executable_extensions; do
25583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25584 ac_cv_prog_PDFLATEX="pdflatex"
25585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25586 break 2
25587 fi
25588 done
25589 done
25590 IFS=$as_save_IFS
25591
25592 fi ;;
25593 esac
25594 fi
25595 PDFLATEX=$ac_cv_prog_PDFLATEX
25596 if test -n "$PDFLATEX"; then
25597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
25598 printf "%s\n" "$PDFLATEX" >&6; }
25599 else
25600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25601 printf "%s\n" "no" >&6; }
25602 fi
25603
25604
25605 # Extract the first word of "pod2html", so it can be a program name with args.
25606 set dummy pod2html; ac_word=$2
25607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25608 printf %s "checking for $ac_word... " >&6; }
25609 if test ${ac_cv_prog_POD2HTML+y}
25610 then :
25611 printf %s "(cached) " >&6
25612 else case e in #(
25613 e) if test -n "$POD2HTML"; then
25614 ac_cv_prog_POD2HTML="$POD2HTML" # Let the user override the test.
25615 else
25616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25617 for as_dir in $PATH
25618 do
25619 IFS=$as_save_IFS
25620 case $as_dir in #(((
25621 '') as_dir=./ ;;
25622 */) ;;
25623 *) as_dir=$as_dir/ ;;
25624 esac
25625 for ac_exec_ext in '' $ac_executable_extensions; do
25626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25627 ac_cv_prog_POD2HTML="pod2html"
25628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25629 break 2
25630 fi
25631 done
25632 done
25633 IFS=$as_save_IFS
25634
25635 fi ;;
25636 esac
25637 fi
25638 POD2HTML=$ac_cv_prog_POD2HTML
25639 if test -n "$POD2HTML"; then
25640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5
25641 printf "%s\n" "$POD2HTML" >&6; }
25642 else
25643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25644 printf "%s\n" "no" >&6; }
25645 fi
25646
25647
25648
25649
25650
25651 # Extract the first word of "diff", so it can be a program name with args.
25652 set dummy diff; ac_word=$2
25653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25654 printf %s "checking for $ac_word... " >&6; }
25655 if test ${ac_cv_path_DIFF+y}
25656 then :
25657 printf %s "(cached) " >&6
25658 else case e in #(
25659 e) case $DIFF in
25660 [\\/]* | ?:[\\/]*)
25661 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
25662 ;;
25663 *)
25664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25665 for as_dir in $PATH
25666 do
25667 IFS=$as_save_IFS
25668 case $as_dir in #(((
25669 '') as_dir=./ ;;
25670 */) ;;
25671 *) as_dir=$as_dir/ ;;
25672 esac
25673 for ac_exec_ext in '' $ac_executable_extensions; do
25674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25675 ac_cv_path_DIFF="$as_dir$ac_word$ac_exec_ext"
25676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25677 break 2
25678 fi
25679 done
25680 done
25681 IFS=$as_save_IFS
25682
25683 ;;
25684 esac ;;
25685 esac
25686 fi
25687 DIFF=$ac_cv_path_DIFF
25688 if test -n "$DIFF"; then
25689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
25690 printf "%s\n" "$DIFF" >&6; }
25691 else
25692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25693 printf "%s\n" "no" >&6; }
25694 fi
25695
25696
25697
25698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DIFF context option" >&5
25699 printf %s "checking for $DIFF context option... " >&6; }
25700 for opt in -u -c; do
25701 if $DIFF $opt /dev/null /dev/null > /dev/null 2>&1; then
25702 DIFF_OPTIONS=$opt
25703 break
25704 fi
25705 done
25706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DIFF_OPTIONS" >&5
25707 printf "%s\n" "$DIFF_OPTIONS" >&6; }
25708
25709
25710
25711 if test "$host_os" = "mingw32" -a -n "$CYGPATH"; then
25712 OS_SRCDIR=`$CYGPATH -m "$srcdir"`
25713 else
25714 OS_SRCDIR="$srcdir"
25715 fi
25716
25717 if test -n "$PERL" -a -n "$PDFLATEX" -a -n "$POD2HTML"; then
25718 GENERATE_DOC_TRUE=
25719 GENERATE_DOC_FALSE='#'
25720 else
25721 GENERATE_DOC_TRUE='#'
25722 GENERATE_DOC_FALSE=
25723 fi
25724
25725
25726 # ------ AX CREATE STDINT H -------------------------------------
25727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
25728 printf %s "checking for stdint types... " >&6; }
25729 ac_stdint_h=`echo include/isl/stdint.h`
25730 # try to shortcircuit - if the default include path of the compiler
25731 # can find a "stdint.h" header then we assume that all compilers can.
25732 if test ${ac_cv_header_stdint_t+y}
25733 then :
25734 printf %s "(cached) " >&6
25735 else case e in #(
25736 e)
25737 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
25738 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
25739 old_CFLAGS="$CFLAGS" ; CFLAGS=""
25740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25741 /* end confdefs.h. */
25742 #include <stdint.h>
25743 int
25744 main (void)
25745 {
25746 int_least32_t v = 0;
25747 ;
25748 return 0;
25749 }
25750 _ACEOF
25751 if ac_fn_c_try_compile "$LINENO"
25752 then :
25753 ac_cv_stdint_result="(assuming C99 compatible system)"
25754 ac_cv_header_stdint_t="stdint.h";
25755 else case e in #(
25756 e) ac_cv_header_stdint_t="" ;;
25757 esac
25758 fi
25759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25760 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
25761 CFLAGS="-std=c99"
25762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25763 /* end confdefs.h. */
25764 #include <stdint.h>
25765 int
25766 main (void)
25767 {
25768 int_least32_t v = 0;
25769 ;
25770 return 0;
25771 }
25772 _ACEOF
25773 if ac_fn_c_try_compile "$LINENO"
25774 then :
25775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
25776 printf "%s\n" "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
25777 fi
25778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25779 fi
25780 CXXFLAGS="$old_CXXFLAGS"
25781 CPPFLAGS="$old_CPPFLAGS"
25782 CFLAGS="$old_CFLAGS" ;;
25783 esac
25784 fi
25785
25786
25787 v="... $ac_cv_header_stdint_h"
25788 if test "$ac_stdint_h" = "stdint.h" ; then
25789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
25790 printf "%s\n" "(are you sure you want them in ./stdint.h?)" >&6; }
25791 elif test "$ac_stdint_h" = "inttypes.h" ; then
25792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
25793 printf "%s\n" "(are you sure you want them in ./inttypes.h?)" >&6; }
25794 elif test "_$ac_cv_header_stdint_t" = "_" ; then
25795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
25796 printf "%s\n" "(putting them into $ac_stdint_h)$v" >&6; }
25797 else
25798 ac_cv_header_stdint="$ac_cv_header_stdint_t"
25799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
25800 printf "%s\n" "$ac_cv_header_stdint (shortcircuit)" >&6; }
25801 fi
25802
25803 if test "_$ac_cv_header_stdint_t" = "_" ; then # cannot shortcircuit..
25804
25805
25806 inttype_headers=`echo | sed -e 's/,/ /g'`
25807
25808 ac_cv_stdint_result="(no helpful system typedefs seen)"
25809
25810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
25811 printf %s "checking for stdint uintptr_t... " >&6; }
25812 if test ${ac_cv_header_stdint_x+y}
25813 then :
25814 printf %s "(cached) " >&6
25815 else case e in #(
25816 e)
25817 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
25818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
25819 printf "%s\n" "(..)" >&6; }
25820 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers
25821 do
25822 unset ac_cv_type_uintptr_t
25823 unset ac_cv_type_uint64_t
25824 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
25825 "
25826 if test "x$ac_cv_type_uintptr_t" = xyes
25827 then :
25828 ac_cv_header_stdint_x=$i
25829 else case e in #(
25830 e) continue ;;
25831 esac
25832 fi
25833
25834 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
25835 "
25836 if test "x$ac_cv_type_uint64_t" = xyes
25837 then :
25838 and64="/uint64_t"
25839 else case e in #(
25840 e) and64="" ;;
25841 esac
25842 fi
25843
25844 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
25845 break
25846 done
25847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
25848 printf %s "checking for stdint uintptr_t... " >&6; }
25849 ;;
25850 esac
25851 fi
25852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
25853 printf "%s\n" "$ac_cv_header_stdint_x" >&6; }
25854
25855
25856 if test "_$ac_cv_header_stdint_x" = "_" ; then
25857
25858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
25859 printf %s "checking for stdint uint32_t... " >&6; }
25860 if test ${ac_cv_header_stdint_o+y}
25861 then :
25862 printf %s "(cached) " >&6
25863 else case e in #(
25864 e)
25865 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
25866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
25867 printf "%s\n" "(..)" >&6; }
25868 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers
25869 do
25870 unset ac_cv_type_uint32_t
25871 unset ac_cv_type_uint64_t
25872 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
25873 "
25874 if test "x$ac_cv_type_uint32_t" = xyes
25875 then :
25876 ac_cv_header_stdint_o=$i
25877 else case e in #(
25878 e) continue ;;
25879 esac
25880 fi
25881
25882 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
25883 "
25884 if test "x$ac_cv_type_uint64_t" = xyes
25885 then :
25886 and64="/uint64_t"
25887 else case e in #(
25888 e) and64="" ;;
25889 esac
25890 fi
25891
25892 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
25893 break
25894 break;
25895 done
25896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
25897 printf %s "checking for stdint uint32_t... " >&6; }
25898 ;;
25899 esac
25900 fi
25901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
25902 printf "%s\n" "$ac_cv_header_stdint_o" >&6; }
25903
25904 fi
25905
25906 if test "_$ac_cv_header_stdint_x" = "_" ; then
25907 if test "_$ac_cv_header_stdint_o" = "_" ; then
25908
25909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
25910 printf %s "checking for stdint u_int32_t... " >&6; }
25911 if test ${ac_cv_header_stdint_u+y}
25912 then :
25913 printf %s "(cached) " >&6
25914 else case e in #(
25915 e)
25916 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
25917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
25918 printf "%s\n" "(..)" >&6; }
25919 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
25920 unset ac_cv_type_u_int32_t
25921 unset ac_cv_type_u_int64_t
25922 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
25923 "
25924 if test "x$ac_cv_type_u_int32_t" = xyes
25925 then :
25926 ac_cv_header_stdint_u=$i
25927 else case e in #(
25928 e) continue ;;
25929 esac
25930 fi
25931
25932 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
25933 "
25934 if test "x$ac_cv_type_u_int64_t" = xyes
25935 then :
25936 and64="/u_int64_t"
25937 else case e in #(
25938 e) and64="" ;;
25939 esac
25940 fi
25941
25942 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
25943 break
25944 break;
25945 done
25946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
25947 printf %s "checking for stdint u_int32_t... " >&6; }
25948 ;;
25949 esac
25950 fi
25951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
25952 printf "%s\n" "$ac_cv_header_stdint_u" >&6; }
25953
25954 fi fi
25955
25956 if test "_$ac_cv_header_stdint_x" = "_" ; then
25957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
25958 printf %s "checking for stdint datatype model... " >&6; }
25959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
25960 printf "%s\n" "(..)" >&6; }
25961
25962 # The cast to long int works around a bug in the HP C Compiler
25963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25964 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
25965 # This bug is HP SR number 8606223364.
25966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
25967 printf %s "checking size of char... " >&6; }
25968 if test ${ac_cv_sizeof_char+y}
25969 then :
25970 printf %s "(cached) " >&6
25971 else case e in #(
25972 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"
25973 then :
25974
25975 else case e in #(
25976 e) if test "$ac_cv_type_char" = yes; then
25977 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25978 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25979 as_fn_error 77 "cannot compute sizeof (char)
25980 See 'config.log' for more details" "$LINENO" 5; }
25981 else
25982 ac_cv_sizeof_char=0
25983 fi ;;
25984 esac
25985 fi
25986 ;;
25987 esac
25988 fi
25989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
25990 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
25991
25992
25993
25994 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
25995
25996
25997 # The cast to long int works around a bug in the HP C Compiler
25998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25999 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
26000 # This bug is HP SR number 8606223364.
26001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
26002 printf %s "checking size of short... " >&6; }
26003 if test ${ac_cv_sizeof_short+y}
26004 then :
26005 printf %s "(cached) " >&6
26006 else case e in #(
26007 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
26008 then :
26009
26010 else case e in #(
26011 e) if test "$ac_cv_type_short" = yes; then
26012 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26013 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26014 as_fn_error 77 "cannot compute sizeof (short)
26015 See 'config.log' for more details" "$LINENO" 5; }
26016 else
26017 ac_cv_sizeof_short=0
26018 fi ;;
26019 esac
26020 fi
26021 ;;
26022 esac
26023 fi
26024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
26025 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
26026
26027
26028
26029 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
26030
26031
26032 # The cast to long int works around a bug in the HP C Compiler
26033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26034 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
26035 # This bug is HP SR number 8606223364.
26036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26037 printf %s "checking size of int... " >&6; }
26038 if test ${ac_cv_sizeof_int+y}
26039 then :
26040 printf %s "(cached) " >&6
26041 else case e in #(
26042 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
26043 then :
26044
26045 else case e in #(
26046 e) if test "$ac_cv_type_int" = yes; then
26047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26048 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26049 as_fn_error 77 "cannot compute sizeof (int)
26050 See 'config.log' for more details" "$LINENO" 5; }
26051 else
26052 ac_cv_sizeof_int=0
26053 fi ;;
26054 esac
26055 fi
26056 ;;
26057 esac
26058 fi
26059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26060 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
26061
26062
26063
26064 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
26065
26066
26067 # The cast to long int works around a bug in the HP C Compiler
26068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26069 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
26070 # This bug is HP SR number 8606223364.
26071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
26072 printf %s "checking size of long... " >&6; }
26073 if test ${ac_cv_sizeof_long+y}
26074 then :
26075 printf %s "(cached) " >&6
26076 else case e in #(
26077 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
26078 then :
26079
26080 else case e in #(
26081 e) if test "$ac_cv_type_long" = yes; then
26082 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26083 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26084 as_fn_error 77 "cannot compute sizeof (long)
26085 See 'config.log' for more details" "$LINENO" 5; }
26086 else
26087 ac_cv_sizeof_long=0
26088 fi ;;
26089 esac
26090 fi
26091 ;;
26092 esac
26093 fi
26094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
26095 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
26096
26097
26098
26099 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
26100
26101
26102 # The cast to long int works around a bug in the HP C Compiler
26103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26104 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
26105 # This bug is HP SR number 8606223364.
26106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
26107 printf %s "checking size of void*... " >&6; }
26108 if test ${ac_cv_sizeof_voidp+y}
26109 then :
26110 printf %s "(cached) " >&6
26111 else case e in #(
26112 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"
26113 then :
26114
26115 else case e in #(
26116 e) if test "$ac_cv_type_voidp" = yes; then
26117 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26118 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26119 as_fn_error 77 "cannot compute sizeof (void*)
26120 See 'config.log' for more details" "$LINENO" 5; }
26121 else
26122 ac_cv_sizeof_voidp=0
26123 fi ;;
26124 esac
26125 fi
26126 ;;
26127 esac
26128 fi
26129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
26130 printf "%s\n" "$ac_cv_sizeof_voidp" >&6; }
26131
26132
26133
26134 printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h
26135
26136
26137 ac_cv_char_data_model=""
26138 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
26139 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
26140 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
26141 ac_cv_long_data_model=""
26142 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
26143 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
26144 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
26145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking data model" >&5
26146 printf %s "checking data model... " >&6; }
26147 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
26148 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
26149 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
26150 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
26151 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
26152 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
26153 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
26154 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
26155 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
26156 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
26157 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
26158 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
26159 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
26160 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
26161 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
26162 222/*|333/*|444/*|666/*|888/*) :
26163 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
26164 *) ac_cv_data_model="none" ; n="very unusual model" ;;
26165 esac
26166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
26167 printf "%s\n" "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
26168
26169 fi
26170
26171 if test "_$ac_cv_header_stdint_x" != "_" ; then
26172 ac_cv_header_stdint="$ac_cv_header_stdint_x"
26173 elif test "_$ac_cv_header_stdint_o" != "_" ; then
26174 ac_cv_header_stdint="$ac_cv_header_stdint_o"
26175 elif test "_$ac_cv_header_stdint_u" != "_" ; then
26176 ac_cv_header_stdint="$ac_cv_header_stdint_u"
26177 else
26178 ac_cv_header_stdint="stddef.h"
26179 fi
26180
26181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
26182 printf %s "checking for extra inttypes in chosen header... " >&6; }
26183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
26184 printf "%s\n" "($ac_cv_header_stdint)" >&6; }
26185 unset ac_cv_type_int_least32_t
26186 unset ac_cv_type_int_fast32_t
26187 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
26188 "
26189 if test "x$ac_cv_type_int_least32_t" = xyes
26190 then :
26191
26192 fi
26193
26194 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
26195 "
26196 if test "x$ac_cv_type_int_fast32_t" = xyes
26197 then :
26198
26199 fi
26200
26201 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
26202 "
26203 if test "x$ac_cv_type_intmax_t" = xyes
26204 then :
26205
26206 fi
26207
26208
26209 fi # shortcircuit to system "stdint.h"
26210 # ------------------ PREPARE VARIABLES ------------------------------
26211 if test "$GCC" = "yes" ; then
26212 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
26213 else
26214 ac_cv_stdint_message="using $CC"
26215 fi
26216
26217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
26218 printf "%s\n" "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
26219
26220 # ----------------- DONE inttypes.h checks START header -------------
26221 ac_config_commands="$ac_config_commands $ac_stdint_h"
26222
26223
26224
26225
26226 # Check whether --with-int was given.
26227 if test ${with_int+y}
26228 then :
26229 withval=$with_int;
26230 else case e in #(
26231 e) with_int=gmp ;;
26232 esac
26233 fi
26234
26235 case "$with_int" in
26236 gmp|imath|imath-32)
26237 ;;
26238 *)
26239 as_fn_error $? "bad value ${withval} for --with-int (use gmp, imath or imath-32)" "$LINENO" 5
26240 esac
26241
26242
26243
26244
26245
26246 case "$with_int" in
26247 gmp)
26248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
26249 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
26250 if test ${ac_cv_c_undeclared_builtin_options+y}
26251 then :
26252 printf %s "(cached) " >&6
26253 else case e in #(
26254 e) ac_save_CFLAGS=$CFLAGS
26255 ac_cv_c_undeclared_builtin_options='cannot detect'
26256 for ac_arg in '' -fno-builtin; do
26257 CFLAGS="$ac_save_CFLAGS $ac_arg"
26258 # This test program should *not* compile successfully.
26259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26260 /* end confdefs.h. */
26261
26262 int
26263 main (void)
26264 {
26265 (void) strchr;
26266 ;
26267 return 0;
26268 }
26269 _ACEOF
26270 if ac_fn_c_try_compile "$LINENO"
26271 then :
26272
26273 else case e in #(
26274 e) # This test program should compile successfully.
26275 # No library function is consistently available on
26276 # freestanding implementations, so test against a dummy
26277 # declaration. Include always-available headers on the
26278 # off chance that they somehow elicit warnings.
26279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26280 /* end confdefs.h. */
26281 #include <float.h>
26282 #include <limits.h>
26283 #include <stdarg.h>
26284 #include <stddef.h>
26285 extern void ac_decl (int, char *);
26286
26287 int
26288 main (void)
26289 {
26290 (void) ac_decl (0, (char *) 0);
26291 (void) ac_decl;
26292
26293 ;
26294 return 0;
26295 }
26296 _ACEOF
26297 if ac_fn_c_try_compile "$LINENO"
26298 then :
26299 if test x"$ac_arg" = x
26300 then :
26301 ac_cv_c_undeclared_builtin_options='none needed'
26302 else case e in #(
26303 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
26304 esac
26305 fi
26306 break
26307 fi
26308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26309 esac
26310 fi
26311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26312 done
26313 CFLAGS=$ac_save_CFLAGS
26314 ;;
26315 esac
26316 fi
26317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
26318 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
26319 case $ac_cv_c_undeclared_builtin_options in #(
26320 'cannot detect') :
26321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26322 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26323 as_fn_error $? "cannot make $CC report undeclared builtins
26324 See 'config.log' for more details" "$LINENO" 5; } ;; #(
26325 'none needed') :
26326 ac_c_undeclared_builtin_options='' ;; #(
26327 *) :
26328 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
26329 esac
26330
26331
26332
26333 printf "%s\n" "#define USE_GMP_FOR_MP /**/" >>confdefs.h
26334
26335
26336
26337
26338 # Check whether --with-gmp was given.
26339 if test ${with_gmp+y}
26340 then :
26341 withval=$with_gmp;
26342 fi
26343
26344 case "system" in
26345 system|build)
26346
26347 # Check whether --with-gmp_prefix was given.
26348 if test ${with_gmp_prefix+y}
26349 then :
26350 withval=$with_gmp_prefix;
26351 fi
26352
26353
26354 # Check whether --with-gmp_exec_prefix was given.
26355 if test ${with_gmp_exec_prefix+y}
26356 then :
26357 withval=$with_gmp_exec_prefix;
26358 fi
26359
26360 esac
26361
26362 # Check whether --with-gmp_builddir was given.
26363 if test ${with_gmp_builddir+y}
26364 then :
26365 withval=$with_gmp_builddir;
26366 fi
26367
26368 if test "x$with_gmp_prefix" != "x" -a "x$with_gmp_exec_prefix" = "x"; then
26369 with_gmp_exec_prefix=$with_gmp_prefix
26370 fi
26371 if test "x$with_gmp_prefix" != "x" -o "x$with_gmp_exec_prefix" != "x"; then
26372 if test "x$with_gmp" != "x" -a "x$with_gmp" != "xyes" -a "x$with_gmp" != "xsystem"; then
26373 as_fn_error $? "Setting $with_gmp_prefix implies use of system gmp" "$LINENO" 5
26374 fi
26375 with_gmp="system"
26376 fi
26377 if test "x$with_gmp_builddir" != "x"; then
26378 if test "x$with_gmp" != "x" -a "x$with_gmp" != "xyes" -a "x$with_gmp" != "xbuild"; then
26379 as_fn_error $? "Setting $with_gmp_builddir implies use of build gmp" "$LINENO" 5
26380 fi
26381 with_gmp="build"
26382 gmp_srcdir=`echo @abs_srcdir@ | $with_gmp_builddir/config.status --file=-`
26383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: gmp sources in $gmp_srcdir" >&5
26384 printf "%s\n" "$as_me: gmp sources in $gmp_srcdir" >&6;}
26385 fi
26386 if test "x$with_gmp_exec_prefix" != "x"; then
26387 export PKG_CONFIG_PATH="$with_gmp_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}"
26388 fi
26389 case "$with_gmp" in
26390 system|build)
26391 ;;
26392 *)
26393 case "system" in
26394 bundled)
26395 if test -d $srcdir/.git -a \
26396 -d $srcdir/gmp -a \
26397 ! -d $srcdir/gmp/.git; then
26398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule gmp not initialized" >&5
26399 printf "%s\n" "$as_me: WARNING: git repo detected, but submodule gmp not initialized" >&2;}
26400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5
26401 printf "%s\n" "$as_me: WARNING: You may want to run" >&2;}
26402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5
26403 printf "%s\n" "$as_me: WARNING: git submodule init" >&2;}
26404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5
26405 printf "%s\n" "$as_me: WARNING: git submodule update" >&2;}
26406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5
26407 printf "%s\n" "$as_me: WARNING: sh autogen.sh" >&2;}
26408 fi
26409 if test -f $srcdir/gmp/configure; then
26410 with_gmp="bundled"
26411 else
26412 with_gmp="no"
26413 fi
26414 ;;
26415 *)
26416 with_gmp="system"
26417 ;;
26418 esac
26419 ;;
26420 esac
26421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which gmp to use" >&5
26422 printf %s "checking which gmp to use... " >&6; }
26423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_gmp" >&5
26424 printf "%s\n" "$with_gmp" >&6; }
26425
26426
26427 case "$with_gmp" in
26428 system)
26429 if test "x$with_gmp_prefix" != "x"; then
26430 MP_CPPFLAGS="-I$with_gmp_prefix/include"
26431 MP_LDFLAGS="-L$with_gmp_prefix/lib"
26432 fi
26433 MP_LIBS=-lgmp
26434 SAVE_CPPFLAGS="$CPPFLAGS"
26435 SAVE_LDFLAGS="$LDFLAGS"
26436 SAVE_LIBS="$LIBS"
26437 CPPFLAGS="$MP_CPPFLAGS $CPPFLAGS"
26438 LDFLAGS="$MP_LDFLAGS $LDFLAGS"
26439 LIBS="$MP_LIBS $LIBS"
26440 ac_fn_c_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
26441 if test "x$ac_cv_header_gmp_h" = xyes
26442 then :
26443
26444 else case e in #(
26445 e) as_fn_error $? "gmp.h header not found" "$LINENO" 5 ;;
26446 esac
26447 fi
26448
26449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5
26450 printf %s "checking for main in -lgmp... " >&6; }
26451 if test ${ac_cv_lib_gmp_main+y}
26452 then :
26453 printf %s "(cached) " >&6
26454 else case e in #(
26455 e) ac_check_lib_save_LIBS=$LIBS
26456 LIBS="-lgmp $LIBS"
26457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26458 /* end confdefs.h. */
26459
26460
26461 int
26462 main (void)
26463 {
26464 return main ();
26465 ;
26466 return 0;
26467 }
26468 _ACEOF
26469 if ac_fn_c_try_link "$LINENO"
26470 then :
26471 ac_cv_lib_gmp_main=yes
26472 else case e in #(
26473 e) ac_cv_lib_gmp_main=no ;;
26474 esac
26475 fi
26476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26477 conftest$ac_exeext conftest.$ac_ext
26478 LIBS=$ac_check_lib_save_LIBS ;;
26479 esac
26480 fi
26481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5
26482 printf "%s\n" "$ac_cv_lib_gmp_main" >&6; }
26483 if test "x$ac_cv_lib_gmp_main" = xyes
26484 then :
26485 printf "%s\n" "#define HAVE_LIBGMP 1" >>confdefs.h
26486
26487 LIBS="-lgmp $LIBS"
26488
26489 else case e in #(
26490 e) as_fn_error $? "gmp library not found" "$LINENO" 5 ;;
26491 esac
26492 fi
26493
26494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26495 /* end confdefs.h. */
26496 #include <gmp.h>
26497 int
26498 main (void)
26499 {
26500
26501 mpz_t n, d;
26502 if (mpz_divisible_p(n, d))
26503 mpz_divexact_ui(n, n, 4);
26504
26505 ;
26506 return 0;
26507 }
26508 _ACEOF
26509 if ac_fn_c_try_link "$LINENO"
26510 then :
26511
26512 else case e in #(
26513 e) as_fn_error $? "gmp library too old" "$LINENO" 5 ;;
26514 esac
26515 fi
26516 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26517 conftest$ac_exeext conftest.$ac_ext
26518 CPPFLAGS="$SAVE_CPPFLAGS"
26519 LDFLAGS="$SAVE_LDFLAGS"
26520 LIBS="$SAVE_LIBS"
26521 ;;
26522 build)
26523 MP_CPPFLAGS="-I$gmp_srcdir -I$with_gmp_builddir"
26524 MP_LIBS="$with_gmp_builddir/libgmp.la"
26525 ;;
26526 esac
26527 SAVE_CPPFLAGS="$CPPFLAGS"
26528 SAVE_LDFLAGS="$LDFLAGS"
26529 SAVE_LIBS="$LIBS"
26530 CPPFLAGS="$MP_CPPFLAGS $CPPFLAGS"
26531 LDFLAGS="$MP_LDFLAGS $LDFLAGS"
26532 LIBS="$MP_LIBS $LIBS"
26533 need_get_memory_functions=false
26534 ac_fn_check_decl "$LINENO" "mp_get_memory_functions" "ac_cv_have_decl_mp_get_memory_functions" "#include <gmp.h>
26535 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26536 if test "x$ac_cv_have_decl_mp_get_memory_functions" = xyes
26537 then :
26538 ac_have_decl=1
26539 else case e in #(
26540 e) ac_have_decl=0 ;;
26541 esac
26542 fi
26543 printf "%s\n" "#define HAVE_DECL_MP_GET_MEMORY_FUNCTIONS $ac_have_decl" >>confdefs.h
26544 if test $ac_have_decl = 1
26545 then :
26546
26547 else case e in #(
26548 e)
26549 need_get_memory_functions=true
26550 ;;
26551 esac
26552 fi
26553
26554 CPPFLAGS="$SAVE_CPPFLAGS"
26555 LDFLAGS="$SAVE_LDFLAGS"
26556 LIBS="$SAVE_LIBS"
26557 if test x$need_get_memory_functions = xtrue; then
26558 NEED_GET_MEMORY_FUNCTIONS_TRUE=
26559 NEED_GET_MEMORY_FUNCTIONS_FALSE='#'
26560 else
26561 NEED_GET_MEMORY_FUNCTIONS_TRUE='#'
26562 NEED_GET_MEMORY_FUNCTIONS_FALSE=
26563 fi
26564
26565
26566 ;;
26567 imath|imath-32)
26568
26569
26570 printf "%s\n" "#define USE_IMATH_FOR_MP /**/" >>confdefs.h
26571
26572
26573 MP_CPPFLAGS="-I$srcdir/imath_wrap"
26574 MP_LDFLAGS=""
26575 MP_LIBS=""
26576
26577 SAVE_CPPFLAGS="$CPPFLAGS"
26578 CPPFLAGS="$MP_CPPFLAGS $CPPFLAGS"
26579 ac_fn_c_check_header_compile "$LINENO" "imath.h" "ac_cv_header_imath_h" "$ac_includes_default"
26580 if test "x$ac_cv_header_imath_h" = xyes
26581 then :
26582
26583 else case e in #(
26584 e) as_fn_error $? "imath.h header not found" "$LINENO" 5 ;;
26585 esac
26586 fi
26587
26588 ac_fn_c_check_header_compile "$LINENO" "gmp_compat.h" "ac_cv_header_gmp_compat_h" "$ac_includes_default"
26589 if test "x$ac_cv_header_gmp_compat_h" = xyes
26590 then :
26591
26592 else case e in #(
26593 e) as_fn_error $? "gmp_compat.h header not found" "$LINENO" 5 ;;
26594 esac
26595 fi
26596
26597 CPPFLAGS="$SAVE_CPPFLAGS"
26598
26599 if test x = xfalse; then
26600 NEED_GET_MEMORY_FUNCTIONS_TRUE=
26601 NEED_GET_MEMORY_FUNCTIONS_FALSE='#'
26602 else
26603 NEED_GET_MEMORY_FUNCTIONS_TRUE='#'
26604 NEED_GET_MEMORY_FUNCTIONS_FALSE=
26605 fi
26606
26607
26608 ;;
26609 esac
26610 if test "x$with_int" = "ximath-32" -a "x$GCC" = "xyes"; then
26611 MP_CFLAGS="-std=gnu99 $MP_CFLAGS"
26612 fi
26613
26614 if test x$with_int = ximath -o x$with_int = ximath-32; then
26615 IMATH_FOR_MP_TRUE=
26616 IMATH_FOR_MP_FALSE='#'
26617 else
26618 IMATH_FOR_MP_TRUE='#'
26619 IMATH_FOR_MP_FALSE=
26620 fi
26621
26622 if test x$with_int = xgmp; then
26623 GMP_FOR_MP_TRUE=
26624 GMP_FOR_MP_FALSE='#'
26625 else
26626 GMP_FOR_MP_TRUE='#'
26627 GMP_FOR_MP_FALSE=
26628 fi
26629
26630
26631 if test "x$HAVE_CXX11" = "x1"; then
26632 HAVE_CXX11_TRUE=
26633 HAVE_CXX11_FALSE='#'
26634 else
26635 HAVE_CXX11_TRUE='#'
26636 HAVE_CXX11_FALSE=
26637 fi
26638
26639 if test "x$HAVE_CXX17" = "x1"; then
26640 HAVE_CXX17_TRUE=
26641 HAVE_CXX17_FALSE='#'
26642 else
26643 HAVE_CXX17_TRUE='#'
26644 HAVE_CXX17_FALSE=
26645 fi
26646
26647 if test "x$with_int" = "ximath-32"; then
26648 SMALL_INT_OPT_TRUE=
26649 SMALL_INT_OPT_FALSE='#'
26650 else
26651 SMALL_INT_OPT_TRUE='#'
26652 SMALL_INT_OPT_FALSE=
26653 fi
26654
26655 if test "x$with_int" = "ximath-32"
26656 then :
26657
26658
26659 printf "%s\n" "#define USE_SMALL_INT_OPT /**/" >>confdefs.h
26660
26661
26662 fi
26663
26664 ac_fn_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "#include <strings.h>
26665 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26666 if test "x$ac_cv_have_decl_ffs" = xyes
26667 then :
26668 ac_have_decl=1
26669 else case e in #(
26670 e) ac_have_decl=0 ;;
26671 esac
26672 fi
26673 printf "%s\n" "#define HAVE_DECL_FFS $ac_have_decl" >>confdefs.h
26674
26675 ac_fn_check_decl "$LINENO" "__builtin_ffs" "ac_cv_have_decl___builtin_ffs" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
26676 if test "x$ac_cv_have_decl___builtin_ffs" = xyes
26677 then :
26678 ac_have_decl=1
26679 else case e in #(
26680 e) ac_have_decl=0 ;;
26681 esac
26682 fi
26683 printf "%s\n" "#define HAVE_DECL___BUILTIN_FFS $ac_have_decl" >>confdefs.h
26684
26685 ac_fn_check_decl "$LINENO" "_BitScanForward" "ac_cv_have_decl__BitScanForward" "#include <intrin.h>
26686 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26687 if test "x$ac_cv_have_decl__BitScanForward" = xyes
26688 then :
26689 ac_have_decl=1
26690 else case e in #(
26691 e) ac_have_decl=0 ;;
26692 esac
26693 fi
26694 printf "%s\n" "#define HAVE_DECL__BITSCANFORWARD $ac_have_decl" >>confdefs.h
26695
26696 if test "x$ac_cv_have_decl_ffs" = xno -a \
26697 "x$ac_cv_have_decl___builtin_ffs" = xno -a \
26698 "x$ac_cv_have_decl__BitScanForward" = xno; then
26699 as_fn_error $? "No ffs implementation found" "$LINENO" 5
26700 fi
26701 ac_fn_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "#include <strings.h>
26702 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26703 if test "x$ac_cv_have_decl_strcasecmp" = xyes
26704 then :
26705 ac_have_decl=1
26706 else case e in #(
26707 e) ac_have_decl=0 ;;
26708 esac
26709 fi
26710 printf "%s\n" "#define HAVE_DECL_STRCASECMP $ac_have_decl" >>confdefs.h
26711 ac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "#include <strings.h>
26712 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26713 if test "x$ac_cv_have_decl_strncasecmp" = xyes
26714 then :
26715 ac_have_decl=1
26716 else case e in #(
26717 e) ac_have_decl=0 ;;
26718 esac
26719 fi
26720 printf "%s\n" "#define HAVE_DECL_STRNCASECMP $ac_have_decl" >>confdefs.h
26721
26722 ac_fn_check_decl "$LINENO" "_stricmp" "ac_cv_have_decl__stricmp" "#include <string.h>
26723 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26724 if test "x$ac_cv_have_decl__stricmp" = xyes
26725 then :
26726 ac_have_decl=1
26727 else case e in #(
26728 e) ac_have_decl=0 ;;
26729 esac
26730 fi
26731 printf "%s\n" "#define HAVE_DECL__STRICMP $ac_have_decl" >>confdefs.h
26732 ac_fn_check_decl "$LINENO" "_strnicmp" "ac_cv_have_decl__strnicmp" "#include <string.h>
26733 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26734 if test "x$ac_cv_have_decl__strnicmp" = xyes
26735 then :
26736 ac_have_decl=1
26737 else case e in #(
26738 e) ac_have_decl=0 ;;
26739 esac
26740 fi
26741 printf "%s\n" "#define HAVE_DECL__STRNICMP $ac_have_decl" >>confdefs.h
26742
26743 if test "x$ac_cv_have_decl_strcasecmp" = xno -a \
26744 "x$ac_cv_have_decl__stricmp" = xno; then
26745 as_fn_error $? "No strcasecmp implementation found" "$LINENO" 5
26746 fi
26747 if test "x$ac_cv_have_decl_strncasecmp" = xno -a \
26748 "x$ac_cv_have_decl__strnicmp" = xno; then
26749 as_fn_error $? "No strncasecmp implementation found" "$LINENO" 5
26750 fi
26751 ac_fn_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "#include <stdio.h>
26752 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26753 if test "x$ac_cv_have_decl_snprintf" = xyes
26754 then :
26755 ac_have_decl=1
26756 else case e in #(
26757 e) ac_have_decl=0 ;;
26758 esac
26759 fi
26760 printf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h
26761 ac_fn_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
26762 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26763 if test "x$ac_cv_have_decl__snprintf" = xyes
26764 then :
26765 ac_have_decl=1
26766 else case e in #(
26767 e) ac_have_decl=0 ;;
26768 esac
26769 fi
26770 printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h
26771
26772 if test "x$ac_cv_have_decl_snprintf" = xno -a \
26773 "x$ac_cv_have_decl__snprintf" = xno; then
26774 as_fn_error $? "No snprintf implementation found" "$LINENO" 5
26775 fi
26776
26777
26778
26779
26780 # Check whether --with-clang was given.
26781 if test ${with_clang+y}
26782 then :
26783 withval=$with_clang;
26784 fi
26785
26786 case "system" in
26787 system|no)
26788
26789 # Check whether --with-clang_prefix was given.
26790 if test ${with_clang_prefix+y}
26791 then :
26792 withval=$with_clang_prefix;
26793 fi
26794
26795
26796 # Check whether --with-clang_exec_prefix was given.
26797 if test ${with_clang_exec_prefix+y}
26798 then :
26799 withval=$with_clang_exec_prefix;
26800 fi
26801
26802 esac
26803
26804 if test "x$with_clang_prefix" != "x" -a "x$with_clang_exec_prefix" = "x"; then
26805 with_clang_exec_prefix=$with_clang_prefix
26806 fi
26807 if test "x$with_clang_prefix" != "x" -o "x$with_clang_exec_prefix" != "x"; then
26808 if test "x$with_clang" != "x" -a "x$with_clang" != "xyes" -a "x$with_clang" != "xsystem"; then
26809 as_fn_error $? "Setting $with_clang_prefix implies use of system clang" "$LINENO" 5
26810 fi
26811 with_clang="system"
26812 fi
26813 if test "x$with_clang_builddir" != "x"; then
26814 if test "x$with_clang" != "x" -a "x$with_clang" != "xyes" -a "x$with_clang" != "xbuild"; then
26815 as_fn_error $? "Setting $with_clang_builddir implies use of build clang" "$LINENO" 5
26816 fi
26817 with_clang="build"
26818 clang_srcdir=`echo @abs_srcdir@ | $with_clang_builddir/config.status --file=-`
26819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: clang sources in $clang_srcdir" >&5
26820 printf "%s\n" "$as_me: clang sources in $clang_srcdir" >&6;}
26821 fi
26822 if test "x$with_clang_exec_prefix" != "x"; then
26823 export PKG_CONFIG_PATH="$with_clang_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}"
26824 fi
26825 case "$with_clang" in
26826 system|no)
26827 ;;
26828 *)
26829 case "no" in
26830 bundled)
26831 if test -d $srcdir/.git -a \
26832 -d $srcdir/clang -a \
26833 ! -d $srcdir/clang/.git; then
26834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule clang not initialized" >&5
26835 printf "%s\n" "$as_me: WARNING: git repo detected, but submodule clang not initialized" >&2;}
26836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5
26837 printf "%s\n" "$as_me: WARNING: You may want to run" >&2;}
26838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5
26839 printf "%s\n" "$as_me: WARNING: git submodule init" >&2;}
26840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5
26841 printf "%s\n" "$as_me: WARNING: git submodule update" >&2;}
26842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5
26843 printf "%s\n" "$as_me: WARNING: sh autogen.sh" >&2;}
26844 fi
26845 if test -f $srcdir/clang/configure; then
26846 with_clang="bundled"
26847 else
26848 with_clang="no"
26849 fi
26850 ;;
26851 *)
26852 with_clang="no"
26853 ;;
26854 esac
26855 ;;
26856 esac
26857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which clang to use" >&5
26858 printf %s "checking which clang to use... " >&6; }
26859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_clang" >&5
26860 printf "%s\n" "$with_clang" >&6; }
26861
26862
26863 if test $with_clang = system; then
26864 HAVE_CLANG_TRUE=
26865 HAVE_CLANG_FALSE='#'
26866 else
26867 HAVE_CLANG_TRUE='#'
26868 HAVE_CLANG_FALSE=
26869 fi
26870
26871
26872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
26873 printf %s "checking for C compiler vendor... " >&6; }
26874 if test ${ax_cv_c_compiler_vendor+y}
26875 then :
26876 printf %s "(cached) " >&6
26877 else case e in #(
26878 e)
26879 vendors="
26880 intel: __ICC,__ECC,__INTEL_COMPILER
26881 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__
26882 pathscale: __PATHCC__,__PATHSCALE__
26883 clang: __clang__
26884 cray: _CRAYC
26885 fujitsu: __FUJITSU
26886 sdcc: SDCC,__SDCC
26887 sx: _SX
26888 nvhpc: __NVCOMPILER
26889 portland: __PGI
26890 pcc: __PCC__
26891 gnu: __GNUC__
26892 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
26893 hp: __HP_cc,__HP_aCC
26894 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
26895 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
26896 comeau: __COMO__
26897 kai: __KCC
26898 lcc: __LCC__
26899 sgi: __sgi,sgi
26900 microsoft: _MSC_VER
26901 metrowerks: __MWERKS__
26902 watcom: __WATCOMC__
26903 tcc: __TINYC__
26904 unknown: UNKNOWN
26905 "
26906 for ventest in $vendors; do
26907 case $ventest in
26908 *:)
26909 vendor=$ventest
26910 continue
26911 ;;
26912 *)
26913 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
26914 ;;
26915 esac
26916
26917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26918 /* end confdefs.h. */
26919
26920 int
26921 main (void)
26922 {
26923
26924 #if !($vencpp)
26925 thisisanerror;
26926 #endif
26927
26928 ;
26929 return 0;
26930 }
26931 _ACEOF
26932 if ac_fn_c_try_compile "$LINENO"
26933 then :
26934 break
26935 fi
26936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26937 done
26938
26939 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
26940 ;;
26941 esac
26942 fi
26943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
26944 printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; }
26945
26946
26947 WARNING_FLAGS=""
26948
26949 if test "${ax_cv_c_compiler_vendor}" = "clang"; then
26950 WARNING_FLAGS="-Wall"
26951 fi
26952
26953
26954
26955
26956 PACKAGE_CFLAGS="$MP_CPPFLAGS"
26957 PACKAGE_LDFLAGS="$MP_LDFLAGS"
26958 PACKAGE_LIBS="-lisl $MP_LIBS"
26959
26960 # we need the expanded forms...
26961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26963
26964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
26965 printf %s "checking our pkgconfig libname... " >&6; }
26966 test ".$ax_create_pkgconfig_libname" != "." || \
26967 ax_create_pkgconfig_libname="${PACKAGE_NAME}"
26968 test ".$ax_create_pkgconfig_libname" != "." || \
26969 ax_create_pkgconfig_libname="$PACKAGE"
26970 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
26971 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
26972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
26973 printf "%s\n" "$ax_create_pkgconfig_libname" >&6; }
26974
26975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
26976 printf %s "checking our pkgconfig version... " >&6; }
26977 test ".$ax_create_pkgconfig_version" != "." || \
26978 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
26979 test ".$ax_create_pkgconfig_version" != "." || \
26980 ax_create_pkgconfig_version="$VERSION"
26981 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
26982 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
26983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
26984 printf "%s\n" "$ax_create_pkgconfig_version" >&6; }
26985
26986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
26987 printf %s "checking our pkgconfig_libdir... " >&6; }
26988 test ".$pkgconfig_libdir" = "." && \
26989 pkgconfig_libdir='${libdir}/pkgconfig'
26990 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
26991 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
26992 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
26993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
26994 printf "%s\n" "$pkgconfig_libdir" >&6; }
26995 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
26996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
26997 printf "%s\n" "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
26998
26999
27000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
27001 printf %s "checking our pkgconfig_libfile... " >&6; }
27002 test ".$pkgconfig_libfile" != "." || \
27003 pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
27004 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
27005 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
27006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
27007 printf "%s\n" "$pkgconfig_libfile" >&6; }
27008 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
27009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
27010 printf "%s\n" "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
27011
27012
27013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
27014 printf %s "checking our package / suffix... " >&6; }
27015 ax_create_pkgconfig_suffix="$program_suffix"
27016 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
27017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
27018 printf "%s\n" "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
27019
27020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
27021 printf %s "checking our pkgconfig description... " >&6; }
27022 ax_create_pkgconfig_description="$PACKAGE_SUMMARY"
27023 test ".$ax_create_pkgconfig_description" != "." || \
27024 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
27025 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
27026 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
27027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
27028 printf "%s\n" "$ax_create_pkgconfig_description" >&6; }
27029
27030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
27031 printf %s "checking our pkgconfig requires... " >&6; }
27032 ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
27033 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
27034 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
27035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
27036 printf "%s\n" "$ax_create_pkgconfig_requires" >&6; }
27037
27038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
27039 printf %s "checking our pkgconfig ext libs... " >&6; }
27040 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
27041 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
27042 ax_create_pkgconfig_libs="$ax_create_pkgconfig_pkglibs $LIBS"
27043 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
27044 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
27045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
27046 printf "%s\n" "$ax_create_pkgconfig_libs" >&6; }
27047
27048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
27049 printf %s "checking our pkgconfig cppflags... " >&6; }
27050 ax_create_pkgconfig_cppflags="$PACKAGE_CFLAGS"
27051 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
27052 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
27053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
27054 printf "%s\n" "$ax_create_pkgconfig_cppflags" >&6; }
27055
27056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
27057 printf %s "checking our pkgconfig ldflags... " >&6; }
27058 ax_create_pkgconfig_ldflags="$PACKAGE_LDFLAGS"
27059 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
27060 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
27061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
27062 printf "%s\n" "$ax_create_pkgconfig_ldflags" >&6; }
27063
27064 test ".$ax_create_pkgconfig_generate" != "." || \
27065 ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
27066 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
27067 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
27068 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
27069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
27070 printf "%s\n" "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
27071
27072 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
27073 ax_create_pkgconfig_src_libdir=`pwd`
27074 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
27075 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27076 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
27077 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
27078 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
27079 printf "%s\n" X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
27080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27081 s//\1/
27082 q
27083 }
27084 /^X\(\/\/\)[^/].*/{
27085 s//\1/
27086 q
27087 }
27088 /^X\(\/\/\)$/{
27089 s//\1/
27090 q
27091 }
27092 /^X\(\/\).*/{
27093 s//\1/
27094 q
27095 }
27096 s/.*/./; q'`
27097 test ! -d $ax_create_pkgconfig_src_libdir/src || \
27098 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
27099 case ".$objdir" in
27100 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
27101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
27102 printf "%s\n" "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
27103 fi
27104
27105 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
27106 ax_create_pkgconfig_src_headers=`pwd`
27107 v="$ac_top_srcdir" ;
27108 test ".$v" != "." || v="$ax_spec_dir"
27109 test ".$v" != "." || v="$srcdir"
27110 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
27111 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
27112 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27113 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
27114 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
27115 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
27116 printf "%s\n" X"$ax_create_pkgconfig_src_headers/$v/x" |
27117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27118 s//\1/
27119 q
27120 }
27121 /^X\(\/\/\)[^/].*/{
27122 s//\1/
27123 q
27124 }
27125 /^X\(\/\/\)$/{
27126 s//\1/
27127 q
27128 }
27129 /^X\(\/\).*/{
27130 s//\1/
27131 q
27132 }
27133 s/.*/./; q'`
27134 test ! -d $ax_create_pkgconfig_src_headers/include || \
27135 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
27136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
27137 printf "%s\n" "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
27138 fi
27139
27140
27141 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
27142
27143
27144
27145
27146
27147
27148 if test -f $srcdir/.git; then
27149 gitdir=`GIT_DIR=$srcdir/.git git rev-parse --git-dir`
27150 abs_gitdir=`(cd "$gitdir"; pwd)`
27151 GIT_HEAD="$abs_gitdir/index"
27152 GIT_REPO="$abs_gitdir"
27153 GIT_HEAD_ID=`GIT_DIR=$GIT_REPO git describe --always`
27154 elif test -f $srcdir/.git/HEAD; then
27155 abs_srcdir=`(cd "$srcdir"; pwd)`
27156 GIT_HEAD="$abs_srcdir/.git/index"
27157 GIT_REPO="$abs_srcdir/.git"
27158 GIT_HEAD_ID=`GIT_DIR=$GIT_REPO git describe --always`
27159 elif test -f $srcdir/GIT_HEAD_ID; then
27160 GIT_HEAD_ID=`cat $srcdir/GIT_HEAD_ID`
27161 else
27162 mysrcdir=`(cd $srcdir; pwd)`
27163 head=`basename $mysrcdir | sed -e 's/.*-//'`
27164 head2=`echo $head | sed -e 's/^0-9a-f//'`
27165 head3=`echo $head2 | sed -e 's/........................................//'`
27166 if test "x$head3" = "x" -a "x$head" = "x$head2"; then
27167 GIT_HEAD_ID="$head"
27168 else
27169 GIT_HEAD_ID="UNKNOWN"
27170 fi
27171 fi
27172 if test -z "$GIT_REPO" ; then
27173 GIT_HEAD_VERSION="$GIT_HEAD_ID"
27174 else
27175 GIT_HEAD_VERSION="\`GIT_DIR=$GIT_REPO git describe --always\`"
27176 fi
27177
27178
27179
27180 ac_config_headers="$ac_config_headers isl_config.h"
27181
27182 ac_config_files="$ac_config_files isl_srcdir.c"
27183
27184 ac_config_files="$ac_config_files Makefile"
27185
27186 ac_config_files="$ac_config_files doc/Makefile"
27187
27188 if test $with_clang = system; then
27189
27190
27191 subdirs="$subdirs interface"
27192
27193 fi
27194 ac_config_files="$ac_config_files bound_test.sh"
27195
27196 ac_config_files="$ac_config_files codegen_test.sh"
27197
27198 ac_config_files="$ac_config_files pip_test.sh"
27199
27200 ac_config_files="$ac_config_files flow_test.sh"
27201
27202 ac_config_files="$ac_config_files schedule_test.sh"
27203
27204 cat >confcache <<\_ACEOF
27205 # This file is a shell script that caches the results of configure
27206 # tests run on this system so they can be shared between configure
27207 # scripts and configure runs, see configure's option --config-cache.
27208 # It is not useful on other systems. If it contains results you don't
27209 # want to keep, you may remove or edit it.
27210 #
27211 # config.status only pays attention to the cache file if you give it
27212 # the --recheck option to rerun configure.
27213 #
27214 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
27215 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
27216 # following values.
27217
27218 _ACEOF
27219
27220 # The following way of writing the cache mishandles newlines in values,
27221 # but we know of no workaround that is simple, portable, and efficient.
27222 # So, we kill variables containing newlines.
27223 # Ultrix sh set writes to stderr and can't be redirected directly,
27224 # and sets the high bit in the cache file unless we assign to the vars.
27225 (
27226 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27227 eval ac_val=\$$ac_var
27228 case $ac_val in #(
27229 *${as_nl}*)
27230 case $ac_var in #(
27231 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27232 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27233 esac
27234 case $ac_var in #(
27235 _ | IFS | as_nl) ;; #(
27236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27237 *) { eval $ac_var=; unset $ac_var;} ;;
27238 esac ;;
27239 esac
27240 done
27241
27242 (set) 2>&1 |
27243 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27244 *${as_nl}ac_space=\ *)
27245 # 'set' does not quote correctly, so add quotes: double-quote
27246 # substitution turns \\\\ into \\, and sed turns \\ into \.
27247 sed -n \
27248 "s/'/'\\\\''/g;
27249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27250 ;; #(
27251 *)
27252 # 'set' quotes correctly as required by POSIX, so do not add quotes.
27253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27254 ;;
27255 esac |
27256 sort
27257 ) |
27258 sed '
27259 /^ac_cv_env_/b end
27260 t clear
27261 :clear
27262 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
27263 t end
27264 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27265 :end' >>confcache
27266 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27267 if test -w "$cache_file"; then
27268 if test "x$cache_file" != "x/dev/null"; then
27269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27270 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
27271 if test ! -f "$cache_file" || test -h "$cache_file"; then
27272 cat confcache >"$cache_file"
27273 else
27274 case $cache_file in #(
27275 */* | ?:*)
27276 mv -f confcache "$cache_file"$$ &&
27277 mv -f "$cache_file"$$ "$cache_file" ;; #(
27278 *)
27279 mv -f confcache "$cache_file" ;;
27280 esac
27281 fi
27282 fi
27283 else
27284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27285 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
27286 fi
27287 fi
27288 rm -f confcache
27289
27290 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27291 # Let make expand exec_prefix.
27292 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27293
27294 DEFS=-DHAVE_CONFIG_H
27295
27296 ac_libobjs=
27297 ac_ltlibobjs=
27298 U=
27299 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27300 # 1. Remove the extension, and $U if already installed.
27301 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27302 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
27303 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27304 # will be set to the directory where LIBOBJS objects are built.
27305 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27306 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27307 done
27308 LIBOBJS=$ac_libobjs
27309
27310 LTLIBOBJS=$ac_ltlibobjs
27311
27312
27313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27314 printf %s "checking that generated files are newer than configure... " >&6; }
27315 if test -n "$am_sleep_pid"; then
27316 # Hide warnings about reused PIDs.
27317 wait $am_sleep_pid 2>/dev/null
27318 fi
27319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
27320 printf "%s\n" "done" >&6; }
27321 case $enable_silent_rules in # (((
27322 yes) AM_DEFAULT_VERBOSITY=0;;
27323 no) AM_DEFAULT_VERBOSITY=1;;
27324 esac
27325 if test $am_cv_make_support_nested_variables = yes; then
27326 AM_V='$(V)'
27327 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
27328 else
27329 AM_V=$AM_DEFAULT_VERBOSITY
27330 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
27331 fi
27332
27333 if test -n "$EXEEXT"; then
27334 am__EXEEXT_TRUE=
27335 am__EXEEXT_FALSE='#'
27336 else
27337 am__EXEEXT_TRUE='#'
27338 am__EXEEXT_FALSE=
27339 fi
27340
27341 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27342 as_fn_error $? "conditional \"AMDEP\" was never defined.
27343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27344 fi
27345 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27346 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27348 fi
27349 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27350 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
27351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27352 fi
27353 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27354 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27356 fi
27357 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
27358 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
27359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27360 fi
27361 if test -z "${GENERATE_DOC_TRUE}" && test -z "${GENERATE_DOC_FALSE}"; then
27362 as_fn_error $? "conditional \"GENERATE_DOC\" was never defined.
27363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27364 fi
27365 if test -z "${NEED_GET_MEMORY_FUNCTIONS_TRUE}" && test -z "${NEED_GET_MEMORY_FUNCTIONS_FALSE}"; then
27366 as_fn_error $? "conditional \"NEED_GET_MEMORY_FUNCTIONS\" was never defined.
27367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27368 fi
27369 if test -z "${NEED_GET_MEMORY_FUNCTIONS_TRUE}" && test -z "${NEED_GET_MEMORY_FUNCTIONS_FALSE}"; then
27370 as_fn_error $? "conditional \"NEED_GET_MEMORY_FUNCTIONS\" was never defined.
27371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27372 fi
27373 if test -z "${IMATH_FOR_MP_TRUE}" && test -z "${IMATH_FOR_MP_FALSE}"; then
27374 as_fn_error $? "conditional \"IMATH_FOR_MP\" was never defined.
27375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27376 fi
27377 if test -z "${GMP_FOR_MP_TRUE}" && test -z "${GMP_FOR_MP_FALSE}"; then
27378 as_fn_error $? "conditional \"GMP_FOR_MP\" was never defined.
27379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27380 fi
27381 if test -z "${HAVE_CXX11_TRUE}" && test -z "${HAVE_CXX11_FALSE}"; then
27382 as_fn_error $? "conditional \"HAVE_CXX11\" was never defined.
27383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27384 fi
27385 if test -z "${HAVE_CXX17_TRUE}" && test -z "${HAVE_CXX17_FALSE}"; then
27386 as_fn_error $? "conditional \"HAVE_CXX17\" was never defined.
27387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27388 fi
27389 if test -z "${SMALL_INT_OPT_TRUE}" && test -z "${SMALL_INT_OPT_FALSE}"; then
27390 as_fn_error $? "conditional \"SMALL_INT_OPT\" was never defined.
27391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27392 fi
27393 if test -z "${HAVE_CLANG_TRUE}" && test -z "${HAVE_CLANG_FALSE}"; then
27394 as_fn_error $? "conditional \"HAVE_CLANG\" was never defined.
27395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27396 fi
27397
27398 : "${CONFIG_STATUS=./config.status}"
27399 ac_write_fail=0
27400 ac_clean_files_save=$ac_clean_files
27401 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27403 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
27404 as_write_fail=0
27405 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27406 #! $SHELL
27407 # Generated by $as_me.
27408 # Run this file to recreate the current configuration.
27409 # Compiler output produced by configure, useful for debugging
27410 # configure, is in config.log if it exists.
27411
27412 debug=false
27413 ac_cs_recheck=false
27414 ac_cs_silent=false
27415
27416 SHELL=\${CONFIG_SHELL-$SHELL}
27417 export SHELL
27418 _ASEOF
27419 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27420 ## -------------------- ##
27421 ## M4sh Initialization. ##
27422 ## -------------------- ##
27423
27424 # Be more Bourne compatible
27425 DUALCASE=1; export DUALCASE # for MKS sh
27426 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
27427 then :
27428 emulate sh
27429 NULLCMD=:
27430 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27431 # is contrary to our usage. Disable this feature.
27432 alias -g '${1+"$@"}'='"$@"'
27433 setopt NO_GLOB_SUBST
27434 else case e in #(
27435 e) case `(set -o) 2>/dev/null` in #(
27436 *posix*) :
27437 set -o posix ;; #(
27438 *) :
27439 ;;
27440 esac ;;
27441 esac
27442 fi
27443
27444
27445
27446 # Reset variables that may have inherited troublesome values from
27447 # the environment.
27448
27449 # IFS needs to be set, to space, tab, and newline, in precisely that order.
27450 # (If _AS_PATH_WALK were called with IFS unset, it would have the
27451 # side effect of setting IFS to empty, thus disabling word splitting.)
27452 # Quoting is to prevent editors from complaining about space-tab.
27453 as_nl='
27454 '
27455 export as_nl
27456 IFS=" "" $as_nl"
27457
27458 PS1='$ '
27459 PS2='> '
27460 PS4='+ '
27461
27462 # Ensure predictable behavior from utilities with locale-dependent output.
27463 LC_ALL=C
27464 export LC_ALL
27465 LANGUAGE=C
27466 export LANGUAGE
27467
27468 # We cannot yet rely on "unset" to work, but we need these variables
27469 # to be unset--not just set to an empty or harmless value--now, to
27470 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
27471 # also avoids known problems related to "unset" and subshell syntax
27472 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
27473 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
27474 do eval test \${$as_var+y} \
27475 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27476 done
27477
27478 # Ensure that fds 0, 1, and 2 are open.
27479 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
27480 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
27481 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
27482
27483 # The user is always right.
27484 if ${PATH_SEPARATOR+false} :; then
27485 PATH_SEPARATOR=:
27486 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27487 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27488 PATH_SEPARATOR=';'
27489 }
27490 fi
27491
27492
27493 # Find who we are. Look in the path if we contain no directory separator.
27494 as_myself=
27495 case $0 in #((
27496 *[\\/]* ) as_myself=$0 ;;
27497 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27498 for as_dir in $PATH
27499 do
27500 IFS=$as_save_IFS
27501 case $as_dir in #(((
27502 '') as_dir=./ ;;
27503 */) ;;
27504 *) as_dir=$as_dir/ ;;
27505 esac
27506 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
27507 done
27508 IFS=$as_save_IFS
27509
27510 ;;
27511 esac
27512 # We did not find ourselves, most probably we were run as 'sh COMMAND'
27513 # in which case we are not to be found in the path.
27514 if test "x$as_myself" = x; then
27515 as_myself=$0
27516 fi
27517 if test ! -f "$as_myself"; then
27518 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27519 exit 1
27520 fi
27521
27522
27523
27524 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27525 # ----------------------------------------
27526 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27527 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27528 # script with STATUS, using 1 if that was 0.
27529 as_fn_error ()
27530 {
27531 as_status=$1; test $as_status -eq 0 && as_status=1
27532 if test "$4"; then
27533 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27535 fi
27536 printf "%s\n" "$as_me: error: $2" >&2
27537 as_fn_exit $as_status
27538 } # as_fn_error
27539
27540
27541 # as_fn_set_status STATUS
27542 # -----------------------
27543 # Set $? to STATUS, without forking.
27544 as_fn_set_status ()
27545 {
27546 return $1
27547 } # as_fn_set_status
27548
27549 # as_fn_exit STATUS
27550 # -----------------
27551 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27552 as_fn_exit ()
27553 {
27554 set +e
27555 as_fn_set_status $1
27556 exit $1
27557 } # as_fn_exit
27558
27559 # as_fn_unset VAR
27560 # ---------------
27561 # Portably unset VAR.
27562 as_fn_unset ()
27563 {
27564 { eval $1=; unset $1;}
27565 }
27566 as_unset=as_fn_unset
27567
27568 # as_fn_append VAR VALUE
27569 # ----------------------
27570 # Append the text in VALUE to the end of the definition contained in VAR. Take
27571 # advantage of any shell optimizations that allow amortized linear growth over
27572 # repeated appends, instead of the typical quadratic growth present in naive
27573 # implementations.
27574 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
27575 then :
27576 eval 'as_fn_append ()
27577 {
27578 eval $1+=\$2
27579 }'
27580 else case e in #(
27581 e) as_fn_append ()
27582 {
27583 eval $1=\$$1\$2
27584 } ;;
27585 esac
27586 fi # as_fn_append
27587
27588 # as_fn_arith ARG...
27589 # ------------------
27590 # Perform arithmetic evaluation on the ARGs, and store the result in the
27591 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27592 # must be portable across $(()) and expr.
27593 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
27594 then :
27595 eval 'as_fn_arith ()
27596 {
27597 as_val=$(( $* ))
27598 }'
27599 else case e in #(
27600 e) as_fn_arith ()
27601 {
27602 as_val=`expr "$@" || test $? -eq 1`
27603 } ;;
27604 esac
27605 fi # as_fn_arith
27606
27607
27608 if expr a : '\(a\)' >/dev/null 2>&1 &&
27609 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27610 as_expr=expr
27611 else
27612 as_expr=false
27613 fi
27614
27615 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27616 as_basename=basename
27617 else
27618 as_basename=false
27619 fi
27620
27621 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27622 as_dirname=dirname
27623 else
27624 as_dirname=false
27625 fi
27626
27627 as_me=`$as_basename -- "$0" ||
27628 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27629 X"$0" : 'X\(//\)$' \| \
27630 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27631 printf "%s\n" X/"$0" |
27632 sed '/^.*\/\([^/][^/]*\)\/*$/{
27633 s//\1/
27634 q
27635 }
27636 /^X\/\(\/\/\)$/{
27637 s//\1/
27638 q
27639 }
27640 /^X\/\(\/\).*/{
27641 s//\1/
27642 q
27643 }
27644 s/.*/./; q'`
27645
27646 # Avoid depending upon Character Ranges.
27647 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27648 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27649 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27650 as_cr_digits='0123456789'
27651 as_cr_alnum=$as_cr_Letters$as_cr_digits
27652
27653
27654 # Determine whether it's possible to make 'echo' print without a newline.
27655 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
27656 # for compatibility with existing Makefiles.
27657 ECHO_C= ECHO_N= ECHO_T=
27658 case `echo -n x` in #(((((
27659 -n*)
27660 case `echo 'xy\c'` in
27661 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27662 xy) ECHO_C='\c';;
27663 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27664 ECHO_T=' ';;
27665 esac;;
27666 *)
27667 ECHO_N='-n';;
27668 esac
27669
27670 # For backward compatibility with old third-party macros, we provide
27671 # the shell variables $as_echo and $as_echo_n. New code should use
27672 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
27673 as_echo='printf %s\n'
27674 as_echo_n='printf %s'
27675
27676 rm -f conf$$ conf$$.exe conf$$.file
27677 if test -d conf$$.dir; then
27678 rm -f conf$$.dir/conf$$.file
27679 else
27680 rm -f conf$$.dir
27681 mkdir conf$$.dir 2>/dev/null
27682 fi
27683 if (echo >conf$$.file) 2>/dev/null; then
27684 if ln -s conf$$.file conf$$ 2>/dev/null; then
27685 as_ln_s='ln -s'
27686 # ... but there are two gotchas:
27687 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
27688 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
27689 # In both cases, we have to default to 'cp -pR'.
27690 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27691 as_ln_s='cp -pR'
27692 elif ln conf$$.file conf$$ 2>/dev/null; then
27693 as_ln_s=ln
27694 else
27695 as_ln_s='cp -pR'
27696 fi
27697 else
27698 as_ln_s='cp -pR'
27699 fi
27700 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27701 rmdir conf$$.dir 2>/dev/null
27702
27703
27704 # as_fn_mkdir_p
27705 # -------------
27706 # Create "$as_dir" as a directory, including parents if necessary.
27707 as_fn_mkdir_p ()
27708 {
27709
27710 case $as_dir in #(
27711 -*) as_dir=./$as_dir;;
27712 esac
27713 test -d "$as_dir" || eval $as_mkdir_p || {
27714 as_dirs=
27715 while :; do
27716 case $as_dir in #(
27717 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27718 *) as_qdir=$as_dir;;
27719 esac
27720 as_dirs="'$as_qdir' $as_dirs"
27721 as_dir=`$as_dirname -- "$as_dir" ||
27722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27723 X"$as_dir" : 'X\(//\)[^/]' \| \
27724 X"$as_dir" : 'X\(//\)$' \| \
27725 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27726 printf "%s\n" X"$as_dir" |
27727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27728 s//\1/
27729 q
27730 }
27731 /^X\(\/\/\)[^/].*/{
27732 s//\1/
27733 q
27734 }
27735 /^X\(\/\/\)$/{
27736 s//\1/
27737 q
27738 }
27739 /^X\(\/\).*/{
27740 s//\1/
27741 q
27742 }
27743 s/.*/./; q'`
27744 test -d "$as_dir" && break
27745 done
27746 test -z "$as_dirs" || eval "mkdir $as_dirs"
27747 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27748
27749
27750 } # as_fn_mkdir_p
27751 if mkdir -p . 2>/dev/null; then
27752 as_mkdir_p='mkdir -p "$as_dir"'
27753 else
27754 test -d ./-p && rmdir ./-p
27755 as_mkdir_p=false
27756 fi
27757
27758
27759 # as_fn_executable_p FILE
27760 # -----------------------
27761 # Test if FILE is an executable regular file.
27762 as_fn_executable_p ()
27763 {
27764 test -f "$1" && test -x "$1"
27765 } # as_fn_executable_p
27766 as_test_x='test -x'
27767 as_executable_p=as_fn_executable_p
27768
27769 # Sed expression to map a string onto a valid CPP name.
27770 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
27771 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
27772
27773 # Sed expression to map a string onto a valid variable name.
27774 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
27775 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
27776
27777
27778 exec 6>&1
27779 ## ----------------------------------- ##
27780 ## Main body of $CONFIG_STATUS script. ##
27781 ## ----------------------------------- ##
27782 _ASEOF
27783 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27784
27785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27786 # Save the log message, to keep $0 and so on meaningful, and to
27787 # report actual input values of CONFIG_FILES etc. instead of their
27788 # values after options handling.
27789 ac_log="
27790 This file was extended by isl $as_me 0.28, which was
27791 generated by GNU Autoconf 2.72. Invocation command line was
27792
27793 CONFIG_FILES = $CONFIG_FILES
27794 CONFIG_HEADERS = $CONFIG_HEADERS
27795 CONFIG_LINKS = $CONFIG_LINKS
27796 CONFIG_COMMANDS = $CONFIG_COMMANDS
27797 $ $0 $@
27798
27799 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27800 "
27801
27802 _ACEOF
27803
27804 case $ac_config_files in *"
27805 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27806 esac
27807
27808 case $ac_config_headers in *"
27809 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27810 esac
27811
27812
27813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27814 # Files that config.status was made for.
27815 config_files="$ac_config_files"
27816 config_headers="$ac_config_headers"
27817 config_commands="$ac_config_commands"
27818
27819 _ACEOF
27820
27821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27822 ac_cs_usage="\
27823 '$as_me' instantiates files and other configuration actions
27824 from templates according to the current configuration. Unless the files
27825 and actions are specified as TAGs, all are instantiated by default.
27826
27827 Usage: $0 [OPTION]... [TAG]...
27828
27829 -h, --help print this help, then exit
27830 -V, --version print version number and configuration settings, then exit
27831 --config print configuration, then exit
27832 -q, --quiet, --silent
27833 do not print progress messages
27834 -d, --debug don't remove temporary files
27835 --recheck update $as_me by reconfiguring in the same conditions
27836 --file=FILE[:TEMPLATE]
27837 instantiate the configuration file FILE
27838 --header=FILE[:TEMPLATE]
27839 instantiate the configuration header FILE
27840
27841 Configuration files:
27842 $config_files
27843
27844 Configuration headers:
27845 $config_headers
27846
27847 Configuration commands:
27848 $config_commands
27849
27850 Report bugs to <[email protected]>."
27851
27852 _ACEOF
27853 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
27854 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
27855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27856 ac_cs_config='$ac_cs_config_escaped'
27857 ac_cs_version="\\
27858 isl config.status 0.28
27859 configured by $0, generated by GNU Autoconf 2.72,
27860 with options \\"\$ac_cs_config\\"
27861
27862 Copyright (C) 2023 Free Software Foundation, Inc.
27863 This config.status script is free software; the Free Software Foundation
27864 gives unlimited permission to copy, distribute and modify it."
27865
27866 ac_pwd='$ac_pwd'
27867 srcdir='$srcdir'
27868 INSTALL='$INSTALL'
27869 MKDIR_P='$MKDIR_P'
27870 AWK='$AWK'
27871 test -n "\$AWK" || AWK=awk
27872 _ACEOF
27873
27874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27875 # The default lists apply if the user does not specify any file.
27876 ac_need_defaults=:
27877 while test $# != 0
27878 do
27879 case $1 in
27880 --*=?*)
27881 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27882 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27883 ac_shift=:
27884 ;;
27885 --*=)
27886 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27887 ac_optarg=
27888 ac_shift=:
27889 ;;
27890 *)
27891 ac_option=$1
27892 ac_optarg=$2
27893 ac_shift=shift
27894 ;;
27895 esac
27896
27897 case $ac_option in
27898 # Handling of the options.
27899 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27900 ac_cs_recheck=: ;;
27901 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27902 printf "%s\n" "$ac_cs_version"; exit ;;
27903 --config | --confi | --conf | --con | --co | --c )
27904 printf "%s\n" "$ac_cs_config"; exit ;;
27905 --debug | --debu | --deb | --de | --d | -d )
27906 debug=: ;;
27907 --file | --fil | --fi | --f )
27908 $ac_shift
27909 case $ac_optarg in
27910 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27911 '') as_fn_error $? "missing file argument" ;;
27912 esac
27913 as_fn_append CONFIG_FILES " '$ac_optarg'"
27914 ac_need_defaults=false;;
27915 --header | --heade | --head | --hea )
27916 $ac_shift
27917 case $ac_optarg in
27918 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27919 esac
27920 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27921 ac_need_defaults=false;;
27922 --he | --h)
27923 # Conflict between --help and --header
27924 as_fn_error $? "ambiguous option: '$1'
27925 Try '$0 --help' for more information.";;
27926 --help | --hel | -h )
27927 printf "%s\n" "$ac_cs_usage"; exit ;;
27928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27929 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27930 ac_cs_silent=: ;;
27931
27932 # This is an error.
27933 -*) as_fn_error $? "unrecognized option: '$1'
27934 Try '$0 --help' for more information." ;;
27935
27936 *) as_fn_append ac_config_targets " $1"
27937 ac_need_defaults=false ;;
27938
27939 esac
27940 shift
27941 done
27942
27943 ac_configure_extra_args=
27944
27945 if $ac_cs_silent; then
27946 exec 6>/dev/null
27947 ac_configure_extra_args="$ac_configure_extra_args --silent"
27948 fi
27949
27950 _ACEOF
27951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27952 if \$ac_cs_recheck; then
27953 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27954 shift
27955 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
27956 CONFIG_SHELL='$SHELL'
27957 export CONFIG_SHELL
27958 exec "\$@"
27959 fi
27960
27961 _ACEOF
27962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27963 exec 5>>config.log
27964 {
27965 echo
27966 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27967 ## Running $as_me. ##
27968 _ASBOX
27969 printf "%s\n" "$ac_log"
27970 } >&5
27971
27972 _ACEOF
27973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27974 #
27975 # INIT-COMMANDS
27976 #
27977 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27978
27979
27980 # The HP-UX ksh and POSIX shell print the target directory to stdout
27981 # if CDPATH is set.
27982 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27983
27984 sed_quote_subst='$sed_quote_subst'
27985 double_quote_subst='$double_quote_subst'
27986 delay_variable_subst='$delay_variable_subst'
27987 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27988 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27989 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27990 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27991 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27992 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27993 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27994 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27995 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27996 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27997 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27998 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27999 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28000 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28001 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28002 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28003 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28004 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28005 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28006 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28007 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28008 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28009 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28010 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28011 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28012 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28013 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28014 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28015 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28016 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28017 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28018 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28019 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28020 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28021 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
28022 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28023 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28024 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28025 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28026 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28027 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28028 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28029 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28030 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
28031 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28032 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28033 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28034 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28035 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28036 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28037 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28038 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28039 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28040 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28041 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28042 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28043 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28044 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28045 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
28046 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28047 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"`'
28048 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
28049 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28050 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28051 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
28052 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28053 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28054 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28055 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28056 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28057 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28058 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28059 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28060 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28061 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28062 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28063 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28064 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28065 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28066 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28067 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28068 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28069 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28070 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28071 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28072 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28073 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28074 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28075 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28076 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28077 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28078 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28079 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28080 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28081 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28082 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28083 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28084 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28085 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28086 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28087 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28088 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28089 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28090 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28091 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28092 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28093 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28094 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28095 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28096 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28097 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28098 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28099 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28100 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28101 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28102 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28103 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28104 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28105 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28106 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28107 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28108 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28109 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28110 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28111 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28112 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28113 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28114 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28115 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28116 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
28117 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
28118 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28119 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28120 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28121 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28122 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28123 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28124 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28125 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28126 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28127 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28128 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28129 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28130 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
28131 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
28132 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28133 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28134 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
28135 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
28136 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
28137 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
28138 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
28139 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
28140 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
28141 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
28142 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
28143 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28144 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28145 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
28146 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28147 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28148 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28149 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28150 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28151 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28152 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
28153 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28154 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28155 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28156 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
28157 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
28158 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
28159 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
28160 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
28161 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
28162 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
28163 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
28164 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
28165 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28166 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28167 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28168 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28169 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28170 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
28171 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
28172 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
28173 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28174 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28175 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
28176 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
28177 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
28178
28179 LTCC='$LTCC'
28180 LTCFLAGS='$LTCFLAGS'
28181 compiler='$compiler_DEFAULT'
28182
28183 # A function that is used when there is no print builtin or printf.
28184 func_fallback_echo ()
28185 {
28186 eval 'cat <<_LTECHO_EOF
28187 \$1
28188 _LTECHO_EOF'
28189 }
28190
28191 # Quote evaled strings.
28192 for var in SHELL \
28193 ECHO \
28194 PATH_SEPARATOR \
28195 SED \
28196 GREP \
28197 EGREP \
28198 FGREP \
28199 LD \
28200 NM \
28201 LN_S \
28202 lt_SP2NL \
28203 lt_NL2SP \
28204 reload_flag \
28205 FILECMD \
28206 OBJDUMP \
28207 deplibs_check_method \
28208 file_magic_cmd \
28209 file_magic_glob \
28210 want_nocaseglob \
28211 DLLTOOL \
28212 sharedlib_from_linklib_cmd \
28213 AR \
28214 archiver_list_spec \
28215 STRIP \
28216 RANLIB \
28217 CC \
28218 CFLAGS \
28219 compiler \
28220 lt_cv_sys_global_symbol_pipe \
28221 lt_cv_sys_global_symbol_to_cdecl \
28222 lt_cv_sys_global_symbol_to_import \
28223 lt_cv_sys_global_symbol_to_c_name_address \
28224 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28225 lt_cv_nm_interface \
28226 nm_file_list_spec \
28227 lt_cv_truncate_bin \
28228 lt_prog_compiler_no_builtin_flag \
28229 lt_prog_compiler_pic \
28230 lt_prog_compiler_wl \
28231 lt_prog_compiler_static \
28232 lt_cv_prog_compiler_c_o \
28233 need_locks \
28234 MANIFEST_TOOL \
28235 DSYMUTIL \
28236 NMEDIT \
28237 LIPO \
28238 OTOOL \
28239 OTOOL64 \
28240 shrext_cmds \
28241 export_dynamic_flag_spec \
28242 whole_archive_flag_spec \
28243 compiler_needs_object \
28244 with_gnu_ld \
28245 allow_undefined_flag \
28246 no_undefined_flag \
28247 hardcode_libdir_flag_spec \
28248 hardcode_libdir_separator \
28249 exclude_expsyms \
28250 include_expsyms \
28251 file_list_spec \
28252 variables_saved_for_relink \
28253 libname_spec \
28254 library_names_spec \
28255 soname_spec \
28256 install_override_mode \
28257 finish_eval \
28258 old_striplib \
28259 striplib \
28260 compiler_lib_search_dirs \
28261 predep_objects \
28262 postdep_objects \
28263 predeps \
28264 postdeps \
28265 compiler_lib_search_path \
28266 LD_CXX \
28267 reload_flag_CXX \
28268 compiler_CXX \
28269 lt_prog_compiler_no_builtin_flag_CXX \
28270 lt_prog_compiler_pic_CXX \
28271 lt_prog_compiler_wl_CXX \
28272 lt_prog_compiler_static_CXX \
28273 lt_cv_prog_compiler_c_o_CXX \
28274 export_dynamic_flag_spec_CXX \
28275 whole_archive_flag_spec_CXX \
28276 compiler_needs_object_CXX \
28277 with_gnu_ld_CXX \
28278 allow_undefined_flag_CXX \
28279 no_undefined_flag_CXX \
28280 hardcode_libdir_flag_spec_CXX \
28281 hardcode_libdir_separator_CXX \
28282 exclude_expsyms_CXX \
28283 include_expsyms_CXX \
28284 file_list_spec_CXX \
28285 compiler_lib_search_dirs_CXX \
28286 predep_objects_CXX \
28287 postdep_objects_CXX \
28288 predeps_CXX \
28289 postdeps_CXX \
28290 compiler_lib_search_path_CXX; do
28291 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28292 *[\\\\\\\`\\"\\\$]*)
28293 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28294 ;;
28295 *)
28296 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28297 ;;
28298 esac
28299 done
28300
28301 # Double-quote double-evaled strings.
28302 for var in reload_cmds \
28303 old_postinstall_cmds \
28304 old_postuninstall_cmds \
28305 old_archive_cmds \
28306 extract_expsyms_cmds \
28307 old_archive_from_new_cmds \
28308 old_archive_from_expsyms_cmds \
28309 archive_cmds \
28310 archive_expsym_cmds \
28311 module_cmds \
28312 module_expsym_cmds \
28313 export_symbols_cmds \
28314 prelink_cmds \
28315 postlink_cmds \
28316 postinstall_cmds \
28317 postuninstall_cmds \
28318 finish_cmds \
28319 sys_lib_search_path_spec \
28320 configure_time_dlsearch_path \
28321 configure_time_lt_sys_library_path \
28322 reload_cmds_CXX \
28323 old_archive_cmds_CXX \
28324 old_archive_from_new_cmds_CXX \
28325 old_archive_from_expsyms_cmds_CXX \
28326 archive_cmds_CXX \
28327 archive_expsym_cmds_CXX \
28328 module_cmds_CXX \
28329 module_expsym_cmds_CXX \
28330 export_symbols_cmds_CXX \
28331 prelink_cmds_CXX \
28332 postlink_cmds_CXX; do
28333 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28334 *[\\\\\\\`\\"\\\$]*)
28335 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28336 ;;
28337 *)
28338 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28339 ;;
28340 esac
28341 done
28342
28343 ac_aux_dir='$ac_aux_dir'
28344
28345 # See if we are running on zsh, and set the options that allow our
28346 # commands through without removal of \ escapes INIT.
28347 if test -n "\${ZSH_VERSION+set}"; then
28348 setopt NO_GLOB_SUBST
28349 fi
28350
28351
28352 PACKAGE='$PACKAGE'
28353 VERSION='$VERSION'
28354 RM='$RM'
28355 ofile='$ofile'
28356
28357
28358
28359
28360
28361 # variables for create stdint.h replacement
28362 PACKAGE="$PACKAGE"
28363 VERSION="$VERSION"
28364 ac_stdint_h="$ac_stdint_h"
28365 _ac_stdint_h=`printf "%s\n" "_$PACKAGE-$ac_stdint_h" | sed "$as_sed_cpp"`
28366 ac_cv_stdint_message="$ac_cv_stdint_message"
28367 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
28368 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
28369 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
28370 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
28371 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
28372 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
28373 ac_cv_char_data_model="$ac_cv_char_data_model"
28374 ac_cv_long_data_model="$ac_cv_long_data_model"
28375 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
28376 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
28377 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
28378
28379
28380 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
28381 pkgconfig_prefix='$prefix'
28382 pkgconfig_execprefix='$exec_prefix'
28383 pkgconfig_bindir='$bindir'
28384 pkgconfig_libdir='$libdir'
28385 pkgconfig_includedir='$includedir'
28386 pkgconfig_datarootdir='$datarootdir'
28387 pkgconfig_datadir='$datadir'
28388 pkgconfig_sysconfdir='$sysconfdir'
28389 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
28390 pkgconfig_package='$PACKAGE_NAME'
28391 pkgconfig_libname='$ax_create_pkgconfig_libname'
28392 pkgconfig_description='$ax_create_pkgconfig_description'
28393 pkgconfig_version='$ax_create_pkgconfig_version'
28394 pkgconfig_requires='$ax_create_pkgconfig_requires'
28395 pkgconfig_libs='$ax_create_pkgconfig_libs'
28396 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
28397 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
28398 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
28399 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
28400
28401
28402 _ACEOF
28403
28404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28405
28406 # Handling of arguments.
28407 for ac_config_target in $ac_config_targets
28408 do
28409 case $ac_config_target in
28410 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28411 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28412 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
28413 "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
28414 "isl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS isl_config.h" ;;
28415 "isl_srcdir.c") CONFIG_FILES="$CONFIG_FILES isl_srcdir.c" ;;
28416 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28417 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28418 "bound_test.sh") CONFIG_FILES="$CONFIG_FILES bound_test.sh" ;;
28419 "codegen_test.sh") CONFIG_FILES="$CONFIG_FILES codegen_test.sh" ;;
28420 "pip_test.sh") CONFIG_FILES="$CONFIG_FILES pip_test.sh" ;;
28421 "flow_test.sh") CONFIG_FILES="$CONFIG_FILES flow_test.sh" ;;
28422 "schedule_test.sh") CONFIG_FILES="$CONFIG_FILES schedule_test.sh" ;;
28423
28424 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
28425 esac
28426 done
28427
28428
28429 # If the user did not use the arguments to specify the items to instantiate,
28430 # then the envvar interface is used. Set only those that are not.
28431 # We use the long form for the default assignment because of an extremely
28432 # bizarre bug on SunOS 4.1.3.
28433 if $ac_need_defaults; then
28434 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
28435 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
28436 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
28437 fi
28438
28439 # Have a temporary directory for convenience. Make it in the build tree
28440 # simply because there is no reason against having it here, and in addition,
28441 # creating and moving files from /tmp can sometimes cause problems.
28442 # Hook for its removal unless debugging.
28443 # Note that there is a small window in which the directory will not be cleaned:
28444 # after its creation but before its name has been assigned to '$tmp'.
28445 $debug ||
28446 {
28447 tmp= ac_tmp=
28448 trap 'exit_status=$?
28449 : "${ac_tmp:=$tmp}"
28450 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28451 ' 0
28452 trap 'as_fn_exit 1' 1 2 13 15
28453 }
28454 # Create a (secure) tmp directory for tmp files.
28455
28456 {
28457 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28458 test -d "$tmp"
28459 } ||
28460 {
28461 tmp=./conf$$-$RANDOM
28462 (umask 077 && mkdir "$tmp")
28463 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28464 ac_tmp=$tmp
28465
28466 # Set up the scripts for CONFIG_FILES section.
28467 # No need to generate them if there are no CONFIG_FILES.
28468 # This happens for instance with './config.status config.h'.
28469 if test -n "$CONFIG_FILES"; then
28470
28471
28472 ac_cr=`echo X | tr X '\015'`
28473 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28474 # But we know of no other shell where ac_cr would be empty at this
28475 # point, so we can use a bashism as a fallback.
28476 if test "x$ac_cr" = x; then
28477 eval ac_cr=\$\'\\r\'
28478 fi
28479 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28480 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28481 ac_cs_awk_cr='\\r'
28482 else
28483 ac_cs_awk_cr=$ac_cr
28484 fi
28485
28486 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28487 _ACEOF
28488
28489
28490 {
28491 echo "cat >conf$$subs.awk <<_ACEOF" &&
28492 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28493 echo "_ACEOF"
28494 } >conf$$subs.sh ||
28495 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28496 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28497 ac_delim='%!_!# '
28498 for ac_last_try in false false false false false :; do
28499 . ./conf$$subs.sh ||
28500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28501
28502 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28503 if test $ac_delim_n = $ac_delim_num; then
28504 break
28505 elif $ac_last_try; then
28506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28507 else
28508 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28509 fi
28510 done
28511 rm -f conf$$subs.sh
28512
28513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28514 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28515 _ACEOF
28516 sed -n '
28517 h
28518 s/^/S["/; s/!.*/"]=/
28519 p
28520 g
28521 s/^[^!]*!//
28522 :repl
28523 t repl
28524 s/'"$ac_delim"'$//
28525 t delim
28526 :nl
28527 h
28528 s/\(.\{148\}\)..*/\1/
28529 t more1
28530 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28531 p
28532 n
28533 b repl
28534 :more1
28535 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28536 p
28537 g
28538 s/.\{148\}//
28539 t nl
28540 :delim
28541 h
28542 s/\(.\{148\}\)..*/\1/
28543 t more2
28544 s/["\\]/\\&/g; s/^/"/; s/$/"/
28545 p
28546 b
28547 :more2
28548 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28549 p
28550 g
28551 s/.\{148\}//
28552 t delim
28553 ' <conf$$subs.awk | sed '
28554 /^[^""]/{
28555 N
28556 s/\n//
28557 }
28558 ' >>$CONFIG_STATUS || ac_write_fail=1
28559 rm -f conf$$subs.awk
28560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28561 _ACAWK
28562 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28563 for (key in S) S_is_set[key] = 1
28564 FS = ""
28565
28566 }
28567 {
28568 line = $ 0
28569 nfields = split(line, field, "@")
28570 substed = 0
28571 len = length(field[1])
28572 for (i = 2; i < nfields; i++) {
28573 key = field[i]
28574 keylen = length(key)
28575 if (S_is_set[key]) {
28576 value = S[key]
28577 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28578 len += length(value) + length(field[++i])
28579 substed = 1
28580 } else
28581 len += 1 + keylen
28582 }
28583
28584 print line
28585 }
28586
28587 _ACAWK
28588 _ACEOF
28589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28590 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28591 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28592 else
28593 cat
28594 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28595 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28596 _ACEOF
28597
28598 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28599 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28600 # trailing colons and then remove the whole line if VPATH becomes empty
28601 # (actually we leave an empty line to preserve line numbers).
28602 if test "x$srcdir" = x.; then
28603 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28604 h
28605 s///
28606 s/^/:/
28607 s/[ ]*$/:/
28608 s/:\$(srcdir):/:/g
28609 s/:\${srcdir}:/:/g
28610 s/:@srcdir@:/:/g
28611 s/^:*//
28612 s/:*$//
28613 x
28614 s/\(=[ ]*\).*/\1/
28615 G
28616 s/\n//
28617 s/^[^=]*=[ ]*$//
28618 }'
28619 fi
28620
28621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28622 fi # test -n "$CONFIG_FILES"
28623
28624 # Set up the scripts for CONFIG_HEADERS section.
28625 # No need to generate them if there are no CONFIG_HEADERS.
28626 # This happens for instance with './config.status Makefile'.
28627 if test -n "$CONFIG_HEADERS"; then
28628 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28629 BEGIN {
28630 _ACEOF
28631
28632 # Transform confdefs.h into an awk script 'defines.awk', embedded as
28633 # here-document in config.status, that substitutes the proper values into
28634 # config.h.in to produce config.h.
28635
28636 # Create a delimiter string that does not exist in confdefs.h, to ease
28637 # handling of long lines.
28638 ac_delim='%!_!# '
28639 for ac_last_try in false false :; do
28640 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28641 if test -z "$ac_tt"; then
28642 break
28643 elif $ac_last_try; then
28644 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28645 else
28646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28647 fi
28648 done
28649
28650 # For the awk script, D is an array of macro values keyed by name,
28651 # likewise P contains macro parameters if any. Preserve backslash
28652 # newline sequences.
28653
28654 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28655 sed -n '
28656 s/.\{148\}/&'"$ac_delim"'/g
28657 t rset
28658 :rset
28659 s/^[ ]*#[ ]*define[ ][ ]*/ /
28660 t def
28661 d
28662 :def
28663 s/\\$//
28664 t bsnl
28665 s/["\\]/\\&/g
28666 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28667 D["\1"]=" \3"/p
28668 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28669 d
28670 :bsnl
28671 s/["\\]/\\&/g
28672 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28673 D["\1"]=" \3\\\\\\n"\\/p
28674 t cont
28675 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28676 t cont
28677 d
28678 :cont
28679 n
28680 s/.\{148\}/&'"$ac_delim"'/g
28681 t clear
28682 :clear
28683 s/\\$//
28684 t bsnlc
28685 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28686 d
28687 :bsnlc
28688 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28689 b cont
28690 ' <confdefs.h | sed '
28691 s/'"$ac_delim"'/"\\\
28692 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28693
28694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28695 for (key in D) D_is_set[key] = 1
28696 FS = ""
28697 }
28698 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28699 line = \$ 0
28700 split(line, arg, " ")
28701 if (arg[1] == "#") {
28702 defundef = arg[2]
28703 mac1 = arg[3]
28704 } else {
28705 defundef = substr(arg[1], 2)
28706 mac1 = arg[2]
28707 }
28708 split(mac1, mac2, "(") #)
28709 macro = mac2[1]
28710 prefix = substr(line, 1, index(line, defundef) - 1)
28711 if (D_is_set[macro]) {
28712 # Preserve the white space surrounding the "#".
28713 print prefix "define", macro P[macro] D[macro]
28714 next
28715 } else {
28716 # Replace #undef with comments. This is necessary, for example,
28717 # in the case of _POSIX_SOURCE, which is predefined and required
28718 # on some systems where configure will not decide to define it.
28719 if (defundef == "undef") {
28720 print "/*", prefix defundef, macro, "*/"
28721 next
28722 }
28723 }
28724 }
28725 { print }
28726 _ACAWK
28727 _ACEOF
28728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28729 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28730 fi # test -n "$CONFIG_HEADERS"
28731
28732
28733 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28734 shift
28735 for ac_tag
28736 do
28737 case $ac_tag in
28738 :[FHLC]) ac_mode=$ac_tag; continue;;
28739 esac
28740 case $ac_mode$ac_tag in
28741 :[FHL]*:*);;
28742 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
28743 :[FH]-) ac_tag=-:-;;
28744 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28745 esac
28746 ac_save_IFS=$IFS
28747 IFS=:
28748 set x $ac_tag
28749 IFS=$ac_save_IFS
28750 shift
28751 ac_file=$1
28752 shift
28753
28754 case $ac_mode in
28755 :L) ac_source=$1;;
28756 :[FH])
28757 ac_file_inputs=
28758 for ac_f
28759 do
28760 case $ac_f in
28761 -) ac_f="$ac_tmp/stdin";;
28762 *) # Look for the file first in the build tree, then in the source tree
28763 # (if the path is not absolute). The absolute path cannot be DOS-style,
28764 # because $ac_f cannot contain ':'.
28765 test -f "$ac_f" ||
28766 case $ac_f in
28767 [\\/$]*) false;;
28768 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28769 esac ||
28770 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
28771 esac
28772 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28773 as_fn_append ac_file_inputs " '$ac_f'"
28774 done
28775
28776 # Let's still pretend it is 'configure' which instantiates (i.e., don't
28777 # use $as_me), people would be surprised to read:
28778 # /* config.h. Generated by config.status. */
28779 configure_input='Generated from '`
28780 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28781 `' by configure.'
28782 if test x"$ac_file" != x-; then
28783 configure_input="$ac_file. $configure_input"
28784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28785 printf "%s\n" "$as_me: creating $ac_file" >&6;}
28786 fi
28787 # Neutralize special characters interpreted by sed in replacement strings.
28788 case $configure_input in #(
28789 *\&* | *\|* | *\\* )
28790 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
28791 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28792 *) ac_sed_conf_input=$configure_input;;
28793 esac
28794
28795 case $ac_tag in
28796 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28798 esac
28799 ;;
28800 esac
28801
28802 ac_dir=`$as_dirname -- "$ac_file" ||
28803 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28804 X"$ac_file" : 'X\(//\)[^/]' \| \
28805 X"$ac_file" : 'X\(//\)$' \| \
28806 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28807 printf "%s\n" X"$ac_file" |
28808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28809 s//\1/
28810 q
28811 }
28812 /^X\(\/\/\)[^/].*/{
28813 s//\1/
28814 q
28815 }
28816 /^X\(\/\/\)$/{
28817 s//\1/
28818 q
28819 }
28820 /^X\(\/\).*/{
28821 s//\1/
28822 q
28823 }
28824 s/.*/./; q'`
28825 as_dir="$ac_dir"; as_fn_mkdir_p
28826 ac_builddir=.
28827
28828 case "$ac_dir" in
28829 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28830 *)
28831 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
28832 # A ".." for each directory in $ac_dir_suffix.
28833 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28834 case $ac_top_builddir_sub in
28835 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28836 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28837 esac ;;
28838 esac
28839 ac_abs_top_builddir=$ac_pwd
28840 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28841 # for backward compatibility:
28842 ac_top_builddir=$ac_top_build_prefix
28843
28844 case $srcdir in
28845 .) # We are building in place.
28846 ac_srcdir=.
28847 ac_top_srcdir=$ac_top_builddir_sub
28848 ac_abs_top_srcdir=$ac_pwd ;;
28849 [\\/]* | ?:[\\/]* ) # Absolute name.
28850 ac_srcdir=$srcdir$ac_dir_suffix;
28851 ac_top_srcdir=$srcdir
28852 ac_abs_top_srcdir=$srcdir ;;
28853 *) # Relative name.
28854 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28855 ac_top_srcdir=$ac_top_build_prefix$srcdir
28856 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28857 esac
28858 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28859
28860
28861 case $ac_mode in
28862 :F)
28863 #
28864 # CONFIG_FILE
28865 #
28866
28867 case $INSTALL in
28868 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28869 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28870 esac
28871 ac_MKDIR_P=$MKDIR_P
28872 case $MKDIR_P in
28873 [\\/$]* | ?:[\\/]* ) ;;
28874 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28875 esac
28876 _ACEOF
28877
28878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28879 # If the template does not know about datarootdir, expand it.
28880 # FIXME: This hack should be removed a few years after 2.60.
28881 ac_datarootdir_hack=; ac_datarootdir_seen=
28882 ac_sed_dataroot='
28883 /datarootdir/ {
28884 p
28885 q
28886 }
28887 /@datadir@/p
28888 /@docdir@/p
28889 /@infodir@/p
28890 /@localedir@/p
28891 /@mandir@/p'
28892 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28893 *datarootdir*) ac_datarootdir_seen=yes;;
28894 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28896 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28897 _ACEOF
28898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28899 ac_datarootdir_hack='
28900 s&@datadir@&$datadir&g
28901 s&@docdir@&$docdir&g
28902 s&@infodir@&$infodir&g
28903 s&@localedir@&$localedir&g
28904 s&@mandir@&$mandir&g
28905 s&\\\${datarootdir}&$datarootdir&g' ;;
28906 esac
28907 _ACEOF
28908
28909 # Neutralize VPATH when '$srcdir' = '.'.
28910 # Shell code in configure.ac might set extrasub.
28911 # FIXME: do we really want to maintain this feature?
28912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28913 ac_sed_extra="$ac_vpsub
28914 $extrasub
28915 _ACEOF
28916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28917 :t
28918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28919 s|@configure_input@|$ac_sed_conf_input|;t t
28920 s&@top_builddir@&$ac_top_builddir_sub&;t t
28921 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28922 s&@srcdir@&$ac_srcdir&;t t
28923 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28924 s&@top_srcdir@&$ac_top_srcdir&;t t
28925 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28926 s&@builddir@&$ac_builddir&;t t
28927 s&@abs_builddir@&$ac_abs_builddir&;t t
28928 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28929 s&@INSTALL@&$ac_INSTALL&;t t
28930 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28931 $ac_datarootdir_hack
28932 "
28933 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28934 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28935
28936 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28937 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28938 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28939 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
28941 which seems to be undefined. Please make sure it is defined" >&5
28942 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
28943 which seems to be undefined. Please make sure it is defined" >&2;}
28944
28945 rm -f "$ac_tmp/stdin"
28946 case $ac_file in
28947 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28948 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28949 esac \
28950 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28951 ;;
28952 :H)
28953 #
28954 # CONFIG_HEADER
28955 #
28956 if test x"$ac_file" != x-; then
28957 {
28958 printf "%s\n" "/* $configure_input */" >&1 \
28959 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28960 } >"$ac_tmp/config.h" \
28961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28962 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28964 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
28965 else
28966 rm -f "$ac_file"
28967 mv "$ac_tmp/config.h" "$ac_file" \
28968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28969 fi
28970 else
28971 printf "%s\n" "/* $configure_input */" >&1 \
28972 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28973 || as_fn_error $? "could not create -" "$LINENO" 5
28974 fi
28975 # Compute "$ac_file"'s index in $config_headers.
28976 _am_arg="$ac_file"
28977 _am_stamp_count=1
28978 for _am_header in $config_headers :; do
28979 case $_am_header in
28980 $_am_arg | $_am_arg:* )
28981 break ;;
28982 * )
28983 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28984 esac
28985 done
28986 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28987 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28988 X"$_am_arg" : 'X\(//\)[^/]' \| \
28989 X"$_am_arg" : 'X\(//\)$' \| \
28990 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28991 printf "%s\n" X"$_am_arg" |
28992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28993 s//\1/
28994 q
28995 }
28996 /^X\(\/\/\)[^/].*/{
28997 s//\1/
28998 q
28999 }
29000 /^X\(\/\/\)$/{
29001 s//\1/
29002 q
29003 }
29004 /^X\(\/\).*/{
29005 s//\1/
29006 q
29007 }
29008 s/.*/./; q'`/stamp-h$_am_stamp_count
29009 ;;
29010
29011 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29012 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
29013 ;;
29014 esac
29015
29016
29017 case $ac_file$ac_mode in
29018 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29019 # Older Autoconf quotes --file arguments for eval, but not when files
29020 # are listed without --file. Let's play safe and only enable the eval
29021 # if we detect the quoting.
29022 # TODO: see whether this extra hack can be removed once we start
29023 # requiring Autoconf 2.70 or later.
29024 case $CONFIG_FILES in #(
29025 *\'*) :
29026 eval set x "$CONFIG_FILES" ;; #(
29027 *) :
29028 set x $CONFIG_FILES ;; #(
29029 *) :
29030 ;;
29031 esac
29032 shift
29033 # Used to flag and report bootstrapping failures.
29034 am_rc=0
29035 for am_mf
29036 do
29037 # Strip MF so we end up with the name of the file.
29038 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
29039 # Check whether this is an Automake generated Makefile which includes
29040 # dependency-tracking related rules and includes.
29041 # Grep'ing the whole file directly is not great: AIX grep has a line
29042 # limit of 2048, but all sed's we know have understand at least 4000.
29043 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
29044 || continue
29045 am_dirpart=`$as_dirname -- "$am_mf" ||
29046 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29047 X"$am_mf" : 'X\(//\)[^/]' \| \
29048 X"$am_mf" : 'X\(//\)$' \| \
29049 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29050 printf "%s\n" X"$am_mf" |
29051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29052 s//\1/
29053 q
29054 }
29055 /^X\(\/\/\)[^/].*/{
29056 s//\1/
29057 q
29058 }
29059 /^X\(\/\/\)$/{
29060 s//\1/
29061 q
29062 }
29063 /^X\(\/\).*/{
29064 s//\1/
29065 q
29066 }
29067 s/.*/./; q'`
29068 am_filepart=`$as_basename -- "$am_mf" ||
29069 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
29070 X"$am_mf" : 'X\(//\)$' \| \
29071 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29072 printf "%s\n" X/"$am_mf" |
29073 sed '/^.*\/\([^/][^/]*\)\/*$/{
29074 s//\1/
29075 q
29076 }
29077 /^X\/\(\/\/\)$/{
29078 s//\1/
29079 q
29080 }
29081 /^X\/\(\/\).*/{
29082 s//\1/
29083 q
29084 }
29085 s/.*/./; q'`
29086 { echo "$as_me:$LINENO: cd "$am_dirpart" \
29087 && sed -e '/# am--include-marker/d' "$am_filepart" \
29088 | $MAKE -f - am--depfiles" >&5
29089 (cd "$am_dirpart" \
29090 && sed -e '/# am--include-marker/d' "$am_filepart" \
29091 | $MAKE -f - am--depfiles) >&5 2>&5
29092 ac_status=$?
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); } || am_rc=$?
29095 done
29096 if test $am_rc -ne 0; then
29097 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
29098 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
29099 as_fn_error $? "Something went wrong bootstrapping makefile fragments
29100 for automatic dependency tracking. If GNU make was not used, consider
29101 re-running the configure script with MAKE=\"gmake\" (or whatever is
29102 necessary). You can also try re-running configure with the
29103 '--disable-dependency-tracking' option to at least be able to build
29104 the package (albeit without support for automatic dependency tracking).
29105 See 'config.log' for more details" "$LINENO" 5; }
29106 fi
29107 { am_dirpart=; unset am_dirpart;}
29108 { am_filepart=; unset am_filepart;}
29109 { am_mf=; unset am_mf;}
29110 { am_rc=; unset am_rc;}
29111 rm -f conftest-deps.mk
29112 }
29113 ;;
29114 "libtool":C)
29115
29116 # See if we are running on zsh, and set the options that allow our
29117 # commands through without removal of \ escapes.
29118 if test -n "${ZSH_VERSION+set}"; then
29119 setopt NO_GLOB_SUBST
29120 fi
29121
29122 cfgfile=${ofile}T
29123 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29124 $RM "$cfgfile"
29125
29126 cat <<_LT_EOF >> "$cfgfile"
29127 #! $SHELL
29128 # Generated automatically by $as_me ($PACKAGE) $VERSION
29129 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29130
29131 # Provide generalized library-building support services.
29132 # Written by Gordon Matzigkeit, 1996
29133
29134 # Copyright (C) 2024 Free Software Foundation, Inc.
29135 # This is free software; see the source for copying conditions. There is NO
29136 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29137
29138 # GNU Libtool is free software; you can redistribute it and/or modify
29139 # it under the terms of the GNU General Public License as published by
29140 # the Free Software Foundation; either version 2 of the License, or
29141 # (at your option) any later version.
29142 #
29143 # As a special exception to the GNU General Public License, if you
29144 # distribute this file as part of a program or library that is built
29145 # using GNU Libtool, you may include this file under the same
29146 # distribution terms that you use for the rest of that program.
29147 #
29148 # GNU Libtool is distributed in the hope that it will be useful, but
29149 # WITHOUT ANY WARRANTY; without even the implied warranty of
29150 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29151 # GNU General Public License for more details.
29152 #
29153 # You should have received a copy of the GNU General Public License
29154 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29155
29156
29157 # The names of the tagged configurations supported by this script.
29158 available_tags='CXX '
29159
29160 # Configured defaults for sys_lib_dlsearch_path munging.
29161 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
29162
29163 # ### BEGIN LIBTOOL CONFIG
29164
29165 # Which release of libtool.m4 was used?
29166 macro_version=$macro_version
29167 macro_revision=$macro_revision
29168
29169 # Whether or not to build shared libraries.
29170 build_libtool_libs=$enable_shared
29171
29172 # Whether or not to build static libraries.
29173 build_old_libs=$enable_static
29174
29175 # What type of objects to build.
29176 pic_mode=$pic_mode
29177
29178 # Whether or not to optimize for fast installation.
29179 fast_install=$enable_fast_install
29180
29181 # Shared archive member basename,for filename based shared library versioning on AIX.
29182 shared_archive_member_spec=$shared_archive_member_spec
29183
29184 # Shell to use when invoking shell scripts.
29185 SHELL=$lt_SHELL
29186
29187 # An echo program that protects backslashes.
29188 ECHO=$lt_ECHO
29189
29190 # The PATH separator for the build system.
29191 PATH_SEPARATOR=$lt_PATH_SEPARATOR
29192
29193 # The host system.
29194 host_alias=$host_alias
29195 host=$host
29196 host_os=$host_os
29197
29198 # The build system.
29199 build_alias=$build_alias
29200 build=$build
29201 build_os=$build_os
29202
29203 # A sed program that does not truncate output.
29204 SED=$lt_SED
29205
29206 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29207 Xsed="\$SED -e 1s/^X//"
29208
29209 # A grep program that handles long lines.
29210 GREP=$lt_GREP
29211
29212 # An ERE matcher.
29213 EGREP=$lt_EGREP
29214
29215 # A literal string matcher.
29216 FGREP=$lt_FGREP
29217
29218 # A BSD- or MS-compatible name lister.
29219 NM=$lt_NM
29220
29221 # Whether we need soft or hard links.
29222 LN_S=$lt_LN_S
29223
29224 # What is the maximum length of a command?
29225 max_cmd_len=$max_cmd_len
29226
29227 # Object file suffix (normally "o").
29228 objext=$ac_objext
29229
29230 # Executable file suffix (normally "").
29231 exeext=$exeext
29232
29233 # whether the shell understands "unset".
29234 lt_unset=$lt_unset
29235
29236 # turn spaces into newlines.
29237 SP2NL=$lt_lt_SP2NL
29238
29239 # turn newlines into spaces.
29240 NL2SP=$lt_lt_NL2SP
29241
29242 # convert \$build file names to \$host format.
29243 to_host_file_cmd=$lt_cv_to_host_file_cmd
29244
29245 # convert \$build files to toolchain format.
29246 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29247
29248 # A file(cmd) program that detects file types.
29249 FILECMD=$lt_FILECMD
29250
29251 # An object symbol dumper.
29252 OBJDUMP=$lt_OBJDUMP
29253
29254 # Method to check whether dependent libraries are shared objects.
29255 deplibs_check_method=$lt_deplibs_check_method
29256
29257 # Command to use when deplibs_check_method = "file_magic".
29258 file_magic_cmd=$lt_file_magic_cmd
29259
29260 # How to find potential files when deplibs_check_method = "file_magic".
29261 file_magic_glob=$lt_file_magic_glob
29262
29263 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29264 want_nocaseglob=$lt_want_nocaseglob
29265
29266 # DLL creation program.
29267 DLLTOOL=$lt_DLLTOOL
29268
29269 # Command to associate shared and link libraries.
29270 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29271
29272 # The archiver.
29273 AR=$lt_AR
29274
29275 # Flags to create an archive (by configure).
29276 lt_ar_flags=$lt_ar_flags
29277
29278 # Flags to create an archive.
29279 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
29280
29281 # How to feed a file listing to the archiver.
29282 archiver_list_spec=$lt_archiver_list_spec
29283
29284 # A symbol stripping program.
29285 STRIP=$lt_STRIP
29286
29287 # Commands used to install an old-style archive.
29288 RANLIB=$lt_RANLIB
29289 old_postinstall_cmds=$lt_old_postinstall_cmds
29290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29291
29292 # Whether to use a lock for old archive extraction.
29293 lock_old_archive_extraction=$lock_old_archive_extraction
29294
29295 # A C compiler.
29296 LTCC=$lt_CC
29297
29298 # LTCC compiler flags.
29299 LTCFLAGS=$lt_CFLAGS
29300
29301 # Take the output of nm and produce a listing of raw symbols and C names.
29302 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29303
29304 # Transform the output of nm in a proper C declaration.
29305 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29306
29307 # Transform the output of nm into a list of symbols to manually relocate.
29308 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
29309
29310 # Transform the output of nm in a C name address pair.
29311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29312
29313 # Transform the output of nm in a C name address pair when lib prefix is needed.
29314 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29315
29316 # The name lister interface.
29317 nm_interface=$lt_lt_cv_nm_interface
29318
29319 # Specify filename containing input files for \$NM.
29320 nm_file_list_spec=$lt_nm_file_list_spec
29321
29322 # The root where to search for dependent libraries,and where our libraries should be installed.
29323 lt_sysroot=$lt_sysroot
29324
29325 # Command to truncate a binary pipe.
29326 lt_truncate_bin=$lt_lt_cv_truncate_bin
29327
29328 # The name of the directory that contains temporary libtool files.
29329 objdir=$objdir
29330
29331 # Used to examine libraries when file_magic_cmd begins with "file".
29332 MAGIC_CMD=$MAGIC_CMD
29333
29334 # Must we lock files when doing compilation?
29335 need_locks=$lt_need_locks
29336
29337 # Manifest tool.
29338 MANIFEST_TOOL=$lt_MANIFEST_TOOL
29339
29340 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29341 DSYMUTIL=$lt_DSYMUTIL
29342
29343 # Tool to change global to local symbols on Mac OS X.
29344 NMEDIT=$lt_NMEDIT
29345
29346 # Tool to manipulate fat objects and archives on Mac OS X.
29347 LIPO=$lt_LIPO
29348
29349 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29350 OTOOL=$lt_OTOOL
29351
29352 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29353 OTOOL64=$lt_OTOOL64
29354
29355 # Old archive suffix (normally "a").
29356 libext=$libext
29357
29358 # Shared library suffix (normally ".so").
29359 shrext_cmds=$lt_shrext_cmds
29360
29361 # The commands to extract the exported symbol list from a shared archive.
29362 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29363
29364 # Variables whose values should be saved in libtool wrapper scripts and
29365 # restored at link time.
29366 variables_saved_for_relink=$lt_variables_saved_for_relink
29367
29368 # Do we need the "lib" prefix for modules?
29369 need_lib_prefix=$need_lib_prefix
29370
29371 # Do we need a version for libraries?
29372 need_version=$need_version
29373
29374 # Library versioning type.
29375 version_type=$version_type
29376
29377 # Shared library runtime path variable.
29378 runpath_var=$runpath_var
29379
29380 # Shared library path variable.
29381 shlibpath_var=$shlibpath_var
29382
29383 # Is shlibpath searched before the hard-coded library search path?
29384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29385
29386 # Format of library name prefix.
29387 libname_spec=$lt_libname_spec
29388
29389 # List of archive names. First name is the real one, the rest are links.
29390 # The last name is the one that the linker finds with -lNAME
29391 library_names_spec=$lt_library_names_spec
29392
29393 # The coded name of the library, if different from the real name.
29394 soname_spec=$lt_soname_spec
29395
29396 # Permission mode override for installation of shared libraries.
29397 install_override_mode=$lt_install_override_mode
29398
29399 # Command to use after installation of a shared archive.
29400 postinstall_cmds=$lt_postinstall_cmds
29401
29402 # Command to use after uninstallation of a shared archive.
29403 postuninstall_cmds=$lt_postuninstall_cmds
29404
29405 # Commands used to finish a libtool library installation in a directory.
29406 finish_cmds=$lt_finish_cmds
29407
29408 # As "finish_cmds", except a single script fragment to be evaled but
29409 # not shown.
29410 finish_eval=$lt_finish_eval
29411
29412 # Whether we should hardcode library paths into libraries.
29413 hardcode_into_libs=$hardcode_into_libs
29414
29415 # Compile-time system search path for libraries.
29416 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29417
29418 # Detected run-time system search path for libraries.
29419 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
29420
29421 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
29422 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
29423
29424 # Whether dlopen is supported.
29425 dlopen_support=$enable_dlopen
29426
29427 # Whether dlopen of programs is supported.
29428 dlopen_self=$enable_dlopen_self
29429
29430 # Whether dlopen of statically linked programs is supported.
29431 dlopen_self_static=$enable_dlopen_self_static
29432
29433 # Commands to strip libraries.
29434 old_striplib=$lt_old_striplib
29435 striplib=$lt_striplib
29436
29437
29438 # The linker used to build libraries.
29439 LD=$lt_LD
29440
29441 # How to create reloadable object files.
29442 reload_flag=$lt_reload_flag
29443 reload_cmds=$lt_reload_cmds
29444
29445 # Commands used to build an old-style archive.
29446 old_archive_cmds=$lt_old_archive_cmds
29447
29448 # A language specific compiler.
29449 CC=$lt_compiler
29450
29451 # Is the compiler the GNU compiler?
29452 with_gcc=$GCC
29453
29454 # Compiler flag to turn off builtin functions.
29455 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29456
29457 # Additional compiler flags for building library objects.
29458 pic_flag=$lt_lt_prog_compiler_pic
29459
29460 # How to pass a linker flag through the compiler.
29461 wl=$lt_lt_prog_compiler_wl
29462
29463 # Compiler flag to prevent dynamic linking.
29464 link_static_flag=$lt_lt_prog_compiler_static
29465
29466 # Does compiler simultaneously support -c and -o options?
29467 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29468
29469 # Whether or not to add -lc for building shared libraries.
29470 build_libtool_need_lc=$archive_cmds_need_lc
29471
29472 # Whether or not to disallow shared libs when runtime libs are static.
29473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29474
29475 # Compiler flag to allow reflexive dlopens.
29476 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29477
29478 # Compiler flag to generate shared objects directly from archives.
29479 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29480
29481 # Whether the compiler copes with passing no objects directly.
29482 compiler_needs_object=$lt_compiler_needs_object
29483
29484 # Create an old-style archive from a shared archive.
29485 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29486
29487 # Create a temporary old-style archive to link instead of a shared archive.
29488 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29489
29490 # Commands used to build a shared archive.
29491 archive_cmds=$lt_archive_cmds
29492 archive_expsym_cmds=$lt_archive_expsym_cmds
29493
29494 # Commands used to build a loadable module if different from building
29495 # a shared archive.
29496 module_cmds=$lt_module_cmds
29497 module_expsym_cmds=$lt_module_expsym_cmds
29498
29499 # Whether we are building with GNU ld or not.
29500 with_gnu_ld=$lt_with_gnu_ld
29501
29502 # Flag that allows shared libraries with undefined symbols to be built.
29503 allow_undefined_flag=$lt_allow_undefined_flag
29504
29505 # Flag that enforces no undefined symbols.
29506 no_undefined_flag=$lt_no_undefined_flag
29507
29508 # Flag to hardcode \$libdir into a binary during linking.
29509 # This must work even if \$libdir does not exist
29510 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29511
29512 # Whether we need a single "-rpath" flag with a separated argument.
29513 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29514
29515 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29516 # DIR into the resulting binary.
29517 hardcode_direct=$hardcode_direct
29518
29519 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29520 # DIR into the resulting binary and the resulting library dependency is
29521 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
29522 # library is relocated.
29523 hardcode_direct_absolute=$hardcode_direct_absolute
29524
29525 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29526 # into the resulting binary.
29527 hardcode_minus_L=$hardcode_minus_L
29528
29529 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29530 # into the resulting binary.
29531 hardcode_shlibpath_var=$hardcode_shlibpath_var
29532
29533 # Set to "yes" if building a shared library automatically hardcodes DIR
29534 # into the library and all subsequent libraries and executables linked
29535 # against it.
29536 hardcode_automatic=$hardcode_automatic
29537
29538 # Set to yes if linker adds runtime paths of dependent libraries
29539 # to runtime path list.
29540 inherit_rpath=$inherit_rpath
29541
29542 # Whether libtool must link a program against all its dependency libraries.
29543 link_all_deplibs=$link_all_deplibs
29544
29545 # Set to "yes" if exported symbols are required.
29546 always_export_symbols=$always_export_symbols
29547
29548 # The commands to list exported symbols.
29549 export_symbols_cmds=$lt_export_symbols_cmds
29550
29551 # Symbols that should not be listed in the preloaded symbols.
29552 exclude_expsyms=$lt_exclude_expsyms
29553
29554 # Symbols that must always be exported.
29555 include_expsyms=$lt_include_expsyms
29556
29557 # Commands necessary for linking programs (against libraries) with templates.
29558 prelink_cmds=$lt_prelink_cmds
29559
29560 # Commands necessary for finishing linking programs.
29561 postlink_cmds=$lt_postlink_cmds
29562
29563 # Specify filename containing input files.
29564 file_list_spec=$lt_file_list_spec
29565
29566 # How to hardcode a shared library path into an executable.
29567 hardcode_action=$hardcode_action
29568
29569 # The directories searched by this compiler when creating a shared library.
29570 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29571
29572 # Dependencies to place before and after the objects being linked to
29573 # create a shared library.
29574 predep_objects=$lt_predep_objects
29575 postdep_objects=$lt_postdep_objects
29576 predeps=$lt_predeps
29577 postdeps=$lt_postdeps
29578
29579 # The library search path used internally by the compiler when linking
29580 # a shared library.
29581 compiler_lib_search_path=$lt_compiler_lib_search_path
29582
29583 # ### END LIBTOOL CONFIG
29584
29585 _LT_EOF
29586
29587 cat <<'_LT_EOF' >> "$cfgfile"
29588
29589 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
29590
29591 # func_munge_path_list VARIABLE PATH
29592 # -----------------------------------
29593 # VARIABLE is name of variable containing _space_ separated list of
29594 # directories to be munged by the contents of PATH, which is string
29595 # having a format:
29596 # "DIR[:DIR]:"
29597 # string "DIR[ DIR]" will be prepended to VARIABLE
29598 # ":DIR[:DIR]"
29599 # string "DIR[ DIR]" will be appended to VARIABLE
29600 # "DIRP[:DIRP]::[DIRA:]DIRA"
29601 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
29602 # "DIRA[ DIRA]" will be appended to VARIABLE
29603 # "DIR[:DIR]"
29604 # VARIABLE will be replaced by "DIR[ DIR]"
29605 func_munge_path_list ()
29606 {
29607 case x$2 in
29608 x)
29609 ;;
29610 *:)
29611 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
29612 ;;
29613 x:*)
29614 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
29615 ;;
29616 *::*)
29617 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
29618 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
29619 ;;
29620 *)
29621 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
29622 ;;
29623 esac
29624 }
29625
29626
29627 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
29628 func_cc_basename ()
29629 {
29630 for cc_temp in $*""; do
29631 case $cc_temp in
29632 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
29633 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
29634 \-*) ;;
29635 *) break;;
29636 esac
29637 done
29638 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
29639 }
29640
29641
29642 # ### END FUNCTIONS SHARED WITH CONFIGURE
29643
29644 _LT_EOF
29645
29646 case $host_os in
29647 aix3*)
29648 cat <<\_LT_EOF >> "$cfgfile"
29649 # AIX sometimes has problems with the GCC collect2 program. For some
29650 # reason, if we set the COLLECT_NAMES environment variable, the problems
29651 # vanish in a puff of smoke.
29652 if test set != "${COLLECT_NAMES+set}"; then
29653 COLLECT_NAMES=
29654 export COLLECT_NAMES
29655 fi
29656 _LT_EOF
29657 ;;
29658 esac
29659
29660
29661
29662 ltmain=$ac_aux_dir/ltmain.sh
29663
29664
29665 # We use sed instead of cat because bash on DJGPP gets confused if
29666 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29667 # text mode, it properly converts lines to CR/LF. This bash problem
29668 # is reportedly fixed, but why not run on old versions too?
29669 $SED '$q' "$ltmain" >> "$cfgfile" \
29670 || (rm -f "$cfgfile"; exit 1)
29671
29672 mv -f "$cfgfile" "$ofile" ||
29673 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29674 chmod +x "$ofile"
29675
29676
29677 cat <<_LT_EOF >> "$ofile"
29678
29679 # ### BEGIN LIBTOOL TAG CONFIG: CXX
29680
29681 # The linker used to build libraries.
29682 LD=$lt_LD_CXX
29683
29684 # How to create reloadable object files.
29685 reload_flag=$lt_reload_flag_CXX
29686 reload_cmds=$lt_reload_cmds_CXX
29687
29688 # Commands used to build an old-style archive.
29689 old_archive_cmds=$lt_old_archive_cmds_CXX
29690
29691 # A language specific compiler.
29692 CC=$lt_compiler_CXX
29693
29694 # Is the compiler the GNU compiler?
29695 with_gcc=$GCC_CXX
29696
29697 # Compiler flag to turn off builtin functions.
29698 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29699
29700 # Additional compiler flags for building library objects.
29701 pic_flag=$lt_lt_prog_compiler_pic_CXX
29702
29703 # How to pass a linker flag through the compiler.
29704 wl=$lt_lt_prog_compiler_wl_CXX
29705
29706 # Compiler flag to prevent dynamic linking.
29707 link_static_flag=$lt_lt_prog_compiler_static_CXX
29708
29709 # Does compiler simultaneously support -c and -o options?
29710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29711
29712 # Whether or not to add -lc for building shared libraries.
29713 build_libtool_need_lc=$archive_cmds_need_lc_CXX
29714
29715 # Whether or not to disallow shared libs when runtime libs are static.
29716 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29717
29718 # Compiler flag to allow reflexive dlopens.
29719 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29720
29721 # Compiler flag to generate shared objects directly from archives.
29722 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29723
29724 # Whether the compiler copes with passing no objects directly.
29725 compiler_needs_object=$lt_compiler_needs_object_CXX
29726
29727 # Create an old-style archive from a shared archive.
29728 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29729
29730 # Create a temporary old-style archive to link instead of a shared archive.
29731 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29732
29733 # Commands used to build a shared archive.
29734 archive_cmds=$lt_archive_cmds_CXX
29735 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29736
29737 # Commands used to build a loadable module if different from building
29738 # a shared archive.
29739 module_cmds=$lt_module_cmds_CXX
29740 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29741
29742 # Whether we are building with GNU ld or not.
29743 with_gnu_ld=$lt_with_gnu_ld_CXX
29744
29745 # Flag that allows shared libraries with undefined symbols to be built.
29746 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29747
29748 # Flag that enforces no undefined symbols.
29749 no_undefined_flag=$lt_no_undefined_flag_CXX
29750
29751 # Flag to hardcode \$libdir into a binary during linking.
29752 # This must work even if \$libdir does not exist
29753 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29754
29755 # Whether we need a single "-rpath" flag with a separated argument.
29756 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29757
29758 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29759 # DIR into the resulting binary.
29760 hardcode_direct=$hardcode_direct_CXX
29761
29762 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29763 # DIR into the resulting binary and the resulting library dependency is
29764 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
29765 # library is relocated.
29766 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29767
29768 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29769 # into the resulting binary.
29770 hardcode_minus_L=$hardcode_minus_L_CXX
29771
29772 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29773 # into the resulting binary.
29774 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29775
29776 # Set to "yes" if building a shared library automatically hardcodes DIR
29777 # into the library and all subsequent libraries and executables linked
29778 # against it.
29779 hardcode_automatic=$hardcode_automatic_CXX
29780
29781 # Set to yes if linker adds runtime paths of dependent libraries
29782 # to runtime path list.
29783 inherit_rpath=$inherit_rpath_CXX
29784
29785 # Whether libtool must link a program against all its dependency libraries.
29786 link_all_deplibs=$link_all_deplibs_CXX
29787
29788 # Set to "yes" if exported symbols are required.
29789 always_export_symbols=$always_export_symbols_CXX
29790
29791 # The commands to list exported symbols.
29792 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29793
29794 # Symbols that should not be listed in the preloaded symbols.
29795 exclude_expsyms=$lt_exclude_expsyms_CXX
29796
29797 # Symbols that must always be exported.
29798 include_expsyms=$lt_include_expsyms_CXX
29799
29800 # Commands necessary for linking programs (against libraries) with templates.
29801 prelink_cmds=$lt_prelink_cmds_CXX
29802
29803 # Commands necessary for finishing linking programs.
29804 postlink_cmds=$lt_postlink_cmds_CXX
29805
29806 # Specify filename containing input files.
29807 file_list_spec=$lt_file_list_spec_CXX
29808
29809 # How to hardcode a shared library path into an executable.
29810 hardcode_action=$hardcode_action_CXX
29811
29812 # The directories searched by this compiler when creating a shared library.
29813 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29814
29815 # Dependencies to place before and after the objects being linked to
29816 # create a shared library.
29817 predep_objects=$lt_predep_objects_CXX
29818 postdep_objects=$lt_postdep_objects_CXX
29819 predeps=$lt_predeps_CXX
29820 postdeps=$lt_postdeps_CXX
29821
29822 # The library search path used internally by the compiler when linking
29823 # a shared library.
29824 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29825
29826 # ### END LIBTOOL TAG CONFIG: CXX
29827 _LT_EOF
29828
29829 ;;
29830 "$ac_stdint_h":C)
29831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
29832 printf "%s\n" "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
29833 ac_stdint=$tmp/_stdint.h
29834
29835 echo "#ifndef" $_ac_stdint_h >$ac_stdint
29836 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
29837 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
29838 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
29839 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
29840 if test "_$ac_cv_header_stdint_t" != "_" ; then
29841 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
29842 echo "#include <stdint.h>" >>$ac_stdint
29843 echo "#endif" >>$ac_stdint
29844 echo "#endif" >>$ac_stdint
29845 else
29846
29847 cat >>$ac_stdint <<STDINT_EOF
29848
29849 /* ................... shortcircuit part ........................... */
29850
29851 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
29852 #include <stdint.h>
29853 #else
29854 #include <stddef.h>
29855
29856 /* .................... configured part ............................ */
29857
29858 STDINT_EOF
29859
29860 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
29861 if test "_$ac_cv_header_stdint_x" != "_" ; then
29862 ac_header="$ac_cv_header_stdint_x"
29863 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
29864 else
29865 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
29866 fi
29867
29868 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
29869 if test "_$ac_cv_header_stdint_o" != "_" ; then
29870 ac_header="$ac_cv_header_stdint_o"
29871 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
29872 else
29873 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
29874 fi
29875
29876 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
29877 if test "_$ac_cv_header_stdint_u" != "_" ; then
29878 ac_header="$ac_cv_header_stdint_u"
29879 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
29880 else
29881 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
29882 fi
29883
29884 echo "" >>$ac_stdint
29885
29886 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
29887 echo "#include <$ac_header>" >>$ac_stdint
29888 echo "" >>$ac_stdint
29889 fi fi
29890
29891 echo "/* which 64bit typedef has been found */" >>$ac_stdint
29892 if test "$ac_cv_type_uint64_t" = "yes" ; then
29893 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
29894 else
29895 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
29896 fi
29897 if test "$ac_cv_type_u_int64_t" = "yes" ; then
29898 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
29899 else
29900 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
29901 fi
29902 echo "" >>$ac_stdint
29903
29904 echo "/* which type model has been detected */" >>$ac_stdint
29905 if test "_$ac_cv_char_data_model" != "_" ; then
29906 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
29907 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
29908 else
29909 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
29910 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
29911 fi
29912 echo "" >>$ac_stdint
29913
29914 echo "/* whether int_least types were detected */" >>$ac_stdint
29915 if test "$ac_cv_type_int_least32_t" = "yes"; then
29916 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
29917 else
29918 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
29919 fi
29920 echo "/* whether int_fast types were detected */" >>$ac_stdint
29921 if test "$ac_cv_type_int_fast32_t" = "yes"; then
29922 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
29923 else
29924 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
29925 fi
29926 echo "/* whether intmax_t type was detected */" >>$ac_stdint
29927 if test "$ac_cv_type_intmax_t" = "yes"; then
29928 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
29929 else
29930 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
29931 fi
29932 echo "" >>$ac_stdint
29933
29934 cat >>$ac_stdint <<STDINT_EOF
29935 /* .................... detections part ............................ */
29936
29937 /* whether we need to define bit specific types from compiler base types */
29938 #ifndef _STDINT_HEADER_INTPTR
29939 #ifndef _STDINT_HEADER_UINT32
29940 #ifndef _STDINT_HEADER_U_INT32
29941 #define _STDINT_NEED_INT_MODEL_T
29942 #else
29943 #define _STDINT_HAVE_U_INT_TYPES
29944 #endif
29945 #endif
29946 #endif
29947
29948 #ifdef _STDINT_HAVE_U_INT_TYPES
29949 #undef _STDINT_NEED_INT_MODEL_T
29950 #endif
29951
29952 #ifdef _STDINT_CHAR_MODEL
29953 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
29954 #ifndef _STDINT_BYTE_MODEL
29955 #define _STDINT_BYTE_MODEL 12
29956 #endif
29957 #endif
29958 #endif
29959
29960 #ifndef _STDINT_HAVE_INT_LEAST32_T
29961 #define _STDINT_NEED_INT_LEAST_T
29962 #endif
29963
29964 #ifndef _STDINT_HAVE_INT_FAST32_T
29965 #define _STDINT_NEED_INT_FAST_T
29966 #endif
29967
29968 #ifndef _STDINT_HEADER_INTPTR
29969 #define _STDINT_NEED_INTPTR_T
29970 #ifndef _STDINT_HAVE_INTMAX_T
29971 #define _STDINT_NEED_INTMAX_T
29972 #endif
29973 #endif
29974
29975
29976 /* .................... definition part ............................ */
29977
29978 /* some system headers have good uint64_t */
29979 #ifndef _HAVE_UINT64_T
29980 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
29981 #define _HAVE_UINT64_T
29982 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
29983 #define _HAVE_UINT64_T
29984 typedef u_int64_t uint64_t;
29985 #endif
29986 #endif
29987
29988 #ifndef _HAVE_UINT64_T
29989 /* .. here are some common heuristics using compiler runtime specifics */
29990 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
29991 #define _HAVE_UINT64_T
29992 #define _HAVE_LONGLONG_UINT64_T
29993 typedef long long int64_t;
29994 typedef unsigned long long uint64_t;
29995
29996 #elif !defined __STRICT_ANSI__
29997 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29998 #define _HAVE_UINT64_T
29999 typedef __int64 int64_t;
30000 typedef unsigned __int64 uint64_t;
30001
30002 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
30003 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
30004 #if !defined _NO_LONGLONG
30005 #define _HAVE_UINT64_T
30006 #define _HAVE_LONGLONG_UINT64_T
30007 typedef long long int64_t;
30008 typedef unsigned long long uint64_t;
30009 #endif
30010
30011 #elif defined __alpha || (defined __mips && defined _ABIN32)
30012 #if !defined _NO_LONGLONG
30013 typedef long int64_t;
30014 typedef unsigned long uint64_t;
30015 #endif
30016 /* compiler/cpu type to define int64_t */
30017 #endif
30018 #endif
30019 #endif
30020
30021 #if defined _STDINT_HAVE_U_INT_TYPES
30022 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
30023 typedef u_int8_t uint8_t;
30024 typedef u_int16_t uint16_t;
30025 typedef u_int32_t uint32_t;
30026
30027 /* glibc compatibility */
30028 #ifndef __int8_t_defined
30029 #define __int8_t_defined
30030 #endif
30031 #endif
30032
30033 #ifdef _STDINT_NEED_INT_MODEL_T
30034 /* we must guess all the basic types. Apart from byte-addressable system, */
30035 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
30036 /* (btw, those nibble-addressable systems are way off, or so we assume) */
30037
30038
30039 #if defined _STDINT_BYTE_MODEL
30040 #if _STDINT_LONG_MODEL+0 == 242
30041 /* 2:4:2 = IP16 = a normal 16-bit system */
30042 typedef unsigned char uint8_t;
30043 typedef unsigned short uint16_t;
30044 typedef unsigned long uint32_t;
30045 #ifndef __int8_t_defined
30046 #define __int8_t_defined
30047 typedef char int8_t;
30048 typedef short int16_t;
30049 typedef long int32_t;
30050 #endif
30051 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
30052 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
30053 /* 4:4:4 = ILP32 = a normal 32-bit system */
30054 typedef unsigned char uint8_t;
30055 typedef unsigned short uint16_t;
30056 typedef unsigned int uint32_t;
30057 #ifndef __int8_t_defined
30058 #define __int8_t_defined
30059 typedef char int8_t;
30060 typedef short int16_t;
30061 typedef int int32_t;
30062 #endif
30063 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
30064 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
30065 /* 4:8:8 = LP64 = a normal 64-bit system */
30066 typedef unsigned char uint8_t;
30067 typedef unsigned short uint16_t;
30068 typedef unsigned int uint32_t;
30069 #ifndef __int8_t_defined
30070 #define __int8_t_defined
30071 typedef char int8_t;
30072 typedef short int16_t;
30073 typedef int int32_t;
30074 #endif
30075 /* this system has a "long" of 64bit */
30076 #ifndef _HAVE_UINT64_T
30077 #define _HAVE_UINT64_T
30078 typedef unsigned long uint64_t;
30079 typedef long int64_t;
30080 #endif
30081 #elif _STDINT_LONG_MODEL+0 == 448
30082 /* LLP64 a 64-bit system derived from a 32-bit system */
30083 typedef unsigned char uint8_t;
30084 typedef unsigned short uint16_t;
30085 typedef unsigned int uint32_t;
30086 #ifndef __int8_t_defined
30087 #define __int8_t_defined
30088 typedef char int8_t;
30089 typedef short int16_t;
30090 typedef int int32_t;
30091 #endif
30092 /* assuming the system has a "long long" */
30093 #ifndef _HAVE_UINT64_T
30094 #define _HAVE_UINT64_T
30095 #define _HAVE_LONGLONG_UINT64_T
30096 typedef unsigned long long uint64_t;
30097 typedef long long int64_t;
30098 #endif
30099 #else
30100 #define _STDINT_NO_INT32_T
30101 #endif
30102 #else
30103 #define _STDINT_NO_INT8_T
30104 #define _STDINT_NO_INT32_T
30105 #endif
30106 #endif
30107
30108 /*
30109 * quote from SunOS-5.8 sys/inttypes.h:
30110 * Use at your own risk. As of February 1996, the committee is squarely
30111 * behind the fixed sized types; the "least" and "fast" types are still being
30112 * discussed. The probability that the "fast" types may be removed before
30113 * the standard is finalized is high enough that they are not currently
30114 * implemented.
30115 */
30116
30117 #if defined _STDINT_NEED_INT_LEAST_T
30118 typedef int8_t int_least8_t;
30119 typedef int16_t int_least16_t;
30120 typedef int32_t int_least32_t;
30121 #ifdef _HAVE_UINT64_T
30122 typedef int64_t int_least64_t;
30123 #endif
30124
30125 typedef uint8_t uint_least8_t;
30126 typedef uint16_t uint_least16_t;
30127 typedef uint32_t uint_least32_t;
30128 #ifdef _HAVE_UINT64_T
30129 typedef uint64_t uint_least64_t;
30130 #endif
30131 /* least types */
30132 #endif
30133
30134 #if defined _STDINT_NEED_INT_FAST_T
30135 typedef int8_t int_fast8_t;
30136 typedef int int_fast16_t;
30137 typedef int32_t int_fast32_t;
30138 #ifdef _HAVE_UINT64_T
30139 typedef int64_t int_fast64_t;
30140 #endif
30141
30142 typedef uint8_t uint_fast8_t;
30143 typedef unsigned uint_fast16_t;
30144 typedef uint32_t uint_fast32_t;
30145 #ifdef _HAVE_UINT64_T
30146 typedef uint64_t uint_fast64_t;
30147 #endif
30148 /* fast types */
30149 #endif
30150
30151 #ifdef _STDINT_NEED_INTMAX_T
30152 #ifdef _HAVE_UINT64_T
30153 typedef int64_t intmax_t;
30154 typedef uint64_t uintmax_t;
30155 #else
30156 typedef long intmax_t;
30157 typedef unsigned long uintmax_t;
30158 #endif
30159 #endif
30160
30161 #ifdef _STDINT_NEED_INTPTR_T
30162 #ifndef __intptr_t_defined
30163 #define __intptr_t_defined
30164 /* we encourage using "long" to store pointer values, never use "int" ! */
30165 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
30166 typedef unsigned int uintptr_t;
30167 typedef int intptr_t;
30168 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
30169 typedef unsigned long uintptr_t;
30170 typedef long intptr_t;
30171 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
30172 typedef uint64_t uintptr_t;
30173 typedef int64_t intptr_t;
30174 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
30175 typedef unsigned long uintptr_t;
30176 typedef long intptr_t;
30177 #endif
30178 #endif
30179 #endif
30180
30181 /* The ISO C99 standard specifies that in C++ implementations these
30182 should only be defined if explicitly requested. */
30183 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
30184 #ifndef UINT32_C
30185
30186 /* Signed. */
30187 # define INT8_C(c) c
30188 # define INT16_C(c) c
30189 # define INT32_C(c) c
30190 # ifdef _HAVE_LONGLONG_UINT64_T
30191 # define INT64_C(c) c ## L
30192 # else
30193 # define INT64_C(c) c ## LL
30194 # endif
30195
30196 /* Unsigned. */
30197 # define UINT8_C(c) c ## U
30198 # define UINT16_C(c) c ## U
30199 # define UINT32_C(c) c ## U
30200 # ifdef _HAVE_LONGLONG_UINT64_T
30201 # define UINT64_C(c) c ## UL
30202 # else
30203 # define UINT64_C(c) c ## ULL
30204 # endif
30205
30206 /* Maximal type. */
30207 # ifdef _HAVE_LONGLONG_UINT64_T
30208 # define INTMAX_C(c) c ## L
30209 # define UINTMAX_C(c) c ## UL
30210 # else
30211 # define INTMAX_C(c) c ## LL
30212 # define UINTMAX_C(c) c ## ULL
30213 # endif
30214
30215 /* literalnumbers */
30216 #endif
30217 #endif
30218
30219 /* These limits are merrily those of a two complement byte-oriented system */
30220
30221 /* Minimum of signed integral types. */
30222 # define INT8_MIN (-128)
30223 # define INT16_MIN (-32767-1)
30224 # define INT32_MIN (-2147483647-1)
30225 #ifndef INT64_MIN
30226 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
30227 #endif
30228 /* Maximum of signed integral types. */
30229 # define INT8_MAX (127)
30230 # define INT16_MAX (32767)
30231 # define INT32_MAX (2147483647)
30232 #ifndef INT64_MAX
30233 # define INT64_MAX (__INT64_C(9223372036854775807))
30234 #endif
30235
30236 /* Maximum of unsigned integral types. */
30237 #ifndef UINT8_MAX
30238 # define UINT8_MAX (255)
30239 #endif
30240 #ifndef UINT16_MAX
30241 # define UINT16_MAX (65535)
30242 #endif
30243 # define UINT32_MAX (4294967295U)
30244 #ifndef UINT64_MAX
30245 # define UINT64_MAX (__UINT64_C(18446744073709551615))
30246 #endif
30247
30248 /* Minimum of signed integral types having a minimum size. */
30249 # define INT_LEAST8_MIN INT8_MIN
30250 # define INT_LEAST16_MIN INT16_MIN
30251 # define INT_LEAST32_MIN INT32_MIN
30252 # define INT_LEAST64_MIN INT64_MIN
30253 /* Maximum of signed integral types having a minimum size. */
30254 # define INT_LEAST8_MAX INT8_MAX
30255 # define INT_LEAST16_MAX INT16_MAX
30256 # define INT_LEAST32_MAX INT32_MAX
30257 # define INT_LEAST64_MAX INT64_MAX
30258
30259 /* Maximum of unsigned integral types having a minimum size. */
30260 # define UINT_LEAST8_MAX UINT8_MAX
30261 # define UINT_LEAST16_MAX UINT16_MAX
30262 # define UINT_LEAST32_MAX UINT32_MAX
30263 # define UINT_LEAST64_MAX UINT64_MAX
30264
30265 /* shortcircuit*/
30266 #endif
30267 /* once */
30268 #endif
30269 #endif
30270 STDINT_EOF
30271 fi
30272 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
30273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
30274 printf "%s\n" "$as_me: $ac_stdint_h is unchanged" >&6;}
30275 else
30276 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
30277 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30278 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
30279 X"$ac_stdint_h" : 'X\(//\)$' \| \
30280 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
30281 printf "%s\n" X"$ac_stdint_h" |
30282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30283 s//\1/
30284 q
30285 }
30286 /^X\(\/\/\)[^/].*/{
30287 s//\1/
30288 q
30289 }
30290 /^X\(\/\/\)$/{
30291 s//\1/
30292 q
30293 }
30294 /^X\(\/\).*/{
30295 s//\1/
30296 q
30297 }
30298 s/.*/./; q'`
30299 as_dir="$ac_dir"; as_fn_mkdir_p
30300 rm -f $ac_stdint_h
30301 mv $ac_stdint $ac_stdint_h
30302 fi
30303 ;;
30304 "$ax_create_pkgconfig_generate":C)
30305 pkgconfig_generate="$ax_create_pkgconfig_generate"
30306 if test ! -f "$pkgconfig_generate.in"
30307 then generate="true"
30308 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
30309 then generate="true"
30310 else generate="false";
30311 fi
30312 if $generate ; then
30313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
30314 printf "%s\n" "$as_me: creating $pkgconfig_generate.in" >&6;}
30315 cat > $pkgconfig_generate.in <<AXEOF
30316 # generated by configure / remove this line to disable regeneration
30317 prefix=@prefix@
30318 exec_prefix=@exec_prefix@
30319 bindir=@bindir@
30320 libdir=@libdir@
30321 datarootdir=@datarootdir@
30322 datadir=@datadir@
30323 sysconfdir=@sysconfdir@
30324 includedir=@includedir@
30325 package=@PACKAGE@
30326 suffix=@suffix@
30327
30328 Name: @PACKAGE_NAME@
30329 Description: @PACKAGE_DESCRIPTION@
30330 Version: @PACKAGE_VERSION@
30331 Requires: @PACKAGE_REQUIRES@
30332 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
30333 Cflags: -I\${includedir} @CPPFLAGS@
30334 AXEOF
30335 fi # DONE generate $pkgconfig_generate.in
30336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
30337 printf "%s\n" "$as_me: creating $pkgconfig_generate" >&6;}
30338 cat >conftest.sed <<AXEOF
30339 s|@prefix@|${pkgconfig_prefix}|
30340 s|@exec_prefix@|${pkgconfig_execprefix}|
30341 s|@bindir@|${pkgconfig_bindir}|
30342 s|@libdir@|${pkgconfig_libdir}|
30343 s|@datarootdir@|${pkgconfig_datarootdir}|
30344 s|@datadir@|${pkgconfig_datadir}|
30345 s|@sysconfdir@|${pkgconfig_sysconfdir}|
30346 s|@includedir@|${pkgconfig_includedir}|
30347 s|@suffix@|${pkgconfig_suffix}|
30348 s|@PACKAGE@|${pkgconfig_package}|
30349 s|@PACKAGE_NAME@|${pkgconfig_libname}|
30350 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
30351 s|@PACKAGE_VERSION@|${pkgconfig_version}|
30352 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
30353 s|@LIBS@|${pkgconfig_libs}|
30354 s|@LDFLAGS@|${pkgconfig_ldflags}|
30355 s|@CPPFLAGS@|${pkgconfig_cppflags}|
30356 AXEOF
30357 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_generate
30358 if test ! -s $pkgconfig_generate ; then
30359 as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
30360 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
30361 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
30362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
30363 printf "%s\n" "$as_me: creating $pkgconfig_uninstalled" >&6;}
30364 cat >conftest.sed <<AXEOF
30365 s|@prefix@|${pkgconfig_prefix}|
30366 s|@exec_prefix@|${pkgconfig_execprefix}|
30367 s|@bindir@|${pkgconfig_bindir}|
30368 s|@libdir@|${pkgconfig_src_libdir}|
30369 s|@datarootdir@|${pkgconfig_datarootdir}|
30370 s|@datadir@|${pkgconfig_datadir}|
30371 s|@sysconfdir@|${pkgconfig_sysconfdir}|
30372 s|@includedir@|${pkgconfig_src_headers}|
30373 s|@suffix@|${pkgconfig_suffix}|
30374 s|@PACKAGE@|${pkgconfig_package}|
30375 s|@PACKAGE_NAME@|${pkgconfig_libname}|
30376 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
30377 s|@PACKAGE_VERSION@|${pkgconfig_version}|
30378 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
30379 s|@LIBS@|${pkgconfig_libs}|
30380 s|@LDFLAGS@|${pkgconfig_ldflags}|
30381 s|@CPPFLAGS@|${pkgconfig_cppflags}|
30382 AXEOF
30383 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
30384 if test ! -s $pkgconfig_uninstalled ; then
30385 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
30386 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
30387 pkgconfig_requires_add=`echo ${pkgconfig_requires}`
30388 if test ".$pkgconfig_requires_add" != "." ; then
30389 pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
30390 else pkgconfig_requires_add=":" ; fi
30391 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
30392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
30393 printf "%s\n" "$as_me: creating $pkgconfig_uninstalled" >&6;}
30394 cat >conftest.sed <<AXEOF
30395 s|@prefix@|\"${pkgconfig_prefix}\"|
30396 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
30397 s|@bindir@|\"${pkgconfig_bindir}\"|
30398 s|@libdir@|\"${pkgconfig_src_libdir}\"|
30399 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
30400 s|@datadir@|\"${pkgconfig_datadir}\"|
30401 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
30402 s|@includedir@|\"${pkgconfig_src_headers}\"|
30403 s|@suffix@|\"${pkgconfig_suffix}\"|
30404 s|@PACKAGE@|\"${pkgconfig_package}\"|
30405 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
30406 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
30407 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
30408 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
30409 s|@LIBS@|\"${pkgconfig_libs}\"|
30410 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
30411 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
30412 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
30413 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
30414 s>Version: *>\\;\\; --modversion|--version) echo >
30415 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
30416 s>Libs: *>\\;\\; --libs) echo >
30417 s>Cflags: *>\\;\\; --cflags) echo >
30418 /--libs)/a\\
30419 $pkgconfig_requires_add
30420 /--cflags)/a\\
30421 $pkgconfig_requires_add\\
30422 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
30423 ;; --uninstalled) exit 0 \\
30424 ;; *) ;; esac done
30425 AXEOF
30426 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
30427 if test ! -s $pkgconfig_uninstalled ; then
30428 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
30429 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
30430 ;;
30431 "bound_test.sh":F) chmod +x bound_test.sh ;;
30432 "codegen_test.sh":F) chmod +x codegen_test.sh ;;
30433 "pip_test.sh":F) chmod +x pip_test.sh ;;
30434 "flow_test.sh":F) chmod +x flow_test.sh ;;
30435 "schedule_test.sh":F) chmod +x schedule_test.sh ;;
30436
30437 esac
30438 done # for ac_tag
30439
30440
30441 as_fn_exit 0
30442 _ACEOF
30443 ac_clean_files=$ac_clean_files_save
30444
30445 test $ac_write_fail = 0 ||
30446 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30447
30448
30449 # configure is writing to config.log, and then calls config.status.
30450 # config.status does its own redirection, appending to config.log.
30451 # Unfortunately, on DOS this fails, as config.log is still kept open
30452 # by configure, so config.status won't be able to write to it; its
30453 # output is simply discarded. So we exec the FD to /dev/null,
30454 # effectively closing config.log, so it can be properly (re)opened and
30455 # appended to by config.status. When coming back to configure, we
30456 # need to make the FD available again.
30457 if test "$no_create" != yes; then
30458 ac_cs_success=:
30459 ac_config_status_args=
30460 test "$silent" = yes &&
30461 ac_config_status_args="$ac_config_status_args --quiet"
30462 exec 5>/dev/null
30463 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30464 exec 5>>config.log
30465 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30466 # would make configure fail if this is the last instruction.
30467 $ac_cs_success || as_fn_exit 1
30468 fi
30469
30470 #
30471 # CONFIG_SUBDIRS section.
30472 #
30473 if test "$no_recursion" != yes; then
30474
30475 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
30476 # so they do not pile up.
30477 ac_sub_configure_args=
30478 ac_prev=
30479 eval "set x $ac_configure_args"
30480 shift
30481 for ac_arg
30482 do
30483 if test -n "$ac_prev"; then
30484 ac_prev=
30485 continue
30486 fi
30487 case $ac_arg in
30488 -cache-file | --cache-file | --cache-fil | --cache-fi \
30489 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
30490 ac_prev=cache_file ;;
30491 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
30492 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
30493 | --c=*)
30494 ;;
30495 --config-cache | -C)
30496 ;;
30497 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
30498 ac_prev=srcdir ;;
30499 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
30500 ;;
30501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30502 ac_prev=prefix ;;
30503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30504 ;;
30505 --disable-option-checking)
30506 ;;
30507 *)
30508 case $ac_arg in
30509 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30510 esac
30511 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
30512 esac
30513 done
30514
30515 # Always prepend --prefix to ensure using the same prefix
30516 # in subdir configurations.
30517 ac_arg="--prefix=$prefix"
30518 case $ac_arg in
30519 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30520 esac
30521 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
30522
30523 # Pass --silent
30524 if test "$silent" = yes; then
30525 ac_sub_configure_args="--silent $ac_sub_configure_args"
30526 fi
30527
30528 # Always prepend --disable-option-checking to silence warnings, since
30529 # different subdirs can have different --enable and --with options.
30530 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
30531
30532 ac_popdir=`pwd`
30533 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
30534
30535 # Do not complain, so a configure script can configure whichever
30536 # parts of a large source tree are present.
30537 test -d "$srcdir/$ac_dir" || continue
30538
30539 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
30540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
30541 printf "%s\n" "$ac_msg" >&6
30542 as_dir="$ac_dir"; as_fn_mkdir_p
30543 ac_builddir=.
30544
30545 case "$ac_dir" in
30546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30547 *)
30548 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
30549 # A ".." for each directory in $ac_dir_suffix.
30550 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30551 case $ac_top_builddir_sub in
30552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30554 esac ;;
30555 esac
30556 ac_abs_top_builddir=$ac_pwd
30557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30558 # for backward compatibility:
30559 ac_top_builddir=$ac_top_build_prefix
30560
30561 case $srcdir in
30562 .) # We are building in place.
30563 ac_srcdir=.
30564 ac_top_srcdir=$ac_top_builddir_sub
30565 ac_abs_top_srcdir=$ac_pwd ;;
30566 [\\/]* | ?:[\\/]* ) # Absolute name.
30567 ac_srcdir=$srcdir$ac_dir_suffix;
30568 ac_top_srcdir=$srcdir
30569 ac_abs_top_srcdir=$srcdir ;;
30570 *) # Relative name.
30571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30572 ac_top_srcdir=$ac_top_build_prefix$srcdir
30573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30574 esac
30575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30576
30577
30578 cd "$ac_dir"
30579
30580 # Check for configure.gnu first; this name is used for a wrapper for
30581 # Metaconfig's "Configure" on case-insensitive file systems.
30582 if test -f "$ac_srcdir/configure.gnu"; then
30583 ac_sub_configure=$ac_srcdir/configure.gnu
30584 elif test -f "$ac_srcdir/configure"; then
30585 ac_sub_configure=$ac_srcdir/configure
30586 else
30587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
30588 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
30589 ac_sub_configure=
30590 fi
30591
30592 # The recursion is here.
30593 if test -n "$ac_sub_configure"; then
30594 # Make the cache file name correct relative to the subdirectory.
30595 case $cache_file in
30596 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
30597 *) # Relative name.
30598 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
30599 esac
30600
30601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
30602 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
30603 # The eval makes quoting arguments work.
30604 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
30605 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
30606 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
30607 fi
30608
30609 cd "$ac_popdir"
30610 done
30611 fi
30612 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30614 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30615 fi
30616
30617