Debian Codegraph @

configure~

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for mysql++ 3.3.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
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 \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: [email protected] about your system, including
280 $0: any error possibly output before this message. Then
281 $0: install a modern shell, or manually run the script
282 $0: under such a shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='mysql++'
623 PACKAGE_TARNAME='mysql++'
624 PACKAGE_VERSION='3.3.0'
625 PACKAGE_STRING='mysql++ 3.3.0'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_subst_vars='LTLIBOBJS
662 LIBOBJS
663 COND_WINDOWS_IMPLIB_1
664 COND_USE_SOVERSOLARIS_1
665 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
666 COND_USE_SOVERSION_0
667 COND_USE_SOVERLINUX_1
668 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
669 COND_USE_SOTWOSYMLINKS_1
670 COND_PLATFORM_OS2_1
671 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
672 COND_PLATFORM_MACOSX_1
673 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
674 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
675 COND_DEPS_TRACKING_1
676 COND_DEPS_TRACKING_0
677 COND_BUILD_release
678 COND_BUILD_debug
679 OBJCXXFLAGS
680 WINDRES
681 BK_DEPS
682 DEPS_TRACKING
683 SONAME_FLAG
684 USE_SOTWOSYMLINKS
685 USE_MACVERSION
686 USE_SOVERCYGWIN
687 USE_SOVERSOLARIS
688 USE_SOVERLINUX
689 USE_SOVERSION
690 WINDOWS_IMPLIB
691 PIC_FLAG
692 SHARED_LD_MODULE_CXX
693 SHARED_LD_MODULE_CC
694 SHARED_LD_CXX
695 SHARED_LD_CC
696 AIX_CXX_LD
697 dlldir
698 DLLPREFIX_MODULE
699 DLLPREFIX
700 LIBEXT
701 LIBPREFIX
702 DLLIMP_SUFFIX
703 SO_SUFFIX_MODULE
704 SO_SUFFIX
705 PLATFORM_BEOS
706 PLATFORM_MACOSX
707 PLATFORM_MACOS
708 PLATFORM_MAC
709 PLATFORM_WIN32
710 PLATFORM_UNIX
711 IF_GNU_MAKE
712 LDFLAGS_GUI
713 INSTALL_DIR
714 AROPTIONS
715 MAKE_SET
716 SET_MAKE
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 HAVE_CXX11
721 CXXCPP
722 ac_ct_CXX
723 CXXFLAGS
724 CXX
725 MYSQL_C_LIB_NAME
726 MYSQL_C_LIB_DIR
727 MYSQL_C_INC_DIR
728 MYSQLPP_EXTRA_LIBS
729 PTHREAD_CFLAGS
730 PTHREAD_LIBS
731 PTHREAD_CC
732 acx_pthread_config
733 MYSQLPP_VERSION_BUGFIX
734 MYSQLPP_VERSION_MINOR
735 MYSQLPP_VERSION_MAJOR
736 LIBTOOL_DEPS
737 LT_SYS_LIBRARY_PATH
738 OTOOL64
739 OTOOL
740 LIPO
741 NMEDIT
742 DSYMUTIL
743 MANIFEST_TOOL
744 AWK
745 RANLIB
746 STRIP
747 ac_ct_AR
748 AR
749 DLLTOOL
750 OBJDUMP
751 LN_S
752 NM
753 ac_ct_DUMPBIN
754 DUMPBIN
755 LD
756 FGREP
757 EGREP
758 GREP
759 SED
760 OBJEXT
761 EXEEXT
762 ac_ct_CC
763 CPPFLAGS
764 LDFLAGS
765 CFLAGS
766 CC
767 LIBTOOL
768 target_os
769 target_vendor
770 target_cpu
771 target
772 host_os
773 host_vendor
774 host_cpu
775 host
776 build_os
777 build_vendor
778 build_cpu
779 build
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 runstatedir
800 localstatedir
801 sharedstatedir
802 sysconfdir
803 datadir
804 datarootdir
805 libexecdir
806 sbindir
807 bindir
808 program_transform_name
809 prefix
810 exec_prefix
811 PACKAGE_URL
812 PACKAGE_BUGREPORT
813 PACKAGE_STRING
814 PACKAGE_VERSION
815 PACKAGE_TARNAME
816 PACKAGE_NAME
817 PATH_SEPARATOR
818 SHELL'
819 ac_subst_files=''
820 ac_user_opts='
821 enable_option_checking
822 enable_shared
823 enable_static
824 with_pic
825 enable_fast_install
826 with_aix_soname
827 with_gnu_ld
828 with_sysroot
829 enable_libtool_lock
830 enable_thread_check
831 with_field_limit
832 with_mysql
833 with_mysql_lib
834 with_mysql_include
835 enable_dependency_tracking
836 '
837 ac_precious_vars='build_alias
838 host_alias
839 target_alias
840 CC
841 CFLAGS
842 LDFLAGS
843 LIBS
844 CPPFLAGS
845 LT_SYS_LIBRARY_PATH
846 CXX
847 CXXFLAGS
848 CCC
849 CXXCPP'
850
851
852 # Initialize some variables set by options.
853 ac_init_help=
854 ac_init_version=false
855 ac_unrecognized_opts=
856 ac_unrecognized_sep=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
873
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 runstatedir='${localstatedir}/run'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
900
901 ac_prev=
902 ac_dashdash=
903 for ac_option
904 do
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
910 fi
911
912 case $ac_option in
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *=) ac_optarg= ;;
915 *) ac_optarg=yes ;;
916 esac
917
918 case $ac_dashdash$ac_option in
919 --)
920 ac_dashdash=yes ;;
921
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
926
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
931
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
938
939 --config-cache | -C)
940 cache_file=config.cache ;;
941
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
946
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
953
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: \`$ac_useropt'"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
969
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
974
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
979
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: \`$ac_useropt'"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -runstatedir | --runstatedir | --runstatedi | --runstated \
1140 | --runstate | --runstat | --runsta | --runst | --runs \
1141 | --run | --ru | --r)
1142 ac_prev=runstatedir ;;
1143 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145 | --run=* | --ru=* | --r=*)
1146 runstatedir=$ac_optarg ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: \`$ac_useropt'"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: \`$ac_useropt'"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir runstatedir
1286 do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 printf "%s\n" X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363 else
1364 ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures mysql++ 3.3.0 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/mysql++]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452 _ACEOF
1453
1454 cat <<\_ACEOF
1455
1456 System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 --target=TARGET configure for building compilers for TARGET [HOST]
1460 _ACEOF
1461 fi
1462
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of mysql++ 3.3.0:";;
1466 esac
1467 cat <<\_ACEOF
1468
1469 Optional Features:
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-static[=PKGS] build static libraries [default=yes]
1475 --enable-fast-install[=PKGS]
1476 optimize for fast installation [default=yes]
1477 --disable-libtool-lock avoid locking (might break parallel builds)
1478 --enable-thread-check Check for threads, and use if available.
1479 --disable-dependency-tracking
1480 don't use dependency tracking even if the compiler
1481 can
1482
1483 Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --with-aix-soname=aix|svr4|both
1489 shared library versioning (aka "SONAME") variant to
1490 provide on AIX, [default=aix].
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1493 compiler's sysroot if not specified).
1494 --with-field-limit=<n> set max template query and SSQLS field count
1495 --with-mysql=<path> root directory path of MySQL/MariaDB installation
1496 --with-mysql-lib=<path> directory path of MySQL/MariaDB library installation
1497 --with-mysql-include=<path> directory path of MySQL/MariaDB header installation
1498
1499 Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
1507 LT_SYS_LIBRARY_PATH
1508 User-defined run-time library search path.
1509 CXX C++ compiler command
1510 CXXFLAGS C++ compiler flags
1511 CXXCPP C++ preprocessor
1512
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1515
1516 Report bugs to <[email protected]>.
1517 _ACEOF
1518 ac_status=$?
1519 fi
1520
1521 if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
1527 ac_builddir=.
1528
1529 case "$ac_dir" in
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *)
1532 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539 esac
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1544
1545 case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 esac
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for configure.gnu first; this name is used for a wrapper for
1563 # Metaconfig's "Configure" on case-insensitive file systems.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579 cat <<\_ACEOF
1580 mysql++ configure 3.3.0
1581 generated by GNU Autoconf 2.71
1582
1583 Copyright (C) 2021 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1586 _ACEOF
1587 exit
1588 fi
1589
1590 ## ------------------------ ##
1591 ## Autoconf initialization. ##
1592 ## ------------------------ ##
1593
1594 # ac_fn_c_try_compile LINENO
1595 # --------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_compile ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext conftest.beam
1601 if { { ac_try="$ac_compile"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 printf "%s\n" "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext
1620 then :
1621 ac_retval=0
1622 else $as_nop
1623 printf "%s\n" "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_compile
1632
1633 # ac_fn_c_try_link LINENO
1634 # -----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_link ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1640 if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 printf "%s\n" "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest$ac_exeext && {
1659 test "$cross_compiling" = yes ||
1660 test -x conftest$ac_exeext
1661 }
1662 then :
1663 ac_retval=0
1664 else $as_nop
1665 printf "%s\n" "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672 # interfere with the next link command; also delete a directory that is
1673 # left behind by Apple's compiler. We do this before executing the actions.
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_link
1679
1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists and can be compiled using the include files in
1683 # INCLUDES, setting the cache variable VAR accordingly.
1684 ac_fn_c_check_header_compile ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 printf %s "checking for $2... " >&6; }
1689 if eval test \${$3+y}
1690 then :
1691 printf %s "(cached) " >&6
1692 else $as_nop
1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h. */
1695 $4
1696 #include <$2>
1697 _ACEOF
1698 if ac_fn_c_try_compile "$LINENO"
1699 then :
1700 eval "$3=yes"
1701 else $as_nop
1702 eval "$3=no"
1703 fi
1704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1705 fi
1706 eval ac_res=\$$3
1707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 printf "%s\n" "$ac_res" >&6; }
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710
1711 } # ac_fn_c_check_header_compile
1712
1713 # ac_fn_c_check_func LINENO FUNC VAR
1714 # ----------------------------------
1715 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1716 ac_fn_c_check_func ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 printf %s "checking for $2... " >&6; }
1721 if eval test \${$3+y}
1722 then :
1723 printf %s "(cached) " >&6
1724 else $as_nop
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1727 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1729 #define $2 innocuous_$2
1730
1731 /* System header to define __stub macros and hopefully few prototypes,
1732 which can conflict with char $2 (); below. */
1733
1734 #include <limits.h>
1735 #undef $2
1736
1737 /* Override any GCC internal prototype to avoid an error.
1738 Use char because int might match the return type of a GCC
1739 builtin and then its argument prototype would still apply. */
1740 #ifdef __cplusplus
1741 extern "C"
1742 #endif
1743 char $2 ();
1744 /* The GNU C library defines this for functions which it implements
1745 to always fail with ENOSYS. Some functions are actually named
1746 something starting with __ and the normal name is an alias. */
1747 #if defined __stub_$2 || defined __stub___$2
1748 choke me
1749 #endif
1750
1751 int
1752 main (void)
1753 {
1754 return $2 ();
1755 ;
1756 return 0;
1757 }
1758 _ACEOF
1759 if ac_fn_c_try_link "$LINENO"
1760 then :
1761 eval "$3=yes"
1762 else $as_nop
1763 eval "$3=no"
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1766 conftest$ac_exeext conftest.$ac_ext
1767 fi
1768 eval ac_res=\$$3
1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 printf "%s\n" "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773 } # ac_fn_c_check_func
1774
1775 # ac_fn_c_try_run LINENO
1776 # ----------------------
1777 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1778 # executables *can* be run.
1779 ac_fn_c_try_run ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 printf "%s\n" "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>&5
1790 ac_status=$?
1791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1793 { { case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 printf "%s\n" "$ac_try_echo"; } >&5
1799 (eval "$ac_try") 2>&5
1800 ac_status=$?
1801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; }; }
1803 then :
1804 ac_retval=0
1805 else $as_nop
1806 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1807 printf "%s\n" "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=$ac_status
1811 fi
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1815
1816 } # ac_fn_c_try_run
1817
1818 # ac_fn_cxx_try_compile LINENO
1819 # ----------------------------
1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_cxx_try_compile ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 rm -f conftest.$ac_objext conftest.beam
1825 if { { ac_try="$ac_compile"
1826 case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 printf "%s\n" "$ac_try_echo"; } >&5
1832 (eval "$ac_compile") 2>conftest.err
1833 ac_status=$?
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1838 fi
1839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_cxx_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest.$ac_objext
1844 then :
1845 ac_retval=0
1846 else $as_nop
1847 printf "%s\n" "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=1
1851 fi
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1854
1855 } # ac_fn_cxx_try_compile
1856
1857 # ac_fn_cxx_try_cpp LINENO
1858 # ------------------------
1859 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_cxx_try_cpp ()
1861 {
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_cpp conftest.$ac_ext"
1864 case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 printf "%s\n" "$ac_try_echo"; } >&5
1870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1871 ac_status=$?
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1876 fi
1877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } > conftest.i && {
1879 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1880 test ! -s conftest.err
1881 }
1882 then :
1883 ac_retval=0
1884 else $as_nop
1885 printf "%s\n" "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1887
1888 ac_retval=1
1889 fi
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
1892
1893 } # ac_fn_cxx_try_cpp
1894
1895 # ac_fn_cxx_try_link LINENO
1896 # -------------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_cxx_try_link ()
1899 {
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1902 if { { ac_try="$ac_link"
1903 case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 printf "%s\n" "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>conftest.err
1910 ac_status=$?
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1915 fi
1916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_cxx_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest$ac_exeext && {
1921 test "$cross_compiling" = yes ||
1922 test -x conftest$ac_exeext
1923 }
1924 then :
1925 ac_retval=0
1926 else $as_nop
1927 printf "%s\n" "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1929
1930 ac_retval=1
1931 fi
1932 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1933 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1934 # interfere with the next link command; also delete a directory that is
1935 # left behind by Apple's compiler. We do this before executing the actions.
1936 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 as_fn_set_status $ac_retval
1939
1940 } # ac_fn_cxx_try_link
1941 ac_configure_args_raw=
1942 for ac_arg
1943 do
1944 case $ac_arg in
1945 *\'*)
1946 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1947 esac
1948 as_fn_append ac_configure_args_raw " '$ac_arg'"
1949 done
1950
1951 case $ac_configure_args_raw in
1952 *$as_nl*)
1953 ac_safe_unquote= ;;
1954 *)
1955 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1956 ac_unsafe_a="$ac_unsafe_z#~"
1957 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1958 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1959 esac
1960
1961 cat >config.log <<_ACEOF
1962 This file contains any messages produced by compilers while
1963 running configure, to aid debugging if configure makes a mistake.
1964
1965 It was created by mysql++ $as_me 3.3.0, which was
1966 generated by GNU Autoconf 2.71. Invocation command line was
1967
1968 $ $0$ac_configure_args_raw
1969
1970 _ACEOF
1971 exec 5>>config.log
1972 {
1973 cat <<_ASUNAME
1974 ## --------- ##
1975 ## Platform. ##
1976 ## --------- ##
1977
1978 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1979 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1980 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1981 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1982 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1983
1984 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1985 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1986
1987 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1988 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1989 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1990 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1991 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1992 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1993 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1994
1995 _ASUNAME
1996
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000 IFS=$as_save_IFS
2001 case $as_dir in #(((
2002 '') as_dir=./ ;;
2003 */) ;;
2004 *) as_dir=$as_dir/ ;;
2005 esac
2006 printf "%s\n" "PATH: $as_dir"
2007 done
2008 IFS=$as_save_IFS
2009
2010 } >&5
2011
2012 cat >&5 <<_ACEOF
2013
2014
2015 ## ----------- ##
2016 ## Core tests. ##
2017 ## ----------- ##
2018
2019 _ACEOF
2020
2021
2022 # Keep a trace of the command line.
2023 # Strip out --no-create and --no-recursion so they do not pile up.
2024 # Strip out --silent because we don't want to record it for future runs.
2025 # Also quote any args containing shell meta-characters.
2026 # Make two passes to allow for proper duplicate-argument suppression.
2027 ac_configure_args=
2028 ac_configure_args0=
2029 ac_configure_args1=
2030 ac_must_keep_next=false
2031 for ac_pass in 1 2
2032 do
2033 for ac_arg
2034 do
2035 case $ac_arg in
2036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2038 | -silent | --silent | --silen | --sile | --sil)
2039 continue ;;
2040 *\'*)
2041 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 esac
2043 case $ac_pass in
2044 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2045 2)
2046 as_fn_append ac_configure_args1 " '$ac_arg'"
2047 if test $ac_must_keep_next = true; then
2048 ac_must_keep_next=false # Got value, back to normal.
2049 else
2050 case $ac_arg in
2051 *=* | --config-cache | -C | -disable-* | --disable-* \
2052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2054 | -with-* | --with-* | -without-* | --without-* | --x)
2055 case "$ac_configure_args0 " in
2056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2057 esac
2058 ;;
2059 -* ) ac_must_keep_next=true ;;
2060 esac
2061 fi
2062 as_fn_append ac_configure_args " '$ac_arg'"
2063 ;;
2064 esac
2065 done
2066 done
2067 { ac_configure_args0=; unset ac_configure_args0;}
2068 { ac_configure_args1=; unset ac_configure_args1;}
2069
2070 # When interrupted or exit'd, cleanup temporary files, and complete
2071 # config.log. We remove comments because anyway the quotes in there
2072 # would cause problems or look ugly.
2073 # WARNING: Use '\'' to represent an apostrophe within the trap.
2074 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2075 trap 'exit_status=$?
2076 # Sanitize IFS.
2077 IFS=" "" $as_nl"
2078 # Save into config.log some information that might help in debugging.
2079 {
2080 echo
2081
2082 printf "%s\n" "## ---------------- ##
2083 ## Cache variables. ##
2084 ## ---------------- ##"
2085 echo
2086 # The following way of writing the cache mishandles newlines in values,
2087 (
2088 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2089 eval ac_val=\$$ac_var
2090 case $ac_val in #(
2091 *${as_nl}*)
2092 case $ac_var in #(
2093 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2094 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2095 esac
2096 case $ac_var in #(
2097 _ | IFS | as_nl) ;; #(
2098 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2099 *) { eval $ac_var=; unset $ac_var;} ;;
2100 esac ;;
2101 esac
2102 done
2103 (set) 2>&1 |
2104 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2105 *${as_nl}ac_space=\ *)
2106 sed -n \
2107 "s/'\''/'\''\\\\'\'''\''/g;
2108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2109 ;; #(
2110 *)
2111 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2112 ;;
2113 esac |
2114 sort
2115 )
2116 echo
2117
2118 printf "%s\n" "## ----------------- ##
2119 ## Output variables. ##
2120 ## ----------------- ##"
2121 echo
2122 for ac_var in $ac_subst_vars
2123 do
2124 eval ac_val=\$$ac_var
2125 case $ac_val in
2126 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 esac
2128 printf "%s\n" "$ac_var='\''$ac_val'\''"
2129 done | sort
2130 echo
2131
2132 if test -n "$ac_subst_files"; then
2133 printf "%s\n" "## ------------------- ##
2134 ## File substitutions. ##
2135 ## ------------------- ##"
2136 echo
2137 for ac_var in $ac_subst_files
2138 do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in
2141 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 esac
2143 printf "%s\n" "$ac_var='\''$ac_val'\''"
2144 done | sort
2145 echo
2146 fi
2147
2148 if test -s confdefs.h; then
2149 printf "%s\n" "## ----------- ##
2150 ## confdefs.h. ##
2151 ## ----------- ##"
2152 echo
2153 cat confdefs.h
2154 echo
2155 fi
2156 test "$ac_signal" != 0 &&
2157 printf "%s\n" "$as_me: caught signal $ac_signal"
2158 printf "%s\n" "$as_me: exit $exit_status"
2159 } >&5
2160 rm -f core *.core core.conftest.* &&
2161 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2162 exit $exit_status
2163 ' 0
2164 for ac_signal in 1 2 13 15; do
2165 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2166 done
2167 ac_signal=0
2168
2169 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2170 rm -f -r conftest* confdefs.h
2171
2172 printf "%s\n" "/* confdefs.h */" > confdefs.h
2173
2174 # Predefined preprocessor variables.
2175
2176 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2177
2178 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2179
2180 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2181
2182 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2183
2184 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2185
2186 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2187
2188
2189 # Let the site file select an alternate cache file if it wants to.
2190 # Prefer an explicitly selected file to automatically selected ones.
2191 if test -n "$CONFIG_SITE"; then
2192 ac_site_files="$CONFIG_SITE"
2193 elif test "x$prefix" != xNONE; then
2194 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2195 else
2196 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2197 fi
2198
2199 for ac_site_file in $ac_site_files
2200 do
2201 case $ac_site_file in #(
2202 */*) :
2203 ;; #(
2204 *) :
2205 ac_site_file=./$ac_site_file ;;
2206 esac
2207 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2209 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2210 sed 's/^/| /' "$ac_site_file" >&5
2211 . "$ac_site_file" \
2212 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2214 as_fn_error $? "failed to load site script $ac_site_file
2215 See \`config.log' for more details" "$LINENO" 5; }
2216 fi
2217 done
2218
2219 if test -r "$cache_file"; then
2220 # Some versions of bash will fail to source /dev/null (special files
2221 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2222 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2224 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2225 case $cache_file in
2226 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2227 *) . "./$cache_file";;
2228 esac
2229 fi
2230 else
2231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2232 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2233 >$cache_file
2234 fi
2235
2236 # Test code for whether the C compiler supports C89 (global declarations)
2237 ac_c_conftest_c89_globals='
2238 /* Does the compiler advertise C89 conformance?
2239 Do not test the value of __STDC__, because some compilers set it to 0
2240 while being otherwise adequately conformant. */
2241 #if !defined __STDC__
2242 # error "Compiler does not advertise C89 conformance"
2243 #endif
2244
2245 #include <stddef.h>
2246 #include <stdarg.h>
2247 struct stat;
2248 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2249 struct buf { int x; };
2250 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2251 static char *e (p, i)
2252 char **p;
2253 int i;
2254 {
2255 return p[i];
2256 }
2257 static char *f (char * (*g) (char **, int), char **p, ...)
2258 {
2259 char *s;
2260 va_list v;
2261 va_start (v,p);
2262 s = g (p, va_arg (v,int));
2263 va_end (v);
2264 return s;
2265 }
2266
2267 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2268 function prototypes and stuff, but not \xHH hex character constants.
2269 These do not provoke an error unfortunately, instead are silently treated
2270 as an "x". The following induces an error, until -std is added to get
2271 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2272 array size at least. It is necessary to write \x00 == 0 to get something
2273 that is true only with -std. */
2274 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2275
2276 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2277 inside strings and character constants. */
2278 #define FOO(x) '\''x'\''
2279 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2280
2281 int test (int i, double x);
2282 struct s1 {int (*f) (int a);};
2283 struct s2 {int (*f) (double a);};
2284 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2285 int, int);'
2286
2287 # Test code for whether the C compiler supports C89 (body of main).
2288 ac_c_conftest_c89_main='
2289 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2290 '
2291
2292 # Test code for whether the C compiler supports C99 (global declarations)
2293 ac_c_conftest_c99_globals='
2294 // Does the compiler advertise C99 conformance?
2295 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2296 # error "Compiler does not advertise C99 conformance"
2297 #endif
2298
2299 #include <stdbool.h>
2300 extern int puts (const char *);
2301 extern int printf (const char *, ...);
2302 extern int dprintf (int, const char *, ...);
2303 extern void *malloc (size_t);
2304
2305 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2306 // dprintf is used instead of fprintf to avoid needing to declare
2307 // FILE and stderr.
2308 #define debug(...) dprintf (2, __VA_ARGS__)
2309 #define showlist(...) puts (#__VA_ARGS__)
2310 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2311 static void
2312 test_varargs_macros (void)
2313 {
2314 int x = 1234;
2315 int y = 5678;
2316 debug ("Flag");
2317 debug ("X = %d\n", x);
2318 showlist (The first, second, and third items.);
2319 report (x>y, "x is %d but y is %d", x, y);
2320 }
2321
2322 // Check long long types.
2323 #define BIG64 18446744073709551615ull
2324 #define BIG32 4294967295ul
2325 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2326 #if !BIG_OK
2327 #error "your preprocessor is broken"
2328 #endif
2329 #if BIG_OK
2330 #else
2331 #error "your preprocessor is broken"
2332 #endif
2333 static long long int bignum = -9223372036854775807LL;
2334 static unsigned long long int ubignum = BIG64;
2335
2336 struct incomplete_array
2337 {
2338 int datasize;
2339 double data[];
2340 };
2341
2342 struct named_init {
2343 int number;
2344 const wchar_t *name;
2345 double average;
2346 };
2347
2348 typedef const char *ccp;
2349
2350 static inline int
2351 test_restrict (ccp restrict text)
2352 {
2353 // See if C++-style comments work.
2354 // Iterate through items via the restricted pointer.
2355 // Also check for declarations in for loops.
2356 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2357 continue;
2358 return 0;
2359 }
2360
2361 // Check varargs and va_copy.
2362 static bool
2363 test_varargs (const char *format, ...)
2364 {
2365 va_list args;
2366 va_start (args, format);
2367 va_list args_copy;
2368 va_copy (args_copy, args);
2369
2370 const char *str = "";
2371 int number = 0;
2372 float fnumber = 0;
2373
2374 while (*format)
2375 {
2376 switch (*format++)
2377 {
2378 case '\''s'\'': // string
2379 str = va_arg (args_copy, const char *);
2380 break;
2381 case '\''d'\'': // int
2382 number = va_arg (args_copy, int);
2383 break;
2384 case '\''f'\'': // float
2385 fnumber = va_arg (args_copy, double);
2386 break;
2387 default:
2388 break;
2389 }
2390 }
2391 va_end (args_copy);
2392 va_end (args);
2393
2394 return *str && number && fnumber;
2395 }
2396 '
2397
2398 # Test code for whether the C compiler supports C99 (body of main).
2399 ac_c_conftest_c99_main='
2400 // Check bool.
2401 _Bool success = false;
2402 success |= (argc != 0);
2403
2404 // Check restrict.
2405 if (test_restrict ("String literal") == 0)
2406 success = true;
2407 char *restrict newvar = "Another string";
2408
2409 // Check varargs.
2410 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2411 test_varargs_macros ();
2412
2413 // Check flexible array members.
2414 struct incomplete_array *ia =
2415 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2416 ia->datasize = 10;
2417 for (int i = 0; i < ia->datasize; ++i)
2418 ia->data[i] = i * 1.234;
2419
2420 // Check named initializers.
2421 struct named_init ni = {
2422 .number = 34,
2423 .name = L"Test wide string",
2424 .average = 543.34343,
2425 };
2426
2427 ni.number = 58;
2428
2429 int dynamic_array[ni.number];
2430 dynamic_array[0] = argv[0][0];
2431 dynamic_array[ni.number - 1] = 543;
2432
2433 // work around unused variable warnings
2434 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2435 || dynamic_array[ni.number - 1] != 543);
2436 '
2437
2438 # Test code for whether the C compiler supports C11 (global declarations)
2439 ac_c_conftest_c11_globals='
2440 // Does the compiler advertise C11 conformance?
2441 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2442 # error "Compiler does not advertise C11 conformance"
2443 #endif
2444
2445 // Check _Alignas.
2446 char _Alignas (double) aligned_as_double;
2447 char _Alignas (0) no_special_alignment;
2448 extern char aligned_as_int;
2449 char _Alignas (0) _Alignas (int) aligned_as_int;
2450
2451 // Check _Alignof.
2452 enum
2453 {
2454 int_alignment = _Alignof (int),
2455 int_array_alignment = _Alignof (int[100]),
2456 char_alignment = _Alignof (char)
2457 };
2458 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2459
2460 // Check _Noreturn.
2461 int _Noreturn does_not_return (void) { for (;;) continue; }
2462
2463 // Check _Static_assert.
2464 struct test_static_assert
2465 {
2466 int x;
2467 _Static_assert (sizeof (int) <= sizeof (long int),
2468 "_Static_assert does not work in struct");
2469 long int y;
2470 };
2471
2472 // Check UTF-8 literals.
2473 #define u8 syntax error!
2474 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2475
2476 // Check duplicate typedefs.
2477 typedef long *long_ptr;
2478 typedef long int *long_ptr;
2479 typedef long_ptr long_ptr;
2480
2481 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2482 struct anonymous
2483 {
2484 union {
2485 struct { int i; int j; };
2486 struct { int k; long int l; } w;
2487 };
2488 int m;
2489 } v1;
2490 '
2491
2492 # Test code for whether the C compiler supports C11 (body of main).
2493 ac_c_conftest_c11_main='
2494 _Static_assert ((offsetof (struct anonymous, i)
2495 == offsetof (struct anonymous, w.k)),
2496 "Anonymous union alignment botch");
2497 v1.i = 2;
2498 v1.w.k = 5;
2499 ok |= v1.i != 5;
2500 '
2501
2502 # Test code for whether the C compiler supports C11 (complete).
2503 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2504 ${ac_c_conftest_c99_globals}
2505 ${ac_c_conftest_c11_globals}
2506
2507 int
2508 main (int argc, char **argv)
2509 {
2510 int ok = 0;
2511 ${ac_c_conftest_c89_main}
2512 ${ac_c_conftest_c99_main}
2513 ${ac_c_conftest_c11_main}
2514 return ok;
2515 }
2516 "
2517
2518 # Test code for whether the C compiler supports C99 (complete).
2519 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2520 ${ac_c_conftest_c99_globals}
2521
2522 int
2523 main (int argc, char **argv)
2524 {
2525 int ok = 0;
2526 ${ac_c_conftest_c89_main}
2527 ${ac_c_conftest_c99_main}
2528 return ok;
2529 }
2530 "
2531
2532 # Test code for whether the C compiler supports C89 (complete).
2533 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2534
2535 int
2536 main (int argc, char **argv)
2537 {
2538 int ok = 0;
2539 ${ac_c_conftest_c89_main}
2540 return ok;
2541 }
2542 "
2543
2544 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2545 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2546 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2547 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2548 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2549 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2550 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2551 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2552 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2553 # Test code for whether the C++ compiler supports C++98 (global declarations)
2554 ac_cxx_conftest_cxx98_globals='
2555 // Does the compiler advertise C++98 conformance?
2556 #if !defined __cplusplus || __cplusplus < 199711L
2557 # error "Compiler does not advertise C++98 conformance"
2558 #endif
2559
2560 // These inclusions are to reject old compilers that
2561 // lack the unsuffixed header files.
2562 #include <cstdlib>
2563 #include <exception>
2564
2565 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2566 extern void assert (int);
2567 namespace std {
2568 extern int strcmp (const char *, const char *);
2569 }
2570
2571 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2572 using std::exception;
2573 using std::strcmp;
2574
2575 namespace {
2576
2577 void test_exception_syntax()
2578 {
2579 try {
2580 throw "test";
2581 } catch (const char *s) {
2582 // Extra parentheses suppress a warning when building autoconf itself,
2583 // due to lint rules shared with more typical C programs.
2584 assert (!(strcmp) (s, "test"));
2585 }
2586 }
2587
2588 template <typename T> struct test_template
2589 {
2590 T const val;
2591 explicit test_template(T t) : val(t) {}
2592 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2593 };
2594
2595 } // anonymous namespace
2596 '
2597
2598 # Test code for whether the C++ compiler supports C++98 (body of main)
2599 ac_cxx_conftest_cxx98_main='
2600 assert (argc);
2601 assert (! argv[0]);
2602 {
2603 test_exception_syntax ();
2604 test_template<double> tt (2.0);
2605 assert (tt.add (4) == 6.0);
2606 assert (true && !false);
2607 }
2608 '
2609
2610 # Test code for whether the C++ compiler supports C++11 (global declarations)
2611 ac_cxx_conftest_cxx11_globals='
2612 // Does the compiler advertise C++ 2011 conformance?
2613 #if !defined __cplusplus || __cplusplus < 201103L
2614 # error "Compiler does not advertise C++11 conformance"
2615 #endif
2616
2617 namespace cxx11test
2618 {
2619 constexpr int get_val() { return 20; }
2620
2621 struct testinit
2622 {
2623 int i;
2624 double d;
2625 };
2626
2627 class delegate
2628 {
2629 public:
2630 delegate(int n) : n(n) {}
2631 delegate(): delegate(2354) {}
2632
2633 virtual int getval() { return this->n; };
2634 protected:
2635 int n;
2636 };
2637
2638 class overridden : public delegate
2639 {
2640 public:
2641 overridden(int n): delegate(n) {}
2642 virtual int getval() override final { return this->n * 2; }
2643 };
2644
2645 class nocopy
2646 {
2647 public:
2648 nocopy(int i): i(i) {}
2649 nocopy() = default;
2650 nocopy(const nocopy&) = delete;
2651 nocopy & operator=(const nocopy&) = delete;
2652 private:
2653 int i;
2654 };
2655
2656 // for testing lambda expressions
2657 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2658 {
2659 return f(v);
2660 }
2661
2662 // for testing variadic templates and trailing return types
2663 template <typename V> auto sum(V first) -> V
2664 {
2665 return first;
2666 }
2667 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2668 {
2669 return first + sum(rest...);
2670 }
2671 }
2672 '
2673
2674 # Test code for whether the C++ compiler supports C++11 (body of main)
2675 ac_cxx_conftest_cxx11_main='
2676 {
2677 // Test auto and decltype
2678 auto a1 = 6538;
2679 auto a2 = 48573953.4;
2680 auto a3 = "String literal";
2681
2682 int total = 0;
2683 for (auto i = a3; *i; ++i) { total += *i; }
2684
2685 decltype(a2) a4 = 34895.034;
2686 }
2687 {
2688 // Test constexpr
2689 short sa[cxx11test::get_val()] = { 0 };
2690 }
2691 {
2692 // Test initializer lists
2693 cxx11test::testinit il = { 4323, 435234.23544 };
2694 }
2695 {
2696 // Test range-based for
2697 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2698 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2699 for (auto &x : array) { x += 23; }
2700 }
2701 {
2702 // Test lambda expressions
2703 using cxx11test::eval;
2704 assert (eval ([](int x) { return x*2; }, 21) == 42);
2705 double d = 2.0;
2706 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2707 assert (d == 5.0);
2708 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2709 assert (d == 5.0);
2710 }
2711 {
2712 // Test use of variadic templates
2713 using cxx11test::sum;
2714 auto a = sum(1);
2715 auto b = sum(1, 2);
2716 auto c = sum(1.0, 2.0, 3.0);
2717 }
2718 {
2719 // Test constructor delegation
2720 cxx11test::delegate d1;
2721 cxx11test::delegate d2();
2722 cxx11test::delegate d3(45);
2723 }
2724 {
2725 // Test override and final
2726 cxx11test::overridden o1(55464);
2727 }
2728 {
2729 // Test nullptr
2730 char *c = nullptr;
2731 }
2732 {
2733 // Test template brackets
2734 test_template<::test_template<int>> v(test_template<int>(12));
2735 }
2736 {
2737 // Unicode literals
2738 char const *utf8 = u8"UTF-8 string \u2500";
2739 char16_t const *utf16 = u"UTF-8 string \u2500";
2740 char32_t const *utf32 = U"UTF-32 string \u2500";
2741 }
2742 '
2743
2744 # Test code for whether the C compiler supports C++11 (complete).
2745 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2746 ${ac_cxx_conftest_cxx11_globals}
2747
2748 int
2749 main (int argc, char **argv)
2750 {
2751 int ok = 0;
2752 ${ac_cxx_conftest_cxx98_main}
2753 ${ac_cxx_conftest_cxx11_main}
2754 return ok;
2755 }
2756 "
2757
2758 # Test code for whether the C compiler supports C++98 (complete).
2759 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2760 int
2761 main (int argc, char **argv)
2762 {
2763 int ok = 0;
2764 ${ac_cxx_conftest_cxx98_main}
2765 return ok;
2766 }
2767 "
2768
2769
2770 # Auxiliary files required by this configure script.
2771 ac_aux_files="install-sh ltmain.sh config.guess config.sub"
2772
2773 # Locations in which to look for auxiliary files.
2774 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2775
2776 # Search for a directory containing all of the required auxiliary files,
2777 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2778 # If we don't find one directory that contains all the files we need,
2779 # we report the set of missing files from the *first* directory in
2780 # $ac_aux_dir_candidates and give up.
2781 ac_missing_aux_files=""
2782 ac_first_candidate=:
2783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 as_found=false
2786 for as_dir in $ac_aux_dir_candidates
2787 do
2788 IFS=$as_save_IFS
2789 case $as_dir in #(((
2790 '') as_dir=./ ;;
2791 */) ;;
2792 *) as_dir=$as_dir/ ;;
2793 esac
2794 as_found=:
2795
2796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2797 ac_aux_dir_found=yes
2798 ac_install_sh=
2799 for ac_aux in $ac_aux_files
2800 do
2801 # As a special case, if "install-sh" is required, that requirement
2802 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2803 # and $ac_install_sh is set appropriately for whichever one is found.
2804 if test x"$ac_aux" = x"install-sh"
2805 then
2806 if test -f "${as_dir}install-sh"; then
2807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2808 ac_install_sh="${as_dir}install-sh -c"
2809 elif test -f "${as_dir}install.sh"; then
2810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2811 ac_install_sh="${as_dir}install.sh -c"
2812 elif test -f "${as_dir}shtool"; then
2813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2814 ac_install_sh="${as_dir}shtool install -c"
2815 else
2816 ac_aux_dir_found=no
2817 if $ac_first_candidate; then
2818 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2819 else
2820 break
2821 fi
2822 fi
2823 else
2824 if test -f "${as_dir}${ac_aux}"; then
2825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2826 else
2827 ac_aux_dir_found=no
2828 if $ac_first_candidate; then
2829 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2830 else
2831 break
2832 fi
2833 fi
2834 fi
2835 done
2836 if test "$ac_aux_dir_found" = yes; then
2837 ac_aux_dir="$as_dir"
2838 break
2839 fi
2840 ac_first_candidate=false
2841
2842 as_found=false
2843 done
2844 IFS=$as_save_IFS
2845 if $as_found
2846 then :
2847
2848 else $as_nop
2849 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2850 fi
2851
2852
2853 # These three variables are undocumented and unsupported,
2854 # and are intended to be withdrawn in a future Autoconf release.
2855 # They can cause serious problems if a builder's source tree is in a directory
2856 # whose full name contains unusual characters.
2857 if test -f "${ac_aux_dir}config.guess"; then
2858 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2859 fi
2860 if test -f "${ac_aux_dir}config.sub"; then
2861 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2862 fi
2863 if test -f "$ac_aux_dir/configure"; then
2864 ac_configure="$SHELL ${ac_aux_dir}configure"
2865 fi
2866
2867 # Check that the precious variables saved in the cache have kept the same
2868 # value.
2869 ac_cache_corrupted=false
2870 for ac_var in $ac_precious_vars; do
2871 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2872 eval ac_new_set=\$ac_env_${ac_var}_set
2873 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2874 eval ac_new_val=\$ac_env_${ac_var}_value
2875 case $ac_old_set,$ac_new_set in
2876 set,)
2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2878 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2879 ac_cache_corrupted=: ;;
2880 ,set)
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2882 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2883 ac_cache_corrupted=: ;;
2884 ,);;
2885 *)
2886 if test "x$ac_old_val" != "x$ac_new_val"; then
2887 # differences in whitespace do not lead to failure.
2888 ac_old_val_w=`echo x $ac_old_val`
2889 ac_new_val_w=`echo x $ac_new_val`
2890 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2892 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2893 ac_cache_corrupted=:
2894 else
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2896 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2897 eval $ac_var=\$ac_old_val
2898 fi
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2900 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2902 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2903 fi;;
2904 esac
2905 # Pass precious variables to config.status.
2906 if test "$ac_new_set" = set; then
2907 case $ac_new_val in
2908 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2909 *) ac_arg=$ac_var=$ac_new_val ;;
2910 esac
2911 case " $ac_configure_args " in
2912 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2913 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2914 esac
2915 fi
2916 done
2917 if $ac_cache_corrupted; then
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2919 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2921 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2922 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2923 and start over" "$LINENO" 5
2924 fi
2925 ## -------------------- ##
2926 ## Main body of script. ##
2927 ## -------------------- ##
2928
2929 ac_ext=c
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934
2935
2936 ac_config_headers="$ac_config_headers config.h"
2937
2938
2939
2940
2941
2942 # Make sure we can run config.sub.
2943 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2944 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2945
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2947 printf %s "checking build system type... " >&6; }
2948 if test ${ac_cv_build+y}
2949 then :
2950 printf %s "(cached) " >&6
2951 else $as_nop
2952 ac_build_alias=$build_alias
2953 test "x$ac_build_alias" = x &&
2954 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2955 test "x$ac_build_alias" = x &&
2956 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2957 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2958 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2959
2960 fi
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2962 printf "%s\n" "$ac_cv_build" >&6; }
2963 case $ac_cv_build in
2964 *-*-*) ;;
2965 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2966 esac
2967 build=$ac_cv_build
2968 ac_save_IFS=$IFS; IFS='-'
2969 set x $ac_cv_build
2970 shift
2971 build_cpu=$1
2972 build_vendor=$2
2973 shift; shift
2974 # Remember, the first character of IFS is used to create $*,
2975 # except with old shells:
2976 build_os=$*
2977 IFS=$ac_save_IFS
2978 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2979
2980
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2982 printf %s "checking host system type... " >&6; }
2983 if test ${ac_cv_host+y}
2984 then :
2985 printf %s "(cached) " >&6
2986 else $as_nop
2987 if test "x$host_alias" = x; then
2988 ac_cv_host=$ac_cv_build
2989 else
2990 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2991 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2992 fi
2993
2994 fi
2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2996 printf "%s\n" "$ac_cv_host" >&6; }
2997 case $ac_cv_host in
2998 *-*-*) ;;
2999 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3000 esac
3001 host=$ac_cv_host
3002 ac_save_IFS=$IFS; IFS='-'
3003 set x $ac_cv_host
3004 shift
3005 host_cpu=$1
3006 host_vendor=$2
3007 shift; shift
3008 # Remember, the first character of IFS is used to create $*,
3009 # except with old shells:
3010 host_os=$*
3011 IFS=$ac_save_IFS
3012 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3013
3014
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3016 printf %s "checking target system type... " >&6; }
3017 if test ${ac_cv_target+y}
3018 then :
3019 printf %s "(cached) " >&6
3020 else $as_nop
3021 if test "x$target_alias" = x; then
3022 ac_cv_target=$ac_cv_host
3023 else
3024 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3025 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3026 fi
3027
3028 fi
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3030 printf "%s\n" "$ac_cv_target" >&6; }
3031 case $ac_cv_target in
3032 *-*-*) ;;
3033 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3034 esac
3035 target=$ac_cv_target
3036 ac_save_IFS=$IFS; IFS='-'
3037 set x $ac_cv_target
3038 shift
3039 target_cpu=$1
3040 target_vendor=$2
3041 shift; shift
3042 # Remember, the first character of IFS is used to create $*,
3043 # except with old shells:
3044 target_os=$*
3045 IFS=$ac_save_IFS
3046 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3047
3048
3049 # The aliases save the names the user supplied, while $host etc.
3050 # will get canonicalized.
3051 test -n "$target_alias" &&
3052 test "$program_prefix$program_suffix$program_transform_name" = \
3053 NONENONEs,x,x, &&
3054 program_prefix=${target_alias}-
3055
3056
3057
3058 # Enable libtool to decide shared library compile flags (ie -fPIC)
3059
3060 case `pwd` in
3061 *\ * | *\ *)
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3063 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3064 esac
3065
3066
3067
3068 macro_version='2.4.6'
3069 macro_revision='2.4.6'
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084 ltmain=$ac_aux_dir/ltmain.sh
3085
3086 # Backslashify metacharacters that are still active within
3087 # double-quoted strings.
3088 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3089
3090 # Same as above, but do not quote variable references.
3091 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3092
3093 # Sed substitution to delay expansion of an escaped shell variable in a
3094 # double_quote_subst'ed string.
3095 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3096
3097 # Sed substitution to delay expansion of an escaped single quote.
3098 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3099
3100 # Sed substitution to avoid accidental globbing in evaled expressions
3101 no_glob_subst='s/\*/\\\*/g'
3102
3103 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3104 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3105 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3106
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3108 printf %s "checking how to print strings... " >&6; }
3109 # Test print first, because it will be a builtin if present.
3110 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3111 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3112 ECHO='print -r --'
3113 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3114 ECHO='printf %s\n'
3115 else
3116 # Use this function as a fallback that always works.
3117 func_fallback_echo ()
3118 {
3119 eval 'cat <<_LTECHO_EOF
3120 $1
3121 _LTECHO_EOF'
3122 }
3123 ECHO='func_fallback_echo'
3124 fi
3125
3126 # func_echo_all arg...
3127 # Invoke $ECHO with all args, space-separated.
3128 func_echo_all ()
3129 {
3130 $ECHO ""
3131 }
3132
3133 case $ECHO in
3134 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3135 printf "%s\n" "printf" >&6; } ;;
3136 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3137 printf "%s\n" "print -r" >&6; } ;;
3138 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3139 printf "%s\n" "cat" >&6; } ;;
3140 esac
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164 ac_ext=c
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 printf %s "checking for $ac_word... " >&6; }
3174 if test ${ac_cv_prog_CC+y}
3175 then :
3176 printf %s "(cached) " >&6
3177 else $as_nop
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC="$CC" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184 IFS=$as_save_IFS
3185 case $as_dir in #(((
3186 '') as_dir=./ ;;
3187 */) ;;
3188 *) as_dir=$as_dir/ ;;
3189 esac
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3194 break 2
3195 fi
3196 done
3197 done
3198 IFS=$as_save_IFS
3199
3200 fi
3201 fi
3202 CC=$ac_cv_prog_CC
3203 if test -n "$CC"; then
3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205 printf "%s\n" "$CC" >&6; }
3206 else
3207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 printf "%s\n" "no" >&6; }
3209 fi
3210
3211
3212 fi
3213 if test -z "$ac_cv_prog_CC"; then
3214 ac_ct_CC=$CC
3215 # Extract the first word of "gcc", so it can be a program name with args.
3216 set dummy gcc; ac_word=$2
3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 printf %s "checking for $ac_word... " >&6; }
3219 if test ${ac_cv_prog_ac_ct_CC+y}
3220 then :
3221 printf %s "(cached) " >&6
3222 else $as_nop
3223 if test -n "$ac_ct_CC"; then
3224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229 IFS=$as_save_IFS
3230 case $as_dir in #(((
3231 '') as_dir=./ ;;
3232 */) ;;
3233 *) as_dir=$as_dir/ ;;
3234 esac
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3237 ac_cv_prog_ac_ct_CC="gcc"
3238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3239 break 2
3240 fi
3241 done
3242 done
3243 IFS=$as_save_IFS
3244
3245 fi
3246 fi
3247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3248 if test -n "$ac_ct_CC"; then
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3250 printf "%s\n" "$ac_ct_CC" >&6; }
3251 else
3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 printf "%s\n" "no" >&6; }
3254 fi
3255
3256 if test "x$ac_ct_CC" = x; then
3257 CC=""
3258 else
3259 case $cross_compiling:$ac_tool_warned in
3260 yes:)
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 ac_tool_warned=yes ;;
3264 esac
3265 CC=$ac_ct_CC
3266 fi
3267 else
3268 CC="$ac_cv_prog_CC"
3269 fi
3270
3271 if test -z "$CC"; then
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3274 set dummy ${ac_tool_prefix}cc; ac_word=$2
3275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 printf %s "checking for $ac_word... " >&6; }
3277 if test ${ac_cv_prog_CC+y}
3278 then :
3279 printf %s "(cached) " >&6
3280 else $as_nop
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287 IFS=$as_save_IFS
3288 case $as_dir in #(((
3289 '') as_dir=./ ;;
3290 */) ;;
3291 *) as_dir=$as_dir/ ;;
3292 esac
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_CC="${ac_tool_prefix}cc"
3296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 CC=$ac_cv_prog_CC
3306 if test -n "$CC"; then
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 printf "%s\n" "$CC" >&6; }
3309 else
3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 printf "%s\n" "no" >&6; }
3312 fi
3313
3314
3315 fi
3316 fi
3317 if test -z "$CC"; then
3318 # Extract the first word of "cc", so it can be a program name with args.
3319 set dummy cc; ac_word=$2
3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 printf %s "checking for $ac_word... " >&6; }
3322 if test ${ac_cv_prog_CC+y}
3323 then :
3324 printf %s "(cached) " >&6
3325 else $as_nop
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC="$CC" # Let the user override the test.
3328 else
3329 ac_prog_rejected=no
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333 IFS=$as_save_IFS
3334 case $as_dir in #(((
3335 '') as_dir=./ ;;
3336 */) ;;
3337 *) as_dir=$as_dir/ ;;
3338 esac
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3341 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3342 ac_prog_rejected=yes
3343 continue
3344 fi
3345 ac_cv_prog_CC="cc"
3346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3347 break 2
3348 fi
3349 done
3350 done
3351 IFS=$as_save_IFS
3352
3353 if test $ac_prog_rejected = yes; then
3354 # We found a bogon in the path, so make sure we never use it.
3355 set dummy $ac_cv_prog_CC
3356 shift
3357 if test $# != 0; then
3358 # We chose a different compiler from the bogus one.
3359 # However, it has the same basename, so the bogon will be chosen
3360 # first if we set CC to just the basename; use the full file name.
3361 shift
3362 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3363 fi
3364 fi
3365 fi
3366 fi
3367 CC=$ac_cv_prog_CC
3368 if test -n "$CC"; then
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3370 printf "%s\n" "$CC" >&6; }
3371 else
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 printf "%s\n" "no" >&6; }
3374 fi
3375
3376
3377 fi
3378 if test -z "$CC"; then
3379 if test -n "$ac_tool_prefix"; then
3380 for ac_prog in cl.exe
3381 do
3382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 printf %s "checking for $ac_word... " >&6; }
3386 if test ${ac_cv_prog_CC+y}
3387 then :
3388 printf %s "(cached) " >&6
3389 else $as_nop
3390 if test -n "$CC"; then
3391 ac_cv_prog_CC="$CC" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3395 do
3396 IFS=$as_save_IFS
3397 case $as_dir in #(((
3398 '') as_dir=./ ;;
3399 */) ;;
3400 *) as_dir=$as_dir/ ;;
3401 esac
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3404 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3406 break 2
3407 fi
3408 done
3409 done
3410 IFS=$as_save_IFS
3411
3412 fi
3413 fi
3414 CC=$ac_cv_prog_CC
3415 if test -n "$CC"; then
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417 printf "%s\n" "$CC" >&6; }
3418 else
3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 printf "%s\n" "no" >&6; }
3421 fi
3422
3423
3424 test -n "$CC" && break
3425 done
3426 fi
3427 if test -z "$CC"; then
3428 ac_ct_CC=$CC
3429 for ac_prog in cl.exe
3430 do
3431 # Extract the first word of "$ac_prog", so it can be a program name with args.
3432 set dummy $ac_prog; ac_word=$2
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 printf %s "checking for $ac_word... " >&6; }
3435 if test ${ac_cv_prog_ac_ct_CC+y}
3436 then :
3437 printf %s "(cached) " >&6
3438 else $as_nop
3439 if test -n "$ac_ct_CC"; then
3440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3441 else
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445 IFS=$as_save_IFS
3446 case $as_dir in #(((
3447 '') as_dir=./ ;;
3448 */) ;;
3449 *) as_dir=$as_dir/ ;;
3450 esac
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3453 ac_cv_prog_ac_ct_CC="$ac_prog"
3454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3455 break 2
3456 fi
3457 done
3458 done
3459 IFS=$as_save_IFS
3460
3461 fi
3462 fi
3463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3464 if test -n "$ac_ct_CC"; then
3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3466 printf "%s\n" "$ac_ct_CC" >&6; }
3467 else
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 printf "%s\n" "no" >&6; }
3470 fi
3471
3472
3473 test -n "$ac_ct_CC" && break
3474 done
3475
3476 if test "x$ac_ct_CC" = x; then
3477 CC=""
3478 else
3479 case $cross_compiling:$ac_tool_warned in
3480 yes:)
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3482 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3483 ac_tool_warned=yes ;;
3484 esac
3485 CC=$ac_ct_CC
3486 fi
3487 fi
3488
3489 fi
3490 if test -z "$CC"; then
3491 if test -n "$ac_tool_prefix"; then
3492 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3493 set dummy ${ac_tool_prefix}clang; ac_word=$2
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 printf %s "checking for $ac_word... " >&6; }
3496 if test ${ac_cv_prog_CC+y}
3497 then :
3498 printf %s "(cached) " >&6
3499 else $as_nop
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506 IFS=$as_save_IFS
3507 case $as_dir in #(((
3508 '') as_dir=./ ;;
3509 */) ;;
3510 *) as_dir=$as_dir/ ;;
3511 esac
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3514 ac_cv_prog_CC="${ac_tool_prefix}clang"
3515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3516 break 2
3517 fi
3518 done
3519 done
3520 IFS=$as_save_IFS
3521
3522 fi
3523 fi
3524 CC=$ac_cv_prog_CC
3525 if test -n "$CC"; then
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3527 printf "%s\n" "$CC" >&6; }
3528 else
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 printf "%s\n" "no" >&6; }
3531 fi
3532
3533
3534 fi
3535 if test -z "$ac_cv_prog_CC"; then
3536 ac_ct_CC=$CC
3537 # Extract the first word of "clang", so it can be a program name with args.
3538 set dummy clang; ac_word=$2
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 printf %s "checking for $ac_word... " >&6; }
3541 if test ${ac_cv_prog_ac_ct_CC+y}
3542 then :
3543 printf %s "(cached) " >&6
3544 else $as_nop
3545 if test -n "$ac_ct_CC"; then
3546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551 IFS=$as_save_IFS
3552 case $as_dir in #(((
3553 '') as_dir=./ ;;
3554 */) ;;
3555 *) as_dir=$as_dir/ ;;
3556 esac
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_ac_ct_CC="clang"
3560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3561 break 2
3562 fi
3563 done
3564 done
3565 IFS=$as_save_IFS
3566
3567 fi
3568 fi
3569 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3570 if test -n "$ac_ct_CC"; then
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3572 printf "%s\n" "$ac_ct_CC" >&6; }
3573 else
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 printf "%s\n" "no" >&6; }
3576 fi
3577
3578 if test "x$ac_ct_CC" = x; then
3579 CC=""
3580 else
3581 case $cross_compiling:$ac_tool_warned in
3582 yes:)
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3584 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3585 ac_tool_warned=yes ;;
3586 esac
3587 CC=$ac_ct_CC
3588 fi
3589 else
3590 CC="$ac_cv_prog_CC"
3591 fi
3592
3593 fi
3594
3595
3596 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error $? "no acceptable C compiler found in \$PATH
3599 See \`config.log' for more details" "$LINENO" 5; }
3600
3601 # Provide some information about the compiler.
3602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3603 set X $ac_compile
3604 ac_compiler=$2
3605 for ac_option in --version -v -V -qversion -version; do
3606 { { ac_try="$ac_compiler $ac_option >&5"
3607 case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 printf "%s\n" "$ac_try_echo"; } >&5
3613 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3614 ac_status=$?
3615 if test -s conftest.err; then
3616 sed '10a\
3617 ... rest of stderr output deleted ...
3618 10q' conftest.err >conftest.er1
3619 cat conftest.er1 >&5
3620 fi
3621 rm -f conftest.er1 conftest.err
3622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }
3624 done
3625
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628
3629 int
3630 main (void)
3631 {
3632
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 ac_clean_files_save=$ac_clean_files
3638 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3639 # Try to create an executable without -o first, disregard a.out.
3640 # It will help us diagnose broken compilers, and finding out an intuition
3641 # of exeext.
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3643 printf %s "checking whether the C compiler works... " >&6; }
3644 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3645
3646 # The possible output files:
3647 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3648
3649 ac_rmfiles=
3650 for ac_file in $ac_files
3651 do
3652 case $ac_file in
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3654 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3655 esac
3656 done
3657 rm -f $ac_rmfiles
3658
3659 if { { ac_try="$ac_link_default"
3660 case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 printf "%s\n" "$ac_try_echo"; } >&5
3666 (eval "$ac_link_default") 2>&5
3667 ac_status=$?
3668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }
3670 then :
3671 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3672 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3673 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3674 # so that the user can short-circuit this test for compilers unknown to
3675 # Autoconf.
3676 for ac_file in $ac_files ''
3677 do
3678 test -f "$ac_file" || continue
3679 case $ac_file in
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3681 ;;
3682 [ab].out )
3683 # We found the default executable, but exeext='' is most
3684 # certainly right.
3685 break;;
3686 *.* )
3687 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3688 then :; else
3689 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 fi
3691 # We set ac_cv_exeext here because the later test for it is not
3692 # safe: cross compilers may not add the suffix if given an `-o'
3693 # argument, so we may need to know it at that point already.
3694 # Even if this section looks crufty: it has the advantage of
3695 # actually working.
3696 break;;
3697 * )
3698 break;;
3699 esac
3700 done
3701 test "$ac_cv_exeext" = no && ac_cv_exeext=
3702
3703 else $as_nop
3704 ac_file=''
3705 fi
3706 if test -z "$ac_file"
3707 then :
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 printf "%s\n" "no" >&6; }
3710 printf "%s\n" "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error 77 "C compiler cannot create executables
3716 See \`config.log' for more details" "$LINENO" 5; }
3717 else $as_nop
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3719 printf "%s\n" "yes" >&6; }
3720 fi
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3722 printf %s "checking for C compiler default output file name... " >&6; }
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3724 printf "%s\n" "$ac_file" >&6; }
3725 ac_exeext=$ac_cv_exeext
3726
3727 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3728 ac_clean_files=$ac_clean_files_save
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3730 printf %s "checking for suffix of executables... " >&6; }
3731 if { { ac_try="$ac_link"
3732 case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735 esac
3736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737 printf "%s\n" "$ac_try_echo"; } >&5
3738 (eval "$ac_link") 2>&5
3739 ac_status=$?
3740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741 test $ac_status = 0; }
3742 then :
3743 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3744 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3745 # work properly (i.e., refer to `conftest.exe'), while it won't with
3746 # `rm'.
3747 for ac_file in conftest.exe conftest conftest.*; do
3748 test -f "$ac_file" || continue
3749 case $ac_file in
3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3751 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3752 break;;
3753 * ) break;;
3754 esac
3755 done
3756 else $as_nop
3757 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3759 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3760 See \`config.log' for more details" "$LINENO" 5; }
3761 fi
3762 rm -f conftest conftest$ac_cv_exeext
3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3764 printf "%s\n" "$ac_cv_exeext" >&6; }
3765
3766 rm -f conftest.$ac_ext
3767 EXEEXT=$ac_cv_exeext
3768 ac_exeext=$EXEEXT
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771 #include <stdio.h>
3772 int
3773 main (void)
3774 {
3775 FILE *f = fopen ("conftest.out", "w");
3776 return ferror (f) || fclose (f) != 0;
3777
3778 ;
3779 return 0;
3780 }
3781 _ACEOF
3782 ac_clean_files="$ac_clean_files conftest.out"
3783 # Check that the compiler produces executables we can run. If not, either
3784 # the compiler is broken, or we cross compile.
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3786 printf %s "checking whether we are cross compiling... " >&6; }
3787 if test "$cross_compiling" != yes; then
3788 { { ac_try="$ac_link"
3789 case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 printf "%s\n" "$ac_try_echo"; } >&5
3795 (eval "$ac_link") 2>&5
3796 ac_status=$?
3797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }
3799 if { ac_try='./conftest$ac_cv_exeext'
3800 { { case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 printf "%s\n" "$ac_try_echo"; } >&5
3806 (eval "$ac_try") 2>&5
3807 ac_status=$?
3808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; }; }; then
3810 cross_compiling=no
3811 else
3812 if test "$cross_compiling" = maybe; then
3813 cross_compiling=yes
3814 else
3815 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error 77 "cannot run C compiled programs.
3818 If you meant to cross compile, use \`--host'.
3819 See \`config.log' for more details" "$LINENO" 5; }
3820 fi
3821 fi
3822 fi
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3824 printf "%s\n" "$cross_compiling" >&6; }
3825
3826 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3827 ac_clean_files=$ac_clean_files_save
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3829 printf %s "checking for suffix of object files... " >&6; }
3830 if test ${ac_cv_objext+y}
3831 then :
3832 printf %s "(cached) " >&6
3833 else $as_nop
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836
3837 int
3838 main (void)
3839 {
3840
3841 ;
3842 return 0;
3843 }
3844 _ACEOF
3845 rm -f conftest.o conftest.obj
3846 if { { ac_try="$ac_compile"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 printf "%s\n" "$ac_try_echo"; } >&5
3853 (eval "$ac_compile") 2>&5
3854 ac_status=$?
3855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }
3857 then :
3858 for ac_file in conftest.o conftest.obj conftest.*; do
3859 test -f "$ac_file" || continue;
3860 case $ac_file in
3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3863 break;;
3864 esac
3865 done
3866 else $as_nop
3867 printf "%s\n" "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot compute suffix of object files: cannot compile
3873 See \`config.log' for more details" "$LINENO" 5; }
3874 fi
3875 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3876 fi
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3878 printf "%s\n" "$ac_cv_objext" >&6; }
3879 OBJEXT=$ac_cv_objext
3880 ac_objext=$OBJEXT
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3882 printf %s "checking whether the compiler supports GNU C... " >&6; }
3883 if test ${ac_cv_c_compiler_gnu+y}
3884 then :
3885 printf %s "(cached) " >&6
3886 else $as_nop
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3889
3890 int
3891 main (void)
3892 {
3893 #ifndef __GNUC__
3894 choke me
3895 #endif
3896
3897 ;
3898 return 0;
3899 }
3900 _ACEOF
3901 if ac_fn_c_try_compile "$LINENO"
3902 then :
3903 ac_compiler_gnu=yes
3904 else $as_nop
3905 ac_compiler_gnu=no
3906 fi
3907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3909
3910 fi
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3912 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914
3915 if test $ac_compiler_gnu = yes; then
3916 GCC=yes
3917 else
3918 GCC=
3919 fi
3920 ac_test_CFLAGS=${CFLAGS+y}
3921 ac_save_CFLAGS=$CFLAGS
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3923 printf %s "checking whether $CC accepts -g... " >&6; }
3924 if test ${ac_cv_prog_cc_g+y}
3925 then :
3926 printf %s "(cached) " >&6
3927 else $as_nop
3928 ac_save_c_werror_flag=$ac_c_werror_flag
3929 ac_c_werror_flag=yes
3930 ac_cv_prog_cc_g=no
3931 CFLAGS="-g"
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934
3935 int
3936 main (void)
3937 {
3938
3939 ;
3940 return 0;
3941 }
3942 _ACEOF
3943 if ac_fn_c_try_compile "$LINENO"
3944 then :
3945 ac_cv_prog_cc_g=yes
3946 else $as_nop
3947 CFLAGS=""
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3950
3951 int
3952 main (void)
3953 {
3954
3955 ;
3956 return 0;
3957 }
3958 _ACEOF
3959 if ac_fn_c_try_compile "$LINENO"
3960 then :
3961
3962 else $as_nop
3963 ac_c_werror_flag=$ac_save_c_werror_flag
3964 CFLAGS="-g"
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967
3968 int
3969 main (void)
3970 {
3971
3972 ;
3973 return 0;
3974 }
3975 _ACEOF
3976 if ac_fn_c_try_compile "$LINENO"
3977 then :
3978 ac_cv_prog_cc_g=yes
3979 fi
3980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3981 fi
3982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3983 fi
3984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3985 ac_c_werror_flag=$ac_save_c_werror_flag
3986 fi
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3988 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3989 if test $ac_test_CFLAGS; then
3990 CFLAGS=$ac_save_CFLAGS
3991 elif test $ac_cv_prog_cc_g = yes; then
3992 if test "$GCC" = yes; then
3993 CFLAGS="-g -O2"
3994 else
3995 CFLAGS="-g"
3996 fi
3997 else
3998 if test "$GCC" = yes; then
3999 CFLAGS="-O2"
4000 else
4001 CFLAGS=
4002 fi
4003 fi
4004 ac_prog_cc_stdc=no
4005 if test x$ac_prog_cc_stdc = xno
4006 then :
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4008 printf %s "checking for $CC option to enable C11 features... " >&6; }
4009 if test ${ac_cv_prog_cc_c11+y}
4010 then :
4011 printf %s "(cached) " >&6
4012 else $as_nop
4013 ac_cv_prog_cc_c11=no
4014 ac_save_CC=$CC
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4017 $ac_c_conftest_c11_program
4018 _ACEOF
4019 for ac_arg in '' -std=gnu11
4020 do
4021 CC="$ac_save_CC $ac_arg"
4022 if ac_fn_c_try_compile "$LINENO"
4023 then :
4024 ac_cv_prog_cc_c11=$ac_arg
4025 fi
4026 rm -f core conftest.err conftest.$ac_objext conftest.beam
4027 test "x$ac_cv_prog_cc_c11" != "xno" && break
4028 done
4029 rm -f conftest.$ac_ext
4030 CC=$ac_save_CC
4031 fi
4032
4033 if test "x$ac_cv_prog_cc_c11" = xno
4034 then :
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4036 printf "%s\n" "unsupported" >&6; }
4037 else $as_nop
4038 if test "x$ac_cv_prog_cc_c11" = x
4039 then :
4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4041 printf "%s\n" "none needed" >&6; }
4042 else $as_nop
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4044 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4045 CC="$CC $ac_cv_prog_cc_c11"
4046 fi
4047 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4048 ac_prog_cc_stdc=c11
4049 fi
4050 fi
4051 if test x$ac_prog_cc_stdc = xno
4052 then :
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4054 printf %s "checking for $CC option to enable C99 features... " >&6; }
4055 if test ${ac_cv_prog_cc_c99+y}
4056 then :
4057 printf %s "(cached) " >&6
4058 else $as_nop
4059 ac_cv_prog_cc_c99=no
4060 ac_save_CC=$CC
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063 $ac_c_conftest_c99_program
4064 _ACEOF
4065 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4066 do
4067 CC="$ac_save_CC $ac_arg"
4068 if ac_fn_c_try_compile "$LINENO"
4069 then :
4070 ac_cv_prog_cc_c99=$ac_arg
4071 fi
4072 rm -f core conftest.err conftest.$ac_objext conftest.beam
4073 test "x$ac_cv_prog_cc_c99" != "xno" && break
4074 done
4075 rm -f conftest.$ac_ext
4076 CC=$ac_save_CC
4077 fi
4078
4079 if test "x$ac_cv_prog_cc_c99" = xno
4080 then :
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4082 printf "%s\n" "unsupported" >&6; }
4083 else $as_nop
4084 if test "x$ac_cv_prog_cc_c99" = x
4085 then :
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4087 printf "%s\n" "none needed" >&6; }
4088 else $as_nop
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4090 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4091 CC="$CC $ac_cv_prog_cc_c99"
4092 fi
4093 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4094 ac_prog_cc_stdc=c99
4095 fi
4096 fi
4097 if test x$ac_prog_cc_stdc = xno
4098 then :
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4100 printf %s "checking for $CC option to enable C89 features... " >&6; }
4101 if test ${ac_cv_prog_cc_c89+y}
4102 then :
4103 printf %s "(cached) " >&6
4104 else $as_nop
4105 ac_cv_prog_cc_c89=no
4106 ac_save_CC=$CC
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109 $ac_c_conftest_c89_program
4110 _ACEOF
4111 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4112 do
4113 CC="$ac_save_CC $ac_arg"
4114 if ac_fn_c_try_compile "$LINENO"
4115 then :
4116 ac_cv_prog_cc_c89=$ac_arg
4117 fi
4118 rm -f core conftest.err conftest.$ac_objext conftest.beam
4119 test "x$ac_cv_prog_cc_c89" != "xno" && break
4120 done
4121 rm -f conftest.$ac_ext
4122 CC=$ac_save_CC
4123 fi
4124
4125 if test "x$ac_cv_prog_cc_c89" = xno
4126 then :
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4128 printf "%s\n" "unsupported" >&6; }
4129 else $as_nop
4130 if test "x$ac_cv_prog_cc_c89" = x
4131 then :
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4133 printf "%s\n" "none needed" >&6; }
4134 else $as_nop
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4136 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4137 CC="$CC $ac_cv_prog_cc_c89"
4138 fi
4139 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4140 ac_prog_cc_stdc=c89
4141 fi
4142 fi
4143
4144 ac_ext=c
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4151 printf %s "checking for a sed that does not truncate output... " >&6; }
4152 if test ${ac_cv_path_SED+y}
4153 then :
4154 printf %s "(cached) " >&6
4155 else $as_nop
4156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4157 for ac_i in 1 2 3 4 5 6 7; do
4158 ac_script="$ac_script$as_nl$ac_script"
4159 done
4160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4161 { ac_script=; unset ac_script;}
4162 if test -z "$SED"; then
4163 ac_path_SED_found=false
4164 # Loop through the user's path and test for each of PROGNAME-LIST
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168 IFS=$as_save_IFS
4169 case $as_dir in #(((
4170 '') as_dir=./ ;;
4171 */) ;;
4172 *) as_dir=$as_dir/ ;;
4173 esac
4174 for ac_prog in sed gsed
4175 do
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4178 as_fn_executable_p "$ac_path_SED" || continue
4179 # Check for GNU ac_path_SED and select it if it is found.
4180 # Check for GNU $ac_path_SED
4181 case `"$ac_path_SED" --version 2>&1` in
4182 *GNU*)
4183 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4184 *)
4185 ac_count=0
4186 printf %s 0123456789 >"conftest.in"
4187 while :
4188 do
4189 cat "conftest.in" "conftest.in" >"conftest.tmp"
4190 mv "conftest.tmp" "conftest.in"
4191 cp "conftest.in" "conftest.nl"
4192 printf "%s\n" '' >> "conftest.nl"
4193 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195 as_fn_arith $ac_count + 1 && ac_count=$as_val
4196 if test $ac_count -gt ${ac_path_SED_max-0}; then
4197 # Best one so far, save it but keep looking for a better one
4198 ac_cv_path_SED="$ac_path_SED"
4199 ac_path_SED_max=$ac_count
4200 fi
4201 # 10*(2^10) chars as input seems more than enough
4202 test $ac_count -gt 10 && break
4203 done
4204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205 esac
4206
4207 $ac_path_SED_found && break 3
4208 done
4209 done
4210 done
4211 IFS=$as_save_IFS
4212 if test -z "$ac_cv_path_SED"; then
4213 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4214 fi
4215 else
4216 ac_cv_path_SED=$SED
4217 fi
4218
4219 fi
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4221 printf "%s\n" "$ac_cv_path_SED" >&6; }
4222 SED="$ac_cv_path_SED"
4223 rm -f conftest.sed
4224
4225 test -z "$SED" && SED=sed
4226 Xsed="$SED -e 1s/^X//"
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4239 printf %s "checking for grep that handles long lines and -e... " >&6; }
4240 if test ${ac_cv_path_GREP+y}
4241 then :
4242 printf %s "(cached) " >&6
4243 else $as_nop
4244 if test -z "$GREP"; then
4245 ac_path_GREP_found=false
4246 # Loop through the user's path and test for each of PROGNAME-LIST
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4249 do
4250 IFS=$as_save_IFS
4251 case $as_dir in #(((
4252 '') as_dir=./ ;;
4253 */) ;;
4254 *) as_dir=$as_dir/ ;;
4255 esac
4256 for ac_prog in grep ggrep
4257 do
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4260 as_fn_executable_p "$ac_path_GREP" || continue
4261 # Check for GNU ac_path_GREP and select it if it is found.
4262 # Check for GNU $ac_path_GREP
4263 case `"$ac_path_GREP" --version 2>&1` in
4264 *GNU*)
4265 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4266 *)
4267 ac_count=0
4268 printf %s 0123456789 >"conftest.in"
4269 while :
4270 do
4271 cat "conftest.in" "conftest.in" >"conftest.tmp"
4272 mv "conftest.tmp" "conftest.in"
4273 cp "conftest.in" "conftest.nl"
4274 printf "%s\n" 'GREP' >> "conftest.nl"
4275 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4277 as_fn_arith $ac_count + 1 && ac_count=$as_val
4278 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4279 # Best one so far, save it but keep looking for a better one
4280 ac_cv_path_GREP="$ac_path_GREP"
4281 ac_path_GREP_max=$ac_count
4282 fi
4283 # 10*(2^10) chars as input seems more than enough
4284 test $ac_count -gt 10 && break
4285 done
4286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4287 esac
4288
4289 $ac_path_GREP_found && break 3
4290 done
4291 done
4292 done
4293 IFS=$as_save_IFS
4294 if test -z "$ac_cv_path_GREP"; then
4295 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4296 fi
4297 else
4298 ac_cv_path_GREP=$GREP
4299 fi
4300
4301 fi
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4303 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4304 GREP="$ac_cv_path_GREP"
4305
4306
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4308 printf %s "checking for egrep... " >&6; }
4309 if test ${ac_cv_path_EGREP+y}
4310 then :
4311 printf %s "(cached) " >&6
4312 else $as_nop
4313 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4314 then ac_cv_path_EGREP="$GREP -E"
4315 else
4316 if test -z "$EGREP"; then
4317 ac_path_EGREP_found=false
4318 # Loop through the user's path and test for each of PROGNAME-LIST
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4321 do
4322 IFS=$as_save_IFS
4323 case $as_dir in #(((
4324 '') as_dir=./ ;;
4325 */) ;;
4326 *) as_dir=$as_dir/ ;;
4327 esac
4328 for ac_prog in egrep
4329 do
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4332 as_fn_executable_p "$ac_path_EGREP" || continue
4333 # Check for GNU ac_path_EGREP and select it if it is found.
4334 # Check for GNU $ac_path_EGREP
4335 case `"$ac_path_EGREP" --version 2>&1` in
4336 *GNU*)
4337 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4338 *)
4339 ac_count=0
4340 printf %s 0123456789 >"conftest.in"
4341 while :
4342 do
4343 cat "conftest.in" "conftest.in" >"conftest.tmp"
4344 mv "conftest.tmp" "conftest.in"
4345 cp "conftest.in" "conftest.nl"
4346 printf "%s\n" 'EGREP' >> "conftest.nl"
4347 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349 as_fn_arith $ac_count + 1 && ac_count=$as_val
4350 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4351 # Best one so far, save it but keep looking for a better one
4352 ac_cv_path_EGREP="$ac_path_EGREP"
4353 ac_path_EGREP_max=$ac_count
4354 fi
4355 # 10*(2^10) chars as input seems more than enough
4356 test $ac_count -gt 10 && break
4357 done
4358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4359 esac
4360
4361 $ac_path_EGREP_found && break 3
4362 done
4363 done
4364 done
4365 IFS=$as_save_IFS
4366 if test -z "$ac_cv_path_EGREP"; then
4367 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4368 fi
4369 else
4370 ac_cv_path_EGREP=$EGREP
4371 fi
4372
4373 fi
4374 fi
4375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4376 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4377 EGREP="$ac_cv_path_EGREP"
4378
4379
4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4381 printf %s "checking for fgrep... " >&6; }
4382 if test ${ac_cv_path_FGREP+y}
4383 then :
4384 printf %s "(cached) " >&6
4385 else $as_nop
4386 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4387 then ac_cv_path_FGREP="$GREP -F"
4388 else
4389 if test -z "$FGREP"; then
4390 ac_path_FGREP_found=false
4391 # Loop through the user's path and test for each of PROGNAME-LIST
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4394 do
4395 IFS=$as_save_IFS
4396 case $as_dir in #(((
4397 '') as_dir=./ ;;
4398 */) ;;
4399 *) as_dir=$as_dir/ ;;
4400 esac
4401 for ac_prog in fgrep
4402 do
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4405 as_fn_executable_p "$ac_path_FGREP" || continue
4406 # Check for GNU ac_path_FGREP and select it if it is found.
4407 # Check for GNU $ac_path_FGREP
4408 case `"$ac_path_FGREP" --version 2>&1` in
4409 *GNU*)
4410 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4411 *)
4412 ac_count=0
4413 printf %s 0123456789 >"conftest.in"
4414 while :
4415 do
4416 cat "conftest.in" "conftest.in" >"conftest.tmp"
4417 mv "conftest.tmp" "conftest.in"
4418 cp "conftest.in" "conftest.nl"
4419 printf "%s\n" 'FGREP' >> "conftest.nl"
4420 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4422 as_fn_arith $ac_count + 1 && ac_count=$as_val
4423 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4424 # Best one so far, save it but keep looking for a better one
4425 ac_cv_path_FGREP="$ac_path_FGREP"
4426 ac_path_FGREP_max=$ac_count
4427 fi
4428 # 10*(2^10) chars as input seems more than enough
4429 test $ac_count -gt 10 && break
4430 done
4431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4432 esac
4433
4434 $ac_path_FGREP_found && break 3
4435 done
4436 done
4437 done
4438 IFS=$as_save_IFS
4439 if test -z "$ac_cv_path_FGREP"; then
4440 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4441 fi
4442 else
4443 ac_cv_path_FGREP=$FGREP
4444 fi
4445
4446 fi
4447 fi
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4449 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4450 FGREP="$ac_cv_path_FGREP"
4451
4452
4453 test -z "$GREP" && GREP=grep
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473 # Check whether --with-gnu-ld was given.
4474 if test ${with_gnu_ld+y}
4475 then :
4476 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4477 else $as_nop
4478 with_gnu_ld=no
4479 fi
4480
4481 ac_prog=ld
4482 if test yes = "$GCC"; then
4483 # Check if gcc -print-prog-name=ld gives a path.
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4485 printf %s "checking for ld used by $CC... " >&6; }
4486 case $host in
4487 *-*-mingw*)
4488 # gcc leaves a trailing carriage return, which upsets mingw
4489 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4490 *)
4491 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4492 esac
4493 case $ac_prog in
4494 # Accept absolute paths.
4495 [\\/]* | ?:[\\/]*)
4496 re_direlt='/[^/][^/]*/\.\./'
4497 # Canonicalize the pathname of ld
4498 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4499 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4500 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4501 done
4502 test -z "$LD" && LD=$ac_prog
4503 ;;
4504 "")
4505 # If it fails, then pretend we aren't using GCC.
4506 ac_prog=ld
4507 ;;
4508 *)
4509 # If it is relative, then search for the first ld in PATH.
4510 with_gnu_ld=unknown
4511 ;;
4512 esac
4513 elif test yes = "$with_gnu_ld"; then
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4515 printf %s "checking for GNU ld... " >&6; }
4516 else
4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4518 printf %s "checking for non-GNU ld... " >&6; }
4519 fi
4520 if test ${lt_cv_path_LD+y}
4521 then :
4522 printf %s "(cached) " >&6
4523 else $as_nop
4524 if test -z "$LD"; then
4525 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4526 for ac_dir in $PATH; do
4527 IFS=$lt_save_ifs
4528 test -z "$ac_dir" && ac_dir=.
4529 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4530 lt_cv_path_LD=$ac_dir/$ac_prog
4531 # Check to see if the program is GNU ld. I'd rather use --version,
4532 # but apparently some variants of GNU ld only accept -v.
4533 # Break only if it was the GNU/non-GNU ld that we prefer.
4534 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4535 *GNU* | *'with BFD'*)
4536 test no != "$with_gnu_ld" && break
4537 ;;
4538 *)
4539 test yes != "$with_gnu_ld" && break
4540 ;;
4541 esac
4542 fi
4543 done
4544 IFS=$lt_save_ifs
4545 else
4546 lt_cv_path_LD=$LD # Let the user override the test with a path.
4547 fi
4548 fi
4549
4550 LD=$lt_cv_path_LD
4551 if test -n "$LD"; then
4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4553 printf "%s\n" "$LD" >&6; }
4554 else
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 printf "%s\n" "no" >&6; }
4557 fi
4558 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4560 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4561 if test ${lt_cv_prog_gnu_ld+y}
4562 then :
4563 printf %s "(cached) " >&6
4564 else $as_nop
4565 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4566 case `$LD -v 2>&1 </dev/null` in
4567 *GNU* | *'with BFD'*)
4568 lt_cv_prog_gnu_ld=yes
4569 ;;
4570 *)
4571 lt_cv_prog_gnu_ld=no
4572 ;;
4573 esac
4574 fi
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4576 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4577 with_gnu_ld=$lt_cv_prog_gnu_ld
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4588 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4589 if test ${lt_cv_path_NM+y}
4590 then :
4591 printf %s "(cached) " >&6
4592 else $as_nop
4593 if test -n "$NM"; then
4594 # Let the user override the test.
4595 lt_cv_path_NM=$NM
4596 else
4597 lt_nm_to_check=${ac_tool_prefix}nm
4598 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4599 lt_nm_to_check="$lt_nm_to_check nm"
4600 fi
4601 for lt_tmp_nm in $lt_nm_to_check; do
4602 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4603 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4604 IFS=$lt_save_ifs
4605 test -z "$ac_dir" && ac_dir=.
4606 tmp_nm=$ac_dir/$lt_tmp_nm
4607 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4608 # Check to see if the nm accepts a BSD-compat flag.
4609 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4610 # nm: unknown option "B" ignored
4611 # Tru64's nm complains that /dev/null is an invalid object file
4612 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4613 case $build_os in
4614 mingw*) lt_bad_file=conftest.nm/nofile ;;
4615 *) lt_bad_file=/dev/null ;;
4616 esac
4617 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4618 *$lt_bad_file* | *'Invalid file or object type'*)
4619 lt_cv_path_NM="$tmp_nm -B"
4620 break 2
4621 ;;
4622 *)
4623 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4624 */dev/null*)
4625 lt_cv_path_NM="$tmp_nm -p"
4626 break 2
4627 ;;
4628 *)
4629 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4630 continue # so that we can try to find one that supports BSD flags
4631 ;;
4632 esac
4633 ;;
4634 esac
4635 fi
4636 done
4637 IFS=$lt_save_ifs
4638 done
4639 : ${lt_cv_path_NM=no}
4640 fi
4641 fi
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4643 printf "%s\n" "$lt_cv_path_NM" >&6; }
4644 if test no != "$lt_cv_path_NM"; then
4645 NM=$lt_cv_path_NM
4646 else
4647 # Didn't find any BSD compatible name lister, look for dumpbin.
4648 if test -n "$DUMPBIN"; then :
4649 # Let the user override the test.
4650 else
4651 if test -n "$ac_tool_prefix"; then
4652 for ac_prog in dumpbin "link -dump"
4653 do
4654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657 printf %s "checking for $ac_word... " >&6; }
4658 if test ${ac_cv_prog_DUMPBIN+y}
4659 then :
4660 printf %s "(cached) " >&6
4661 else $as_nop
4662 if test -n "$DUMPBIN"; then
4663 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668 IFS=$as_save_IFS
4669 case $as_dir in #(((
4670 '') as_dir=./ ;;
4671 */) ;;
4672 *) as_dir=$as_dir/ ;;
4673 esac
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684 fi
4685 fi
4686 DUMPBIN=$ac_cv_prog_DUMPBIN
4687 if test -n "$DUMPBIN"; then
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4689 printf "%s\n" "$DUMPBIN" >&6; }
4690 else
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 printf "%s\n" "no" >&6; }
4693 fi
4694
4695
4696 test -n "$DUMPBIN" && break
4697 done
4698 fi
4699 if test -z "$DUMPBIN"; then
4700 ac_ct_DUMPBIN=$DUMPBIN
4701 for ac_prog in dumpbin "link -dump"
4702 do
4703 # Extract the first word of "$ac_prog", so it can be a program name with args.
4704 set dummy $ac_prog; ac_word=$2
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706 printf %s "checking for $ac_word... " >&6; }
4707 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4708 then :
4709 printf %s "(cached) " >&6
4710 else $as_nop
4711 if test -n "$ac_ct_DUMPBIN"; then
4712 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717 IFS=$as_save_IFS
4718 case $as_dir in #(((
4719 '') as_dir=./ ;;
4720 */) ;;
4721 *) as_dir=$as_dir/ ;;
4722 esac
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4725 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4727 break 2
4728 fi
4729 done
4730 done
4731 IFS=$as_save_IFS
4732
4733 fi
4734 fi
4735 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4736 if test -n "$ac_ct_DUMPBIN"; then
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4738 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4739 else
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 printf "%s\n" "no" >&6; }
4742 fi
4743
4744
4745 test -n "$ac_ct_DUMPBIN" && break
4746 done
4747
4748 if test "x$ac_ct_DUMPBIN" = x; then
4749 DUMPBIN=":"
4750 else
4751 case $cross_compiling:$ac_tool_warned in
4752 yes:)
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4754 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4755 ac_tool_warned=yes ;;
4756 esac
4757 DUMPBIN=$ac_ct_DUMPBIN
4758 fi
4759 fi
4760
4761 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4762 *COFF*)
4763 DUMPBIN="$DUMPBIN -symbols -headers"
4764 ;;
4765 *)
4766 DUMPBIN=:
4767 ;;
4768 esac
4769 fi
4770
4771 if test : != "$DUMPBIN"; then
4772 NM=$DUMPBIN
4773 fi
4774 fi
4775 test -z "$NM" && NM=nm
4776
4777
4778
4779
4780
4781
4782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4783 printf %s "checking the name lister ($NM) interface... " >&6; }
4784 if test ${lt_cv_nm_interface+y}
4785 then :
4786 printf %s "(cached) " >&6
4787 else $as_nop
4788 lt_cv_nm_interface="BSD nm"
4789 echo "int some_variable = 0;" > conftest.$ac_ext
4790 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4791 (eval "$ac_compile" 2>conftest.err)
4792 cat conftest.err >&5
4793 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4794 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4795 cat conftest.err >&5
4796 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4797 cat conftest.out >&5
4798 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4799 lt_cv_nm_interface="MS dumpbin"
4800 fi
4801 rm -f conftest*
4802 fi
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4804 printf "%s\n" "$lt_cv_nm_interface" >&6; }
4805
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4807 printf %s "checking whether ln -s works... " >&6; }
4808 LN_S=$as_ln_s
4809 if test "$LN_S" = "ln -s"; then
4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4811 printf "%s\n" "yes" >&6; }
4812 else
4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4814 printf "%s\n" "no, using $LN_S" >&6; }
4815 fi
4816
4817 # find the maximum length of command line arguments
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4819 printf %s "checking the maximum length of command line arguments... " >&6; }
4820 if test ${lt_cv_sys_max_cmd_len+y}
4821 then :
4822 printf %s "(cached) " >&6
4823 else $as_nop
4824 i=0
4825 teststring=ABCD
4826
4827 case $build_os in
4828 msdosdjgpp*)
4829 # On DJGPP, this test can blow up pretty badly due to problems in libc
4830 # (any single argument exceeding 2000 bytes causes a buffer overrun
4831 # during glob expansion). Even if it were fixed, the result of this
4832 # check would be larger than it should be.
4833 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4834 ;;
4835
4836 gnu*)
4837 # Under GNU Hurd, this test is not required because there is
4838 # no limit to the length of command line arguments.
4839 # Libtool will interpret -1 as no limit whatsoever
4840 lt_cv_sys_max_cmd_len=-1;
4841 ;;
4842
4843 cygwin* | mingw* | cegcc*)
4844 # On Win9x/ME, this test blows up -- it succeeds, but takes
4845 # about 5 minutes as the teststring grows exponentially.
4846 # Worse, since 9x/ME are not pre-emptively multitasking,
4847 # you end up with a "frozen" computer, even though with patience
4848 # the test eventually succeeds (with a max line length of 256k).
4849 # Instead, let's just punt: use the minimum linelength reported by
4850 # all of the supported platforms: 8192 (on NT/2K/XP).
4851 lt_cv_sys_max_cmd_len=8192;
4852 ;;
4853
4854 mint*)
4855 # On MiNT this can take a long time and run out of memory.
4856 lt_cv_sys_max_cmd_len=8192;
4857 ;;
4858
4859 amigaos*)
4860 # On AmigaOS with pdksh, this test takes hours, literally.
4861 # So we just punt and use a minimum line length of 8192.
4862 lt_cv_sys_max_cmd_len=8192;
4863 ;;
4864
4865 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4866 # This has been around since 386BSD, at least. Likely further.
4867 if test -x /sbin/sysctl; then
4868 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4869 elif test -x /usr/sbin/sysctl; then
4870 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4871 else
4872 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4873 fi
4874 # And add a safety zone
4875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4877 ;;
4878
4879 interix*)
4880 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4881 lt_cv_sys_max_cmd_len=196608
4882 ;;
4883
4884 os2*)
4885 # The test takes a long time on OS/2.
4886 lt_cv_sys_max_cmd_len=8192
4887 ;;
4888
4889 osf*)
4890 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4891 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4892 # nice to cause kernel panics so lets avoid the loop below.
4893 # First set a reasonable default.
4894 lt_cv_sys_max_cmd_len=16384
4895 #
4896 if test -x /sbin/sysconfig; then
4897 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4898 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4899 esac
4900 fi
4901 ;;
4902 sco3.2v5*)
4903 lt_cv_sys_max_cmd_len=102400
4904 ;;
4905 sysv5* | sco5v6* | sysv4.2uw2*)
4906 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4907 if test -n "$kargmax"; then
4908 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4909 else
4910 lt_cv_sys_max_cmd_len=32768
4911 fi
4912 ;;
4913 *)
4914 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4915 if test -n "$lt_cv_sys_max_cmd_len" && \
4916 test undefined != "$lt_cv_sys_max_cmd_len"; then
4917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4919 else
4920 # Make teststring a little bigger before we do anything with it.
4921 # a 1K string should be a reasonable start.
4922 for i in 1 2 3 4 5 6 7 8; do
4923 teststring=$teststring$teststring
4924 done
4925 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4926 # If test is not a shell built-in, we'll probably end up computing a
4927 # maximum length that is only half of the actual maximum length, but
4928 # we can't tell.
4929 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4930 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4931 test 17 != "$i" # 1/2 MB should be enough
4932 do
4933 i=`expr $i + 1`
4934 teststring=$teststring$teststring
4935 done
4936 # Only check the string length outside the loop.
4937 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4938 teststring=
4939 # Add a significant safety factor because C++ compilers can tack on
4940 # massive amounts of additional arguments before passing them to the
4941 # linker. It appears as though 1/2 is a usable value.
4942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4943 fi
4944 ;;
4945 esac
4946
4947 fi
4948
4949 if test -n "$lt_cv_sys_max_cmd_len"; then
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4951 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
4952 else
4953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
4954 printf "%s\n" "none" >&6; }
4955 fi
4956 max_cmd_len=$lt_cv_sys_max_cmd_len
4957
4958
4959
4960
4961
4962
4963 : ${CP="cp -f"}
4964 : ${MV="mv -f"}
4965 : ${RM="rm -f"}
4966
4967 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4968 lt_unset=unset
4969 else
4970 lt_unset=false
4971 fi
4972
4973
4974
4975
4976
4977 # test EBCDIC or ASCII
4978 case `echo X|tr X '\101'` in
4979 A) # ASCII based system
4980 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4981 lt_SP2NL='tr \040 \012'
4982 lt_NL2SP='tr \015\012 \040\040'
4983 ;;
4984 *) # EBCDIC based system
4985 lt_SP2NL='tr \100 \n'
4986 lt_NL2SP='tr \r\n \100\100'
4987 ;;
4988 esac
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4999 printf %s "checking how to convert $build file names to $host format... " >&6; }
5000 if test ${lt_cv_to_host_file_cmd+y}
5001 then :
5002 printf %s "(cached) " >&6
5003 else $as_nop
5004 case $host in
5005 *-*-mingw* )
5006 case $build in
5007 *-*-mingw* ) # actually msys
5008 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5009 ;;
5010 *-*-cygwin* )
5011 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5012 ;;
5013 * ) # otherwise, assume *nix
5014 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5015 ;;
5016 esac
5017 ;;
5018 *-*-cygwin* )
5019 case $build in
5020 *-*-mingw* ) # actually msys
5021 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5022 ;;
5023 *-*-cygwin* )
5024 lt_cv_to_host_file_cmd=func_convert_file_noop
5025 ;;
5026 * ) # otherwise, assume *nix
5027 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5028 ;;
5029 esac
5030 ;;
5031 * ) # unhandled hosts (and "normal" native builds)
5032 lt_cv_to_host_file_cmd=func_convert_file_noop
5033 ;;
5034 esac
5035
5036 fi
5037
5038 to_host_file_cmd=$lt_cv_to_host_file_cmd
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5040 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5041
5042
5043
5044
5045
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5047 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5048 if test ${lt_cv_to_tool_file_cmd+y}
5049 then :
5050 printf %s "(cached) " >&6
5051 else $as_nop
5052 #assume ordinary cross tools, or native build.
5053 lt_cv_to_tool_file_cmd=func_convert_file_noop
5054 case $host in
5055 *-*-mingw* )
5056 case $build in
5057 *-*-mingw* ) # actually msys
5058 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5059 ;;
5060 esac
5061 ;;
5062 esac
5063
5064 fi
5065
5066 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5068 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5069
5070
5071
5072
5073
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5075 printf %s "checking for $LD option to reload object files... " >&6; }
5076 if test ${lt_cv_ld_reload_flag+y}
5077 then :
5078 printf %s "(cached) " >&6
5079 else $as_nop
5080 lt_cv_ld_reload_flag='-r'
5081 fi
5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5083 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5084 reload_flag=$lt_cv_ld_reload_flag
5085 case $reload_flag in
5086 "" | " "*) ;;
5087 *) reload_flag=" $reload_flag" ;;
5088 esac
5089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5090 case $host_os in
5091 cygwin* | mingw* | pw32* | cegcc*)
5092 if test yes != "$GCC"; then
5093 reload_cmds=false
5094 fi
5095 ;;
5096 darwin*)
5097 if test yes = "$GCC"; then
5098 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5099 else
5100 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5101 fi
5102 ;;
5103 esac
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113 if test -n "$ac_tool_prefix"; then
5114 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5115 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 printf %s "checking for $ac_word... " >&6; }
5118 if test ${ac_cv_prog_OBJDUMP+y}
5119 then :
5120 printf %s "(cached) " >&6
5121 else $as_nop
5122 if test -n "$OBJDUMP"; then
5123 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128 IFS=$as_save_IFS
5129 case $as_dir in #(((
5130 '') as_dir=./ ;;
5131 */) ;;
5132 *) as_dir=$as_dir/ ;;
5133 esac
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5136 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5138 break 2
5139 fi
5140 done
5141 done
5142 IFS=$as_save_IFS
5143
5144 fi
5145 fi
5146 OBJDUMP=$ac_cv_prog_OBJDUMP
5147 if test -n "$OBJDUMP"; then
5148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5149 printf "%s\n" "$OBJDUMP" >&6; }
5150 else
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 printf "%s\n" "no" >&6; }
5153 fi
5154
5155
5156 fi
5157 if test -z "$ac_cv_prog_OBJDUMP"; then
5158 ac_ct_OBJDUMP=$OBJDUMP
5159 # Extract the first word of "objdump", so it can be a program name with args.
5160 set dummy objdump; ac_word=$2
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 printf %s "checking for $ac_word... " >&6; }
5163 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5164 then :
5165 printf %s "(cached) " >&6
5166 else $as_nop
5167 if test -n "$ac_ct_OBJDUMP"; then
5168 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173 IFS=$as_save_IFS
5174 case $as_dir in #(((
5175 '') as_dir=./ ;;
5176 */) ;;
5177 *) as_dir=$as_dir/ ;;
5178 esac
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5183 break 2
5184 fi
5185 done
5186 done
5187 IFS=$as_save_IFS
5188
5189 fi
5190 fi
5191 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5192 if test -n "$ac_ct_OBJDUMP"; then
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5194 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5195 else
5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 printf "%s\n" "no" >&6; }
5198 fi
5199
5200 if test "x$ac_ct_OBJDUMP" = x; then
5201 OBJDUMP="false"
5202 else
5203 case $cross_compiling:$ac_tool_warned in
5204 yes:)
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5206 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5207 ac_tool_warned=yes ;;
5208 esac
5209 OBJDUMP=$ac_ct_OBJDUMP
5210 fi
5211 else
5212 OBJDUMP="$ac_cv_prog_OBJDUMP"
5213 fi
5214
5215 test -z "$OBJDUMP" && OBJDUMP=objdump
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5226 printf %s "checking how to recognize dependent libraries... " >&6; }
5227 if test ${lt_cv_deplibs_check_method+y}
5228 then :
5229 printf %s "(cached) " >&6
5230 else $as_nop
5231 lt_cv_file_magic_cmd='$MAGIC_CMD'
5232 lt_cv_file_magic_test_file=
5233 lt_cv_deplibs_check_method='unknown'
5234 # Need to set the preceding variable on all platforms that support
5235 # interlibrary dependencies.
5236 # 'none' -- dependencies not supported.
5237 # 'unknown' -- same as none, but documents that we really don't know.
5238 # 'pass_all' -- all dependencies passed with no checks.
5239 # 'test_compile' -- check by making test program.
5240 # 'file_magic [[regex]]' -- check by looking for files in library path
5241 # that responds to the $file_magic_cmd with a given extended regex.
5242 # If you have 'file' or equivalent on your system and you're not sure
5243 # whether 'pass_all' will *always* work, you probably want this one.
5244
5245 case $host_os in
5246 aix[4-9]*)
5247 lt_cv_deplibs_check_method=pass_all
5248 ;;
5249
5250 beos*)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253
5254 bsdi[45]*)
5255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5256 lt_cv_file_magic_cmd='/usr/bin/file -L'
5257 lt_cv_file_magic_test_file=/shlib/libc.so
5258 ;;
5259
5260 cygwin*)
5261 # func_win32_libid is a shell function defined in ltmain.sh
5262 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5263 lt_cv_file_magic_cmd='func_win32_libid'
5264 ;;
5265
5266 mingw* | pw32*)
5267 # Base MSYS/MinGW do not provide the 'file' command needed by
5268 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5269 # unless we find 'file', for example because we are cross-compiling.
5270 if ( file / ) >/dev/null 2>&1; then
5271 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5272 lt_cv_file_magic_cmd='func_win32_libid'
5273 else
5274 # Keep this pattern in sync with the one in func_win32_libid.
5275 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5276 lt_cv_file_magic_cmd='$OBJDUMP -f'
5277 fi
5278 ;;
5279
5280 cegcc*)
5281 # use the weaker test based on 'objdump'. See mingw*.
5282 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5283 lt_cv_file_magic_cmd='$OBJDUMP -f'
5284 ;;
5285
5286 darwin* | rhapsody*)
5287 lt_cv_deplibs_check_method=pass_all
5288 ;;
5289
5290 freebsd* | dragonfly*)
5291 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5292 case $host_cpu in
5293 i*86 )
5294 # Not sure whether the presence of OpenBSD here was a mistake.
5295 # Let's accept both of them until this is cleared up.
5296 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5297 lt_cv_file_magic_cmd=/usr/bin/file
5298 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5299 ;;
5300 esac
5301 else
5302 lt_cv_deplibs_check_method=pass_all
5303 fi
5304 ;;
5305
5306 haiku*)
5307 lt_cv_deplibs_check_method=pass_all
5308 ;;
5309
5310 hpux10.20* | hpux11*)
5311 lt_cv_file_magic_cmd=/usr/bin/file
5312 case $host_cpu in
5313 ia64*)
5314 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5315 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5316 ;;
5317 hppa*64*)
5318 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]'
5319 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5320 ;;
5321 *)
5322 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5323 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5324 ;;
5325 esac
5326 ;;
5327
5328 interix[3-9]*)
5329 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5331 ;;
5332
5333 irix5* | irix6* | nonstopux*)
5334 case $LD in
5335 *-32|*"-32 ") libmagic=32-bit;;
5336 *-n32|*"-n32 ") libmagic=N32;;
5337 *-64|*"-64 ") libmagic=64-bit;;
5338 *) libmagic=never-match;;
5339 esac
5340 lt_cv_deplibs_check_method=pass_all
5341 ;;
5342
5343 # This must be glibc/ELF.
5344 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
5347
5348 netbsd*)
5349 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5351 else
5352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5353 fi
5354 ;;
5355
5356 newos6*)
5357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5358 lt_cv_file_magic_cmd=/usr/bin/file
5359 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5360 ;;
5361
5362 *nto* | *qnx*)
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365
5366 openbsd* | bitrig*)
5367 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5369 else
5370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5371 fi
5372 ;;
5373
5374 osf3* | osf4* | osf5*)
5375 lt_cv_deplibs_check_method=pass_all
5376 ;;
5377
5378 rdos*)
5379 lt_cv_deplibs_check_method=pass_all
5380 ;;
5381
5382 solaris*)
5383 lt_cv_deplibs_check_method=pass_all
5384 ;;
5385
5386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5387 lt_cv_deplibs_check_method=pass_all
5388 ;;
5389
5390 sysv4 | sysv4.3*)
5391 case $host_vendor in
5392 motorola)
5393 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]'
5394 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5395 ;;
5396 ncr)
5397 lt_cv_deplibs_check_method=pass_all
5398 ;;
5399 sequent)
5400 lt_cv_file_magic_cmd='/bin/file'
5401 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5402 ;;
5403 sni)
5404 lt_cv_file_magic_cmd='/bin/file'
5405 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5406 lt_cv_file_magic_test_file=/lib/libc.so
5407 ;;
5408 siemens)
5409 lt_cv_deplibs_check_method=pass_all
5410 ;;
5411 pc)
5412 lt_cv_deplibs_check_method=pass_all
5413 ;;
5414 esac
5415 ;;
5416
5417 tpf*)
5418 lt_cv_deplibs_check_method=pass_all
5419 ;;
5420 os2*)
5421 lt_cv_deplibs_check_method=pass_all
5422 ;;
5423 esac
5424
5425 fi
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5427 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5428
5429 file_magic_glob=
5430 want_nocaseglob=no
5431 if test "$build" = "$host"; then
5432 case $host_os in
5433 mingw* | pw32*)
5434 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5435 want_nocaseglob=yes
5436 else
5437 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5438 fi
5439 ;;
5440 esac
5441 fi
5442
5443 file_magic_cmd=$lt_cv_file_magic_cmd
5444 deplibs_check_method=$lt_cv_deplibs_check_method
5445 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468 if test -n "$ac_tool_prefix"; then
5469 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5470 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 printf %s "checking for $ac_word... " >&6; }
5473 if test ${ac_cv_prog_DLLTOOL+y}
5474 then :
5475 printf %s "(cached) " >&6
5476 else $as_nop
5477 if test -n "$DLLTOOL"; then
5478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5479 else
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5482 do
5483 IFS=$as_save_IFS
5484 case $as_dir in #(((
5485 '') as_dir=./ ;;
5486 */) ;;
5487 *) as_dir=$as_dir/ ;;
5488 esac
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495 done
5496 done
5497 IFS=$as_save_IFS
5498
5499 fi
5500 fi
5501 DLLTOOL=$ac_cv_prog_DLLTOOL
5502 if test -n "$DLLTOOL"; then
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5504 printf "%s\n" "$DLLTOOL" >&6; }
5505 else
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 printf "%s\n" "no" >&6; }
5508 fi
5509
5510
5511 fi
5512 if test -z "$ac_cv_prog_DLLTOOL"; then
5513 ac_ct_DLLTOOL=$DLLTOOL
5514 # Extract the first word of "dlltool", so it can be a program name with args.
5515 set dummy dlltool; ac_word=$2
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517 printf %s "checking for $ac_word... " >&6; }
5518 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5519 then :
5520 printf %s "(cached) " >&6
5521 else $as_nop
5522 if test -n "$ac_ct_DLLTOOL"; then
5523 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528 IFS=$as_save_IFS
5529 case $as_dir in #(((
5530 '') as_dir=./ ;;
5531 */) ;;
5532 *) as_dir=$as_dir/ ;;
5533 esac
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5536 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5538 break 2
5539 fi
5540 done
5541 done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5547 if test -n "$ac_ct_DLLTOOL"; then
5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5549 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5550 else
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 printf "%s\n" "no" >&6; }
5553 fi
5554
5555 if test "x$ac_ct_DLLTOOL" = x; then
5556 DLLTOOL="false"
5557 else
5558 case $cross_compiling:$ac_tool_warned in
5559 yes:)
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5561 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5562 ac_tool_warned=yes ;;
5563 esac
5564 DLLTOOL=$ac_ct_DLLTOOL
5565 fi
5566 else
5567 DLLTOOL="$ac_cv_prog_DLLTOOL"
5568 fi
5569
5570 test -z "$DLLTOOL" && DLLTOOL=dlltool
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5582 printf %s "checking how to associate runtime and link libraries... " >&6; }
5583 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5584 then :
5585 printf %s "(cached) " >&6
5586 else $as_nop
5587 lt_cv_sharedlib_from_linklib_cmd='unknown'
5588
5589 case $host_os in
5590 cygwin* | mingw* | pw32* | cegcc*)
5591 # two different shell functions defined in ltmain.sh;
5592 # decide which one to use based on capabilities of $DLLTOOL
5593 case `$DLLTOOL --help 2>&1` in
5594 *--identify-strict*)
5595 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5596 ;;
5597 *)
5598 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5599 ;;
5600 esac
5601 ;;
5602 *)
5603 # fallback: assume linklib IS sharedlib
5604 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5605 ;;
5606 esac
5607
5608 fi
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5610 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5611 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5612 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5613
5614
5615
5616
5617
5618
5619
5620
5621 if test -n "$ac_tool_prefix"; then
5622 for ac_prog in ar
5623 do
5624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5627 printf %s "checking for $ac_word... " >&6; }
5628 if test ${ac_cv_prog_AR+y}
5629 then :
5630 printf %s "(cached) " >&6
5631 else $as_nop
5632 if test -n "$AR"; then
5633 ac_cv_prog_AR="$AR" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5637 do
5638 IFS=$as_save_IFS
5639 case $as_dir in #(((
5640 '') as_dir=./ ;;
5641 */) ;;
5642 *) as_dir=$as_dir/ ;;
5643 esac
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 AR=$ac_cv_prog_AR
5657 if test -n "$AR"; then
5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5659 printf "%s\n" "$AR" >&6; }
5660 else
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 printf "%s\n" "no" >&6; }
5663 fi
5664
5665
5666 test -n "$AR" && break
5667 done
5668 fi
5669 if test -z "$AR"; then
5670 ac_ct_AR=$AR
5671 for ac_prog in ar
5672 do
5673 # Extract the first word of "$ac_prog", so it can be a program name with args.
5674 set dummy $ac_prog; ac_word=$2
5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 printf %s "checking for $ac_word... " >&6; }
5677 if test ${ac_cv_prog_ac_ct_AR+y}
5678 then :
5679 printf %s "(cached) " >&6
5680 else $as_nop
5681 if test -n "$ac_ct_AR"; then
5682 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687 IFS=$as_save_IFS
5688 case $as_dir in #(((
5689 '') as_dir=./ ;;
5690 */) ;;
5691 *) as_dir=$as_dir/ ;;
5692 esac
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5695 ac_cv_prog_ac_ct_AR="$ac_prog"
5696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5697 break 2
5698 fi
5699 done
5700 done
5701 IFS=$as_save_IFS
5702
5703 fi
5704 fi
5705 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5706 if test -n "$ac_ct_AR"; then
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5708 printf "%s\n" "$ac_ct_AR" >&6; }
5709 else
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 printf "%s\n" "no" >&6; }
5712 fi
5713
5714
5715 test -n "$ac_ct_AR" && break
5716 done
5717
5718 if test "x$ac_ct_AR" = x; then
5719 AR="false"
5720 else
5721 case $cross_compiling:$ac_tool_warned in
5722 yes:)
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5724 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5725 ac_tool_warned=yes ;;
5726 esac
5727 AR=$ac_ct_AR
5728 fi
5729 fi
5730
5731 : ${AR=ar}
5732 : ${AR_FLAGS=cru}
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5745 printf %s "checking for archiver @FILE support... " >&6; }
5746 if test ${lt_cv_ar_at_file+y}
5747 then :
5748 printf %s "(cached) " >&6
5749 else $as_nop
5750 lt_cv_ar_at_file=no
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753
5754 int
5755 main (void)
5756 {
5757
5758 ;
5759 return 0;
5760 }
5761 _ACEOF
5762 if ac_fn_c_try_compile "$LINENO"
5763 then :
5764 echo conftest.$ac_objext > conftest.lst
5765 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5767 (eval $lt_ar_try) 2>&5
5768 ac_status=$?
5769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5770 test $ac_status = 0; }
5771 if test 0 -eq "$ac_status"; then
5772 # Ensure the archiver fails upon bogus file names.
5773 rm -f conftest.$ac_objext libconftest.a
5774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5775 (eval $lt_ar_try) 2>&5
5776 ac_status=$?
5777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5778 test $ac_status = 0; }
5779 if test 0 -ne "$ac_status"; then
5780 lt_cv_ar_at_file=@
5781 fi
5782 fi
5783 rm -f conftest.* libconftest.a
5784
5785 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5787
5788 fi
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5790 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
5791
5792 if test no = "$lt_cv_ar_at_file"; then
5793 archiver_list_spec=
5794 else
5795 archiver_list_spec=$lt_cv_ar_at_file
5796 fi
5797
5798
5799
5800
5801
5802
5803
5804 if test -n "$ac_tool_prefix"; then
5805 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5806 set dummy ${ac_tool_prefix}strip; ac_word=$2
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 printf %s "checking for $ac_word... " >&6; }
5809 if test ${ac_cv_prog_STRIP+y}
5810 then :
5811 printf %s "(cached) " >&6
5812 else $as_nop
5813 if test -n "$STRIP"; then
5814 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819 IFS=$as_save_IFS
5820 case $as_dir in #(((
5821 '') as_dir=./ ;;
5822 */) ;;
5823 *) as_dir=$as_dir/ ;;
5824 esac
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5827 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5829 break 2
5830 fi
5831 done
5832 done
5833 IFS=$as_save_IFS
5834
5835 fi
5836 fi
5837 STRIP=$ac_cv_prog_STRIP
5838 if test -n "$STRIP"; then
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5840 printf "%s\n" "$STRIP" >&6; }
5841 else
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 printf "%s\n" "no" >&6; }
5844 fi
5845
5846
5847 fi
5848 if test -z "$ac_cv_prog_STRIP"; then
5849 ac_ct_STRIP=$STRIP
5850 # Extract the first word of "strip", so it can be a program name with args.
5851 set dummy strip; ac_word=$2
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853 printf %s "checking for $ac_word... " >&6; }
5854 if test ${ac_cv_prog_ac_ct_STRIP+y}
5855 then :
5856 printf %s "(cached) " >&6
5857 else $as_nop
5858 if test -n "$ac_ct_STRIP"; then
5859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864 IFS=$as_save_IFS
5865 case $as_dir in #(((
5866 '') as_dir=./ ;;
5867 */) ;;
5868 *) as_dir=$as_dir/ ;;
5869 esac
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_ac_ct_STRIP="strip"
5873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876 done
5877 done
5878 IFS=$as_save_IFS
5879
5880 fi
5881 fi
5882 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5883 if test -n "$ac_ct_STRIP"; then
5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5885 printf "%s\n" "$ac_ct_STRIP" >&6; }
5886 else
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 printf "%s\n" "no" >&6; }
5889 fi
5890
5891 if test "x$ac_ct_STRIP" = x; then
5892 STRIP=":"
5893 else
5894 case $cross_compiling:$ac_tool_warned in
5895 yes:)
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5899 esac
5900 STRIP=$ac_ct_STRIP
5901 fi
5902 else
5903 STRIP="$ac_cv_prog_STRIP"
5904 fi
5905
5906 test -z "$STRIP" && STRIP=:
5907
5908
5909
5910
5911
5912
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 printf %s "checking for $ac_word... " >&6; }
5918 if test ${ac_cv_prog_RANLIB+y}
5919 then :
5920 printf %s "(cached) " >&6
5921 else $as_nop
5922 if test -n "$RANLIB"; then
5923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 case $as_dir in #(((
5930 '') as_dir=./ ;;
5931 */) ;;
5932 *) as_dir=$as_dir/ ;;
5933 esac
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940 done
5941 done
5942 IFS=$as_save_IFS
5943
5944 fi
5945 fi
5946 RANLIB=$ac_cv_prog_RANLIB
5947 if test -n "$RANLIB"; then
5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5949 printf "%s\n" "$RANLIB" >&6; }
5950 else
5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 printf "%s\n" "no" >&6; }
5953 fi
5954
5955
5956 fi
5957 if test -z "$ac_cv_prog_RANLIB"; then
5958 ac_ct_RANLIB=$RANLIB
5959 # Extract the first word of "ranlib", so it can be a program name with args.
5960 set dummy ranlib; ac_word=$2
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 printf %s "checking for $ac_word... " >&6; }
5963 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5964 then :
5965 printf %s "(cached) " >&6
5966 else $as_nop
5967 if test -n "$ac_ct_RANLIB"; then
5968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973 IFS=$as_save_IFS
5974 case $as_dir in #(((
5975 '') as_dir=./ ;;
5976 */) ;;
5977 *) as_dir=$as_dir/ ;;
5978 esac
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5981 ac_cv_prog_ac_ct_RANLIB="ranlib"
5982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5983 break 2
5984 fi
5985 done
5986 done
5987 IFS=$as_save_IFS
5988
5989 fi
5990 fi
5991 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5992 if test -n "$ac_ct_RANLIB"; then
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5994 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5995 else
5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 printf "%s\n" "no" >&6; }
5998 fi
5999
6000 if test "x$ac_ct_RANLIB" = x; then
6001 RANLIB=":"
6002 else
6003 case $cross_compiling:$ac_tool_warned in
6004 yes:)
6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6006 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007 ac_tool_warned=yes ;;
6008 esac
6009 RANLIB=$ac_ct_RANLIB
6010 fi
6011 else
6012 RANLIB="$ac_cv_prog_RANLIB"
6013 fi
6014
6015 test -z "$RANLIB" && RANLIB=:
6016
6017
6018
6019
6020
6021
6022 # Determine commands to create old-style static archives.
6023 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6024 old_postinstall_cmds='chmod 644 $oldlib'
6025 old_postuninstall_cmds=
6026
6027 if test -n "$RANLIB"; then
6028 case $host_os in
6029 bitrig* | openbsd*)
6030 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6031 ;;
6032 *)
6033 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6034 ;;
6035 esac
6036 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6037 fi
6038
6039 case $host_os in
6040 darwin*)
6041 lock_old_archive_extraction=yes ;;
6042 *)
6043 lock_old_archive_extraction=no ;;
6044 esac
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066 for ac_prog in gawk mawk nawk awk
6067 do
6068 # Extract the first word of "$ac_prog", so it can be a program name with args.
6069 set dummy $ac_prog; ac_word=$2
6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 printf %s "checking for $ac_word... " >&6; }
6072 if test ${ac_cv_prog_AWK+y}
6073 then :
6074 printf %s "(cached) " >&6
6075 else $as_nop
6076 if test -n "$AWK"; then
6077 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082 IFS=$as_save_IFS
6083 case $as_dir in #(((
6084 '') as_dir=./ ;;
6085 */) ;;
6086 *) as_dir=$as_dir/ ;;
6087 esac
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6090 ac_cv_prog_AWK="$ac_prog"
6091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6092 break 2
6093 fi
6094 done
6095 done
6096 IFS=$as_save_IFS
6097
6098 fi
6099 fi
6100 AWK=$ac_cv_prog_AWK
6101 if test -n "$AWK"; then
6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6103 printf "%s\n" "$AWK" >&6; }
6104 else
6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 printf "%s\n" "no" >&6; }
6107 fi
6108
6109
6110 test -n "$AWK" && break
6111 done
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131 # If no C compiler was specified, use CC.
6132 LTCC=${LTCC-"$CC"}
6133
6134 # If no C compiler flags were specified, use CFLAGS.
6135 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6136
6137 # Allow CC to be a program name with arguments.
6138 compiler=$CC
6139
6140
6141 # Check for command to grab the raw symbol name followed by C symbol from nm.
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6143 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6144 if test ${lt_cv_sys_global_symbol_pipe+y}
6145 then :
6146 printf %s "(cached) " >&6
6147 else $as_nop
6148
6149 # These are sane defaults that work on at least a few old systems.
6150 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6151
6152 # Character class describing NM global symbol codes.
6153 symcode='[BCDEGRST]'
6154
6155 # Regexp to match symbols that can be accessed directly from C.
6156 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6157
6158 # Define system-specific variables.
6159 case $host_os in
6160 aix*)
6161 symcode='[BCDT]'
6162 ;;
6163 cygwin* | mingw* | pw32* | cegcc*)
6164 symcode='[ABCDGISTW]'
6165 ;;
6166 hpux*)
6167 if test ia64 = "$host_cpu"; then
6168 symcode='[ABCDEGRST]'
6169 fi
6170 ;;
6171 irix* | nonstopux*)
6172 symcode='[BCDEGRST]'
6173 ;;
6174 osf*)
6175 symcode='[BCDEGQRST]'
6176 ;;
6177 solaris*)
6178 symcode='[BDRT]'
6179 ;;
6180 sco3.2v5*)
6181 symcode='[DT]'
6182 ;;
6183 sysv4.2uw2*)
6184 symcode='[DT]'
6185 ;;
6186 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6187 symcode='[ABDT]'
6188 ;;
6189 sysv4)
6190 symcode='[DFNSTU]'
6191 ;;
6192 esac
6193
6194 # If we're using GNU nm, then use its standard symbol codes.
6195 case `$NM -V 2>&1` in
6196 *GNU* | *'with BFD'*)
6197 symcode='[ABCDGIRSTW]' ;;
6198 esac
6199
6200 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6201 # Gets list of data symbols to import.
6202 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6203 # Adjust the below global symbol transforms to fixup imported variables.
6204 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6205 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6206 lt_c_name_lib_hook="\
6207 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6208 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6209 else
6210 # Disable hooks by default.
6211 lt_cv_sys_global_symbol_to_import=
6212 lt_cdecl_hook=
6213 lt_c_name_hook=
6214 lt_c_name_lib_hook=
6215 fi
6216
6217 # Transform an extracted symbol line into a proper C declaration.
6218 # Some systems (esp. on ia64) link data and code symbols differently,
6219 # so use this general approach.
6220 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6221 $lt_cdecl_hook\
6222 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6223 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6224
6225 # Transform an extracted symbol line into symbol name and symbol address
6226 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6227 $lt_c_name_hook\
6228 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6229 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6230
6231 # Transform an extracted symbol line into symbol name with lib prefix and
6232 # symbol address.
6233 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6234 $lt_c_name_lib_hook\
6235 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6236 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6237 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6238
6239 # Handle CRLF in mingw tool chain
6240 opt_cr=
6241 case $build_os in
6242 mingw*)
6243 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6244 ;;
6245 esac
6246
6247 # Try without a prefix underscore, then with it.
6248 for ac_symprfx in "" "_"; do
6249
6250 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6251 symxfrm="\\1 $ac_symprfx\\2 \\2"
6252
6253 # Write the raw and C identifiers.
6254 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6255 # Fake it for dumpbin and say T for any non-static function,
6256 # D for any global variable and I for any imported variable.
6257 # Also find C++ and __fastcall symbols from MSVC++,
6258 # which start with @ or ?.
6259 lt_cv_sys_global_symbol_pipe="$AWK '"\
6260 " {last_section=section; section=\$ 3};"\
6261 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6262 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6263 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6264 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6265 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6266 " \$ 0!~/External *\|/{next};"\
6267 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6268 " {if(hide[section]) next};"\
6269 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6270 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6271 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6272 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6273 " ' prfx=^$ac_symprfx"
6274 else
6275 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6276 fi
6277 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6278
6279 # Check to see that the pipe works correctly.
6280 pipe_works=no
6281
6282 rm -f conftest*
6283 cat > conftest.$ac_ext <<_LT_EOF
6284 #ifdef __cplusplus
6285 extern "C" {
6286 #endif
6287 char nm_test_var;
6288 void nm_test_func(void);
6289 void nm_test_func(void){}
6290 #ifdef __cplusplus
6291 }
6292 #endif
6293 int main(){nm_test_var='a';nm_test_func();return(0);}
6294 _LT_EOF
6295
6296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6297 (eval $ac_compile) 2>&5
6298 ac_status=$?
6299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6300 test $ac_status = 0; }; then
6301 # Now try to grab the symbols.
6302 nlist=conftest.nm
6303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6304 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6305 ac_status=$?
6306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307 test $ac_status = 0; } && test -s "$nlist"; then
6308 # Try sorting and uniquifying the output.
6309 if sort "$nlist" | uniq > "$nlist"T; then
6310 mv -f "$nlist"T "$nlist"
6311 else
6312 rm -f "$nlist"T
6313 fi
6314
6315 # Make sure that we snagged all the symbols we need.
6316 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6317 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6318 cat <<_LT_EOF > conftest.$ac_ext
6319 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6320 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6321 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6322 relocations are performed -- see ld's documentation on pseudo-relocs. */
6323 # define LT_DLSYM_CONST
6324 #elif defined __osf__
6325 /* This system does not cope well with relocations in const data. */
6326 # define LT_DLSYM_CONST
6327 #else
6328 # define LT_DLSYM_CONST const
6329 #endif
6330
6331 #ifdef __cplusplus
6332 extern "C" {
6333 #endif
6334
6335 _LT_EOF
6336 # Now generate the symbol file.
6337 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6338
6339 cat <<_LT_EOF >> conftest.$ac_ext
6340
6341 /* The mapping between symbol names and symbols. */
6342 LT_DLSYM_CONST struct {
6343 const char *name;
6344 void *address;
6345 }
6346 lt__PROGRAM__LTX_preloaded_symbols[] =
6347 {
6348 { "@PROGRAM@", (void *) 0 },
6349 _LT_EOF
6350 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6351 cat <<\_LT_EOF >> conftest.$ac_ext
6352 {0, (void *) 0}
6353 };
6354
6355 /* This works around a problem in FreeBSD linker */
6356 #ifdef FREEBSD_WORKAROUND
6357 static const void *lt_preloaded_setup() {
6358 return lt__PROGRAM__LTX_preloaded_symbols;
6359 }
6360 #endif
6361
6362 #ifdef __cplusplus
6363 }
6364 #endif
6365 _LT_EOF
6366 # Now try linking the two files.
6367 mv conftest.$ac_objext conftstm.$ac_objext
6368 lt_globsym_save_LIBS=$LIBS
6369 lt_globsym_save_CFLAGS=$CFLAGS
6370 LIBS=conftstm.$ac_objext
6371 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6373 (eval $ac_link) 2>&5
6374 ac_status=$?
6375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6377 pipe_works=yes
6378 fi
6379 LIBS=$lt_globsym_save_LIBS
6380 CFLAGS=$lt_globsym_save_CFLAGS
6381 else
6382 echo "cannot find nm_test_func in $nlist" >&5
6383 fi
6384 else
6385 echo "cannot find nm_test_var in $nlist" >&5
6386 fi
6387 else
6388 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6389 fi
6390 else
6391 echo "$progname: failed program was:" >&5
6392 cat conftest.$ac_ext >&5
6393 fi
6394 rm -rf conftest* conftst*
6395
6396 # Do not use the global_symbol_pipe unless it works.
6397 if test yes = "$pipe_works"; then
6398 break
6399 else
6400 lt_cv_sys_global_symbol_pipe=
6401 fi
6402 done
6403
6404 fi
6405
6406 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6407 lt_cv_sys_global_symbol_to_cdecl=
6408 fi
6409 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6411 printf "%s\n" "failed" >&6; }
6412 else
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6414 printf "%s\n" "ok" >&6; }
6415 fi
6416
6417 # Response file support.
6418 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6419 nm_file_list_spec='@'
6420 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6421 nm_file_list_spec='@'
6422 fi
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6461 printf %s "checking for sysroot... " >&6; }
6462
6463 # Check whether --with-sysroot was given.
6464 if test ${with_sysroot+y}
6465 then :
6466 withval=$with_sysroot;
6467 else $as_nop
6468 with_sysroot=no
6469 fi
6470
6471
6472 lt_sysroot=
6473 case $with_sysroot in #(
6474 yes)
6475 if test yes = "$GCC"; then
6476 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6477 fi
6478 ;; #(
6479 /*)
6480 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6481 ;; #(
6482 no|'')
6483 ;; #(
6484 *)
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6486 printf "%s\n" "$with_sysroot" >&6; }
6487 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6488 ;;
6489 esac
6490
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6492 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6493
6494
6495
6496
6497
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6499 printf %s "checking for a working dd... " >&6; }
6500 if test ${ac_cv_path_lt_DD+y}
6501 then :
6502 printf %s "(cached) " >&6
6503 else $as_nop
6504 printf 0123456789abcdef0123456789abcdef >conftest.i
6505 cat conftest.i conftest.i >conftest2.i
6506 : ${lt_DD:=$DD}
6507 if test -z "$lt_DD"; then
6508 ac_path_lt_DD_found=false
6509 # Loop through the user's path and test for each of PROGNAME-LIST
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513 IFS=$as_save_IFS
6514 case $as_dir in #(((
6515 '') as_dir=./ ;;
6516 */) ;;
6517 *) as_dir=$as_dir/ ;;
6518 esac
6519 for ac_prog in dd
6520 do
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6523 as_fn_executable_p "$ac_path_lt_DD" || continue
6524 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6525 cmp -s conftest.i conftest.out \
6526 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6527 fi
6528 $ac_path_lt_DD_found && break 3
6529 done
6530 done
6531 done
6532 IFS=$as_save_IFS
6533 if test -z "$ac_cv_path_lt_DD"; then
6534 :
6535 fi
6536 else
6537 ac_cv_path_lt_DD=$lt_DD
6538 fi
6539
6540 rm -f conftest.i conftest2.i conftest.out
6541 fi
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6543 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6544
6545
6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6547 printf %s "checking how to truncate binary pipes... " >&6; }
6548 if test ${lt_cv_truncate_bin+y}
6549 then :
6550 printf %s "(cached) " >&6
6551 else $as_nop
6552 printf 0123456789abcdef0123456789abcdef >conftest.i
6553 cat conftest.i conftest.i >conftest2.i
6554 lt_cv_truncate_bin=
6555 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6556 cmp -s conftest.i conftest.out \
6557 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6558 fi
6559 rm -f conftest.i conftest2.i conftest.out
6560 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6561 fi
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6563 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6564
6565
6566
6567
6568
6569
6570
6571 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6572 func_cc_basename ()
6573 {
6574 for cc_temp in $*""; do
6575 case $cc_temp in
6576 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6577 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6578 \-*) ;;
6579 *) break;;
6580 esac
6581 done
6582 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6583 }
6584
6585 # Check whether --enable-libtool-lock was given.
6586 if test ${enable_libtool_lock+y}
6587 then :
6588 enableval=$enable_libtool_lock;
6589 fi
6590
6591 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6592
6593 # Some flags need to be propagated to the compiler or linker for good
6594 # libtool support.
6595 case $host in
6596 ia64-*-hpux*)
6597 # Find out what ABI is being produced by ac_compile, and set mode
6598 # options accordingly.
6599 echo 'int i;' > conftest.$ac_ext
6600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6601 (eval $ac_compile) 2>&5
6602 ac_status=$?
6603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6604 test $ac_status = 0; }; then
6605 case `/usr/bin/file conftest.$ac_objext` in
6606 *ELF-32*)
6607 HPUX_IA64_MODE=32
6608 ;;
6609 *ELF-64*)
6610 HPUX_IA64_MODE=64
6611 ;;
6612 esac
6613 fi
6614 rm -rf conftest*
6615 ;;
6616 *-*-irix6*)
6617 # Find out what ABI is being produced by ac_compile, and set linker
6618 # options accordingly.
6619 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6621 (eval $ac_compile) 2>&5
6622 ac_status=$?
6623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }; then
6625 if test yes = "$lt_cv_prog_gnu_ld"; then
6626 case `/usr/bin/file conftest.$ac_objext` in
6627 *32-bit*)
6628 LD="${LD-ld} -melf32bsmip"
6629 ;;
6630 *N32*)
6631 LD="${LD-ld} -melf32bmipn32"
6632 ;;
6633 *64-bit*)
6634 LD="${LD-ld} -melf64bmip"
6635 ;;
6636 esac
6637 else
6638 case `/usr/bin/file conftest.$ac_objext` in
6639 *32-bit*)
6640 LD="${LD-ld} -32"
6641 ;;
6642 *N32*)
6643 LD="${LD-ld} -n32"
6644 ;;
6645 *64-bit*)
6646 LD="${LD-ld} -64"
6647 ;;
6648 esac
6649 fi
6650 fi
6651 rm -rf conftest*
6652 ;;
6653
6654 mips64*-*linux*)
6655 # Find out what ABI is being produced by ac_compile, and set linker
6656 # options accordingly.
6657 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6659 (eval $ac_compile) 2>&5
6660 ac_status=$?
6661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6662 test $ac_status = 0; }; then
6663 emul=elf
6664 case `/usr/bin/file conftest.$ac_objext` in
6665 *32-bit*)
6666 emul="${emul}32"
6667 ;;
6668 *64-bit*)
6669 emul="${emul}64"
6670 ;;
6671 esac
6672 case `/usr/bin/file conftest.$ac_objext` in
6673 *MSB*)
6674 emul="${emul}btsmip"
6675 ;;
6676 *LSB*)
6677 emul="${emul}ltsmip"
6678 ;;
6679 esac
6680 case `/usr/bin/file conftest.$ac_objext` in
6681 *N32*)
6682 emul="${emul}n32"
6683 ;;
6684 esac
6685 LD="${LD-ld} -m $emul"
6686 fi
6687 rm -rf conftest*
6688 ;;
6689
6690 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6691 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6692 # Find out what ABI is being produced by ac_compile, and set linker
6693 # options accordingly. Note that the listed cases only cover the
6694 # situations where additional linker options are needed (such as when
6695 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6696 # vice versa); the common cases where no linker options are needed do
6697 # not appear in the list.
6698 echo 'int i;' > conftest.$ac_ext
6699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6700 (eval $ac_compile) 2>&5
6701 ac_status=$?
6702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703 test $ac_status = 0; }; then
6704 case `/usr/bin/file conftest.o` in
6705 *32-bit*)
6706 case $host in
6707 x86_64-*kfreebsd*-gnu)
6708 LD="${LD-ld} -m elf_i386_fbsd"
6709 ;;
6710 x86_64-*linux*)
6711 case `/usr/bin/file conftest.o` in
6712 *x86-64*)
6713 LD="${LD-ld} -m elf32_x86_64"
6714 ;;
6715 *)
6716 LD="${LD-ld} -m elf_i386"
6717 ;;
6718 esac
6719 ;;
6720 powerpc64le-*linux*)
6721 LD="${LD-ld} -m elf32lppclinux"
6722 ;;
6723 powerpc64-*linux*)
6724 LD="${LD-ld} -m elf32ppclinux"
6725 ;;
6726 s390x-*linux*)
6727 LD="${LD-ld} -m elf_s390"
6728 ;;
6729 sparc64-*linux*)
6730 LD="${LD-ld} -m elf32_sparc"
6731 ;;
6732 esac
6733 ;;
6734 *64-bit*)
6735 case $host in
6736 x86_64-*kfreebsd*-gnu)
6737 LD="${LD-ld} -m elf_x86_64_fbsd"
6738 ;;
6739 x86_64-*linux*)
6740 LD="${LD-ld} -m elf_x86_64"
6741 ;;
6742 powerpcle-*linux*)
6743 LD="${LD-ld} -m elf64lppc"
6744 ;;
6745 powerpc-*linux*)
6746 LD="${LD-ld} -m elf64ppc"
6747 ;;
6748 s390*-*linux*|s390*-*tpf*)
6749 LD="${LD-ld} -m elf64_s390"
6750 ;;
6751 sparc*-*linux*)
6752 LD="${LD-ld} -m elf64_sparc"
6753 ;;
6754 esac
6755 ;;
6756 esac
6757 fi
6758 rm -rf conftest*
6759 ;;
6760
6761 *-*-sco3.2v5*)
6762 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6763 SAVE_CFLAGS=$CFLAGS
6764 CFLAGS="$CFLAGS -belf"
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6766 printf %s "checking whether the C compiler needs -belf... " >&6; }
6767 if test ${lt_cv_cc_needs_belf+y}
6768 then :
6769 printf %s "(cached) " >&6
6770 else $as_nop
6771 ac_ext=c
6772 ac_cpp='$CPP $CPPFLAGS'
6773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6776
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779
6780 int
6781 main (void)
6782 {
6783
6784 ;
6785 return 0;
6786 }
6787 _ACEOF
6788 if ac_fn_c_try_link "$LINENO"
6789 then :
6790 lt_cv_cc_needs_belf=yes
6791 else $as_nop
6792 lt_cv_cc_needs_belf=no
6793 fi
6794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6795 conftest$ac_exeext conftest.$ac_ext
6796 ac_ext=c
6797 ac_cpp='$CPP $CPPFLAGS'
6798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6801
6802 fi
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6804 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
6805 if test yes != "$lt_cv_cc_needs_belf"; then
6806 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6807 CFLAGS=$SAVE_CFLAGS
6808 fi
6809 ;;
6810 *-*solaris*)
6811 # Find out what ABI is being produced by ac_compile, and set linker
6812 # options accordingly.
6813 echo 'int i;' > conftest.$ac_ext
6814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6815 (eval $ac_compile) 2>&5
6816 ac_status=$?
6817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6818 test $ac_status = 0; }; then
6819 case `/usr/bin/file conftest.o` in
6820 *64-bit*)
6821 case $lt_cv_prog_gnu_ld in
6822 yes*)
6823 case $host in
6824 i?86-*-solaris*|x86_64-*-solaris*)
6825 LD="${LD-ld} -m elf_x86_64"
6826 ;;
6827 sparc*-*-solaris*)
6828 LD="${LD-ld} -m elf64_sparc"
6829 ;;
6830 esac
6831 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6832 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6833 LD=${LD-ld}_sol2
6834 fi
6835 ;;
6836 *)
6837 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6838 LD="${LD-ld} -64"
6839 fi
6840 ;;
6841 esac
6842 ;;
6843 esac
6844 fi
6845 rm -rf conftest*
6846 ;;
6847 esac
6848
6849 need_locks=$enable_libtool_lock
6850
6851 if test -n "$ac_tool_prefix"; then
6852 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6853 set dummy ${ac_tool_prefix}mt; ac_word=$2
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 printf %s "checking for $ac_word... " >&6; }
6856 if test ${ac_cv_prog_MANIFEST_TOOL+y}
6857 then :
6858 printf %s "(cached) " >&6
6859 else $as_nop
6860 if test -n "$MANIFEST_TOOL"; then
6861 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6862 else
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6865 do
6866 IFS=$as_save_IFS
6867 case $as_dir in #(((
6868 '') as_dir=./ ;;
6869 */) ;;
6870 *) as_dir=$as_dir/ ;;
6871 esac
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6874 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6885 if test -n "$MANIFEST_TOOL"; then
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6887 printf "%s\n" "$MANIFEST_TOOL" >&6; }
6888 else
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 printf "%s\n" "no" >&6; }
6891 fi
6892
6893
6894 fi
6895 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6896 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6897 # Extract the first word of "mt", so it can be a program name with args.
6898 set dummy mt; ac_word=$2
6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900 printf %s "checking for $ac_word... " >&6; }
6901 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
6902 then :
6903 printf %s "(cached) " >&6
6904 else $as_nop
6905 if test -n "$ac_ct_MANIFEST_TOOL"; then
6906 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911 IFS=$as_save_IFS
6912 case $as_dir in #(((
6913 '') as_dir=./ ;;
6914 */) ;;
6915 *) as_dir=$as_dir/ ;;
6916 esac
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6919 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6930 if test -n "$ac_ct_MANIFEST_TOOL"; then
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6932 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
6933 else
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 printf "%s\n" "no" >&6; }
6936 fi
6937
6938 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6939 MANIFEST_TOOL=":"
6940 else
6941 case $cross_compiling:$ac_tool_warned in
6942 yes:)
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6945 ac_tool_warned=yes ;;
6946 esac
6947 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6948 fi
6949 else
6950 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6951 fi
6952
6953 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6955 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6956 if test ${lt_cv_path_mainfest_tool+y}
6957 then :
6958 printf %s "(cached) " >&6
6959 else $as_nop
6960 lt_cv_path_mainfest_tool=no
6961 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6962 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6963 cat conftest.err >&5
6964 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6965 lt_cv_path_mainfest_tool=yes
6966 fi
6967 rm -f conftest*
6968 fi
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6970 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
6971 if test yes != "$lt_cv_path_mainfest_tool"; then
6972 MANIFEST_TOOL=:
6973 fi
6974
6975
6976
6977
6978
6979
6980 case $host_os in
6981 rhapsody* | darwin*)
6982 if test -n "$ac_tool_prefix"; then
6983 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6984 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 printf %s "checking for $ac_word... " >&6; }
6987 if test ${ac_cv_prog_DSYMUTIL+y}
6988 then :
6989 printf %s "(cached) " >&6
6990 else $as_nop
6991 if test -n "$DSYMUTIL"; then
6992 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997 IFS=$as_save_IFS
6998 case $as_dir in #(((
6999 '') as_dir=./ ;;
7000 */) ;;
7001 *) as_dir=$as_dir/ ;;
7002 esac
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7005 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7007 break 2
7008 fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013 fi
7014 fi
7015 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7016 if test -n "$DSYMUTIL"; then
7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7018 printf "%s\n" "$DSYMUTIL" >&6; }
7019 else
7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 printf "%s\n" "no" >&6; }
7022 fi
7023
7024
7025 fi
7026 if test -z "$ac_cv_prog_DSYMUTIL"; then
7027 ac_ct_DSYMUTIL=$DSYMUTIL
7028 # Extract the first word of "dsymutil", so it can be a program name with args.
7029 set dummy dsymutil; ac_word=$2
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 printf %s "checking for $ac_word... " >&6; }
7032 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7033 then :
7034 printf %s "(cached) " >&6
7035 else $as_nop
7036 if test -n "$ac_ct_DSYMUTIL"; then
7037 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042 IFS=$as_save_IFS
7043 case $as_dir in #(((
7044 '') as_dir=./ ;;
7045 */) ;;
7046 *) as_dir=$as_dir/ ;;
7047 esac
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7050 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058 fi
7059 fi
7060 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7061 if test -n "$ac_ct_DSYMUTIL"; then
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7063 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7064 else
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 printf "%s\n" "no" >&6; }
7067 fi
7068
7069 if test "x$ac_ct_DSYMUTIL" = x; then
7070 DSYMUTIL=":"
7071 else
7072 case $cross_compiling:$ac_tool_warned in
7073 yes:)
7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7075 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7076 ac_tool_warned=yes ;;
7077 esac
7078 DSYMUTIL=$ac_ct_DSYMUTIL
7079 fi
7080 else
7081 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7082 fi
7083
7084 if test -n "$ac_tool_prefix"; then
7085 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088 printf %s "checking for $ac_word... " >&6; }
7089 if test ${ac_cv_prog_NMEDIT+y}
7090 then :
7091 printf %s "(cached) " >&6
7092 else $as_nop
7093 if test -n "$NMEDIT"; then
7094 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099 IFS=$as_save_IFS
7100 case $as_dir in #(((
7101 '') as_dir=./ ;;
7102 */) ;;
7103 *) as_dir=$as_dir/ ;;
7104 esac
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7107 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7109 break 2
7110 fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115 fi
7116 fi
7117 NMEDIT=$ac_cv_prog_NMEDIT
7118 if test -n "$NMEDIT"; then
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7120 printf "%s\n" "$NMEDIT" >&6; }
7121 else
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 printf "%s\n" "no" >&6; }
7124 fi
7125
7126
7127 fi
7128 if test -z "$ac_cv_prog_NMEDIT"; then
7129 ac_ct_NMEDIT=$NMEDIT
7130 # Extract the first word of "nmedit", so it can be a program name with args.
7131 set dummy nmedit; ac_word=$2
7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 printf %s "checking for $ac_word... " >&6; }
7134 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7135 then :
7136 printf %s "(cached) " >&6
7137 else $as_nop
7138 if test -n "$ac_ct_NMEDIT"; then
7139 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144 IFS=$as_save_IFS
7145 case $as_dir in #(((
7146 '') as_dir=./ ;;
7147 */) ;;
7148 *) as_dir=$as_dir/ ;;
7149 esac
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7152 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156 done
7157 done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7163 if test -n "$ac_ct_NMEDIT"; then
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7165 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7166 else
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 printf "%s\n" "no" >&6; }
7169 fi
7170
7171 if test "x$ac_ct_NMEDIT" = x; then
7172 NMEDIT=":"
7173 else
7174 case $cross_compiling:$ac_tool_warned in
7175 yes:)
7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7179 esac
7180 NMEDIT=$ac_ct_NMEDIT
7181 fi
7182 else
7183 NMEDIT="$ac_cv_prog_NMEDIT"
7184 fi
7185
7186 if test -n "$ac_tool_prefix"; then
7187 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 printf %s "checking for $ac_word... " >&6; }
7191 if test ${ac_cv_prog_LIPO+y}
7192 then :
7193 printf %s "(cached) " >&6
7194 else $as_nop
7195 if test -n "$LIPO"; then
7196 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201 IFS=$as_save_IFS
7202 case $as_dir in #(((
7203 '') as_dir=./ ;;
7204 */) ;;
7205 *) as_dir=$as_dir/ ;;
7206 esac
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7209 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213 done
7214 done
7215 IFS=$as_save_IFS
7216
7217 fi
7218 fi
7219 LIPO=$ac_cv_prog_LIPO
7220 if test -n "$LIPO"; then
7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7222 printf "%s\n" "$LIPO" >&6; }
7223 else
7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 printf "%s\n" "no" >&6; }
7226 fi
7227
7228
7229 fi
7230 if test -z "$ac_cv_prog_LIPO"; then
7231 ac_ct_LIPO=$LIPO
7232 # Extract the first word of "lipo", so it can be a program name with args.
7233 set dummy lipo; ac_word=$2
7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 printf %s "checking for $ac_word... " >&6; }
7236 if test ${ac_cv_prog_ac_ct_LIPO+y}
7237 then :
7238 printf %s "(cached) " >&6
7239 else $as_nop
7240 if test -n "$ac_ct_LIPO"; then
7241 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246 IFS=$as_save_IFS
7247 case $as_dir in #(((
7248 '') as_dir=./ ;;
7249 */) ;;
7250 *) as_dir=$as_dir/ ;;
7251 esac
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_ac_ct_LIPO="lipo"
7255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7256 break 2
7257 fi
7258 done
7259 done
7260 IFS=$as_save_IFS
7261
7262 fi
7263 fi
7264 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7265 if test -n "$ac_ct_LIPO"; then
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7267 printf "%s\n" "$ac_ct_LIPO" >&6; }
7268 else
7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 printf "%s\n" "no" >&6; }
7271 fi
7272
7273 if test "x$ac_ct_LIPO" = x; then
7274 LIPO=":"
7275 else
7276 case $cross_compiling:$ac_tool_warned in
7277 yes:)
7278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7279 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7280 ac_tool_warned=yes ;;
7281 esac
7282 LIPO=$ac_ct_LIPO
7283 fi
7284 else
7285 LIPO="$ac_cv_prog_LIPO"
7286 fi
7287
7288 if test -n "$ac_tool_prefix"; then
7289 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7290 set dummy ${ac_tool_prefix}otool; ac_word=$2
7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 printf %s "checking for $ac_word... " >&6; }
7293 if test ${ac_cv_prog_OTOOL+y}
7294 then :
7295 printf %s "(cached) " >&6
7296 else $as_nop
7297 if test -n "$OTOOL"; then
7298 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303 IFS=$as_save_IFS
7304 case $as_dir in #(((
7305 '') as_dir=./ ;;
7306 */) ;;
7307 *) as_dir=$as_dir/ ;;
7308 esac
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7313 break 2
7314 fi
7315 done
7316 done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 OTOOL=$ac_cv_prog_OTOOL
7322 if test -n "$OTOOL"; then
7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7324 printf "%s\n" "$OTOOL" >&6; }
7325 else
7326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 printf "%s\n" "no" >&6; }
7328 fi
7329
7330
7331 fi
7332 if test -z "$ac_cv_prog_OTOOL"; then
7333 ac_ct_OTOOL=$OTOOL
7334 # Extract the first word of "otool", so it can be a program name with args.
7335 set dummy otool; ac_word=$2
7336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 printf %s "checking for $ac_word... " >&6; }
7338 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7339 then :
7340 printf %s "(cached) " >&6
7341 else $as_nop
7342 if test -n "$ac_ct_OTOOL"; then
7343 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348 IFS=$as_save_IFS
7349 case $as_dir in #(((
7350 '') as_dir=./ ;;
7351 */) ;;
7352 *) as_dir=$as_dir/ ;;
7353 esac
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7356 ac_cv_prog_ac_ct_OTOOL="otool"
7357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360 done
7361 done
7362 IFS=$as_save_IFS
7363
7364 fi
7365 fi
7366 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7367 if test -n "$ac_ct_OTOOL"; then
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7369 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7370 else
7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 printf "%s\n" "no" >&6; }
7373 fi
7374
7375 if test "x$ac_ct_OTOOL" = x; then
7376 OTOOL=":"
7377 else
7378 case $cross_compiling:$ac_tool_warned in
7379 yes:)
7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7381 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7382 ac_tool_warned=yes ;;
7383 esac
7384 OTOOL=$ac_ct_OTOOL
7385 fi
7386 else
7387 OTOOL="$ac_cv_prog_OTOOL"
7388 fi
7389
7390 if test -n "$ac_tool_prefix"; then
7391 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7392 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 printf %s "checking for $ac_word... " >&6; }
7395 if test ${ac_cv_prog_OTOOL64+y}
7396 then :
7397 printf %s "(cached) " >&6
7398 else $as_nop
7399 if test -n "$OTOOL64"; then
7400 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405 IFS=$as_save_IFS
7406 case $as_dir in #(((
7407 '') as_dir=./ ;;
7408 */) ;;
7409 *) as_dir=$as_dir/ ;;
7410 esac
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7413 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7415 break 2
7416 fi
7417 done
7418 done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 OTOOL64=$ac_cv_prog_OTOOL64
7424 if test -n "$OTOOL64"; then
7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7426 printf "%s\n" "$OTOOL64" >&6; }
7427 else
7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 printf "%s\n" "no" >&6; }
7430 fi
7431
7432
7433 fi
7434 if test -z "$ac_cv_prog_OTOOL64"; then
7435 ac_ct_OTOOL64=$OTOOL64
7436 # Extract the first word of "otool64", so it can be a program name with args.
7437 set dummy otool64; ac_word=$2
7438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 printf %s "checking for $ac_word... " >&6; }
7440 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7441 then :
7442 printf %s "(cached) " >&6
7443 else $as_nop
7444 if test -n "$ac_ct_OTOOL64"; then
7445 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450 IFS=$as_save_IFS
7451 case $as_dir in #(((
7452 '') as_dir=./ ;;
7453 */) ;;
7454 *) as_dir=$as_dir/ ;;
7455 esac
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_ac_ct_OTOOL64="otool64"
7459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7460 break 2
7461 fi
7462 done
7463 done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7469 if test -n "$ac_ct_OTOOL64"; then
7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7471 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7472 else
7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 printf "%s\n" "no" >&6; }
7475 fi
7476
7477 if test "x$ac_ct_OTOOL64" = x; then
7478 OTOOL64=":"
7479 else
7480 case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486 OTOOL64=$ac_ct_OTOOL64
7487 fi
7488 else
7489 OTOOL64="$ac_cv_prog_OTOOL64"
7490 fi
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7519 printf %s "checking for -single_module linker flag... " >&6; }
7520 if test ${lt_cv_apple_cc_single_mod+y}
7521 then :
7522 printf %s "(cached) " >&6
7523 else $as_nop
7524 lt_cv_apple_cc_single_mod=no
7525 if test -z "$LT_MULTI_MODULE"; then
7526 # By default we will add the -single_module flag. You can override
7527 # by either setting the environment variable LT_MULTI_MODULE
7528 # non-empty at configure time, or by adding -multi_module to the
7529 # link flags.
7530 rm -rf libconftest.dylib*
7531 echo "int foo(void){return 1;}" > conftest.c
7532 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7533 -dynamiclib -Wl,-single_module conftest.c" >&5
7534 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7535 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7536 _lt_result=$?
7537 # If there is a non-empty error log, and "single_module"
7538 # appears in it, assume the flag caused a linker warning
7539 if test -s conftest.err && $GREP single_module conftest.err; then
7540 cat conftest.err >&5
7541 # Otherwise, if the output was created with a 0 exit code from
7542 # the compiler, it worked.
7543 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7544 lt_cv_apple_cc_single_mod=yes
7545 else
7546 cat conftest.err >&5
7547 fi
7548 rm -rf libconftest.dylib*
7549 rm -f conftest.*
7550 fi
7551 fi
7552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7553 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7554
7555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7556 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7557 if test ${lt_cv_ld_exported_symbols_list+y}
7558 then :
7559 printf %s "(cached) " >&6
7560 else $as_nop
7561 lt_cv_ld_exported_symbols_list=no
7562 save_LDFLAGS=$LDFLAGS
7563 echo "_main" > conftest.sym
7564 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567
7568 int
7569 main (void)
7570 {
7571
7572 ;
7573 return 0;
7574 }
7575 _ACEOF
7576 if ac_fn_c_try_link "$LINENO"
7577 then :
7578 lt_cv_ld_exported_symbols_list=yes
7579 else $as_nop
7580 lt_cv_ld_exported_symbols_list=no
7581 fi
7582 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7583 conftest$ac_exeext conftest.$ac_ext
7584 LDFLAGS=$save_LDFLAGS
7585
7586 fi
7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7588 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7589
7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7591 printf %s "checking for -force_load linker flag... " >&6; }
7592 if test ${lt_cv_ld_force_load+y}
7593 then :
7594 printf %s "(cached) " >&6
7595 else $as_nop
7596 lt_cv_ld_force_load=no
7597 cat > conftest.c << _LT_EOF
7598 int forced_loaded() { return 2;}
7599 _LT_EOF
7600 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7601 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7602 echo "$AR cru libconftest.a conftest.o" >&5
7603 $AR cru libconftest.a conftest.o 2>&5
7604 echo "$RANLIB libconftest.a" >&5
7605 $RANLIB libconftest.a 2>&5
7606 cat > conftest.c << _LT_EOF
7607 int main() { return 0;}
7608 _LT_EOF
7609 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7610 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7611 _lt_result=$?
7612 if test -s conftest.err && $GREP force_load conftest.err; then
7613 cat conftest.err >&5
7614 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7615 lt_cv_ld_force_load=yes
7616 else
7617 cat conftest.err >&5
7618 fi
7619 rm -f conftest.err libconftest.a conftest conftest.c
7620 rm -rf conftest.dSYM
7621
7622 fi
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7624 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7625 case $host_os in
7626 rhapsody* | darwin1.[012])
7627 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7628 darwin1.*)
7629 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7630 darwin*) # darwin 5.x on
7631 # if running on 10.5 or later, the deployment target defaults
7632 # to the OS version, if on x86, and 10.4, the deployment
7633 # target defaults to 10.4. Don't you love it?
7634 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7635 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7636 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7637 10.[012][,.]*)
7638 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7639 10.*)
7640 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7641 esac
7642 ;;
7643 esac
7644 if test yes = "$lt_cv_apple_cc_single_mod"; then
7645 _lt_dar_single_mod='$single_module'
7646 fi
7647 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7648 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7649 else
7650 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7651 fi
7652 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7653 _lt_dsymutil='~$DSYMUTIL $lib || :'
7654 else
7655 _lt_dsymutil=
7656 fi
7657 ;;
7658 esac
7659
7660 # func_munge_path_list VARIABLE PATH
7661 # -----------------------------------
7662 # VARIABLE is name of variable containing _space_ separated list of
7663 # directories to be munged by the contents of PATH, which is string
7664 # having a format:
7665 # "DIR[:DIR]:"
7666 # string "DIR[ DIR]" will be prepended to VARIABLE
7667 # ":DIR[:DIR]"
7668 # string "DIR[ DIR]" will be appended to VARIABLE
7669 # "DIRP[:DIRP]::[DIRA:]DIRA"
7670 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7671 # "DIRA[ DIRA]" will be appended to VARIABLE
7672 # "DIR[:DIR]"
7673 # VARIABLE will be replaced by "DIR[ DIR]"
7674 func_munge_path_list ()
7675 {
7676 case x$2 in
7677 x)
7678 ;;
7679 *:)
7680 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7681 ;;
7682 x:*)
7683 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7684 ;;
7685 *::*)
7686 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7687 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7688 ;;
7689 *)
7690 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7691 ;;
7692 esac
7693 }
7694
7695 ac_header= ac_cache=
7696 for ac_item in $ac_header_c_list
7697 do
7698 if test $ac_cache; then
7699 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7700 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7701 printf "%s\n" "#define $ac_item 1" >> confdefs.h
7702 fi
7703 ac_header= ac_cache=
7704 elif test $ac_header; then
7705 ac_cache=$ac_item
7706 else
7707 ac_header=$ac_item
7708 fi
7709 done
7710
7711
7712
7713
7714
7715
7716
7717
7718 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7719 then :
7720
7721 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7722
7723 fi
7724 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7725 "
7726 if test "x$ac_cv_header_dlfcn_h" = xyes
7727 then :
7728 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7729
7730 fi
7731
7732
7733
7734
7735
7736 # Set options
7737
7738
7739
7740 enable_dlopen=no
7741
7742
7743 enable_win32_dll=no
7744
7745
7746 # Check whether --enable-shared was given.
7747 if test ${enable_shared+y}
7748 then :
7749 enableval=$enable_shared; p=${PACKAGE-default}
7750 case $enableval in
7751 yes) enable_shared=yes ;;
7752 no) enable_shared=no ;;
7753 *)
7754 enable_shared=no
7755 # Look at the argument we got. We use all the common list separators.
7756 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7757 for pkg in $enableval; do
7758 IFS=$lt_save_ifs
7759 if test "X$pkg" = "X$p"; then
7760 enable_shared=yes
7761 fi
7762 done
7763 IFS=$lt_save_ifs
7764 ;;
7765 esac
7766 else $as_nop
7767 enable_shared=yes
7768 fi
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778 # Check whether --enable-static was given.
7779 if test ${enable_static+y}
7780 then :
7781 enableval=$enable_static; p=${PACKAGE-default}
7782 case $enableval in
7783 yes) enable_static=yes ;;
7784 no) enable_static=no ;;
7785 *)
7786 enable_static=no
7787 # Look at the argument we got. We use all the common list separators.
7788 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7789 for pkg in $enableval; do
7790 IFS=$lt_save_ifs
7791 if test "X$pkg" = "X$p"; then
7792 enable_static=yes
7793 fi
7794 done
7795 IFS=$lt_save_ifs
7796 ;;
7797 esac
7798 else $as_nop
7799 enable_static=yes
7800 fi
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811 # Check whether --with-pic was given.
7812 if test ${with_pic+y}
7813 then :
7814 withval=$with_pic; lt_p=${PACKAGE-default}
7815 case $withval in
7816 yes|no) pic_mode=$withval ;;
7817 *)
7818 pic_mode=default
7819 # Look at the argument we got. We use all the common list separators.
7820 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7821 for lt_pkg in $withval; do
7822 IFS=$lt_save_ifs
7823 if test "X$lt_pkg" = "X$lt_p"; then
7824 pic_mode=yes
7825 fi
7826 done
7827 IFS=$lt_save_ifs
7828 ;;
7829 esac
7830 else $as_nop
7831 pic_mode=default
7832 fi
7833
7834
7835
7836
7837
7838
7839
7840
7841 # Check whether --enable-fast-install was given.
7842 if test ${enable_fast_install+y}
7843 then :
7844 enableval=$enable_fast_install; p=${PACKAGE-default}
7845 case $enableval in
7846 yes) enable_fast_install=yes ;;
7847 no) enable_fast_install=no ;;
7848 *)
7849 enable_fast_install=no
7850 # Look at the argument we got. We use all the common list separators.
7851 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7852 for pkg in $enableval; do
7853 IFS=$lt_save_ifs
7854 if test "X$pkg" = "X$p"; then
7855 enable_fast_install=yes
7856 fi
7857 done
7858 IFS=$lt_save_ifs
7859 ;;
7860 esac
7861 else $as_nop
7862 enable_fast_install=yes
7863 fi
7864
7865
7866
7867
7868
7869
7870
7871
7872 shared_archive_member_spec=
7873 case $host,$enable_shared in
7874 power*-*-aix[5-9]*,yes)
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7876 printf %s "checking which variant of shared library versioning to provide... " >&6; }
7877
7878 # Check whether --with-aix-soname was given.
7879 if test ${with_aix_soname+y}
7880 then :
7881 withval=$with_aix_soname; case $withval in
7882 aix|svr4|both)
7883 ;;
7884 *)
7885 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7886 ;;
7887 esac
7888 lt_cv_with_aix_soname=$with_aix_soname
7889 else $as_nop
7890 if test ${lt_cv_with_aix_soname+y}
7891 then :
7892 printf %s "(cached) " >&6
7893 else $as_nop
7894 lt_cv_with_aix_soname=aix
7895 fi
7896
7897 with_aix_soname=$lt_cv_with_aix_soname
7898 fi
7899
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7901 printf "%s\n" "$with_aix_soname" >&6; }
7902 if test aix != "$with_aix_soname"; then
7903 # For the AIX way of multilib, we name the shared archive member
7904 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7905 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7906 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7907 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7908 if test 64 = "${OBJECT_MODE-32}"; then
7909 shared_archive_member_spec=shr_64
7910 else
7911 shared_archive_member_spec=shr
7912 fi
7913 fi
7914 ;;
7915 *)
7916 with_aix_soname=aix
7917 ;;
7918 esac
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929 # This can be used to rebuild libtool when needed
7930 LIBTOOL_DEPS=$ltmain
7931
7932 # Always use our own libtool.
7933 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964 test -z "$LN_S" && LN_S="ln -s"
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979 if test -n "${ZSH_VERSION+set}"; then
7980 setopt NO_GLOB_SUBST
7981 fi
7982
7983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7984 printf %s "checking for objdir... " >&6; }
7985 if test ${lt_cv_objdir+y}
7986 then :
7987 printf %s "(cached) " >&6
7988 else $as_nop
7989 rm -f .libs 2>/dev/null
7990 mkdir .libs 2>/dev/null
7991 if test -d .libs; then
7992 lt_cv_objdir=.libs
7993 else
7994 # MS-DOS does not allow filenames that begin with a dot.
7995 lt_cv_objdir=_libs
7996 fi
7997 rmdir .libs 2>/dev/null
7998 fi
7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8000 printf "%s\n" "$lt_cv_objdir" >&6; }
8001 objdir=$lt_cv_objdir
8002
8003
8004
8005
8006
8007 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8008
8009
8010
8011
8012 case $host_os in
8013 aix3*)
8014 # AIX sometimes has problems with the GCC collect2 program. For some
8015 # reason, if we set the COLLECT_NAMES environment variable, the problems
8016 # vanish in a puff of smoke.
8017 if test set != "${COLLECT_NAMES+set}"; then
8018 COLLECT_NAMES=
8019 export COLLECT_NAMES
8020 fi
8021 ;;
8022 esac
8023
8024 # Global variables:
8025 ofile=libtool
8026 can_build_shared=yes
8027
8028 # All known linkers require a '.a' archive for static linking (except MSVC,
8029 # which needs '.lib').
8030 libext=a
8031
8032 with_gnu_ld=$lt_cv_prog_gnu_ld
8033
8034 old_CC=$CC
8035 old_CFLAGS=$CFLAGS
8036
8037 # Set sane defaults for various variables
8038 test -z "$CC" && CC=cc
8039 test -z "$LTCC" && LTCC=$CC
8040 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8041 test -z "$LD" && LD=ld
8042 test -z "$ac_objext" && ac_objext=o
8043
8044 func_cc_basename $compiler
8045 cc_basename=$func_cc_basename_result
8046
8047
8048 # Only perform the check for file, if the check method requires it
8049 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8050 case $deplibs_check_method in
8051 file_magic*)
8052 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8054 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8055 if test ${lt_cv_path_MAGIC_CMD+y}
8056 then :
8057 printf %s "(cached) " >&6
8058 else $as_nop
8059 case $MAGIC_CMD in
8060 [\\/*] | ?:[\\/]*)
8061 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8062 ;;
8063 *)
8064 lt_save_MAGIC_CMD=$MAGIC_CMD
8065 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8066 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8067 for ac_dir in $ac_dummy; do
8068 IFS=$lt_save_ifs
8069 test -z "$ac_dir" && ac_dir=.
8070 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8071 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8072 if test -n "$file_magic_test_file"; then
8073 case $deplibs_check_method in
8074 "file_magic "*)
8075 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8076 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8077 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8078 $EGREP "$file_magic_regex" > /dev/null; then
8079 :
8080 else
8081 cat <<_LT_EOF 1>&2
8082
8083 *** Warning: the command libtool uses to detect shared libraries,
8084 *** $file_magic_cmd, produces output that libtool cannot recognize.
8085 *** The result is that libtool may fail to recognize shared libraries
8086 *** as such. This will affect the creation of libtool libraries that
8087 *** depend on shared libraries, but programs linked with such libtool
8088 *** libraries will work regardless of this problem. Nevertheless, you
8089 *** may want to report the problem to your system manager and/or to
8090 *** [email protected]
8091
8092 _LT_EOF
8093 fi ;;
8094 esac
8095 fi
8096 break
8097 fi
8098 done
8099 IFS=$lt_save_ifs
8100 MAGIC_CMD=$lt_save_MAGIC_CMD
8101 ;;
8102 esac
8103 fi
8104
8105 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8106 if test -n "$MAGIC_CMD"; then
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8108 printf "%s\n" "$MAGIC_CMD" >&6; }
8109 else
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 printf "%s\n" "no" >&6; }
8112 fi
8113
8114
8115
8116
8117
8118 if test -z "$lt_cv_path_MAGIC_CMD"; then
8119 if test -n "$ac_tool_prefix"; then
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8121 printf %s "checking for file... " >&6; }
8122 if test ${lt_cv_path_MAGIC_CMD+y}
8123 then :
8124 printf %s "(cached) " >&6
8125 else $as_nop
8126 case $MAGIC_CMD in
8127 [\\/*] | ?:[\\/]*)
8128 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8129 ;;
8130 *)
8131 lt_save_MAGIC_CMD=$MAGIC_CMD
8132 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8133 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8134 for ac_dir in $ac_dummy; do
8135 IFS=$lt_save_ifs
8136 test -z "$ac_dir" && ac_dir=.
8137 if test -f "$ac_dir/file"; then
8138 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8139 if test -n "$file_magic_test_file"; then
8140 case $deplibs_check_method in
8141 "file_magic "*)
8142 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8143 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8145 $EGREP "$file_magic_regex" > /dev/null; then
8146 :
8147 else
8148 cat <<_LT_EOF 1>&2
8149
8150 *** Warning: the command libtool uses to detect shared libraries,
8151 *** $file_magic_cmd, produces output that libtool cannot recognize.
8152 *** The result is that libtool may fail to recognize shared libraries
8153 *** as such. This will affect the creation of libtool libraries that
8154 *** depend on shared libraries, but programs linked with such libtool
8155 *** libraries will work regardless of this problem. Nevertheless, you
8156 *** may want to report the problem to your system manager and/or to
8157 *** [email protected]
8158
8159 _LT_EOF
8160 fi ;;
8161 esac
8162 fi
8163 break
8164 fi
8165 done
8166 IFS=$lt_save_ifs
8167 MAGIC_CMD=$lt_save_MAGIC_CMD
8168 ;;
8169 esac
8170 fi
8171
8172 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8173 if test -n "$MAGIC_CMD"; then
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8175 printf "%s\n" "$MAGIC_CMD" >&6; }
8176 else
8177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 printf "%s\n" "no" >&6; }
8179 fi
8180
8181
8182 else
8183 MAGIC_CMD=:
8184 fi
8185 fi
8186
8187 fi
8188 ;;
8189 esac
8190
8191 # Use C for the default configuration in the libtool script
8192
8193 lt_save_CC=$CC
8194 ac_ext=c
8195 ac_cpp='$CPP $CPPFLAGS'
8196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8199
8200
8201 # Source file extension for C test sources.
8202 ac_ext=c
8203
8204 # Object file extension for compiled C test sources.
8205 objext=o
8206 objext=$objext
8207
8208 # Code to be used in simple compile tests
8209 lt_simple_compile_test_code="int some_variable = 0;"
8210
8211 # Code to be used in simple link tests
8212 lt_simple_link_test_code='int main(){return(0);}'
8213
8214
8215
8216
8217
8218
8219
8220 # If no C compiler was specified, use CC.
8221 LTCC=${LTCC-"$CC"}
8222
8223 # If no C compiler flags were specified, use CFLAGS.
8224 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8225
8226 # Allow CC to be a program name with arguments.
8227 compiler=$CC
8228
8229 # Save the default compiler, since it gets overwritten when the other
8230 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8231 compiler_DEFAULT=$CC
8232
8233 # save warnings/boilerplate of simple test code
8234 ac_outfile=conftest.$ac_objext
8235 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8236 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8237 _lt_compiler_boilerplate=`cat conftest.err`
8238 $RM conftest*
8239
8240 ac_outfile=conftest.$ac_objext
8241 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8242 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8243 _lt_linker_boilerplate=`cat conftest.err`
8244 $RM -r conftest*
8245
8246
8247 ## CAVEAT EMPTOR:
8248 ## There is no encapsulation within the following macros, do not change
8249 ## the running order or otherwise move them around unless you know exactly
8250 ## what you are doing...
8251 if test -n "$compiler"; then
8252
8253 lt_prog_compiler_no_builtin_flag=
8254
8255 if test yes = "$GCC"; then
8256 case $cc_basename in
8257 nvcc*)
8258 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8259 *)
8260 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8261 esac
8262
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8264 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8265 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8266 then :
8267 printf %s "(cached) " >&6
8268 else $as_nop
8269 lt_cv_prog_compiler_rtti_exceptions=no
8270 ac_outfile=conftest.$ac_objext
8271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8272 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8273 # Insert the option either (1) after the last *FLAGS variable, or
8274 # (2) before a word containing "conftest.", or (3) at the end.
8275 # Note that $ac_compile itself does not contain backslashes and begins
8276 # with a dollar sign (not a hyphen), so the echo should work correctly.
8277 # The option is referenced via a variable to avoid confusing sed.
8278 lt_compile=`echo "$ac_compile" | $SED \
8279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8281 -e 's:$: $lt_compiler_flag:'`
8282 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8283 (eval "$lt_compile" 2>conftest.err)
8284 ac_status=$?
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 if (exit $ac_status) && test -s "$ac_outfile"; then
8288 # The compiler can only warn and ignore the option if not recognized
8289 # So say no if there are warnings other than the usual output.
8290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8292 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8293 lt_cv_prog_compiler_rtti_exceptions=yes
8294 fi
8295 fi
8296 $RM conftest*
8297
8298 fi
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8300 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8301
8302 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8303 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8304 else
8305 :
8306 fi
8307
8308 fi
8309
8310
8311
8312
8313
8314
8315 lt_prog_compiler_wl=
8316 lt_prog_compiler_pic=
8317 lt_prog_compiler_static=
8318
8319
8320 if test yes = "$GCC"; then
8321 lt_prog_compiler_wl='-Wl,'
8322 lt_prog_compiler_static='-static'
8323
8324 case $host_os in
8325 aix*)
8326 # All AIX code is PIC.
8327 if test ia64 = "$host_cpu"; then
8328 # AIX 5 now supports IA64 processor
8329 lt_prog_compiler_static='-Bstatic'
8330 fi
8331 lt_prog_compiler_pic='-fPIC'
8332 ;;
8333
8334 amigaos*)
8335 case $host_cpu in
8336 powerpc)
8337 # see comment about AmigaOS4 .so support
8338 lt_prog_compiler_pic='-fPIC'
8339 ;;
8340 m68k)
8341 # FIXME: we need at least 68020 code to build shared libraries, but
8342 # adding the '-m68020' flag to GCC prevents building anything better,
8343 # like '-m68040'.
8344 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8345 ;;
8346 esac
8347 ;;
8348
8349 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8350 # PIC is the default for these OSes.
8351 ;;
8352
8353 mingw* | cygwin* | pw32* | os2* | cegcc*)
8354 # This hack is so that the source file can tell whether it is being
8355 # built for inclusion in a dll (and should export symbols for example).
8356 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8357 # (--disable-auto-import) libraries
8358 lt_prog_compiler_pic='-DDLL_EXPORT'
8359 case $host_os in
8360 os2*)
8361 lt_prog_compiler_static='$wl-static'
8362 ;;
8363 esac
8364 ;;
8365
8366 darwin* | rhapsody*)
8367 # PIC is the default on this platform
8368 # Common symbols not allowed in MH_DYLIB files
8369 lt_prog_compiler_pic='-fno-common'
8370 ;;
8371
8372 haiku*)
8373 # PIC is the default for Haiku.
8374 # The "-static" flag exists, but is broken.
8375 lt_prog_compiler_static=
8376 ;;
8377
8378 hpux*)
8379 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8380 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8381 # sets the default TLS model and affects inlining.
8382 case $host_cpu in
8383 hppa*64*)
8384 # +Z the default
8385 ;;
8386 *)
8387 lt_prog_compiler_pic='-fPIC'
8388 ;;
8389 esac
8390 ;;
8391
8392 interix[3-9]*)
8393 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8394 # Instead, we relocate shared libraries at runtime.
8395 ;;
8396
8397 msdosdjgpp*)
8398 # Just because we use GCC doesn't mean we suddenly get shared libraries
8399 # on systems that don't support them.
8400 lt_prog_compiler_can_build_shared=no
8401 enable_shared=no
8402 ;;
8403
8404 *nto* | *qnx*)
8405 # QNX uses GNU C++, but need to define -shared option too, otherwise
8406 # it will coredump.
8407 lt_prog_compiler_pic='-fPIC -shared'
8408 ;;
8409
8410 sysv4*MP*)
8411 if test -d /usr/nec; then
8412 lt_prog_compiler_pic=-Kconform_pic
8413 fi
8414 ;;
8415
8416 *)
8417 lt_prog_compiler_pic='-fPIC'
8418 ;;
8419 esac
8420
8421 case $cc_basename in
8422 nvcc*) # Cuda Compiler Driver 2.2
8423 lt_prog_compiler_wl='-Xlinker '
8424 if test -n "$lt_prog_compiler_pic"; then
8425 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8426 fi
8427 ;;
8428 esac
8429 else
8430 # PORTME Check for flag to pass linker flags through the system compiler.
8431 case $host_os in
8432 aix*)
8433 lt_prog_compiler_wl='-Wl,'
8434 if test ia64 = "$host_cpu"; then
8435 # AIX 5 now supports IA64 processor
8436 lt_prog_compiler_static='-Bstatic'
8437 else
8438 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8439 fi
8440 ;;
8441
8442 darwin* | rhapsody*)
8443 # PIC is the default on this platform
8444 # Common symbols not allowed in MH_DYLIB files
8445 lt_prog_compiler_pic='-fno-common'
8446 case $cc_basename in
8447 nagfor*)
8448 # NAG Fortran compiler
8449 lt_prog_compiler_wl='-Wl,-Wl,,'
8450 lt_prog_compiler_pic='-PIC'
8451 lt_prog_compiler_static='-Bstatic'
8452 ;;
8453 esac
8454 ;;
8455
8456 mingw* | cygwin* | pw32* | os2* | cegcc*)
8457 # This hack is so that the source file can tell whether it is being
8458 # built for inclusion in a dll (and should export symbols for example).
8459 lt_prog_compiler_pic='-DDLL_EXPORT'
8460 case $host_os in
8461 os2*)
8462 lt_prog_compiler_static='$wl-static'
8463 ;;
8464 esac
8465 ;;
8466
8467 hpux9* | hpux10* | hpux11*)
8468 lt_prog_compiler_wl='-Wl,'
8469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8470 # not for PA HP-UX.
8471 case $host_cpu in
8472 hppa*64*|ia64*)
8473 # +Z the default
8474 ;;
8475 *)
8476 lt_prog_compiler_pic='+Z'
8477 ;;
8478 esac
8479 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8480 lt_prog_compiler_static='$wl-a ${wl}archive'
8481 ;;
8482
8483 irix5* | irix6* | nonstopux*)
8484 lt_prog_compiler_wl='-Wl,'
8485 # PIC (with -KPIC) is the default.
8486 lt_prog_compiler_static='-non_shared'
8487 ;;
8488
8489 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8490 case $cc_basename in
8491 # old Intel for x86_64, which still supported -KPIC.
8492 ecc*)
8493 lt_prog_compiler_wl='-Wl,'
8494 lt_prog_compiler_pic='-KPIC'
8495 lt_prog_compiler_static='-static'
8496 ;;
8497 # icc used to be incompatible with GCC.
8498 # ICC 10 doesn't accept -KPIC any more.
8499 icc* | ifort*)
8500 lt_prog_compiler_wl='-Wl,'
8501 lt_prog_compiler_pic='-fPIC'
8502 lt_prog_compiler_static='-static'
8503 ;;
8504 # Lahey Fortran 8.1.
8505 lf95*)
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_pic='--shared'
8508 lt_prog_compiler_static='--static'
8509 ;;
8510 nagfor*)
8511 # NAG Fortran compiler
8512 lt_prog_compiler_wl='-Wl,-Wl,,'
8513 lt_prog_compiler_pic='-PIC'
8514 lt_prog_compiler_static='-Bstatic'
8515 ;;
8516 tcc*)
8517 # Fabrice Bellard et al's Tiny C Compiler
8518 lt_prog_compiler_wl='-Wl,'
8519 lt_prog_compiler_pic='-fPIC'
8520 lt_prog_compiler_static='-static'
8521 ;;
8522 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8523 # Portland Group compilers (*not* the Pentium gcc compiler,
8524 # which looks to be a dead project)
8525 lt_prog_compiler_wl='-Wl,'
8526 lt_prog_compiler_pic='-fpic'
8527 lt_prog_compiler_static='-Bstatic'
8528 ;;
8529 ccc*)
8530 lt_prog_compiler_wl='-Wl,'
8531 # All Alpha code is PIC.
8532 lt_prog_compiler_static='-non_shared'
8533 ;;
8534 xl* | bgxl* | bgf* | mpixl*)
8535 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8536 lt_prog_compiler_wl='-Wl,'
8537 lt_prog_compiler_pic='-qpic'
8538 lt_prog_compiler_static='-qstaticlink'
8539 ;;
8540 *)
8541 case `$CC -V 2>&1 | sed 5q` in
8542 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8543 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8544 lt_prog_compiler_pic='-KPIC'
8545 lt_prog_compiler_static='-Bstatic'
8546 lt_prog_compiler_wl=''
8547 ;;
8548 *Sun\ F* | *Sun*Fortran*)
8549 lt_prog_compiler_pic='-KPIC'
8550 lt_prog_compiler_static='-Bstatic'
8551 lt_prog_compiler_wl='-Qoption ld '
8552 ;;
8553 *Sun\ C*)
8554 # Sun C 5.9
8555 lt_prog_compiler_pic='-KPIC'
8556 lt_prog_compiler_static='-Bstatic'
8557 lt_prog_compiler_wl='-Wl,'
8558 ;;
8559 *Intel*\ [CF]*Compiler*)
8560 lt_prog_compiler_wl='-Wl,'
8561 lt_prog_compiler_pic='-fPIC'
8562 lt_prog_compiler_static='-static'
8563 ;;
8564 *Portland\ Group*)
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_pic='-fpic'
8567 lt_prog_compiler_static='-Bstatic'
8568 ;;
8569 esac
8570 ;;
8571 esac
8572 ;;
8573
8574 newsos6)
8575 lt_prog_compiler_pic='-KPIC'
8576 lt_prog_compiler_static='-Bstatic'
8577 ;;
8578
8579 *nto* | *qnx*)
8580 # QNX uses GNU C++, but need to define -shared option too, otherwise
8581 # it will coredump.
8582 lt_prog_compiler_pic='-fPIC -shared'
8583 ;;
8584
8585 osf3* | osf4* | osf5*)
8586 lt_prog_compiler_wl='-Wl,'
8587 # All OSF/1 code is PIC.
8588 lt_prog_compiler_static='-non_shared'
8589 ;;
8590
8591 rdos*)
8592 lt_prog_compiler_static='-non_shared'
8593 ;;
8594
8595 solaris*)
8596 lt_prog_compiler_pic='-KPIC'
8597 lt_prog_compiler_static='-Bstatic'
8598 case $cc_basename in
8599 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8600 lt_prog_compiler_wl='-Qoption ld ';;
8601 *)
8602 lt_prog_compiler_wl='-Wl,';;
8603 esac
8604 ;;
8605
8606 sunos4*)
8607 lt_prog_compiler_wl='-Qoption ld '
8608 lt_prog_compiler_pic='-PIC'
8609 lt_prog_compiler_static='-Bstatic'
8610 ;;
8611
8612 sysv4 | sysv4.2uw2* | sysv4.3*)
8613 lt_prog_compiler_wl='-Wl,'
8614 lt_prog_compiler_pic='-KPIC'
8615 lt_prog_compiler_static='-Bstatic'
8616 ;;
8617
8618 sysv4*MP*)
8619 if test -d /usr/nec; then
8620 lt_prog_compiler_pic='-Kconform_pic'
8621 lt_prog_compiler_static='-Bstatic'
8622 fi
8623 ;;
8624
8625 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_pic='-KPIC'
8628 lt_prog_compiler_static='-Bstatic'
8629 ;;
8630
8631 unicos*)
8632 lt_prog_compiler_wl='-Wl,'
8633 lt_prog_compiler_can_build_shared=no
8634 ;;
8635
8636 uts4*)
8637 lt_prog_compiler_pic='-pic'
8638 lt_prog_compiler_static='-Bstatic'
8639 ;;
8640
8641 *)
8642 lt_prog_compiler_can_build_shared=no
8643 ;;
8644 esac
8645 fi
8646
8647 case $host_os in
8648 # For platforms that do not support PIC, -DPIC is meaningless:
8649 *djgpp*)
8650 lt_prog_compiler_pic=
8651 ;;
8652 *)
8653 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8654 ;;
8655 esac
8656
8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8658 printf %s "checking for $compiler option to produce PIC... " >&6; }
8659 if test ${lt_cv_prog_compiler_pic+y}
8660 then :
8661 printf %s "(cached) " >&6
8662 else $as_nop
8663 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8664 fi
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8666 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
8667 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8668
8669 #
8670 # Check to make sure the PIC flag actually works.
8671 #
8672 if test -n "$lt_prog_compiler_pic"; then
8673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8674 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8675 if test ${lt_cv_prog_compiler_pic_works+y}
8676 then :
8677 printf %s "(cached) " >&6
8678 else $as_nop
8679 lt_cv_prog_compiler_pic_works=no
8680 ac_outfile=conftest.$ac_objext
8681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8682 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8683 # Insert the option either (1) after the last *FLAGS variable, or
8684 # (2) before a word containing "conftest.", or (3) at the end.
8685 # Note that $ac_compile itself does not contain backslashes and begins
8686 # with a dollar sign (not a hyphen), so the echo should work correctly.
8687 # The option is referenced via a variable to avoid confusing sed.
8688 lt_compile=`echo "$ac_compile" | $SED \
8689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8691 -e 's:$: $lt_compiler_flag:'`
8692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8693 (eval "$lt_compile" 2>conftest.err)
8694 ac_status=$?
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 if (exit $ac_status) && test -s "$ac_outfile"; then
8698 # The compiler can only warn and ignore the option if not recognized
8699 # So say no if there are warnings other than the usual output.
8700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8703 lt_cv_prog_compiler_pic_works=yes
8704 fi
8705 fi
8706 $RM conftest*
8707
8708 fi
8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8710 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
8711
8712 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8713 case $lt_prog_compiler_pic in
8714 "" | " "*) ;;
8715 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8716 esac
8717 else
8718 lt_prog_compiler_pic=
8719 lt_prog_compiler_can_build_shared=no
8720 fi
8721
8722 fi
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734 #
8735 # Check to make sure the static flag actually works.
8736 #
8737 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8739 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8740 if test ${lt_cv_prog_compiler_static_works+y}
8741 then :
8742 printf %s "(cached) " >&6
8743 else $as_nop
8744 lt_cv_prog_compiler_static_works=no
8745 save_LDFLAGS=$LDFLAGS
8746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8747 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8749 # The linker can only warn and ignore the option if not recognized
8750 # So say no if there are warnings
8751 if test -s conftest.err; then
8752 # Append any errors to the config.log.
8753 cat conftest.err 1>&5
8754 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8756 if diff conftest.exp conftest.er2 >/dev/null; then
8757 lt_cv_prog_compiler_static_works=yes
8758 fi
8759 else
8760 lt_cv_prog_compiler_static_works=yes
8761 fi
8762 fi
8763 $RM -r conftest*
8764 LDFLAGS=$save_LDFLAGS
8765
8766 fi
8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8768 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
8769
8770 if test yes = "$lt_cv_prog_compiler_static_works"; then
8771 :
8772 else
8773 lt_prog_compiler_static=
8774 fi
8775
8776
8777
8778
8779
8780
8781
8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8783 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8784 if test ${lt_cv_prog_compiler_c_o+y}
8785 then :
8786 printf %s "(cached) " >&6
8787 else $as_nop
8788 lt_cv_prog_compiler_c_o=no
8789 $RM -r conftest 2>/dev/null
8790 mkdir conftest
8791 cd conftest
8792 mkdir out
8793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8794
8795 lt_compiler_flag="-o out/conftest2.$ac_objext"
8796 # Insert the option either (1) after the last *FLAGS variable, or
8797 # (2) before a word containing "conftest.", or (3) at the end.
8798 # Note that $ac_compile itself does not contain backslashes and begins
8799 # with a dollar sign (not a hyphen), so the echo should work correctly.
8800 lt_compile=`echo "$ac_compile" | $SED \
8801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8803 -e 's:$: $lt_compiler_flag:'`
8804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8805 (eval "$lt_compile" 2>out/conftest.err)
8806 ac_status=$?
8807 cat out/conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8810 then
8811 # The compiler can only warn and ignore the option if not recognized
8812 # So say no if there are warnings
8813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8816 lt_cv_prog_compiler_c_o=yes
8817 fi
8818 fi
8819 chmod u+w . 2>&5
8820 $RM conftest*
8821 # SGI C++ compiler will create directory out/ii_files/ for
8822 # template instantiation
8823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8824 $RM out/* && rmdir out
8825 cd ..
8826 $RM -r conftest
8827 $RM conftest*
8828
8829 fi
8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8831 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8832
8833
8834
8835
8836
8837
8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8839 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8840 if test ${lt_cv_prog_compiler_c_o+y}
8841 then :
8842 printf %s "(cached) " >&6
8843 else $as_nop
8844 lt_cv_prog_compiler_c_o=no
8845 $RM -r conftest 2>/dev/null
8846 mkdir conftest
8847 cd conftest
8848 mkdir out
8849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8850
8851 lt_compiler_flag="-o out/conftest2.$ac_objext"
8852 # Insert the option either (1) after the last *FLAGS variable, or
8853 # (2) before a word containing "conftest.", or (3) at the end.
8854 # Note that $ac_compile itself does not contain backslashes and begins
8855 # with a dollar sign (not a hyphen), so the echo should work correctly.
8856 lt_compile=`echo "$ac_compile" | $SED \
8857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859 -e 's:$: $lt_compiler_flag:'`
8860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8861 (eval "$lt_compile" 2>out/conftest.err)
8862 ac_status=$?
8863 cat out/conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8866 then
8867 # The compiler can only warn and ignore the option if not recognized
8868 # So say no if there are warnings
8869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8872 lt_cv_prog_compiler_c_o=yes
8873 fi
8874 fi
8875 chmod u+w . 2>&5
8876 $RM conftest*
8877 # SGI C++ compiler will create directory out/ii_files/ for
8878 # template instantiation
8879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8880 $RM out/* && rmdir out
8881 cd ..
8882 $RM -r conftest
8883 $RM conftest*
8884
8885 fi
8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8887 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8888
8889
8890
8891
8892 hard_links=nottested
8893 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8894 # do not overwrite the value of need_locks provided by the user
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8896 printf %s "checking if we can lock with hard links... " >&6; }
8897 hard_links=yes
8898 $RM conftest*
8899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8900 touch conftest.a
8901 ln conftest.a conftest.b 2>&5 || hard_links=no
8902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8904 printf "%s\n" "$hard_links" >&6; }
8905 if test no = "$hard_links"; then
8906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8907 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8908 need_locks=warn
8909 fi
8910 else
8911 need_locks=no
8912 fi
8913
8914
8915
8916
8917
8918
8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8920 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8921
8922 runpath_var=
8923 allow_undefined_flag=
8924 always_export_symbols=no
8925 archive_cmds=
8926 archive_expsym_cmds=
8927 compiler_needs_object=no
8928 enable_shared_with_static_runtimes=no
8929 export_dynamic_flag_spec=
8930 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8931 hardcode_automatic=no
8932 hardcode_direct=no
8933 hardcode_direct_absolute=no
8934 hardcode_libdir_flag_spec=
8935 hardcode_libdir_separator=
8936 hardcode_minus_L=no
8937 hardcode_shlibpath_var=unsupported
8938 inherit_rpath=no
8939 link_all_deplibs=unknown
8940 module_cmds=
8941 module_expsym_cmds=
8942 old_archive_from_new_cmds=
8943 old_archive_from_expsyms_cmds=
8944 thread_safe_flag_spec=
8945 whole_archive_flag_spec=
8946 # include_expsyms should be a list of space-separated symbols to be *always*
8947 # included in the symbol list
8948 include_expsyms=
8949 # exclude_expsyms can be an extended regexp of symbols to exclude
8950 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8951 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8952 # as well as any symbol that contains 'd'.
8953 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8955 # platforms (ab)use it in PIC code, but their linkers get confused if
8956 # the symbol is explicitly referenced. Since portable code cannot
8957 # rely on this symbol name, it's probably fine to never include it in
8958 # preloaded symbol tables.
8959 # Exclude shared library initialization/finalization symbols.
8960 extract_expsyms_cmds=
8961
8962 case $host_os in
8963 cygwin* | mingw* | pw32* | cegcc*)
8964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8965 # When not using gcc, we currently assume that we are using
8966 # Microsoft Visual C++.
8967 if test yes != "$GCC"; then
8968 with_gnu_ld=no
8969 fi
8970 ;;
8971 interix*)
8972 # we just hope/assume this is gcc and not c89 (= MSVC++)
8973 with_gnu_ld=yes
8974 ;;
8975 openbsd* | bitrig*)
8976 with_gnu_ld=no
8977 ;;
8978 esac
8979
8980 ld_shlibs=yes
8981
8982 # On some targets, GNU ld is compatible enough with the native linker
8983 # that we're better off using the native interface for both.
8984 lt_use_gnu_ld_interface=no
8985 if test yes = "$with_gnu_ld"; then
8986 case $host_os in
8987 aix*)
8988 # The AIX port of GNU ld has always aspired to compatibility
8989 # with the native linker. However, as the warning in the GNU ld
8990 # block says, versions before 2.19.5* couldn't really create working
8991 # shared libraries, regardless of the interface used.
8992 case `$LD -v 2>&1` in
8993 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8994 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8995 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8996 *)
8997 lt_use_gnu_ld_interface=yes
8998 ;;
8999 esac
9000 ;;
9001 *)
9002 lt_use_gnu_ld_interface=yes
9003 ;;
9004 esac
9005 fi
9006
9007 if test yes = "$lt_use_gnu_ld_interface"; then
9008 # If archive_cmds runs LD, not CC, wlarc should be empty
9009 wlarc='$wl'
9010
9011 # Set some defaults for GNU ld with shared library support. These
9012 # are reset later if shared libraries are not supported. Putting them
9013 # here allows them to be overridden if necessary.
9014 runpath_var=LD_RUN_PATH
9015 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9016 export_dynamic_flag_spec='$wl--export-dynamic'
9017 # ancient GNU ld didn't support --whole-archive et. al.
9018 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9019 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9020 else
9021 whole_archive_flag_spec=
9022 fi
9023 supports_anon_versioning=no
9024 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9025 *GNU\ gold*) supports_anon_versioning=yes ;;
9026 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9027 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9028 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9029 *\ 2.11.*) ;; # other 2.11 versions
9030 *) supports_anon_versioning=yes ;;
9031 esac
9032
9033 # See if GNU ld supports shared libraries.
9034 case $host_os in
9035 aix[3-9]*)
9036 # On AIX/PPC, the GNU linker is very broken
9037 if test ia64 != "$host_cpu"; then
9038 ld_shlibs=no
9039 cat <<_LT_EOF 1>&2
9040
9041 *** Warning: the GNU linker, at least up to release 2.19, is reported
9042 *** to be unable to reliably create shared libraries on AIX.
9043 *** Therefore, libtool is disabling shared libraries support. If you
9044 *** really care for shared libraries, you may want to install binutils
9045 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9046 *** You will then need to restart the configuration process.
9047
9048 _LT_EOF
9049 fi
9050 ;;
9051
9052 amigaos*)
9053 case $host_cpu in
9054 powerpc)
9055 # see comment about AmigaOS4 .so support
9056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9057 archive_expsym_cmds=''
9058 ;;
9059 m68k)
9060 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)'
9061 hardcode_libdir_flag_spec='-L$libdir'
9062 hardcode_minus_L=yes
9063 ;;
9064 esac
9065 ;;
9066
9067 beos*)
9068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9069 allow_undefined_flag=unsupported
9070 # Joseph Beckenbach <[email protected]> says some releases of gcc
9071 # support --undefined. This deserves some investigation. FIXME
9072 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9073 else
9074 ld_shlibs=no
9075 fi
9076 ;;
9077
9078 cygwin* | mingw* | pw32* | cegcc*)
9079 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9080 # as there is no search path for DLLs.
9081 hardcode_libdir_flag_spec='-L$libdir'
9082 export_dynamic_flag_spec='$wl--export-all-symbols'
9083 allow_undefined_flag=unsupported
9084 always_export_symbols=no
9085 enable_shared_with_static_runtimes=yes
9086 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'
9087 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9088
9089 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9091 # If the export-symbols file already is a .def file, use it as
9092 # is; otherwise, prepend EXPORTS...
9093 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9094 cp $export_symbols $output_objdir/$soname.def;
9095 else
9096 echo EXPORTS > $output_objdir/$soname.def;
9097 cat $export_symbols >> $output_objdir/$soname.def;
9098 fi~
9099 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9100 else
9101 ld_shlibs=no
9102 fi
9103 ;;
9104
9105 haiku*)
9106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9107 link_all_deplibs=yes
9108 ;;
9109
9110 os2*)
9111 hardcode_libdir_flag_spec='-L$libdir'
9112 hardcode_minus_L=yes
9113 allow_undefined_flag=unsupported
9114 shrext_cmds=.dll
9115 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9116 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9117 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9118 $ECHO EXPORTS >> $output_objdir/$libname.def~
9119 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9120 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9121 emximp -o $lib $output_objdir/$libname.def'
9122 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9123 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9124 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9125 $ECHO EXPORTS >> $output_objdir/$libname.def~
9126 prefix_cmds="$SED"~
9127 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9128 prefix_cmds="$prefix_cmds -e 1d";
9129 fi~
9130 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9131 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9132 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9133 emximp -o $lib $output_objdir/$libname.def'
9134 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9135 enable_shared_with_static_runtimes=yes
9136 ;;
9137
9138 interix[3-9]*)
9139 hardcode_direct=no
9140 hardcode_shlibpath_var=no
9141 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9142 export_dynamic_flag_spec='$wl-E'
9143 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9144 # Instead, shared libraries are loaded at an image base (0x10000000 by
9145 # default) and relocated if they conflict, which is a slow very memory
9146 # consuming and fragmenting process. To avoid this, we pick a random,
9147 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9148 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9149 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9150 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'
9151 ;;
9152
9153 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9154 tmp_diet=no
9155 if test linux-dietlibc = "$host_os"; then
9156 case $cc_basename in
9157 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9158 esac
9159 fi
9160 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9161 && test no = "$tmp_diet"
9162 then
9163 tmp_addflag=' $pic_flag'
9164 tmp_sharedflag='-shared'
9165 case $cc_basename,$host_cpu in
9166 pgcc*) # Portland Group C compiler
9167 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'
9168 tmp_addflag=' $pic_flag'
9169 ;;
9170 pgf77* | pgf90* | pgf95* | pgfortran*)
9171 # Portland Group f77 and f90 compilers
9172 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'
9173 tmp_addflag=' $pic_flag -Mnomain' ;;
9174 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9175 tmp_addflag=' -i_dynamic' ;;
9176 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9177 tmp_addflag=' -i_dynamic -nofor_main' ;;
9178 ifc* | ifort*) # Intel Fortran compiler
9179 tmp_addflag=' -nofor_main' ;;
9180 lf95*) # Lahey Fortran 8.1
9181 whole_archive_flag_spec=
9182 tmp_sharedflag='--shared' ;;
9183 nagfor*) # NAGFOR 5.3
9184 tmp_sharedflag='-Wl,-shared' ;;
9185 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9186 tmp_sharedflag='-qmkshrobj'
9187 tmp_addflag= ;;
9188 nvcc*) # Cuda Compiler Driver 2.2
9189 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'
9190 compiler_needs_object=yes
9191 ;;
9192 esac
9193 case `$CC -V 2>&1 | sed 5q` in
9194 *Sun\ C*) # Sun C 5.9
9195 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'
9196 compiler_needs_object=yes
9197 tmp_sharedflag='-G' ;;
9198 *Sun\ F*) # Sun Fortran 8.3
9199 tmp_sharedflag='-G' ;;
9200 esac
9201 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9202
9203 if test yes = "$supports_anon_versioning"; then
9204 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9205 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9206 echo "local: *; };" >> $output_objdir/$libname.ver~
9207 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9208 fi
9209
9210 case $cc_basename in
9211 tcc*)
9212 export_dynamic_flag_spec='-rdynamic'
9213 ;;
9214 xlf* | bgf* | bgxlf* | mpixlf*)
9215 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9216 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9217 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9218 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9219 if test yes = "$supports_anon_versioning"; then
9220 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9221 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9222 echo "local: *; };" >> $output_objdir/$libname.ver~
9223 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9224 fi
9225 ;;
9226 esac
9227 else
9228 ld_shlibs=no
9229 fi
9230 ;;
9231
9232 netbsd*)
9233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9234 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9235 wlarc=
9236 else
9237 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9238 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9239 fi
9240 ;;
9241
9242 solaris*)
9243 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9244 ld_shlibs=no
9245 cat <<_LT_EOF 1>&2
9246
9247 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9248 *** create shared libraries on Solaris systems. Therefore, libtool
9249 *** is disabling shared libraries support. We urge you to upgrade GNU
9250 *** binutils to release 2.9.1 or newer. Another option is to modify
9251 *** your PATH or compiler configuration so that the native linker is
9252 *** used, and then restart.
9253
9254 _LT_EOF
9255 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9256 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9257 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9258 else
9259 ld_shlibs=no
9260 fi
9261 ;;
9262
9263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9264 case `$LD -v 2>&1` in
9265 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9266 ld_shlibs=no
9267 cat <<_LT_EOF 1>&2
9268
9269 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9270 *** reliably create shared libraries on SCO systems. Therefore, libtool
9271 *** is disabling shared libraries support. We urge you to upgrade GNU
9272 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9273 *** your PATH or compiler configuration so that the native linker is
9274 *** used, and then restart.
9275
9276 _LT_EOF
9277 ;;
9278 *)
9279 # For security reasons, it is highly recommended that you always
9280 # use absolute paths for naming shared libraries, and exclude the
9281 # DT_RUNPATH tag from executables and libraries. But doing so
9282 # requires that you compile everything twice, which is a pain.
9283 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9284 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9287 else
9288 ld_shlibs=no
9289 fi
9290 ;;
9291 esac
9292 ;;
9293
9294 sunos4*)
9295 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9296 wlarc=
9297 hardcode_direct=yes
9298 hardcode_shlibpath_var=no
9299 ;;
9300
9301 *)
9302 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9303 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9304 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9305 else
9306 ld_shlibs=no
9307 fi
9308 ;;
9309 esac
9310
9311 if test no = "$ld_shlibs"; then
9312 runpath_var=
9313 hardcode_libdir_flag_spec=
9314 export_dynamic_flag_spec=
9315 whole_archive_flag_spec=
9316 fi
9317 else
9318 # PORTME fill in a description of your system's linker (not GNU ld)
9319 case $host_os in
9320 aix3*)
9321 allow_undefined_flag=unsupported
9322 always_export_symbols=yes
9323 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'
9324 # Note: this linker hardcodes the directories in LIBPATH if there
9325 # are no directories specified by -L.
9326 hardcode_minus_L=yes
9327 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9328 # Neither direct hardcoding nor static linking is supported with a
9329 # broken collect2.
9330 hardcode_direct=unsupported
9331 fi
9332 ;;
9333
9334 aix[4-9]*)
9335 if test ia64 = "$host_cpu"; then
9336 # On IA64, the linker does run time linking by default, so we don't
9337 # have to do anything special.
9338 aix_use_runtimelinking=no
9339 exp_sym_flag='-Bexport'
9340 no_entry_flag=
9341 else
9342 # If we're using GNU nm, then we don't want the "-C" option.
9343 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9344 # Without the "-l" option, or with the "-B" option, AIX nm treats
9345 # weak defined symbols like other global defined symbols, whereas
9346 # GNU nm marks them as "W".
9347 # While the 'weak' keyword is ignored in the Export File, we need
9348 # it in the Import File for the 'aix-soname' feature, so we have
9349 # to replace the "-B" option with "-P" for AIX nm.
9350 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9351 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'
9352 else
9353 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9354 fi
9355 aix_use_runtimelinking=no
9356
9357 # Test if we are trying to use run time linking or normal
9358 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9359 # have runtime linking enabled, and use it for executables.
9360 # For shared libraries, we enable/disable runtime linking
9361 # depending on the kind of the shared library created -
9362 # when "with_aix_soname,aix_use_runtimelinking" is:
9363 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9364 # "aix,yes" lib.so shared, rtl:yes, for executables
9365 # lib.a static archive
9366 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9367 # lib.a(lib.so.V) shared, rtl:no, for executables
9368 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9369 # lib.a(lib.so.V) shared, rtl:no
9370 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9371 # lib.a static archive
9372 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9373 for ld_flag in $LDFLAGS; do
9374 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9375 aix_use_runtimelinking=yes
9376 break
9377 fi
9378 done
9379 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9380 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9381 # so we don't have lib.a shared libs to link our executables.
9382 # We have to force runtime linking in this case.
9383 aix_use_runtimelinking=yes
9384 LDFLAGS="$LDFLAGS -Wl,-brtl"
9385 fi
9386 ;;
9387 esac
9388
9389 exp_sym_flag='-bexport'
9390 no_entry_flag='-bnoentry'
9391 fi
9392
9393 # When large executables or shared objects are built, AIX ld can
9394 # have problems creating the table of contents. If linking a library
9395 # or program results in "error TOC overflow" add -mminimal-toc to
9396 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9397 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9398
9399 archive_cmds=''
9400 hardcode_direct=yes
9401 hardcode_direct_absolute=yes
9402 hardcode_libdir_separator=':'
9403 link_all_deplibs=yes
9404 file_list_spec='$wl-f,'
9405 case $with_aix_soname,$aix_use_runtimelinking in
9406 aix,*) ;; # traditional, no import file
9407 svr4,* | *,yes) # use import file
9408 # The Import File defines what to hardcode.
9409 hardcode_direct=no
9410 hardcode_direct_absolute=no
9411 ;;
9412 esac
9413
9414 if test yes = "$GCC"; then
9415 case $host_os in aix4.[012]|aix4.[012].*)
9416 # We only want to do this on AIX 4.2 and lower, the check
9417 # below for broken collect2 doesn't work under 4.3+
9418 collect2name=`$CC -print-prog-name=collect2`
9419 if test -f "$collect2name" &&
9420 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9421 then
9422 # We have reworked collect2
9423 :
9424 else
9425 # We have old collect2
9426 hardcode_direct=unsupported
9427 # It fails to find uninstalled libraries when the uninstalled
9428 # path is not listed in the libpath. Setting hardcode_minus_L
9429 # to unsupported forces relinking
9430 hardcode_minus_L=yes
9431 hardcode_libdir_flag_spec='-L$libdir'
9432 hardcode_libdir_separator=
9433 fi
9434 ;;
9435 esac
9436 shared_flag='-shared'
9437 if test yes = "$aix_use_runtimelinking"; then
9438 shared_flag="$shared_flag "'$wl-G'
9439 fi
9440 # Need to ensure runtime linking is disabled for the traditional
9441 # shared library, or the linker may eventually find shared libraries
9442 # /with/ Import File - we do not want to mix them.
9443 shared_flag_aix='-shared'
9444 shared_flag_svr4='-shared $wl-G'
9445 else
9446 # not using gcc
9447 if test ia64 = "$host_cpu"; then
9448 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9449 # chokes on -Wl,-G. The following line is correct:
9450 shared_flag='-G'
9451 else
9452 if test yes = "$aix_use_runtimelinking"; then
9453 shared_flag='$wl-G'
9454 else
9455 shared_flag='$wl-bM:SRE'
9456 fi
9457 shared_flag_aix='$wl-bM:SRE'
9458 shared_flag_svr4='$wl-G'
9459 fi
9460 fi
9461
9462 export_dynamic_flag_spec='$wl-bexpall'
9463 # It seems that -bexpall does not export symbols beginning with
9464 # underscore (_), so it is better to generate a list of symbols to export.
9465 always_export_symbols=yes
9466 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9467 # Warning - without using the other runtime loading flags (-brtl),
9468 # -berok will link without error, but may produce a broken library.
9469 allow_undefined_flag='-berok'
9470 # Determine the default libpath from the value encoded in an
9471 # empty executable.
9472 if test set = "${lt_cv_aix_libpath+set}"; then
9473 aix_libpath=$lt_cv_aix_libpath
9474 else
9475 if test ${lt_cv_aix_libpath_+y}
9476 then :
9477 printf %s "(cached) " >&6
9478 else $as_nop
9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9481
9482 int
9483 main (void)
9484 {
9485
9486 ;
9487 return 0;
9488 }
9489 _ACEOF
9490 if ac_fn_c_try_link "$LINENO"
9491 then :
9492
9493 lt_aix_libpath_sed='
9494 /Import File Strings/,/^$/ {
9495 /^0/ {
9496 s/^0 *\([^ ]*\) *$/\1/
9497 p
9498 }
9499 }'
9500 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9501 # Check for a 64-bit object if we didn't find anything.
9502 if test -z "$lt_cv_aix_libpath_"; then
9503 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9504 fi
9505 fi
9506 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9507 conftest$ac_exeext conftest.$ac_ext
9508 if test -z "$lt_cv_aix_libpath_"; then
9509 lt_cv_aix_libpath_=/usr/lib:/lib
9510 fi
9511
9512 fi
9513
9514 aix_libpath=$lt_cv_aix_libpath_
9515 fi
9516
9517 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9518 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
9519 else
9520 if test ia64 = "$host_cpu"; then
9521 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9522 allow_undefined_flag="-z nodefs"
9523 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"
9524 else
9525 # Determine the default libpath from the value encoded in an
9526 # empty executable.
9527 if test set = "${lt_cv_aix_libpath+set}"; then
9528 aix_libpath=$lt_cv_aix_libpath
9529 else
9530 if test ${lt_cv_aix_libpath_+y}
9531 then :
9532 printf %s "(cached) " >&6
9533 else $as_nop
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9536
9537 int
9538 main (void)
9539 {
9540
9541 ;
9542 return 0;
9543 }
9544 _ACEOF
9545 if ac_fn_c_try_link "$LINENO"
9546 then :
9547
9548 lt_aix_libpath_sed='
9549 /Import File Strings/,/^$/ {
9550 /^0/ {
9551 s/^0 *\([^ ]*\) *$/\1/
9552 p
9553 }
9554 }'
9555 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9556 # Check for a 64-bit object if we didn't find anything.
9557 if test -z "$lt_cv_aix_libpath_"; then
9558 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9559 fi
9560 fi
9561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9562 conftest$ac_exeext conftest.$ac_ext
9563 if test -z "$lt_cv_aix_libpath_"; then
9564 lt_cv_aix_libpath_=/usr/lib:/lib
9565 fi
9566
9567 fi
9568
9569 aix_libpath=$lt_cv_aix_libpath_
9570 fi
9571
9572 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9573 # Warning - without using the other run time loading flags,
9574 # -berok will link without error, but may produce a broken library.
9575 no_undefined_flag=' $wl-bernotok'
9576 allow_undefined_flag=' $wl-berok'
9577 if test yes = "$with_gnu_ld"; then
9578 # We only use this code for GNU lds that support --whole-archive.
9579 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9580 else
9581 # Exported symbols can be pulled into shared objects from archives
9582 whole_archive_flag_spec='$convenience'
9583 fi
9584 archive_cmds_need_lc=yes
9585 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9586 # -brtl affects multiple linker settings, -berok does not and is overridden later
9587 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9588 if test svr4 != "$with_aix_soname"; then
9589 # This is similar to how AIX traditionally builds its shared libraries.
9590 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'
9591 fi
9592 if test aix != "$with_aix_soname"; then
9593 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'
9594 else
9595 # used by -dlpreopen to get the symbols
9596 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9597 fi
9598 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9599 fi
9600 fi
9601 ;;
9602
9603 amigaos*)
9604 case $host_cpu in
9605 powerpc)
9606 # see comment about AmigaOS4 .so support
9607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9608 archive_expsym_cmds=''
9609 ;;
9610 m68k)
9611 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)'
9612 hardcode_libdir_flag_spec='-L$libdir'
9613 hardcode_minus_L=yes
9614 ;;
9615 esac
9616 ;;
9617
9618 bsdi[45]*)
9619 export_dynamic_flag_spec=-rdynamic
9620 ;;
9621
9622 cygwin* | mingw* | pw32* | cegcc*)
9623 # When not using gcc, we currently assume that we are using
9624 # Microsoft Visual C++.
9625 # hardcode_libdir_flag_spec is actually meaningless, as there is
9626 # no search path for DLLs.
9627 case $cc_basename in
9628 cl*)
9629 # Native MSVC
9630 hardcode_libdir_flag_spec=' '
9631 allow_undefined_flag=unsupported
9632 always_export_symbols=yes
9633 file_list_spec='@'
9634 # Tell ltmain to make .lib files, not .a files.
9635 libext=lib
9636 # Tell ltmain to make .dll files, not .so files.
9637 shrext_cmds=.dll
9638 # FIXME: Setting linknames here is a bad hack.
9639 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9640 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9641 cp "$export_symbols" "$output_objdir/$soname.def";
9642 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9643 else
9644 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9645 fi~
9646 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9647 linknames='
9648 # The linker will not automatically build a static lib if we build a DLL.
9649 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9650 enable_shared_with_static_runtimes=yes
9651 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9652 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9653 # Don't use ranlib
9654 old_postinstall_cmds='chmod 644 $oldlib'
9655 postlink_cmds='lt_outputfile="@OUTPUT@"~
9656 lt_tool_outputfile="@TOOL_OUTPUT@"~
9657 case $lt_outputfile in
9658 *.exe|*.EXE) ;;
9659 *)
9660 lt_outputfile=$lt_outputfile.exe
9661 lt_tool_outputfile=$lt_tool_outputfile.exe
9662 ;;
9663 esac~
9664 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9665 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9666 $RM "$lt_outputfile.manifest";
9667 fi'
9668 ;;
9669 *)
9670 # Assume MSVC wrapper
9671 hardcode_libdir_flag_spec=' '
9672 allow_undefined_flag=unsupported
9673 # Tell ltmain to make .lib files, not .a files.
9674 libext=lib
9675 # Tell ltmain to make .dll files, not .so files.
9676 shrext_cmds=.dll
9677 # FIXME: Setting linknames here is a bad hack.
9678 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9679 # The linker will automatically build a .lib file if we build a DLL.
9680 old_archive_from_new_cmds='true'
9681 # FIXME: Should let the user specify the lib program.
9682 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9683 enable_shared_with_static_runtimes=yes
9684 ;;
9685 esac
9686 ;;
9687
9688 darwin* | rhapsody*)
9689
9690
9691 archive_cmds_need_lc=no
9692 hardcode_direct=no
9693 hardcode_automatic=yes
9694 hardcode_shlibpath_var=unsupported
9695 if test yes = "$lt_cv_ld_force_load"; then
9696 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\"`'
9697
9698 else
9699 whole_archive_flag_spec=''
9700 fi
9701 link_all_deplibs=yes
9702 allow_undefined_flag=$_lt_dar_allow_undefined
9703 case $cc_basename in
9704 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9705 *) _lt_dar_can_shared=$GCC ;;
9706 esac
9707 if test yes = "$_lt_dar_can_shared"; then
9708 output_verbose_link_cmd=func_echo_all
9709 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9710 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9711 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"
9712 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"
9713
9714 else
9715 ld_shlibs=no
9716 fi
9717
9718 ;;
9719
9720 dgux*)
9721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722 hardcode_libdir_flag_spec='-L$libdir'
9723 hardcode_shlibpath_var=no
9724 ;;
9725
9726 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9727 # support. Future versions do this automatically, but an explicit c++rt0.o
9728 # does not break anything, and helps significantly (at the cost of a little
9729 # extra space).
9730 freebsd2.2*)
9731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9732 hardcode_libdir_flag_spec='-R$libdir'
9733 hardcode_direct=yes
9734 hardcode_shlibpath_var=no
9735 ;;
9736
9737 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9738 freebsd2.*)
9739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9740 hardcode_direct=yes
9741 hardcode_minus_L=yes
9742 hardcode_shlibpath_var=no
9743 ;;
9744
9745 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9746 freebsd* | dragonfly*)
9747 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9748 hardcode_libdir_flag_spec='-R$libdir'
9749 hardcode_direct=yes
9750 hardcode_shlibpath_var=no
9751 ;;
9752
9753 hpux9*)
9754 if test yes = "$GCC"; then
9755 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'
9756 else
9757 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'
9758 fi
9759 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9760 hardcode_libdir_separator=:
9761 hardcode_direct=yes
9762
9763 # hardcode_minus_L: Not really in the search PATH,
9764 # but as the default location of the library.
9765 hardcode_minus_L=yes
9766 export_dynamic_flag_spec='$wl-E'
9767 ;;
9768
9769 hpux10*)
9770 if test yes,no = "$GCC,$with_gnu_ld"; then
9771 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9772 else
9773 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9774 fi
9775 if test no = "$with_gnu_ld"; then
9776 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9777 hardcode_libdir_separator=:
9778 hardcode_direct=yes
9779 hardcode_direct_absolute=yes
9780 export_dynamic_flag_spec='$wl-E'
9781 # hardcode_minus_L: Not really in the search PATH,
9782 # but as the default location of the library.
9783 hardcode_minus_L=yes
9784 fi
9785 ;;
9786
9787 hpux11*)
9788 if test yes,no = "$GCC,$with_gnu_ld"; then
9789 case $host_cpu in
9790 hppa*64*)
9791 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 ;;
9793 ia64*)
9794 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9795 ;;
9796 *)
9797 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9798 ;;
9799 esac
9800 else
9801 case $host_cpu in
9802 hppa*64*)
9803 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9804 ;;
9805 ia64*)
9806 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9807 ;;
9808 *)
9809
9810 # Older versions of the 11.00 compiler do not understand -b yet
9811 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9813 printf %s "checking if $CC understands -b... " >&6; }
9814 if test ${lt_cv_prog_compiler__b+y}
9815 then :
9816 printf %s "(cached) " >&6
9817 else $as_nop
9818 lt_cv_prog_compiler__b=no
9819 save_LDFLAGS=$LDFLAGS
9820 LDFLAGS="$LDFLAGS -b"
9821 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9823 # The linker can only warn and ignore the option if not recognized
9824 # So say no if there are warnings
9825 if test -s conftest.err; then
9826 # Append any errors to the config.log.
9827 cat conftest.err 1>&5
9828 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9830 if diff conftest.exp conftest.er2 >/dev/null; then
9831 lt_cv_prog_compiler__b=yes
9832 fi
9833 else
9834 lt_cv_prog_compiler__b=yes
9835 fi
9836 fi
9837 $RM -r conftest*
9838 LDFLAGS=$save_LDFLAGS
9839
9840 fi
9841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9842 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
9843
9844 if test yes = "$lt_cv_prog_compiler__b"; then
9845 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9846 else
9847 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9848 fi
9849
9850 ;;
9851 esac
9852 fi
9853 if test no = "$with_gnu_ld"; then
9854 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9855 hardcode_libdir_separator=:
9856
9857 case $host_cpu in
9858 hppa*64*|ia64*)
9859 hardcode_direct=no
9860 hardcode_shlibpath_var=no
9861 ;;
9862 *)
9863 hardcode_direct=yes
9864 hardcode_direct_absolute=yes
9865 export_dynamic_flag_spec='$wl-E'
9866
9867 # hardcode_minus_L: Not really in the search PATH,
9868 # but as the default location of the library.
9869 hardcode_minus_L=yes
9870 ;;
9871 esac
9872 fi
9873 ;;
9874
9875 irix5* | irix6* | nonstopux*)
9876 if test yes = "$GCC"; then
9877 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'
9878 # Try to use the -exported_symbol ld option, if it does not
9879 # work, assume that -exports_file does not work either and
9880 # implicitly export all symbols.
9881 # This should be the same for all languages, so no per-tag cache variable.
9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9883 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9884 if test ${lt_cv_irix_exported_symbol+y}
9885 then :
9886 printf %s "(cached) " >&6
9887 else $as_nop
9888 save_LDFLAGS=$LDFLAGS
9889 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9892 int foo (void) { return 0; }
9893 _ACEOF
9894 if ac_fn_c_try_link "$LINENO"
9895 then :
9896 lt_cv_irix_exported_symbol=yes
9897 else $as_nop
9898 lt_cv_irix_exported_symbol=no
9899 fi
9900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9901 conftest$ac_exeext conftest.$ac_ext
9902 LDFLAGS=$save_LDFLAGS
9903 fi
9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9905 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
9906 if test yes = "$lt_cv_irix_exported_symbol"; then
9907 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'
9908 fi
9909 else
9910 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'
9911 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'
9912 fi
9913 archive_cmds_need_lc='no'
9914 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9915 hardcode_libdir_separator=:
9916 inherit_rpath=yes
9917 link_all_deplibs=yes
9918 ;;
9919
9920 linux*)
9921 case $cc_basename in
9922 tcc*)
9923 # Fabrice Bellard et al's Tiny C Compiler
9924 ld_shlibs=yes
9925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9926 ;;
9927 esac
9928 ;;
9929
9930 netbsd*)
9931 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9932 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9933 else
9934 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9935 fi
9936 hardcode_libdir_flag_spec='-R$libdir'
9937 hardcode_direct=yes
9938 hardcode_shlibpath_var=no
9939 ;;
9940
9941 newsos6)
9942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9943 hardcode_direct=yes
9944 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9945 hardcode_libdir_separator=:
9946 hardcode_shlibpath_var=no
9947 ;;
9948
9949 *nto* | *qnx*)
9950 ;;
9951
9952 openbsd* | bitrig*)
9953 if test -f /usr/libexec/ld.so; then
9954 hardcode_direct=yes
9955 hardcode_shlibpath_var=no
9956 hardcode_direct_absolute=yes
9957 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9958 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9959 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9960 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9961 export_dynamic_flag_spec='$wl-E'
9962 else
9963 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9964 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9965 fi
9966 else
9967 ld_shlibs=no
9968 fi
9969 ;;
9970
9971 os2*)
9972 hardcode_libdir_flag_spec='-L$libdir'
9973 hardcode_minus_L=yes
9974 allow_undefined_flag=unsupported
9975 shrext_cmds=.dll
9976 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9977 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9978 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9979 $ECHO EXPORTS >> $output_objdir/$libname.def~
9980 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9981 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9982 emximp -o $lib $output_objdir/$libname.def'
9983 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9984 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9985 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9986 $ECHO EXPORTS >> $output_objdir/$libname.def~
9987 prefix_cmds="$SED"~
9988 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9989 prefix_cmds="$prefix_cmds -e 1d";
9990 fi~
9991 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9992 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9993 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9994 emximp -o $lib $output_objdir/$libname.def'
9995 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9996 enable_shared_with_static_runtimes=yes
9997 ;;
9998
9999 osf3*)
10000 if test yes = "$GCC"; then
10001 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10002 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'
10003 else
10004 allow_undefined_flag=' -expect_unresolved \*'
10005 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'
10006 fi
10007 archive_cmds_need_lc='no'
10008 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10009 hardcode_libdir_separator=:
10010 ;;
10011
10012 osf4* | osf5*) # as osf3* with the addition of -msym flag
10013 if test yes = "$GCC"; then
10014 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10015 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'
10016 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10017 else
10018 allow_undefined_flag=' -expect_unresolved \*'
10019 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'
10020 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~
10021 $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'
10022
10023 # Both c and cxx compiler support -rpath directly
10024 hardcode_libdir_flag_spec='-rpath $libdir'
10025 fi
10026 archive_cmds_need_lc='no'
10027 hardcode_libdir_separator=:
10028 ;;
10029
10030 solaris*)
10031 no_undefined_flag=' -z defs'
10032 if test yes = "$GCC"; then
10033 wlarc='$wl'
10034 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10035 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10036 $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'
10037 else
10038 case `$CC -V 2>&1` in
10039 *"Compilers 5.0"*)
10040 wlarc=''
10041 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10042 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10043 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10044 ;;
10045 *)
10046 wlarc='$wl'
10047 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10048 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10049 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10050 ;;
10051 esac
10052 fi
10053 hardcode_libdir_flag_spec='-R$libdir'
10054 hardcode_shlibpath_var=no
10055 case $host_os in
10056 solaris2.[0-5] | solaris2.[0-5].*) ;;
10057 *)
10058 # The compiler driver will combine and reorder linker options,
10059 # but understands '-z linker_flag'. GCC discards it without '$wl',
10060 # but is careful enough not to reorder.
10061 # Supported since Solaris 2.6 (maybe 2.5.1?)
10062 if test yes = "$GCC"; then
10063 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10064 else
10065 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10066 fi
10067 ;;
10068 esac
10069 link_all_deplibs=yes
10070 ;;
10071
10072 sunos4*)
10073 if test sequent = "$host_vendor"; then
10074 # Use $CC to link under sequent, because it throws in some extra .o
10075 # files that make .init and .fini sections work.
10076 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10077 else
10078 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10079 fi
10080 hardcode_libdir_flag_spec='-L$libdir'
10081 hardcode_direct=yes
10082 hardcode_minus_L=yes
10083 hardcode_shlibpath_var=no
10084 ;;
10085
10086 sysv4)
10087 case $host_vendor in
10088 sni)
10089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10090 hardcode_direct=yes # is this really true???
10091 ;;
10092 siemens)
10093 ## LD is ld it makes a PLAMLIB
10094 ## CC just makes a GrossModule.
10095 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10096 reload_cmds='$CC -r -o $output$reload_objs'
10097 hardcode_direct=no
10098 ;;
10099 motorola)
10100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10101 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10102 ;;
10103 esac
10104 runpath_var='LD_RUN_PATH'
10105 hardcode_shlibpath_var=no
10106 ;;
10107
10108 sysv4.3*)
10109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10110 hardcode_shlibpath_var=no
10111 export_dynamic_flag_spec='-Bexport'
10112 ;;
10113
10114 sysv4*MP*)
10115 if test -d /usr/nec; then
10116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10117 hardcode_shlibpath_var=no
10118 runpath_var=LD_RUN_PATH
10119 hardcode_runpath_var=yes
10120 ld_shlibs=yes
10121 fi
10122 ;;
10123
10124 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10125 no_undefined_flag='$wl-z,text'
10126 archive_cmds_need_lc=no
10127 hardcode_shlibpath_var=no
10128 runpath_var='LD_RUN_PATH'
10129
10130 if test yes = "$GCC"; then
10131 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10132 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 else
10134 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10135 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136 fi
10137 ;;
10138
10139 sysv5* | sco3.2v5* | sco5v6*)
10140 # Note: We CANNOT use -z defs as we might desire, because we do not
10141 # link with -lc, and that would cause any symbols used from libc to
10142 # always be unresolved, which means just about no library would
10143 # ever link correctly. If we're not using GNU ld we use -z text
10144 # though, which does catch some bad symbols but isn't as heavy-handed
10145 # as -z defs.
10146 no_undefined_flag='$wl-z,text'
10147 allow_undefined_flag='$wl-z,nodefs'
10148 archive_cmds_need_lc=no
10149 hardcode_shlibpath_var=no
10150 hardcode_libdir_flag_spec='$wl-R,$libdir'
10151 hardcode_libdir_separator=':'
10152 link_all_deplibs=yes
10153 export_dynamic_flag_spec='$wl-Bexport'
10154 runpath_var='LD_RUN_PATH'
10155
10156 if test yes = "$GCC"; then
10157 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 else
10160 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162 fi
10163 ;;
10164
10165 uts4*)
10166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167 hardcode_libdir_flag_spec='-L$libdir'
10168 hardcode_shlibpath_var=no
10169 ;;
10170
10171 *)
10172 ld_shlibs=no
10173 ;;
10174 esac
10175
10176 if test sni = "$host_vendor"; then
10177 case $host in
10178 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10179 export_dynamic_flag_spec='$wl-Blargedynsym'
10180 ;;
10181 esac
10182 fi
10183 fi
10184
10185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10186 printf "%s\n" "$ld_shlibs" >&6; }
10187 test no = "$ld_shlibs" && can_build_shared=no
10188
10189 with_gnu_ld=$with_gnu_ld
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205 #
10206 # Do we need to explicitly link libc?
10207 #
10208 case "x$archive_cmds_need_lc" in
10209 x|xyes)
10210 # Assume -lc should be added
10211 archive_cmds_need_lc=yes
10212
10213 if test yes,yes = "$GCC,$enable_shared"; then
10214 case $archive_cmds in
10215 *'~'*)
10216 # FIXME: we may have to deal with multi-command sequences.
10217 ;;
10218 '$CC '*)
10219 # Test whether the compiler implicitly links with -lc since on some
10220 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10221 # to ld, don't add -lc before -lgcc.
10222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10223 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10224 if test ${lt_cv_archive_cmds_need_lc+y}
10225 then :
10226 printf %s "(cached) " >&6
10227 else $as_nop
10228 $RM conftest*
10229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10230
10231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10232 (eval $ac_compile) 2>&5
10233 ac_status=$?
10234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10235 test $ac_status = 0; } 2>conftest.err; then
10236 soname=conftest
10237 lib=conftest
10238 libobjs=conftest.$ac_objext
10239 deplibs=
10240 wl=$lt_prog_compiler_wl
10241 pic_flag=$lt_prog_compiler_pic
10242 compiler_flags=-v
10243 linker_flags=-v
10244 verstring=
10245 output_objdir=.
10246 libname=conftest
10247 lt_save_allow_undefined_flag=$allow_undefined_flag
10248 allow_undefined_flag=
10249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10250 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10251 ac_status=$?
10252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10253 test $ac_status = 0; }
10254 then
10255 lt_cv_archive_cmds_need_lc=no
10256 else
10257 lt_cv_archive_cmds_need_lc=yes
10258 fi
10259 allow_undefined_flag=$lt_save_allow_undefined_flag
10260 else
10261 cat conftest.err 1>&5
10262 fi
10263 $RM conftest*
10264
10265 fi
10266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10267 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10268 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10269 ;;
10270 esac
10271 fi
10272 ;;
10273 esac
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10427 printf %s "checking dynamic linker characteristics... " >&6; }
10428
10429 if test yes = "$GCC"; then
10430 case $host_os in
10431 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10432 *) lt_awk_arg='/^libraries:/' ;;
10433 esac
10434 case $host_os in
10435 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10436 *) lt_sed_strip_eq='s|=/|/|g' ;;
10437 esac
10438 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10439 case $lt_search_path_spec in
10440 *\;*)
10441 # if the path contains ";" then we assume it to be the separator
10442 # otherwise default to the standard path separator (i.e. ":") - it is
10443 # assumed that no part of a normal pathname contains ";" but that should
10444 # okay in the real world where ";" in dirpaths is itself problematic.
10445 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10446 ;;
10447 *)
10448 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10449 ;;
10450 esac
10451 # Ok, now we have the path, separated by spaces, we can step through it
10452 # and add multilib dir if necessary...
10453 lt_tmp_lt_search_path_spec=
10454 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10455 # ...but if some path component already ends with the multilib dir we assume
10456 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10457 case "$lt_multi_os_dir; $lt_search_path_spec " in
10458 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10459 lt_multi_os_dir=
10460 ;;
10461 esac
10462 for lt_sys_path in $lt_search_path_spec; do
10463 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10464 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10465 elif test -n "$lt_multi_os_dir"; then
10466 test -d "$lt_sys_path" && \
10467 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10468 fi
10469 done
10470 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10471 BEGIN {RS = " "; FS = "/|\n";} {
10472 lt_foo = "";
10473 lt_count = 0;
10474 for (lt_i = NF; lt_i > 0; lt_i--) {
10475 if ($lt_i != "" && $lt_i != ".") {
10476 if ($lt_i == "..") {
10477 lt_count++;
10478 } else {
10479 if (lt_count == 0) {
10480 lt_foo = "/" $lt_i lt_foo;
10481 } else {
10482 lt_count--;
10483 }
10484 }
10485 }
10486 }
10487 if (lt_foo != "") { lt_freq[lt_foo]++; }
10488 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10489 }'`
10490 # AWK program above erroneously prepends '/' to C:/dos/paths
10491 # for these hosts.
10492 case $host_os in
10493 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10494 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10495 esac
10496 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10497 else
10498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10499 fi
10500 library_names_spec=
10501 libname_spec='lib$name'
10502 soname_spec=
10503 shrext_cmds=.so
10504 postinstall_cmds=
10505 postuninstall_cmds=
10506 finish_cmds=
10507 finish_eval=
10508 shlibpath_var=
10509 shlibpath_overrides_runpath=unknown
10510 version_type=none
10511 dynamic_linker="$host_os ld.so"
10512 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10513 need_lib_prefix=unknown
10514 hardcode_into_libs=no
10515
10516 # when you set need_version to no, make sure it does not cause -set_version
10517 # flags to be left without arguments
10518 need_version=unknown
10519
10520
10521
10522 case $host_os in
10523 aix3*)
10524 version_type=linux # correct to gnu/linux during the next big refactor
10525 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10526 shlibpath_var=LIBPATH
10527
10528 # AIX 3 has no versioning support, so we append a major version to the name.
10529 soname_spec='$libname$release$shared_ext$major'
10530 ;;
10531
10532 aix[4-9]*)
10533 version_type=linux # correct to gnu/linux during the next big refactor
10534 need_lib_prefix=no
10535 need_version=no
10536 hardcode_into_libs=yes
10537 if test ia64 = "$host_cpu"; then
10538 # AIX 5 supports IA64
10539 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10540 shlibpath_var=LD_LIBRARY_PATH
10541 else
10542 # With GCC up to 2.95.x, collect2 would create an import file
10543 # for dependence libraries. The import file would start with
10544 # the line '#! .'. This would cause the generated library to
10545 # depend on '.', always an invalid library. This was fixed in
10546 # development snapshots of GCC prior to 3.0.
10547 case $host_os in
10548 aix4 | aix4.[01] | aix4.[01].*)
10549 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10550 echo ' yes '
10551 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10552 :
10553 else
10554 can_build_shared=no
10555 fi
10556 ;;
10557 esac
10558 # Using Import Files as archive members, it is possible to support
10559 # filename-based versioning of shared library archives on AIX. While
10560 # this would work for both with and without runtime linking, it will
10561 # prevent static linking of such archives. So we do filename-based
10562 # shared library versioning with .so extension only, which is used
10563 # when both runtime linking and shared linking is enabled.
10564 # Unfortunately, runtime linking may impact performance, so we do
10565 # not want this to be the default eventually. Also, we use the
10566 # versioned .so libs for executables only if there is the -brtl
10567 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10568 # To allow for filename-based versioning support, we need to create
10569 # libNAME.so.V as an archive file, containing:
10570 # *) an Import File, referring to the versioned filename of the
10571 # archive as well as the shared archive member, telling the
10572 # bitwidth (32 or 64) of that shared object, and providing the
10573 # list of exported symbols of that shared object, eventually
10574 # decorated with the 'weak' keyword
10575 # *) the shared object with the F_LOADONLY flag set, to really avoid
10576 # it being seen by the linker.
10577 # At run time we better use the real file rather than another symlink,
10578 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10579
10580 case $with_aix_soname,$aix_use_runtimelinking in
10581 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10582 # soname into executable. Probably we can add versioning support to
10583 # collect2, so additional links can be useful in future.
10584 aix,yes) # traditional libtool
10585 dynamic_linker='AIX unversionable lib.so'
10586 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10587 # instead of lib<name>.a to let people know that these are not
10588 # typical AIX shared libraries.
10589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10590 ;;
10591 aix,no) # traditional AIX only
10592 dynamic_linker='AIX lib.a(lib.so.V)'
10593 # We preserve .a as extension for shared libraries through AIX4.2
10594 # and later when we are not doing run time linking.
10595 library_names_spec='$libname$release.a $libname.a'
10596 soname_spec='$libname$release$shared_ext$major'
10597 ;;
10598 svr4,*) # full svr4 only
10599 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10600 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10601 # We do not specify a path in Import Files, so LIBPATH fires.
10602 shlibpath_overrides_runpath=yes
10603 ;;
10604 *,yes) # both, prefer svr4
10605 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10606 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10607 # unpreferred sharedlib libNAME.a needs extra handling
10608 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"'
10609 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"'
10610 # We do not specify a path in Import Files, so LIBPATH fires.
10611 shlibpath_overrides_runpath=yes
10612 ;;
10613 *,no) # both, prefer aix
10614 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10615 library_names_spec='$libname$release.a $libname.a'
10616 soname_spec='$libname$release$shared_ext$major'
10617 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10618 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)'
10619 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"'
10620 ;;
10621 esac
10622 shlibpath_var=LIBPATH
10623 fi
10624 ;;
10625
10626 amigaos*)
10627 case $host_cpu in
10628 powerpc)
10629 # Since July 2007 AmigaOS4 officially supports .so libraries.
10630 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10632 ;;
10633 m68k)
10634 library_names_spec='$libname.ixlibrary $libname.a'
10635 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10636 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'
10637 ;;
10638 esac
10639 ;;
10640
10641 beos*)
10642 library_names_spec='$libname$shared_ext'
10643 dynamic_linker="$host_os ld.so"
10644 shlibpath_var=LIBRARY_PATH
10645 ;;
10646
10647 bsdi[45]*)
10648 version_type=linux # correct to gnu/linux during the next big refactor
10649 need_version=no
10650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10651 soname_spec='$libname$release$shared_ext$major'
10652 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10655 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10656 # the default ld.so.conf also contains /usr/contrib/lib and
10657 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10658 # libtool to hard-code these into programs
10659 ;;
10660
10661 cygwin* | mingw* | pw32* | cegcc*)
10662 version_type=windows
10663 shrext_cmds=.dll
10664 need_version=no
10665 need_lib_prefix=no
10666
10667 case $GCC,$cc_basename in
10668 yes,*)
10669 # gcc
10670 library_names_spec='$libname.dll.a'
10671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10672 postinstall_cmds='base_file=`basename \$file`~
10673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10674 dldir=$destdir/`dirname \$dlpath`~
10675 test -d \$dldir || mkdir -p \$dldir~
10676 $install_prog $dir/$dlname \$dldir/$dlname~
10677 chmod a+x \$dldir/$dlname~
10678 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10679 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10680 fi'
10681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10682 dlpath=$dir/\$dldll~
10683 $RM \$dlpath'
10684 shlibpath_overrides_runpath=yes
10685
10686 case $host_os in
10687 cygwin*)
10688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10689 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10690
10691 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10692 ;;
10693 mingw* | cegcc*)
10694 # MinGW DLLs use traditional 'lib' prefix
10695 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10696 ;;
10697 pw32*)
10698 # pw32 DLLs use 'pw' prefix rather than 'lib'
10699 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10700 ;;
10701 esac
10702 dynamic_linker='Win32 ld.exe'
10703 ;;
10704
10705 *,cl*)
10706 # Native MSVC
10707 libname_spec='$name'
10708 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10709 library_names_spec='$libname.dll.lib'
10710
10711 case $build_os in
10712 mingw*)
10713 sys_lib_search_path_spec=
10714 lt_save_ifs=$IFS
10715 IFS=';'
10716 for lt_path in $LIB
10717 do
10718 IFS=$lt_save_ifs
10719 # Let DOS variable expansion print the short 8.3 style file name.
10720 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10721 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10722 done
10723 IFS=$lt_save_ifs
10724 # Convert to MSYS style.
10725 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10726 ;;
10727 cygwin*)
10728 # Convert to unix form, then to dos form, then back to unix form
10729 # but this time dos style (no spaces!) so that the unix form looks
10730 # like /cygdrive/c/PROGRA~1:/cygdr...
10731 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10732 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10733 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10734 ;;
10735 *)
10736 sys_lib_search_path_spec=$LIB
10737 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10738 # It is most probably a Windows format PATH.
10739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10740 else
10741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10742 fi
10743 # FIXME: find the short name or the path components, as spaces are
10744 # common. (e.g. "Program Files" -> "PROGRA~1")
10745 ;;
10746 esac
10747
10748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10749 postinstall_cmds='base_file=`basename \$file`~
10750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10751 dldir=$destdir/`dirname \$dlpath`~
10752 test -d \$dldir || mkdir -p \$dldir~
10753 $install_prog $dir/$dlname \$dldir/$dlname'
10754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10755 dlpath=$dir/\$dldll~
10756 $RM \$dlpath'
10757 shlibpath_overrides_runpath=yes
10758 dynamic_linker='Win32 link.exe'
10759 ;;
10760
10761 *)
10762 # Assume MSVC wrapper
10763 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10764 dynamic_linker='Win32 ld.exe'
10765 ;;
10766 esac
10767 # FIXME: first we should search . and the directory the executable is in
10768 shlibpath_var=PATH
10769 ;;
10770
10771 darwin* | rhapsody*)
10772 dynamic_linker="$host_os dyld"
10773 version_type=darwin
10774 need_lib_prefix=no
10775 need_version=no
10776 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10777 soname_spec='$libname$release$major$shared_ext'
10778 shlibpath_overrides_runpath=yes
10779 shlibpath_var=DYLD_LIBRARY_PATH
10780 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10781
10782 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10784 ;;
10785
10786 dgux*)
10787 version_type=linux # correct to gnu/linux during the next big refactor
10788 need_lib_prefix=no
10789 need_version=no
10790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10791 soname_spec='$libname$release$shared_ext$major'
10792 shlibpath_var=LD_LIBRARY_PATH
10793 ;;
10794
10795 freebsd* | dragonfly*)
10796 # DragonFly does not have aout. When/if they implement a new
10797 # versioning mechanism, adjust this.
10798 if test -x /usr/bin/objformat; then
10799 objformat=`/usr/bin/objformat`
10800 else
10801 case $host_os in
10802 freebsd[23].*) objformat=aout ;;
10803 *) objformat=elf ;;
10804 esac
10805 fi
10806 version_type=freebsd-$objformat
10807 case $version_type in
10808 freebsd-elf*)
10809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10810 soname_spec='$libname$release$shared_ext$major'
10811 need_version=no
10812 need_lib_prefix=no
10813 ;;
10814 freebsd-*)
10815 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10816 need_version=yes
10817 ;;
10818 esac
10819 shlibpath_var=LD_LIBRARY_PATH
10820 case $host_os in
10821 freebsd2.*)
10822 shlibpath_overrides_runpath=yes
10823 ;;
10824 freebsd3.[01]* | freebsdelf3.[01]*)
10825 shlibpath_overrides_runpath=yes
10826 hardcode_into_libs=yes
10827 ;;
10828 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10829 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10830 shlibpath_overrides_runpath=no
10831 hardcode_into_libs=yes
10832 ;;
10833 *) # from 4.6 on, and DragonFly
10834 shlibpath_overrides_runpath=yes
10835 hardcode_into_libs=yes
10836 ;;
10837 esac
10838 ;;
10839
10840 haiku*)
10841 version_type=linux # correct to gnu/linux during the next big refactor
10842 need_lib_prefix=no
10843 need_version=no
10844 dynamic_linker="$host_os runtime_loader"
10845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10846 soname_spec='$libname$release$shared_ext$major'
10847 shlibpath_var=LIBRARY_PATH
10848 shlibpath_overrides_runpath=no
10849 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10850 hardcode_into_libs=yes
10851 ;;
10852
10853 hpux9* | hpux10* | hpux11*)
10854 # Give a soname corresponding to the major version so that dld.sl refuses to
10855 # link against other versions.
10856 version_type=sunos
10857 need_lib_prefix=no
10858 need_version=no
10859 case $host_cpu in
10860 ia64*)
10861 shrext_cmds='.so'
10862 hardcode_into_libs=yes
10863 dynamic_linker="$host_os dld.so"
10864 shlibpath_var=LD_LIBRARY_PATH
10865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10867 soname_spec='$libname$release$shared_ext$major'
10868 if test 32 = "$HPUX_IA64_MODE"; then
10869 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10870 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10871 else
10872 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10873 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10874 fi
10875 ;;
10876 hppa*64*)
10877 shrext_cmds='.sl'
10878 hardcode_into_libs=yes
10879 dynamic_linker="$host_os dld.sl"
10880 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10881 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10883 soname_spec='$libname$release$shared_ext$major'
10884 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10885 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10886 ;;
10887 *)
10888 shrext_cmds='.sl'
10889 dynamic_linker="$host_os dld.sl"
10890 shlibpath_var=SHLIB_PATH
10891 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10893 soname_spec='$libname$release$shared_ext$major'
10894 ;;
10895 esac
10896 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10897 postinstall_cmds='chmod 555 $lib'
10898 # or fails outright, so override atomically:
10899 install_override_mode=555
10900 ;;
10901
10902 interix[3-9]*)
10903 version_type=linux # correct to gnu/linux during the next big refactor
10904 need_lib_prefix=no
10905 need_version=no
10906 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10907 soname_spec='$libname$release$shared_ext$major'
10908 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10909 shlibpath_var=LD_LIBRARY_PATH
10910 shlibpath_overrides_runpath=no
10911 hardcode_into_libs=yes
10912 ;;
10913
10914 irix5* | irix6* | nonstopux*)
10915 case $host_os in
10916 nonstopux*) version_type=nonstopux ;;
10917 *)
10918 if test yes = "$lt_cv_prog_gnu_ld"; then
10919 version_type=linux # correct to gnu/linux during the next big refactor
10920 else
10921 version_type=irix
10922 fi ;;
10923 esac
10924 need_lib_prefix=no
10925 need_version=no
10926 soname_spec='$libname$release$shared_ext$major'
10927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10928 case $host_os in
10929 irix5* | nonstopux*)
10930 libsuff= shlibsuff=
10931 ;;
10932 *)
10933 case $LD in # libtool.m4 will add one of these switches to LD
10934 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10935 libsuff= shlibsuff= libmagic=32-bit;;
10936 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10937 libsuff=32 shlibsuff=N32 libmagic=N32;;
10938 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10939 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10940 *) libsuff= shlibsuff= libmagic=never-match;;
10941 esac
10942 ;;
10943 esac
10944 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10945 shlibpath_overrides_runpath=no
10946 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10947 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10948 hardcode_into_libs=yes
10949 ;;
10950
10951 # No shared lib support for Linux oldld, aout, or coff.
10952 linux*oldld* | linux*aout* | linux*coff*)
10953 dynamic_linker=no
10954 ;;
10955
10956 linux*android*)
10957 version_type=none # Android doesn't support versioned libraries.
10958 need_lib_prefix=no
10959 need_version=no
10960 library_names_spec='$libname$release$shared_ext'
10961 soname_spec='$libname$release$shared_ext'
10962 finish_cmds=
10963 shlibpath_var=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath=yes
10965
10966 # This implies no fast_install, which is unacceptable.
10967 # Some rework will be needed to allow for fast_install
10968 # before this can be enabled.
10969 hardcode_into_libs=yes
10970
10971 dynamic_linker='Android linker'
10972 # Don't embed -rpath directories since the linker doesn't support them.
10973 hardcode_libdir_flag_spec='-L$libdir'
10974 ;;
10975
10976 # This must be glibc/ELF.
10977 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10978 version_type=linux # correct to gnu/linux during the next big refactor
10979 need_lib_prefix=no
10980 need_version=no
10981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10982 soname_spec='$libname$release$shared_ext$major'
10983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=no
10986
10987 # Some binutils ld are patched to set DT_RUNPATH
10988 if test ${lt_cv_shlibpath_overrides_runpath+y}
10989 then :
10990 printf %s "(cached) " >&6
10991 else $as_nop
10992 lt_cv_shlibpath_overrides_runpath=no
10993 save_LDFLAGS=$LDFLAGS
10994 save_libdir=$libdir
10995 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10996 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
10999
11000 int
11001 main (void)
11002 {
11003
11004 ;
11005 return 0;
11006 }
11007 _ACEOF
11008 if ac_fn_c_try_link "$LINENO"
11009 then :
11010 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11011 then :
11012 lt_cv_shlibpath_overrides_runpath=yes
11013 fi
11014 fi
11015 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11016 conftest$ac_exeext conftest.$ac_ext
11017 LDFLAGS=$save_LDFLAGS
11018 libdir=$save_libdir
11019
11020 fi
11021
11022 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11023
11024 # This implies no fast_install, which is unacceptable.
11025 # Some rework will be needed to allow for fast_install
11026 # before this can be enabled.
11027 hardcode_into_libs=yes
11028
11029 # Ideally, we could use ldconfig to report *all* directores which are
11030 # searched for libraries, however this is still not possible. Aside from not
11031 # being certain /sbin/ldconfig is available, command
11032 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11033 # even though it is searched at run-time. Try to do the best guess by
11034 # appending ld.so.conf contents (and includes) to the search path.
11035 if test -f /etc/ld.so.conf; then
11036 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' ' '`
11037 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11038 fi
11039
11040 # We used to test for /lib/ld.so.1 and disable shared libraries on
11041 # powerpc, because MkLinux only supported shared libraries with the
11042 # GNU dynamic linker. Since this was broken with cross compilers,
11043 # most powerpc-linux boxes support dynamic linking these days and
11044 # people can always --disable-shared, the test was removed, and we
11045 # assume the GNU/Linux dynamic linker is in use.
11046 dynamic_linker='GNU/Linux ld.so'
11047 ;;
11048
11049 netbsd*)
11050 version_type=sunos
11051 need_lib_prefix=no
11052 need_version=no
11053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11054 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11056 dynamic_linker='NetBSD (a.out) ld.so'
11057 else
11058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11059 soname_spec='$libname$release$shared_ext$major'
11060 dynamic_linker='NetBSD ld.elf_so'
11061 fi
11062 shlibpath_var=LD_LIBRARY_PATH
11063 shlibpath_overrides_runpath=yes
11064 hardcode_into_libs=yes
11065 ;;
11066
11067 newsos6)
11068 version_type=linux # correct to gnu/linux during the next big refactor
11069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11070 shlibpath_var=LD_LIBRARY_PATH
11071 shlibpath_overrides_runpath=yes
11072 ;;
11073
11074 *nto* | *qnx*)
11075 version_type=qnx
11076 need_lib_prefix=no
11077 need_version=no
11078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11079 soname_spec='$libname$release$shared_ext$major'
11080 shlibpath_var=LD_LIBRARY_PATH
11081 shlibpath_overrides_runpath=no
11082 hardcode_into_libs=yes
11083 dynamic_linker='ldqnx.so'
11084 ;;
11085
11086 openbsd* | bitrig*)
11087 version_type=sunos
11088 sys_lib_dlsearch_path_spec=/usr/lib
11089 need_lib_prefix=no
11090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11091 need_version=no
11092 else
11093 need_version=yes
11094 fi
11095 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 shlibpath_overrides_runpath=yes
11099 ;;
11100
11101 os2*)
11102 libname_spec='$name'
11103 version_type=windows
11104 shrext_cmds=.dll
11105 need_version=no
11106 need_lib_prefix=no
11107 # OS/2 can only load a DLL with a base name of 8 characters or less.
11108 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11109 v=$($ECHO $release$versuffix | tr -d .-);
11110 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11111 $ECHO $n$v`$shared_ext'
11112 library_names_spec='${libname}_dll.$libext'
11113 dynamic_linker='OS/2 ld.exe'
11114 shlibpath_var=BEGINLIBPATH
11115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11117 postinstall_cmds='base_file=`basename \$file`~
11118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11119 dldir=$destdir/`dirname \$dlpath`~
11120 test -d \$dldir || mkdir -p \$dldir~
11121 $install_prog $dir/$dlname \$dldir/$dlname~
11122 chmod a+x \$dldir/$dlname~
11123 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11124 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11125 fi'
11126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11127 dlpath=$dir/\$dldll~
11128 $RM \$dlpath'
11129 ;;
11130
11131 osf3* | osf4* | osf5*)
11132 version_type=osf
11133 need_lib_prefix=no
11134 need_version=no
11135 soname_spec='$libname$release$shared_ext$major'
11136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11140 ;;
11141
11142 rdos*)
11143 dynamic_linker=no
11144 ;;
11145
11146 solaris*)
11147 version_type=linux # correct to gnu/linux during the next big refactor
11148 need_lib_prefix=no
11149 need_version=no
11150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11151 soname_spec='$libname$release$shared_ext$major'
11152 shlibpath_var=LD_LIBRARY_PATH
11153 shlibpath_overrides_runpath=yes
11154 hardcode_into_libs=yes
11155 # ldd complains unless libraries are executable
11156 postinstall_cmds='chmod +x $lib'
11157 ;;
11158
11159 sunos4*)
11160 version_type=sunos
11161 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11162 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 shlibpath_overrides_runpath=yes
11165 if test yes = "$with_gnu_ld"; then
11166 need_lib_prefix=no
11167 fi
11168 need_version=yes
11169 ;;
11170
11171 sysv4 | sysv4.3*)
11172 version_type=linux # correct to gnu/linux during the next big refactor
11173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11174 soname_spec='$libname$release$shared_ext$major'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 case $host_vendor in
11177 sni)
11178 shlibpath_overrides_runpath=no
11179 need_lib_prefix=no
11180 runpath_var=LD_RUN_PATH
11181 ;;
11182 siemens)
11183 need_lib_prefix=no
11184 ;;
11185 motorola)
11186 need_lib_prefix=no
11187 need_version=no
11188 shlibpath_overrides_runpath=no
11189 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11190 ;;
11191 esac
11192 ;;
11193
11194 sysv4*MP*)
11195 if test -d /usr/nec; then
11196 version_type=linux # correct to gnu/linux during the next big refactor
11197 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11198 soname_spec='$libname$shared_ext.$major'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 fi
11201 ;;
11202
11203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11204 version_type=sco
11205 need_lib_prefix=no
11206 need_version=no
11207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11208 soname_spec='$libname$release$shared_ext$major'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 shlibpath_overrides_runpath=yes
11211 hardcode_into_libs=yes
11212 if test yes = "$with_gnu_ld"; then
11213 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11214 else
11215 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11216 case $host_os in
11217 sco3.2v5*)
11218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11219 ;;
11220 esac
11221 fi
11222 sys_lib_dlsearch_path_spec='/usr/lib'
11223 ;;
11224
11225 tpf*)
11226 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11227 version_type=linux # correct to gnu/linux during the next big refactor
11228 need_lib_prefix=no
11229 need_version=no
11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11231 shlibpath_var=LD_LIBRARY_PATH
11232 shlibpath_overrides_runpath=no
11233 hardcode_into_libs=yes
11234 ;;
11235
11236 uts4*)
11237 version_type=linux # correct to gnu/linux during the next big refactor
11238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11239 soname_spec='$libname$release$shared_ext$major'
11240 shlibpath_var=LD_LIBRARY_PATH
11241 ;;
11242
11243 *)
11244 dynamic_linker=no
11245 ;;
11246 esac
11247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11248 printf "%s\n" "$dynamic_linker" >&6; }
11249 test no = "$dynamic_linker" && can_build_shared=no
11250
11251 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11252 if test yes = "$GCC"; then
11253 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11254 fi
11255
11256 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11257 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11258 fi
11259
11260 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11261 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11262 fi
11263
11264 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11265 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11266
11267 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11268 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11269
11270 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11271 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11370 printf %s "checking how to hardcode library paths into programs... " >&6; }
11371 hardcode_action=
11372 if test -n "$hardcode_libdir_flag_spec" ||
11373 test -n "$runpath_var" ||
11374 test yes = "$hardcode_automatic"; then
11375
11376 # We can hardcode non-existent directories.
11377 if test no != "$hardcode_direct" &&
11378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11379 # have to relink, otherwise we might link with an installed library
11380 # when we should be linking with a yet-to-be-installed one
11381 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11382 test no != "$hardcode_minus_L"; then
11383 # Linking always hardcodes the temporary library directory.
11384 hardcode_action=relink
11385 else
11386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11387 hardcode_action=immediate
11388 fi
11389 else
11390 # We cannot hardcode anything, or else we can only hardcode existing
11391 # directories.
11392 hardcode_action=unsupported
11393 fi
11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11395 printf "%s\n" "$hardcode_action" >&6; }
11396
11397 if test relink = "$hardcode_action" ||
11398 test yes = "$inherit_rpath"; then
11399 # Fast installation is not supported
11400 enable_fast_install=no
11401 elif test yes = "$shlibpath_overrides_runpath" ||
11402 test no = "$enable_shared"; then
11403 # Fast installation is not necessary
11404 enable_fast_install=needless
11405 fi
11406
11407
11408
11409
11410
11411
11412 if test yes != "$enable_dlopen"; then
11413 enable_dlopen=unknown
11414 enable_dlopen_self=unknown
11415 enable_dlopen_self_static=unknown
11416 else
11417 lt_cv_dlopen=no
11418 lt_cv_dlopen_libs=
11419
11420 case $host_os in
11421 beos*)
11422 lt_cv_dlopen=load_add_on
11423 lt_cv_dlopen_libs=
11424 lt_cv_dlopen_self=yes
11425 ;;
11426
11427 mingw* | pw32* | cegcc*)
11428 lt_cv_dlopen=LoadLibrary
11429 lt_cv_dlopen_libs=
11430 ;;
11431
11432 cygwin*)
11433 lt_cv_dlopen=dlopen
11434 lt_cv_dlopen_libs=
11435 ;;
11436
11437 darwin*)
11438 # if libdl is installed we need to link against it
11439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11440 printf %s "checking for dlopen in -ldl... " >&6; }
11441 if test ${ac_cv_lib_dl_dlopen+y}
11442 then :
11443 printf %s "(cached) " >&6
11444 else $as_nop
11445 ac_check_lib_save_LIBS=$LIBS
11446 LIBS="-ldl $LIBS"
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11449
11450 /* Override any GCC internal prototype to avoid an error.
11451 Use char because int might match the return type of a GCC
11452 builtin and then its argument prototype would still apply. */
11453 char dlopen ();
11454 int
11455 main (void)
11456 {
11457 return dlopen ();
11458 ;
11459 return 0;
11460 }
11461 _ACEOF
11462 if ac_fn_c_try_link "$LINENO"
11463 then :
11464 ac_cv_lib_dl_dlopen=yes
11465 else $as_nop
11466 ac_cv_lib_dl_dlopen=no
11467 fi
11468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11469 conftest$ac_exeext conftest.$ac_ext
11470 LIBS=$ac_check_lib_save_LIBS
11471 fi
11472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11473 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11474 if test "x$ac_cv_lib_dl_dlopen" = xyes
11475 then :
11476 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11477 else $as_nop
11478
11479 lt_cv_dlopen=dyld
11480 lt_cv_dlopen_libs=
11481 lt_cv_dlopen_self=yes
11482
11483 fi
11484
11485 ;;
11486
11487 tpf*)
11488 # Don't try to run any link tests for TPF. We know it's impossible
11489 # because TPF is a cross-compiler, and we know how we open DSOs.
11490 lt_cv_dlopen=dlopen
11491 lt_cv_dlopen_libs=
11492 lt_cv_dlopen_self=no
11493 ;;
11494
11495 *)
11496 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11497 if test "x$ac_cv_func_shl_load" = xyes
11498 then :
11499 lt_cv_dlopen=shl_load
11500 else $as_nop
11501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11502 printf %s "checking for shl_load in -ldld... " >&6; }
11503 if test ${ac_cv_lib_dld_shl_load+y}
11504 then :
11505 printf %s "(cached) " >&6
11506 else $as_nop
11507 ac_check_lib_save_LIBS=$LIBS
11508 LIBS="-ldld $LIBS"
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11511
11512 /* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
11515 char shl_load ();
11516 int
11517 main (void)
11518 {
11519 return shl_load ();
11520 ;
11521 return 0;
11522 }
11523 _ACEOF
11524 if ac_fn_c_try_link "$LINENO"
11525 then :
11526 ac_cv_lib_dld_shl_load=yes
11527 else $as_nop
11528 ac_cv_lib_dld_shl_load=no
11529 fi
11530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11531 conftest$ac_exeext conftest.$ac_ext
11532 LIBS=$ac_check_lib_save_LIBS
11533 fi
11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11535 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
11536 if test "x$ac_cv_lib_dld_shl_load" = xyes
11537 then :
11538 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11539 else $as_nop
11540 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11541 if test "x$ac_cv_func_dlopen" = xyes
11542 then :
11543 lt_cv_dlopen=dlopen
11544 else $as_nop
11545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11546 printf %s "checking for dlopen in -ldl... " >&6; }
11547 if test ${ac_cv_lib_dl_dlopen+y}
11548 then :
11549 printf %s "(cached) " >&6
11550 else $as_nop
11551 ac_check_lib_save_LIBS=$LIBS
11552 LIBS="-ldl $LIBS"
11553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11554 /* end confdefs.h. */
11555
11556 /* Override any GCC internal prototype to avoid an error.
11557 Use char because int might match the return type of a GCC
11558 builtin and then its argument prototype would still apply. */
11559 char dlopen ();
11560 int
11561 main (void)
11562 {
11563 return dlopen ();
11564 ;
11565 return 0;
11566 }
11567 _ACEOF
11568 if ac_fn_c_try_link "$LINENO"
11569 then :
11570 ac_cv_lib_dl_dlopen=yes
11571 else $as_nop
11572 ac_cv_lib_dl_dlopen=no
11573 fi
11574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11575 conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11577 fi
11578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11579 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11580 if test "x$ac_cv_lib_dl_dlopen" = xyes
11581 then :
11582 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11583 else $as_nop
11584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11585 printf %s "checking for dlopen in -lsvld... " >&6; }
11586 if test ${ac_cv_lib_svld_dlopen+y}
11587 then :
11588 printf %s "(cached) " >&6
11589 else $as_nop
11590 ac_check_lib_save_LIBS=$LIBS
11591 LIBS="-lsvld $LIBS"
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11594
11595 /* Override any GCC internal prototype to avoid an error.
11596 Use char because int might match the return type of a GCC
11597 builtin and then its argument prototype would still apply. */
11598 char dlopen ();
11599 int
11600 main (void)
11601 {
11602 return dlopen ();
11603 ;
11604 return 0;
11605 }
11606 _ACEOF
11607 if ac_fn_c_try_link "$LINENO"
11608 then :
11609 ac_cv_lib_svld_dlopen=yes
11610 else $as_nop
11611 ac_cv_lib_svld_dlopen=no
11612 fi
11613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11614 conftest$ac_exeext conftest.$ac_ext
11615 LIBS=$ac_check_lib_save_LIBS
11616 fi
11617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11618 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
11619 if test "x$ac_cv_lib_svld_dlopen" = xyes
11620 then :
11621 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11622 else $as_nop
11623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11624 printf %s "checking for dld_link in -ldld... " >&6; }
11625 if test ${ac_cv_lib_dld_dld_link+y}
11626 then :
11627 printf %s "(cached) " >&6
11628 else $as_nop
11629 ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-ldld $LIBS"
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11633
11634 /* Override any GCC internal prototype to avoid an error.
11635 Use char because int might match the return type of a GCC
11636 builtin and then its argument prototype would still apply. */
11637 char dld_link ();
11638 int
11639 main (void)
11640 {
11641 return dld_link ();
11642 ;
11643 return 0;
11644 }
11645 _ACEOF
11646 if ac_fn_c_try_link "$LINENO"
11647 then :
11648 ac_cv_lib_dld_dld_link=yes
11649 else $as_nop
11650 ac_cv_lib_dld_dld_link=no
11651 fi
11652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11653 conftest$ac_exeext conftest.$ac_ext
11654 LIBS=$ac_check_lib_save_LIBS
11655 fi
11656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11657 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
11658 if test "x$ac_cv_lib_dld_dld_link" = xyes
11659 then :
11660 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11661 fi
11662
11663
11664 fi
11665
11666
11667 fi
11668
11669
11670 fi
11671
11672
11673 fi
11674
11675
11676 fi
11677
11678 ;;
11679 esac
11680
11681 if test no = "$lt_cv_dlopen"; then
11682 enable_dlopen=no
11683 else
11684 enable_dlopen=yes
11685 fi
11686
11687 case $lt_cv_dlopen in
11688 dlopen)
11689 save_CPPFLAGS=$CPPFLAGS
11690 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11691
11692 save_LDFLAGS=$LDFLAGS
11693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11694
11695 save_LIBS=$LIBS
11696 LIBS="$lt_cv_dlopen_libs $LIBS"
11697
11698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11699 printf %s "checking whether a program can dlopen itself... " >&6; }
11700 if test ${lt_cv_dlopen_self+y}
11701 then :
11702 printf %s "(cached) " >&6
11703 else $as_nop
11704 if test yes = "$cross_compiling"; then :
11705 lt_cv_dlopen_self=cross
11706 else
11707 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11708 lt_status=$lt_dlunknown
11709 cat > conftest.$ac_ext <<_LT_EOF
11710 #line $LINENO "configure"
11711 #include "confdefs.h"
11712
11713 #if HAVE_DLFCN_H
11714 #include <dlfcn.h>
11715 #endif
11716
11717 #include <stdio.h>
11718
11719 #ifdef RTLD_GLOBAL
11720 # define LT_DLGLOBAL RTLD_GLOBAL
11721 #else
11722 # ifdef DL_GLOBAL
11723 # define LT_DLGLOBAL DL_GLOBAL
11724 # else
11725 # define LT_DLGLOBAL 0
11726 # endif
11727 #endif
11728
11729 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11730 find out it does not work in some platform. */
11731 #ifndef LT_DLLAZY_OR_NOW
11732 # ifdef RTLD_LAZY
11733 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11734 # else
11735 # ifdef DL_LAZY
11736 # define LT_DLLAZY_OR_NOW DL_LAZY
11737 # else
11738 # ifdef RTLD_NOW
11739 # define LT_DLLAZY_OR_NOW RTLD_NOW
11740 # else
11741 # ifdef DL_NOW
11742 # define LT_DLLAZY_OR_NOW DL_NOW
11743 # else
11744 # define LT_DLLAZY_OR_NOW 0
11745 # endif
11746 # endif
11747 # endif
11748 # endif
11749 #endif
11750
11751 /* When -fvisibility=hidden is used, assume the code has been annotated
11752 correspondingly for the symbols needed. */
11753 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11754 int fnord () __attribute__((visibility("default")));
11755 #endif
11756
11757 int fnord () { return 42; }
11758 int main ()
11759 {
11760 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11761 int status = $lt_dlunknown;
11762
11763 if (self)
11764 {
11765 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11766 else
11767 {
11768 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11769 else puts (dlerror ());
11770 }
11771 /* dlclose (self); */
11772 }
11773 else
11774 puts (dlerror ());
11775
11776 return status;
11777 }
11778 _LT_EOF
11779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11780 (eval $ac_link) 2>&5
11781 ac_status=$?
11782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11783 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11784 (./conftest; exit; ) >&5 2>/dev/null
11785 lt_status=$?
11786 case x$lt_status in
11787 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11788 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11789 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11790 esac
11791 else :
11792 # compilation failed
11793 lt_cv_dlopen_self=no
11794 fi
11795 fi
11796 rm -fr conftest*
11797
11798
11799 fi
11800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11801 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
11802
11803 if test yes = "$lt_cv_dlopen_self"; then
11804 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11806 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
11807 if test ${lt_cv_dlopen_self_static+y}
11808 then :
11809 printf %s "(cached) " >&6
11810 else $as_nop
11811 if test yes = "$cross_compiling"; then :
11812 lt_cv_dlopen_self_static=cross
11813 else
11814 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11815 lt_status=$lt_dlunknown
11816 cat > conftest.$ac_ext <<_LT_EOF
11817 #line $LINENO "configure"
11818 #include "confdefs.h"
11819
11820 #if HAVE_DLFCN_H
11821 #include <dlfcn.h>
11822 #endif
11823
11824 #include <stdio.h>
11825
11826 #ifdef RTLD_GLOBAL
11827 # define LT_DLGLOBAL RTLD_GLOBAL
11828 #else
11829 # ifdef DL_GLOBAL
11830 # define LT_DLGLOBAL DL_GLOBAL
11831 # else
11832 # define LT_DLGLOBAL 0
11833 # endif
11834 #endif
11835
11836 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11837 find out it does not work in some platform. */
11838 #ifndef LT_DLLAZY_OR_NOW
11839 # ifdef RTLD_LAZY
11840 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11841 # else
11842 # ifdef DL_LAZY
11843 # define LT_DLLAZY_OR_NOW DL_LAZY
11844 # else
11845 # ifdef RTLD_NOW
11846 # define LT_DLLAZY_OR_NOW RTLD_NOW
11847 # else
11848 # ifdef DL_NOW
11849 # define LT_DLLAZY_OR_NOW DL_NOW
11850 # else
11851 # define LT_DLLAZY_OR_NOW 0
11852 # endif
11853 # endif
11854 # endif
11855 # endif
11856 #endif
11857
11858 /* When -fvisibility=hidden is used, assume the code has been annotated
11859 correspondingly for the symbols needed. */
11860 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11861 int fnord () __attribute__((visibility("default")));
11862 #endif
11863
11864 int fnord () { return 42; }
11865 int main ()
11866 {
11867 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11868 int status = $lt_dlunknown;
11869
11870 if (self)
11871 {
11872 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11873 else
11874 {
11875 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11876 else puts (dlerror ());
11877 }
11878 /* dlclose (self); */
11879 }
11880 else
11881 puts (dlerror ());
11882
11883 return status;
11884 }
11885 _LT_EOF
11886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11887 (eval $ac_link) 2>&5
11888 ac_status=$?
11889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11890 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11891 (./conftest; exit; ) >&5 2>/dev/null
11892 lt_status=$?
11893 case x$lt_status in
11894 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11895 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11896 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11897 esac
11898 else :
11899 # compilation failed
11900 lt_cv_dlopen_self_static=no
11901 fi
11902 fi
11903 rm -fr conftest*
11904
11905
11906 fi
11907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11908 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
11909 fi
11910
11911 CPPFLAGS=$save_CPPFLAGS
11912 LDFLAGS=$save_LDFLAGS
11913 LIBS=$save_LIBS
11914 ;;
11915 esac
11916
11917 case $lt_cv_dlopen_self in
11918 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11919 *) enable_dlopen_self=unknown ;;
11920 esac
11921
11922 case $lt_cv_dlopen_self_static in
11923 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11924 *) enable_dlopen_self_static=unknown ;;
11925 esac
11926 fi
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944 striplib=
11945 old_striplib=
11946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11947 printf %s "checking whether stripping libraries is possible... " >&6; }
11948 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11949 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11950 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11952 printf "%s\n" "yes" >&6; }
11953 else
11954 # FIXME - insert some real tests, host_os isn't really good enough
11955 case $host_os in
11956 darwin*)
11957 if test -n "$STRIP"; then
11958 striplib="$STRIP -x"
11959 old_striplib="$STRIP -S"
11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11961 printf "%s\n" "yes" >&6; }
11962 else
11963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 printf "%s\n" "no" >&6; }
11965 fi
11966 ;;
11967 *)
11968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 printf "%s\n" "no" >&6; }
11970 ;;
11971 esac
11972 fi
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985 # Report what library types will actually be built
11986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11987 printf %s "checking if libtool supports shared libraries... " >&6; }
11988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11989 printf "%s\n" "$can_build_shared" >&6; }
11990
11991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11992 printf %s "checking whether to build shared libraries... " >&6; }
11993 test no = "$can_build_shared" && enable_shared=no
11994
11995 # On AIX, shared libraries and static libraries use the same namespace, and
11996 # are all built from PIC.
11997 case $host_os in
11998 aix3*)
11999 test yes = "$enable_shared" && enable_static=no
12000 if test -n "$RANLIB"; then
12001 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12002 postinstall_cmds='$RANLIB $lib'
12003 fi
12004 ;;
12005
12006 aix[4-9]*)
12007 if test ia64 != "$host_cpu"; then
12008 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12009 yes,aix,yes) ;; # shared object as lib.so file only
12010 yes,svr4,*) ;; # shared object as lib.so archive member only
12011 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12012 esac
12013 fi
12014 ;;
12015 esac
12016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12017 printf "%s\n" "$enable_shared" >&6; }
12018
12019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12020 printf %s "checking whether to build static libraries... " >&6; }
12021 # Make sure either enable_shared or enable_static is yes.
12022 test yes = "$enable_shared" || enable_static=yes
12023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12024 printf "%s\n" "$enable_static" >&6; }
12025
12026
12027
12028
12029 fi
12030 ac_ext=c
12031 ac_cpp='$CPP $CPPFLAGS'
12032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12035
12036 CC=$lt_save_CC
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052 ac_config_commands="$ac_config_commands libtool"
12053
12054
12055
12056
12057 # Only expand once:
12058
12059
12060
12061
12062
12063 # Break package version up into major, minor and bugfix components.
12064 MYSQLPP_VERSION_MAJOR=`echo $PACKAGE_VERSION | cut -f1 -d.`
12065
12066 MYSQLPP_VERSION_MINOR=`echo $PACKAGE_VERSION | cut -f2 -d.`
12067
12068 MYSQLPP_VERSION_BUGFIX=`echo $PACKAGE_VERSION | cut -f3 -d.`
12069
12070
12071
12072 # Check for Standard C support
12073 ac_ext=c
12074 ac_cpp='$CPP $CPPFLAGS'
12075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12078 if test -n "$ac_tool_prefix"; then
12079 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12080 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12082 printf %s "checking for $ac_word... " >&6; }
12083 if test ${ac_cv_prog_CC+y}
12084 then :
12085 printf %s "(cached) " >&6
12086 else $as_nop
12087 if test -n "$CC"; then
12088 ac_cv_prog_CC="$CC" # Let the user override the test.
12089 else
12090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091 for as_dir in $PATH
12092 do
12093 IFS=$as_save_IFS
12094 case $as_dir in #(((
12095 '') as_dir=./ ;;
12096 */) ;;
12097 *) as_dir=$as_dir/ ;;
12098 esac
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12101 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12103 break 2
12104 fi
12105 done
12106 done
12107 IFS=$as_save_IFS
12108
12109 fi
12110 fi
12111 CC=$ac_cv_prog_CC
12112 if test -n "$CC"; then
12113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12114 printf "%s\n" "$CC" >&6; }
12115 else
12116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 printf "%s\n" "no" >&6; }
12118 fi
12119
12120
12121 fi
12122 if test -z "$ac_cv_prog_CC"; then
12123 ac_ct_CC=$CC
12124 # Extract the first word of "gcc", so it can be a program name with args.
12125 set dummy gcc; ac_word=$2
12126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127 printf %s "checking for $ac_word... " >&6; }
12128 if test ${ac_cv_prog_ac_ct_CC+y}
12129 then :
12130 printf %s "(cached) " >&6
12131 else $as_nop
12132 if test -n "$ac_ct_CC"; then
12133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12134 else
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $PATH
12137 do
12138 IFS=$as_save_IFS
12139 case $as_dir in #(((
12140 '') as_dir=./ ;;
12141 */) ;;
12142 *) as_dir=$as_dir/ ;;
12143 esac
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12146 ac_cv_prog_ac_ct_CC="gcc"
12147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12148 break 2
12149 fi
12150 done
12151 done
12152 IFS=$as_save_IFS
12153
12154 fi
12155 fi
12156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12157 if test -n "$ac_ct_CC"; then
12158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12159 printf "%s\n" "$ac_ct_CC" >&6; }
12160 else
12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 printf "%s\n" "no" >&6; }
12163 fi
12164
12165 if test "x$ac_ct_CC" = x; then
12166 CC=""
12167 else
12168 case $cross_compiling:$ac_tool_warned in
12169 yes:)
12170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12172 ac_tool_warned=yes ;;
12173 esac
12174 CC=$ac_ct_CC
12175 fi
12176 else
12177 CC="$ac_cv_prog_CC"
12178 fi
12179
12180 if test -z "$CC"; then
12181 if test -n "$ac_tool_prefix"; then
12182 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12183 set dummy ${ac_tool_prefix}cc; ac_word=$2
12184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185 printf %s "checking for $ac_word... " >&6; }
12186 if test ${ac_cv_prog_CC+y}
12187 then :
12188 printf %s "(cached) " >&6
12189 else $as_nop
12190 if test -n "$CC"; then
12191 ac_cv_prog_CC="$CC" # Let the user override the test.
12192 else
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12195 do
12196 IFS=$as_save_IFS
12197 case $as_dir in #(((
12198 '') as_dir=./ ;;
12199 */) ;;
12200 *) as_dir=$as_dir/ ;;
12201 esac
12202 for ac_exec_ext in '' $ac_executable_extensions; do
12203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12204 ac_cv_prog_CC="${ac_tool_prefix}cc"
12205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12206 break 2
12207 fi
12208 done
12209 done
12210 IFS=$as_save_IFS
12211
12212 fi
12213 fi
12214 CC=$ac_cv_prog_CC
12215 if test -n "$CC"; then
12216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12217 printf "%s\n" "$CC" >&6; }
12218 else
12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 printf "%s\n" "no" >&6; }
12221 fi
12222
12223
12224 fi
12225 fi
12226 if test -z "$CC"; then
12227 # Extract the first word of "cc", so it can be a program name with args.
12228 set dummy cc; ac_word=$2
12229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12230 printf %s "checking for $ac_word... " >&6; }
12231 if test ${ac_cv_prog_CC+y}
12232 then :
12233 printf %s "(cached) " >&6
12234 else $as_nop
12235 if test -n "$CC"; then
12236 ac_cv_prog_CC="$CC" # Let the user override the test.
12237 else
12238 ac_prog_rejected=no
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12241 do
12242 IFS=$as_save_IFS
12243 case $as_dir in #(((
12244 '') as_dir=./ ;;
12245 */) ;;
12246 *) as_dir=$as_dir/ ;;
12247 esac
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12250 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12251 ac_prog_rejected=yes
12252 continue
12253 fi
12254 ac_cv_prog_CC="cc"
12255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12256 break 2
12257 fi
12258 done
12259 done
12260 IFS=$as_save_IFS
12261
12262 if test $ac_prog_rejected = yes; then
12263 # We found a bogon in the path, so make sure we never use it.
12264 set dummy $ac_cv_prog_CC
12265 shift
12266 if test $# != 0; then
12267 # We chose a different compiler from the bogus one.
12268 # However, it has the same basename, so the bogon will be chosen
12269 # first if we set CC to just the basename; use the full file name.
12270 shift
12271 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
12272 fi
12273 fi
12274 fi
12275 fi
12276 CC=$ac_cv_prog_CC
12277 if test -n "$CC"; then
12278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12279 printf "%s\n" "$CC" >&6; }
12280 else
12281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 printf "%s\n" "no" >&6; }
12283 fi
12284
12285
12286 fi
12287 if test -z "$CC"; then
12288 if test -n "$ac_tool_prefix"; then
12289 for ac_prog in cl.exe
12290 do
12291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294 printf %s "checking for $ac_word... " >&6; }
12295 if test ${ac_cv_prog_CC+y}
12296 then :
12297 printf %s "(cached) " >&6
12298 else $as_nop
12299 if test -n "$CC"; then
12300 ac_cv_prog_CC="$CC" # Let the user override the test.
12301 else
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $PATH
12304 do
12305 IFS=$as_save_IFS
12306 case $as_dir in #(((
12307 '') as_dir=./ ;;
12308 */) ;;
12309 *) as_dir=$as_dir/ ;;
12310 esac
12311 for ac_exec_ext in '' $ac_executable_extensions; do
12312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12313 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12315 break 2
12316 fi
12317 done
12318 done
12319 IFS=$as_save_IFS
12320
12321 fi
12322 fi
12323 CC=$ac_cv_prog_CC
12324 if test -n "$CC"; then
12325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12326 printf "%s\n" "$CC" >&6; }
12327 else
12328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 printf "%s\n" "no" >&6; }
12330 fi
12331
12332
12333 test -n "$CC" && break
12334 done
12335 fi
12336 if test -z "$CC"; then
12337 ac_ct_CC=$CC
12338 for ac_prog in cl.exe
12339 do
12340 # Extract the first word of "$ac_prog", so it can be a program name with args.
12341 set dummy $ac_prog; ac_word=$2
12342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343 printf %s "checking for $ac_word... " >&6; }
12344 if test ${ac_cv_prog_ac_ct_CC+y}
12345 then :
12346 printf %s "(cached) " >&6
12347 else $as_nop
12348 if test -n "$ac_ct_CC"; then
12349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12350 else
12351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352 for as_dir in $PATH
12353 do
12354 IFS=$as_save_IFS
12355 case $as_dir in #(((
12356 '') as_dir=./ ;;
12357 */) ;;
12358 *) as_dir=$as_dir/ ;;
12359 esac
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12362 ac_cv_prog_ac_ct_CC="$ac_prog"
12363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12364 break 2
12365 fi
12366 done
12367 done
12368 IFS=$as_save_IFS
12369
12370 fi
12371 fi
12372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12373 if test -n "$ac_ct_CC"; then
12374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12375 printf "%s\n" "$ac_ct_CC" >&6; }
12376 else
12377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 printf "%s\n" "no" >&6; }
12379 fi
12380
12381
12382 test -n "$ac_ct_CC" && break
12383 done
12384
12385 if test "x$ac_ct_CC" = x; then
12386 CC=""
12387 else
12388 case $cross_compiling:$ac_tool_warned in
12389 yes:)
12390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12391 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12392 ac_tool_warned=yes ;;
12393 esac
12394 CC=$ac_ct_CC
12395 fi
12396 fi
12397
12398 fi
12399 if test -z "$CC"; then
12400 if test -n "$ac_tool_prefix"; then
12401 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
12402 set dummy ${ac_tool_prefix}clang; ac_word=$2
12403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 printf %s "checking for $ac_word... " >&6; }
12405 if test ${ac_cv_prog_CC+y}
12406 then :
12407 printf %s "(cached) " >&6
12408 else $as_nop
12409 if test -n "$CC"; then
12410 ac_cv_prog_CC="$CC" # Let the user override the test.
12411 else
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12414 do
12415 IFS=$as_save_IFS
12416 case $as_dir in #(((
12417 '') as_dir=./ ;;
12418 */) ;;
12419 *) as_dir=$as_dir/ ;;
12420 esac
12421 for ac_exec_ext in '' $ac_executable_extensions; do
12422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12423 ac_cv_prog_CC="${ac_tool_prefix}clang"
12424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12425 break 2
12426 fi
12427 done
12428 done
12429 IFS=$as_save_IFS
12430
12431 fi
12432 fi
12433 CC=$ac_cv_prog_CC
12434 if test -n "$CC"; then
12435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12436 printf "%s\n" "$CC" >&6; }
12437 else
12438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 printf "%s\n" "no" >&6; }
12440 fi
12441
12442
12443 fi
12444 if test -z "$ac_cv_prog_CC"; then
12445 ac_ct_CC=$CC
12446 # Extract the first word of "clang", so it can be a program name with args.
12447 set dummy clang; ac_word=$2
12448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12449 printf %s "checking for $ac_word... " >&6; }
12450 if test ${ac_cv_prog_ac_ct_CC+y}
12451 then :
12452 printf %s "(cached) " >&6
12453 else $as_nop
12454 if test -n "$ac_ct_CC"; then
12455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12456 else
12457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458 for as_dir in $PATH
12459 do
12460 IFS=$as_save_IFS
12461 case $as_dir in #(((
12462 '') as_dir=./ ;;
12463 */) ;;
12464 *) as_dir=$as_dir/ ;;
12465 esac
12466 for ac_exec_ext in '' $ac_executable_extensions; do
12467 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12468 ac_cv_prog_ac_ct_CC="clang"
12469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12470 break 2
12471 fi
12472 done
12473 done
12474 IFS=$as_save_IFS
12475
12476 fi
12477 fi
12478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12479 if test -n "$ac_ct_CC"; then
12480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12481 printf "%s\n" "$ac_ct_CC" >&6; }
12482 else
12483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484 printf "%s\n" "no" >&6; }
12485 fi
12486
12487 if test "x$ac_ct_CC" = x; then
12488 CC=""
12489 else
12490 case $cross_compiling:$ac_tool_warned in
12491 yes:)
12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12493 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12494 ac_tool_warned=yes ;;
12495 esac
12496 CC=$ac_ct_CC
12497 fi
12498 else
12499 CC="$ac_cv_prog_CC"
12500 fi
12501
12502 fi
12503
12504
12505 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12506 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12507 as_fn_error $? "no acceptable C compiler found in \$PATH
12508 See \`config.log' for more details" "$LINENO" 5; }
12509
12510 # Provide some information about the compiler.
12511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12512 set X $ac_compile
12513 ac_compiler=$2
12514 for ac_option in --version -v -V -qversion -version; do
12515 { { ac_try="$ac_compiler $ac_option >&5"
12516 case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12519 esac
12520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12521 printf "%s\n" "$ac_try_echo"; } >&5
12522 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12523 ac_status=$?
12524 if test -s conftest.err; then
12525 sed '10a\
12526 ... rest of stderr output deleted ...
12527 10q' conftest.err >conftest.er1
12528 cat conftest.er1 >&5
12529 fi
12530 rm -f conftest.er1 conftest.err
12531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12532 test $ac_status = 0; }
12533 done
12534
12535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
12536 printf %s "checking whether the compiler supports GNU C... " >&6; }
12537 if test ${ac_cv_c_compiler_gnu+y}
12538 then :
12539 printf %s "(cached) " >&6
12540 else $as_nop
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12543
12544 int
12545 main (void)
12546 {
12547 #ifndef __GNUC__
12548 choke me
12549 #endif
12550
12551 ;
12552 return 0;
12553 }
12554 _ACEOF
12555 if ac_fn_c_try_compile "$LINENO"
12556 then :
12557 ac_compiler_gnu=yes
12558 else $as_nop
12559 ac_compiler_gnu=no
12560 fi
12561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12562 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12563
12564 fi
12565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12566 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
12567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12568
12569 if test $ac_compiler_gnu = yes; then
12570 GCC=yes
12571 else
12572 GCC=
12573 fi
12574 ac_test_CFLAGS=${CFLAGS+y}
12575 ac_save_CFLAGS=$CFLAGS
12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12577 printf %s "checking whether $CC accepts -g... " >&6; }
12578 if test ${ac_cv_prog_cc_g+y}
12579 then :
12580 printf %s "(cached) " >&6
12581 else $as_nop
12582 ac_save_c_werror_flag=$ac_c_werror_flag
12583 ac_c_werror_flag=yes
12584 ac_cv_prog_cc_g=no
12585 CFLAGS="-g"
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h. */
12588
12589 int
12590 main (void)
12591 {
12592
12593 ;
12594 return 0;
12595 }
12596 _ACEOF
12597 if ac_fn_c_try_compile "$LINENO"
12598 then :
12599 ac_cv_prog_cc_g=yes
12600 else $as_nop
12601 CFLAGS=""
12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h. */
12604
12605 int
12606 main (void)
12607 {
12608
12609 ;
12610 return 0;
12611 }
12612 _ACEOF
12613 if ac_fn_c_try_compile "$LINENO"
12614 then :
12615
12616 else $as_nop
12617 ac_c_werror_flag=$ac_save_c_werror_flag
12618 CFLAGS="-g"
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12621
12622 int
12623 main (void)
12624 {
12625
12626 ;
12627 return 0;
12628 }
12629 _ACEOF
12630 if ac_fn_c_try_compile "$LINENO"
12631 then :
12632 ac_cv_prog_cc_g=yes
12633 fi
12634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12635 fi
12636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12639 ac_c_werror_flag=$ac_save_c_werror_flag
12640 fi
12641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12642 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
12643 if test $ac_test_CFLAGS; then
12644 CFLAGS=$ac_save_CFLAGS
12645 elif test $ac_cv_prog_cc_g = yes; then
12646 if test "$GCC" = yes; then
12647 CFLAGS="-g -O2"
12648 else
12649 CFLAGS="-g"
12650 fi
12651 else
12652 if test "$GCC" = yes; then
12653 CFLAGS="-O2"
12654 else
12655 CFLAGS=
12656 fi
12657 fi
12658 ac_prog_cc_stdc=no
12659 if test x$ac_prog_cc_stdc = xno
12660 then :
12661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
12662 printf %s "checking for $CC option to enable C11 features... " >&6; }
12663 if test ${ac_cv_prog_cc_c11+y}
12664 then :
12665 printf %s "(cached) " >&6
12666 else $as_nop
12667 ac_cv_prog_cc_c11=no
12668 ac_save_CC=$CC
12669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12670 /* end confdefs.h. */
12671 $ac_c_conftest_c11_program
12672 _ACEOF
12673 for ac_arg in '' -std=gnu11
12674 do
12675 CC="$ac_save_CC $ac_arg"
12676 if ac_fn_c_try_compile "$LINENO"
12677 then :
12678 ac_cv_prog_cc_c11=$ac_arg
12679 fi
12680 rm -f core conftest.err conftest.$ac_objext conftest.beam
12681 test "x$ac_cv_prog_cc_c11" != "xno" && break
12682 done
12683 rm -f conftest.$ac_ext
12684 CC=$ac_save_CC
12685 fi
12686
12687 if test "x$ac_cv_prog_cc_c11" = xno
12688 then :
12689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12690 printf "%s\n" "unsupported" >&6; }
12691 else $as_nop
12692 if test "x$ac_cv_prog_cc_c11" = x
12693 then :
12694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12695 printf "%s\n" "none needed" >&6; }
12696 else $as_nop
12697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
12698 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
12699 CC="$CC $ac_cv_prog_cc_c11"
12700 fi
12701 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
12702 ac_prog_cc_stdc=c11
12703 fi
12704 fi
12705 if test x$ac_prog_cc_stdc = xno
12706 then :
12707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
12708 printf %s "checking for $CC option to enable C99 features... " >&6; }
12709 if test ${ac_cv_prog_cc_c99+y}
12710 then :
12711 printf %s "(cached) " >&6
12712 else $as_nop
12713 ac_cv_prog_cc_c99=no
12714 ac_save_CC=$CC
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12717 $ac_c_conftest_c99_program
12718 _ACEOF
12719 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
12720 do
12721 CC="$ac_save_CC $ac_arg"
12722 if ac_fn_c_try_compile "$LINENO"
12723 then :
12724 ac_cv_prog_cc_c99=$ac_arg
12725 fi
12726 rm -f core conftest.err conftest.$ac_objext conftest.beam
12727 test "x$ac_cv_prog_cc_c99" != "xno" && break
12728 done
12729 rm -f conftest.$ac_ext
12730 CC=$ac_save_CC
12731 fi
12732
12733 if test "x$ac_cv_prog_cc_c99" = xno
12734 then :
12735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12736 printf "%s\n" "unsupported" >&6; }
12737 else $as_nop
12738 if test "x$ac_cv_prog_cc_c99" = x
12739 then :
12740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12741 printf "%s\n" "none needed" >&6; }
12742 else $as_nop
12743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12744 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
12745 CC="$CC $ac_cv_prog_cc_c99"
12746 fi
12747 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
12748 ac_prog_cc_stdc=c99
12749 fi
12750 fi
12751 if test x$ac_prog_cc_stdc = xno
12752 then :
12753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
12754 printf %s "checking for $CC option to enable C89 features... " >&6; }
12755 if test ${ac_cv_prog_cc_c89+y}
12756 then :
12757 printf %s "(cached) " >&6
12758 else $as_nop
12759 ac_cv_prog_cc_c89=no
12760 ac_save_CC=$CC
12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h. */
12763 $ac_c_conftest_c89_program
12764 _ACEOF
12765 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12766 do
12767 CC="$ac_save_CC $ac_arg"
12768 if ac_fn_c_try_compile "$LINENO"
12769 then :
12770 ac_cv_prog_cc_c89=$ac_arg
12771 fi
12772 rm -f core conftest.err conftest.$ac_objext conftest.beam
12773 test "x$ac_cv_prog_cc_c89" != "xno" && break
12774 done
12775 rm -f conftest.$ac_ext
12776 CC=$ac_save_CC
12777 fi
12778
12779 if test "x$ac_cv_prog_cc_c89" = xno
12780 then :
12781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12782 printf "%s\n" "unsupported" >&6; }
12783 else $as_nop
12784 if test "x$ac_cv_prog_cc_c89" = x
12785 then :
12786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12787 printf "%s\n" "none needed" >&6; }
12788 else $as_nop
12789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12790 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
12791 CC="$CC $ac_cv_prog_cc_c89"
12792 fi
12793 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
12794 ac_prog_cc_stdc=c89
12795 fi
12796 fi
12797
12798 ac_ext=c
12799 ac_cpp='$CPP $CPPFLAGS'
12800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12803
12804 # Autoupdate added the next two lines to ensure that your configure
12805 # script's behavior did not change. They are probably safe to remove.
12806
12807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12808 printf %s "checking for egrep... " >&6; }
12809 if test ${ac_cv_path_EGREP+y}
12810 then :
12811 printf %s "(cached) " >&6
12812 else $as_nop
12813 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12814 then ac_cv_path_EGREP="$GREP -E"
12815 else
12816 if test -z "$EGREP"; then
12817 ac_path_EGREP_found=false
12818 # Loop through the user's path and test for each of PROGNAME-LIST
12819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12821 do
12822 IFS=$as_save_IFS
12823 case $as_dir in #(((
12824 '') as_dir=./ ;;
12825 */) ;;
12826 *) as_dir=$as_dir/ ;;
12827 esac
12828 for ac_prog in egrep
12829 do
12830 for ac_exec_ext in '' $ac_executable_extensions; do
12831 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
12832 as_fn_executable_p "$ac_path_EGREP" || continue
12833 # Check for GNU ac_path_EGREP and select it if it is found.
12834 # Check for GNU $ac_path_EGREP
12835 case `"$ac_path_EGREP" --version 2>&1` in
12836 *GNU*)
12837 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12838 *)
12839 ac_count=0
12840 printf %s 0123456789 >"conftest.in"
12841 while :
12842 do
12843 cat "conftest.in" "conftest.in" >"conftest.tmp"
12844 mv "conftest.tmp" "conftest.in"
12845 cp "conftest.in" "conftest.nl"
12846 printf "%s\n" 'EGREP' >> "conftest.nl"
12847 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12849 as_fn_arith $ac_count + 1 && ac_count=$as_val
12850 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12851 # Best one so far, save it but keep looking for a better one
12852 ac_cv_path_EGREP="$ac_path_EGREP"
12853 ac_path_EGREP_max=$ac_count
12854 fi
12855 # 10*(2^10) chars as input seems more than enough
12856 test $ac_count -gt 10 && break
12857 done
12858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12859 esac
12860
12861 $ac_path_EGREP_found && break 3
12862 done
12863 done
12864 done
12865 IFS=$as_save_IFS
12866 if test -z "$ac_cv_path_EGREP"; then
12867 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12868 fi
12869 else
12870 ac_cv_path_EGREP=$EGREP
12871 fi
12872
12873 fi
12874 fi
12875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12876 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
12877 EGREP="$ac_cv_path_EGREP"
12878
12879
12880
12881
12882
12883 # Figure out whether/how to handle threading support, if available.
12884 # Check whether --enable-thread-check was given.
12885 if test ${enable_thread_check+y}
12886 then :
12887 enableval=$enable_thread_check; thread_check=yes
12888 fi
12889
12890 if test "x$thread_check" = "xyes"
12891 then
12892
12893
12894
12895 ac_ext=c
12896 ac_cpp='$CPP $CPPFLAGS'
12897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12900
12901 acx_pthread_ok=no
12902
12903 # We used to check for pthread.h first, but this fails if pthread.h
12904 # requires special compiler flags (e.g. on True64 or Sequent).
12905 # It gets checked for in the link test anyway.
12906
12907 # First of all, check if the user has set any of the PTHREAD_LIBS,
12908 # etcetera environment variables, and if threads linking works using
12909 # them:
12910 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
12911 save_CFLAGS="$CFLAGS"
12912 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12913 save_LIBS="$LIBS"
12914 LIBS="$PTHREAD_LIBS $LIBS"
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
12916 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12919
12920 /* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12923 char pthread_join ();
12924 int
12925 main (void)
12926 {
12927 return pthread_join ();
12928 ;
12929 return 0;
12930 }
12931 _ACEOF
12932 if ac_fn_c_try_link "$LINENO"
12933 then :
12934 acx_pthread_ok=yes
12935 fi
12936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12937 conftest$ac_exeext conftest.$ac_ext
12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
12939 printf "%s\n" "$acx_pthread_ok" >&6; }
12940 if test x"$acx_pthread_ok" = xno; then
12941 PTHREAD_LIBS=""
12942 PTHREAD_CFLAGS=""
12943 fi
12944 LIBS="$save_LIBS"
12945 CFLAGS="$save_CFLAGS"
12946 fi
12947
12948 # We must check for the threads library under a number of different
12949 # names; the ordering is very important because some systems
12950 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
12951 # libraries is broken (non-POSIX).
12952
12953 # Create a list of thread flags to try. Items starting with a "-" are
12954 # C compiler flags, and other items are library names, except for "none"
12955 # which indicates that we try without any flags at all, and "pthread-config"
12956 # which is a program returning the flags for the Pth emulation library.
12957
12958 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
12959
12960 # The ordering *is* (sometimes) important. Some notes on the
12961 # individual items follow:
12962
12963 # pthreads: AIX (must check this before -lpthread)
12964 # none: in case threads are in libc; should be tried before -Kthread and
12965 # other compiler flags to prevent continual compiler warnings
12966 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
12967 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
12968 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
12969 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
12970 # -pthreads: Solaris/gcc
12971 # -mthreads: Mingw32/gcc, Lynx/gcc
12972 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
12973 # doesn't hurt to check since this sometimes defines pthreads too;
12974 # also defines -D_REENTRANT)
12975 # ... -mt is also the pthreads flag for HP/aCC
12976 # pthread: Linux, etcetera
12977 # --thread-safe: KAI C++
12978 # pthread-config: use pthread-config program (for GNU Pth library)
12979
12980 case "${host_cpu}-${host_os}" in
12981 *solaris*)
12982
12983 # On Solaris (at least, for some versions), libc contains stubbed
12984 # (non-functional) versions of the pthreads routines, so link-based
12985 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
12986 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
12987 # a function called by this macro, so we could check for that, but
12988 # who knows whether they'll stub that too in a future libc.) So,
12989 # we'll just look for -pthreads and -lpthread first:
12990
12991 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
12992 ;;
12993 esac
12994
12995 if test x"$acx_pthread_ok" = xno; then
12996 for flag in $acx_pthread_flags; do
12997
12998 case $flag in
12999 none)
13000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13001 printf %s "checking whether pthreads work without any flags... " >&6; }
13002 ;;
13003
13004 -*)
13005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
13006 printf %s "checking whether pthreads work with $flag... " >&6; }
13007 PTHREAD_CFLAGS="$flag"
13008 ;;
13009
13010 pthread-config)
13011 # Extract the first word of "pthread-config", so it can be a program name with args.
13012 set dummy pthread-config; ac_word=$2
13013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13014 printf %s "checking for $ac_word... " >&6; }
13015 if test ${ac_cv_prog_acx_pthread_config+y}
13016 then :
13017 printf %s "(cached) " >&6
13018 else $as_nop
13019 if test -n "$acx_pthread_config"; then
13020 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13021 else
13022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $PATH
13024 do
13025 IFS=$as_save_IFS
13026 case $as_dir in #(((
13027 '') as_dir=./ ;;
13028 */) ;;
13029 *) as_dir=$as_dir/ ;;
13030 esac
13031 for ac_exec_ext in '' $ac_executable_extensions; do
13032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13033 ac_cv_prog_acx_pthread_config="yes"
13034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13035 break 2
13036 fi
13037 done
13038 done
13039 IFS=$as_save_IFS
13040
13041 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13042 fi
13043 fi
13044 acx_pthread_config=$ac_cv_prog_acx_pthread_config
13045 if test -n "$acx_pthread_config"; then
13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
13047 printf "%s\n" "$acx_pthread_config" >&6; }
13048 else
13049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13050 printf "%s\n" "no" >&6; }
13051 fi
13052
13053
13054 if test x"$acx_pthread_config" = xno; then continue; fi
13055 PTHREAD_CFLAGS="`pthread-config --cflags`"
13056 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13057 ;;
13058
13059 *)
13060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
13061 printf %s "checking for the pthreads library -l$flag... " >&6; }
13062 PTHREAD_LIBS="-l$flag"
13063 ;;
13064 esac
13065
13066 save_LIBS="$LIBS"
13067 save_CFLAGS="$CFLAGS"
13068 LIBS="$PTHREAD_LIBS $LIBS"
13069 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13070
13071 # Check for various functions. We must include pthread.h,
13072 # since some functions may be macros. (On the Sequent, we
13073 # need a special flag -Kthread to make this header compile.)
13074 # We check for pthread_join because it is in -lpthread on IRIX
13075 # while pthread_create is in libc. We check for pthread_attr_init
13076 # due to DEC craziness with -lpthreads. We check for
13077 # pthread_cleanup_push because it is one of the few pthread
13078 # functions on Solaris that doesn't have a non-functional libc stub.
13079 # We try pthread_create on general principles.
13080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081 /* end confdefs.h. */
13082 #include <pthread.h>
13083 int
13084 main (void)
13085 {
13086 pthread_t th; pthread_join(th, 0);
13087 pthread_attr_init(0); pthread_cleanup_push(0, 0);
13088 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13089 ;
13090 return 0;
13091 }
13092 _ACEOF
13093 if ac_fn_c_try_link "$LINENO"
13094 then :
13095 acx_pthread_ok=yes
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13098 conftest$ac_exeext conftest.$ac_ext
13099
13100 LIBS="$save_LIBS"
13101 CFLAGS="$save_CFLAGS"
13102
13103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
13104 printf "%s\n" "$acx_pthread_ok" >&6; }
13105 if test "x$acx_pthread_ok" = xyes; then
13106 break;
13107 fi
13108
13109 PTHREAD_LIBS=""
13110 PTHREAD_CFLAGS=""
13111 done
13112 fi
13113
13114 # Various other checks:
13115 if test "x$acx_pthread_ok" = xyes; then
13116 save_LIBS="$LIBS"
13117 LIBS="$PTHREAD_LIBS $LIBS"
13118 save_CFLAGS="$CFLAGS"
13119 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13120
13121 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13123 printf %s "checking for joinable pthread attribute... " >&6; }
13124 attr_name=unknown
13125 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13128 #include <pthread.h>
13129 int
13130 main (void)
13131 {
13132 int attr=$attr; return attr;
13133 ;
13134 return 0;
13135 }
13136 _ACEOF
13137 if ac_fn_c_try_link "$LINENO"
13138 then :
13139 attr_name=$attr; break
13140 fi
13141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13142 conftest$ac_exeext conftest.$ac_ext
13143 done
13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
13145 printf "%s\n" "$attr_name" >&6; }
13146 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
13147
13148 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
13149
13150 fi
13151
13152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
13153 printf %s "checking if more special flags are required for pthreads... " >&6; }
13154 flag=no
13155 case "${host_cpu}-${host_os}" in
13156 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
13157 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13158 esac
13159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
13160 printf "%s\n" "${flag}" >&6; }
13161 if test "x$flag" != xno; then
13162 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13163 fi
13164
13165 LIBS="$save_LIBS"
13166 CFLAGS="$save_CFLAGS"
13167
13168 # More AIX lossage: must compile with xlc_r or cc_r
13169 if test x"$GCC" != xyes; then
13170 for ac_prog in xlc_r cc_r
13171 do
13172 # Extract the first word of "$ac_prog", so it can be a program name with args.
13173 set dummy $ac_prog; ac_word=$2
13174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175 printf %s "checking for $ac_word... " >&6; }
13176 if test ${ac_cv_prog_PTHREAD_CC+y}
13177 then :
13178 printf %s "(cached) " >&6
13179 else $as_nop
13180 if test -n "$PTHREAD_CC"; then
13181 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13182 else
13183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184 for as_dir in $PATH
13185 do
13186 IFS=$as_save_IFS
13187 case $as_dir in #(((
13188 '') as_dir=./ ;;
13189 */) ;;
13190 *) as_dir=$as_dir/ ;;
13191 esac
13192 for ac_exec_ext in '' $ac_executable_extensions; do
13193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13194 ac_cv_prog_PTHREAD_CC="$ac_prog"
13195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13196 break 2
13197 fi
13198 done
13199 done
13200 IFS=$as_save_IFS
13201
13202 fi
13203 fi
13204 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13205 if test -n "$PTHREAD_CC"; then
13206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
13207 printf "%s\n" "$PTHREAD_CC" >&6; }
13208 else
13209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210 printf "%s\n" "no" >&6; }
13211 fi
13212
13213
13214 test -n "$PTHREAD_CC" && break
13215 done
13216 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
13217
13218 else
13219 PTHREAD_CC=$CC
13220 fi
13221 else
13222 PTHREAD_CC="$CC"
13223 fi
13224
13225
13226
13227
13228
13229 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13230 if test x"$acx_pthread_ok" = xyes; then
13231
13232 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
13233
13234 :
13235 else
13236 acx_pthread_ok=no
13237
13238 fi
13239 ac_ext=c
13240 ac_cpp='$CPP $CPPFLAGS'
13241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13244
13245
13246 LIBS="$PTHREAD_LIBS $LIBS"
13247 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13248 CC="$PTHREAD_CC"
13249 ac_fn_c_check_header_compile "$LINENO" "synch.h" "ac_cv_header_synch_h" "$ac_includes_default"
13250 if test "x$ac_cv_header_synch_h" = xyes
13251 then :
13252 printf "%s\n" "#define HAVE_SYNCH_H 1" >>confdefs.h
13253
13254 fi
13255
13256 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13257 if test "x$ac_cv_header_unistd_h" = xyes
13258 then :
13259 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13260
13261 fi
13262
13263 fi
13264
13265
13266 # Let caller provide -f to lib/*.pl scripts in a uniform way
13267
13268 # Check whether --with-field-limit was given.
13269 if test ${with_field_limit+y}
13270 then :
13271 withval=$with_field_limit;
13272 fi
13273
13274 if test -n "$with_field_limit"
13275 then
13276 ( cd lib ;
13277 ./querydef.pl -f $with_field_limit ;
13278 ./ssqls.pl -f $with_field_limit
13279 )
13280 fi
13281
13282
13283 # Try to find local getopt(); if we fail, we'll use the one in lib/cmdline.*
13284 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
13285 if test "x$ac_cv_func_getopt" = xyes
13286 then :
13287
13288 printf "%s\n" "#define HAVE_POSIX_GETOPT /**/" >>confdefs.h
13289
13290 else $as_nop
13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getopt in -liberty" >&5
13292 printf %s "checking for getopt in -liberty... " >&6; }
13293 if test ${ac_cv_lib_iberty_getopt+y}
13294 then :
13295 printf %s "(cached) " >&6
13296 else $as_nop
13297 ac_check_lib_save_LIBS=$LIBS
13298 LIBS="-liberty $LIBS"
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13301
13302 /* Override any GCC internal prototype to avoid an error.
13303 Use char because int might match the return type of a GCC
13304 builtin and then its argument prototype would still apply. */
13305 char getopt ();
13306 int
13307 main (void)
13308 {
13309 return getopt ();
13310 ;
13311 return 0;
13312 }
13313 _ACEOF
13314 if ac_fn_c_try_link "$LINENO"
13315 then :
13316 ac_cv_lib_iberty_getopt=yes
13317 else $as_nop
13318 ac_cv_lib_iberty_getopt=no
13319 fi
13320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13321 conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13323 fi
13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_getopt" >&5
13325 printf "%s\n" "$ac_cv_lib_iberty_getopt" >&6; }
13326 if test "x$ac_cv_lib_iberty_getopt" = xyes
13327 then :
13328
13329 printf "%s\n" "#define HAVE_LIBIBERTY_GETOPT /**/" >>confdefs.h
13330
13331 fi
13332
13333 fi
13334
13335
13336
13337 # Checks for libraries and local system features
13338
13339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lm is needed to use C math functions" >&5
13340 printf %s "checking whether -lm is needed to use C math functions... " >&6; }
13341
13342 MYSQLPP_EXTRA_LIBS=
13343 TRY_LIBM=no
13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13346 #include <math.h>
13347 int
13348 main (void)
13349 {
13350 floor(0);
13351 ;
13352 return 0;
13353 }
13354 _ACEOF
13355 if ac_fn_c_try_link "$LINENO"
13356 then :
13357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13358 printf "%s\n" "no" >&6; }
13359 else $as_nop
13360 TRY_LIBM=yes
13361 fi
13362 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13363 conftest$ac_exeext conftest.$ac_ext
13364
13365 if test "x$TRY_LIBM" = "xyes"
13366 then
13367 save_LIBS=$LIBS
13368 LIBS="$LIBS -lm"
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13371 #include <math.h>
13372 int
13373 main (void)
13374 {
13375 floor(0);
13376 ;
13377 return 0;
13378 }
13379 _ACEOF
13380 if ac_fn_c_try_link "$LINENO"
13381 then :
13382
13383 MYSQLPP_EXTRA_LIBS=-lm
13384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13385 printf "%s\n" "yes" >&6; }
13386
13387 else $as_nop
13388 as_fn_error $? "Failed to build program containing math functions!" "$LINENO" 5
13389 fi
13390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13391 conftest$ac_exeext conftest.$ac_ext
13392 LIBS="$save_LIBS"
13393 fi
13394
13395
13396
13397
13398 save_LIBS="$LIBS"
13399
13400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lsocket is needed" >&5
13401 printf %s "checking whether -lsocket is needed... " >&6; }
13402 TRY_LSOCKET=no
13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404 /* end confdefs.h. */
13405
13406 #include <sys/types.h>
13407 #include <sys/socket.h>
13408 #include <netinet/in.h>
13409 #include <arpa/inet.h>
13410
13411 int
13412 main (void)
13413 {
13414 socket(AF_INET, SOCK_STREAM, 0);
13415 ;
13416 return 0;
13417 }
13418 _ACEOF
13419 if ac_fn_c_try_link "$LINENO"
13420 then :
13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422 printf "%s\n" "no" >&6; }
13423 else $as_nop
13424 TRY_LSOCKET=yes
13425 fi
13426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13427 conftest$ac_exeext conftest.$ac_ext
13428
13429 if test "x$TRY_LSOCKET" = "xyes"
13430 then
13431 LIBS="-lsocket $LIBS"
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13434
13435 #include <sys/types.h>
13436 #include <sys/socket.h>
13437 #include <netinet/in.h>
13438 #include <arpa/inet.h>
13439
13440 int
13441 main (void)
13442 {
13443 socket(AF_INET, SOCK_STREAM, 0);
13444 ;
13445 return 0;
13446 }
13447 _ACEOF
13448 if ac_fn_c_try_link "$LINENO"
13449 then :
13450
13451 MYSQLPP_EXTRA_LIBS="-lsocket $MYSQLPP_EXTRA_LIBS"
13452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13453 printf "%s\n" "yes" >&6; }
13454
13455 else $as_nop
13456 as_fn_error $? "failed to link using -lsocket!" "$LINENO" 5
13457 fi
13458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13459 conftest$ac_exeext conftest.$ac_ext
13460 fi
13461
13462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lnsl is needed" >&5
13463 printf %s "checking whether -lnsl is needed... " >&6; }
13464 TRY_LNSL=no
13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h. */
13467 #include <netdb.h>
13468 int
13469 main (void)
13470 {
13471 gethostbyname("gna.org");
13472 ;
13473 return 0;
13474 }
13475 _ACEOF
13476 if ac_fn_c_try_link "$LINENO"
13477 then :
13478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 printf "%s\n" "no" >&6; }
13480 else $as_nop
13481 TRY_LNSL=yes
13482 fi
13483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13484 conftest$ac_exeext conftest.$ac_ext
13485
13486 if test "x$TRY_LNSL" = "xyes"
13487 then
13488 LIBS="-lnsl $LIBS"
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13491 #include <netdb.h>
13492 int
13493 main (void)
13494 {
13495 gethostbyname("gna.org");
13496 ;
13497 return 0;
13498 }
13499 _ACEOF
13500 if ac_fn_c_try_link "$LINENO"
13501 then :
13502
13503 MYSQLPP_EXTRA_LIBS="-lnsl $MYSQLPP_EXTRA_LIBS"
13504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13505 printf "%s\n" "yes" >&6; }
13506
13507 else $as_nop
13508 as_fn_error $? "failed to link using -lnsl!" "$LINENO" 5
13509 fi
13510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13511 conftest$ac_exeext conftest.$ac_ext
13512 fi
13513
13514
13515
13516
13517 #
13518 # Set up configure script macros
13519 #
13520
13521 # Check whether --with-mysql was given.
13522 if test ${with_mysql+y}
13523 then :
13524 withval=$with_mysql; MYSQL_lib_check="$with_mysql/lib/mysql $with_mysql/lib/mariadb $with_mysql/lib"
13525 MYSQL_inc_check="$with_mysql/include $with_mysql/include/mysql $with_mysql/include/mariadb"
13526 else $as_nop
13527 MYSQL_lib_check="/usr/lib64 /usr/lib /usr/lib64/mysql /usr/lib/mysql /usr/lib64/mariadb /usr/lib/mariadb /usr/local/lib64 /usr/local/lib /usr/local/lib/mysql /usr/local/mysql/lib /usr/local/mysql/lib/mysql /usr/mysql/lib/mysql /opt/mysql/lib /opt/mysql/lib/mysql /usr/local/lib/mariadb /usr/local/mariadb/lib /usr/local/mariadb/lib/mariadb /usr/mariadb/lib/mariadb /opt/mariadb/lib /opt/mariadb/lib/mariadb /sw/lib /sw/lib/mysql"
13528 MYSQL_inc_check="/usr/include/mysql /usr/local/include/mysql /usr/local/mysql/include /usr/local/mysql/include/mysql /usr/mysql/include/mysql /opt/mysql/include/mysql /usr/include/mariadb /usr/local/include/mariadb /usr/local/mariadb/include /usr/local/mariadb/include/mariadb /usr/mariadb/include/mariadb /opt/mariadb/include/mariadb /sw/include/mysql"
13529 fi
13530
13531
13532 # Check whether --with-mysql-lib was given.
13533 if test ${with_mysql_lib+y}
13534 then :
13535 withval=$with_mysql_lib; MYSQL_lib_check="$with_mysql_lib $with_mysql_lib/lib64 $with_mysql_lib/lib $with_mysql_lib/lib64/mysql $with_mysql_lib/lib/mysql $with_mysql_lib/lib64/mariadb $with_mysql_lib/lib/mariadb"
13536 fi
13537
13538
13539 # Check whether --with-mysql-include was given.
13540 if test ${with_mysql_include+y}
13541 then :
13542 withval=$with_mysql_include; MYSQL_inc_check="$with_mysql_include $with_mysql_include/include $with_mysql_include/include/mysql $with_mysql_include/include/mariadb"
13543 fi
13544
13545
13546
13547 #
13548 # Decide which C API library to use, based on thread support
13549 #
13550 if test "x$acx_pthread_ok" = xyes
13551 then
13552 MYSQL_C_LIB_NAME=mysqlclient_r
13553 else
13554 MYSQL_C_LIB_NAME=mysqlclient
13555 fi
13556
13557
13558 #
13559 # Look for MySQL C API headers
13560 #
13561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MySQL include directory" >&5
13562 printf %s "checking for MySQL include directory... " >&6; }
13563 MYSQL_C_INC_DIR=
13564 for m in $MYSQL_inc_check
13565 do
13566 if test -d "$m" && test -f "$m/mysql.h"
13567 then
13568 MYSQL_C_INC_DIR=$m
13569 break
13570 fi
13571 done
13572
13573 if test -z "$MYSQL_C_INC_DIR"
13574 then
13575 as_fn_error $? "Didn't find the MySQL include dir in '$MYSQL_inc_check'" "$LINENO" 5
13576 fi
13577
13578 case "$MYSQL_C_INC_DIR" in
13579 /* ) ;;
13580 * ) as_fn_error $? "The MySQL include directory ($MYSQL_C_INC_DIR) must be an absolute path." "$LINENO" 5 ;;
13581 esac
13582
13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MYSQL_C_INC_DIR" >&5
13584 printf "%s\n" "$MYSQL_C_INC_DIR" >&6; }
13585
13586
13587 #
13588 # Look for MySQL C API library
13589 #
13590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MySQL C API library directory" >&5
13591 printf %s "checking for MySQL C API library directory... " >&6; }
13592 save_CPPFLAGS=$CPPFLAGS
13593 save_LIBS=$LIBS
13594 save_LDFLAGS=$LDFLAGS
13595 CPPFLAGS="$CPPFLAGS -I$MYSQL_C_INC_DIR"
13596 MYSQL_C_LIB_DIR=
13597 for m in $MYSQL_lib_check
13598 do
13599 if test -d $m
13600 then
13601 LDFLAGS="$save_LDFLAGS -L$m"
13602 LIBS="$save_LIBS -l$MYSQL_C_LIB_NAME"
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h. */
13605 #include <mysql.h>
13606 int
13607 main (void)
13608 {
13609 mysql_store_result(0);
13610 ;
13611 return 0;
13612 }
13613 _ACEOF
13614 if ac_fn_c_try_link "$LINENO"
13615 then :
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $m" >&5
13617 printf "%s\n" "$m" >&6; }
13618 MYSQL_C_LIB_DIR=$m
13619 break
13620
13621 else $as_nop
13622 LIBS="$save_LIBS -l$MYSQL_C_LIB_NAME -lz"
13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13625 #include <mysql.h>
13626 int
13627 main (void)
13628 {
13629 mysql_store_result(0);
13630 ;
13631 return 0;
13632 }
13633 _ACEOF
13634 if ac_fn_c_try_link "$LINENO"
13635 then :
13636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $m" >&5
13637 printf "%s\n" "$m" >&6; }
13638 MYSQLPP_EXTRA_LIBS="$MYSQLPP_EXTRA_LIBS -lz"
13639 MYSQL_C_LIB_DIR=$m
13640 break
13641
13642 fi
13643 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13644 conftest$ac_exeext conftest.$ac_ext
13645
13646 fi
13647 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13648 conftest$ac_exeext conftest.$ac_ext
13649 fi
13650 done
13651 CPPFLAGS=$save_CPPFLAGS
13652 LIBS=$save_LIBS
13653 LDFLAGS=$save_LDFLAGS
13654
13655 if test -z "$MYSQL_C_LIB_DIR"
13656 then
13657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no joy" >&5
13658 printf "%s\n" "no joy" >&6; }
13659 as_fn_error $? "Didn't find $MYSQL_C_LIB_NAME library in '$MYSQL_lib_check'" "$LINENO" 5
13660 fi
13661
13662 case "$MYSQL_C_LIB_DIR" in
13663 /* ) ;;
13664 * ) as_fn_error $? "The MySQL library directory ($MYSQL_C_LIB_DIR) must be an absolute path." "$LINENO" 5 ;;
13665 esac
13666
13667
13668
13669
13670
13671
13672 #
13673 # Check for mysql_ssl_set() in libmysqlclient(_r)
13674 #
13675 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$MYSQL_C_LIB_NAME""_mysql_ssl_set" | $as_tr_sh`
13676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_ssl_set in -l$MYSQL_C_LIB_NAME" >&5
13677 printf %s "checking for mysql_ssl_set in -l$MYSQL_C_LIB_NAME... " >&6; }
13678 if eval test \${$as_ac_Lib+y}
13679 then :
13680 printf %s "(cached) " >&6
13681 else $as_nop
13682 ac_check_lib_save_LIBS=$LIBS
13683 LIBS="-l$MYSQL_C_LIB_NAME $LIBS"
13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h. */
13686
13687 /* Override any GCC internal prototype to avoid an error.
13688 Use char because int might match the return type of a GCC
13689 builtin and then its argument prototype would still apply. */
13690 char mysql_ssl_set ();
13691 int
13692 main (void)
13693 {
13694 return mysql_ssl_set ();
13695 ;
13696 return 0;
13697 }
13698 _ACEOF
13699 if ac_fn_c_try_link "$LINENO"
13700 then :
13701 eval "$as_ac_Lib=yes"
13702 else $as_nop
13703 eval "$as_ac_Lib=no"
13704 fi
13705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13706 conftest$ac_exeext conftest.$ac_ext
13707 LIBS=$ac_check_lib_save_LIBS
13708 fi
13709 eval ac_res=\$$as_ac_Lib
13710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13711 printf "%s\n" "$ac_res" >&6; }
13712 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
13713 then :
13714
13715
13716 printf "%s\n" "#define HAVE_MYSQL_SSL_SET /**/" >>confdefs.h
13717
13718
13719 fi
13720
13721
13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for localtime_r()" >&5
13723 printf %s "checking for localtime_r()... " >&6; }
13724
13725 if test "$cross_compiling" = yes
13726 then :
13727 localtime_r_found=no
13728 else $as_nop
13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13731
13732 #include <time.h>
13733 int main(void)
13734 {
13735 time_t tt;
13736 struct tm stm;
13737 localtime_r(&tt, &stm);
13738 return 0;
13739 }
13740
13741 _ACEOF
13742 if ac_fn_c_try_run "$LINENO"
13743 then :
13744 localtime_r_found=yes
13745 else $as_nop
13746 localtime_r_found=no
13747 fi
13748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13749 conftest.$ac_objext conftest.beam conftest.$ac_ext
13750 fi
13751
13752
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $localtime_r_found" >&5
13754 printf "%s\n" "$localtime_r_found" >&6; }
13755 if test x"$localtime_r_found" = xyes
13756 then
13757
13758 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
13759
13760 fi
13761
13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lintl" >&5
13763 printf %s "checking for main in -lintl... " >&6; }
13764 if test ${ac_cv_lib_intl_main+y}
13765 then :
13766 printf %s "(cached) " >&6
13767 else $as_nop
13768 ac_check_lib_save_LIBS=$LIBS
13769 LIBS="-lintl $LIBS"
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13772
13773
13774 int
13775 main (void)
13776 {
13777 return main ();
13778 ;
13779 return 0;
13780 }
13781 _ACEOF
13782 if ac_fn_c_try_link "$LINENO"
13783 then :
13784 ac_cv_lib_intl_main=yes
13785 else $as_nop
13786 ac_cv_lib_intl_main=no
13787 fi
13788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13789 conftest$ac_exeext conftest.$ac_ext
13790 LIBS=$ac_check_lib_save_LIBS
13791 fi
13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_main" >&5
13793 printf "%s\n" "$ac_cv_lib_intl_main" >&6; }
13794 if test "x$ac_cv_lib_intl_main" = xyes
13795 then :
13796 printf "%s\n" "#define HAVE_LIBINTL 1" >>confdefs.h
13797
13798 LIBS="-lintl $LIBS"
13799
13800 fi
13801
13802
13803
13804 # If this is Cygwin, add a linker flag to suppress a silly link message.
13805 case "${host}" in
13806 *cygwin*)
13807 LDFLAGS="$LDFLAGS -Wl,--enable-auto-import"
13808 ;;
13809 esac
13810
13811
13812 # Check for Standard C++ support, and extensions. We try for C++11 if
13813 # available, but we don't insist on it.
13814 #
13815 # This must be near the end, because the CPLUSPLUS directive makes
13816 # autoconf use the C++ compiler for all subsequent tests!
13817
13818
13819
13820
13821
13822
13823 ac_ext=cpp
13824 ac_cpp='$CXXCPP $CPPFLAGS'
13825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13828 if test -z "$CXX"; then
13829 if test -n "$CCC"; then
13830 CXX=$CCC
13831 else
13832 if test -n "$ac_tool_prefix"; then
13833 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
13834 do
13835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13836 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13838 printf %s "checking for $ac_word... " >&6; }
13839 if test ${ac_cv_prog_CXX+y}
13840 then :
13841 printf %s "(cached) " >&6
13842 else $as_nop
13843 if test -n "$CXX"; then
13844 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13845 else
13846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13847 for as_dir in $PATH
13848 do
13849 IFS=$as_save_IFS
13850 case $as_dir in #(((
13851 '') as_dir=./ ;;
13852 */) ;;
13853 *) as_dir=$as_dir/ ;;
13854 esac
13855 for ac_exec_ext in '' $ac_executable_extensions; do
13856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13857 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13859 break 2
13860 fi
13861 done
13862 done
13863 IFS=$as_save_IFS
13864
13865 fi
13866 fi
13867 CXX=$ac_cv_prog_CXX
13868 if test -n "$CXX"; then
13869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13870 printf "%s\n" "$CXX" >&6; }
13871 else
13872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13873 printf "%s\n" "no" >&6; }
13874 fi
13875
13876
13877 test -n "$CXX" && break
13878 done
13879 fi
13880 if test -z "$CXX"; then
13881 ac_ct_CXX=$CXX
13882 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
13883 do
13884 # Extract the first word of "$ac_prog", so it can be a program name with args.
13885 set dummy $ac_prog; ac_word=$2
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13887 printf %s "checking for $ac_word... " >&6; }
13888 if test ${ac_cv_prog_ac_ct_CXX+y}
13889 then :
13890 printf %s "(cached) " >&6
13891 else $as_nop
13892 if test -n "$ac_ct_CXX"; then
13893 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13894 else
13895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896 for as_dir in $PATH
13897 do
13898 IFS=$as_save_IFS
13899 case $as_dir in #(((
13900 '') as_dir=./ ;;
13901 */) ;;
13902 *) as_dir=$as_dir/ ;;
13903 esac
13904 for ac_exec_ext in '' $ac_executable_extensions; do
13905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13906 ac_cv_prog_ac_ct_CXX="$ac_prog"
13907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13908 break 2
13909 fi
13910 done
13911 done
13912 IFS=$as_save_IFS
13913
13914 fi
13915 fi
13916 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13917 if test -n "$ac_ct_CXX"; then
13918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13919 printf "%s\n" "$ac_ct_CXX" >&6; }
13920 else
13921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13922 printf "%s\n" "no" >&6; }
13923 fi
13924
13925
13926 test -n "$ac_ct_CXX" && break
13927 done
13928
13929 if test "x$ac_ct_CXX" = x; then
13930 CXX="g++"
13931 else
13932 case $cross_compiling:$ac_tool_warned in
13933 yes:)
13934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13935 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13936 ac_tool_warned=yes ;;
13937 esac
13938 CXX=$ac_ct_CXX
13939 fi
13940 fi
13941
13942 fi
13943 fi
13944 # Provide some information about the compiler.
13945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13946 set X $ac_compile
13947 ac_compiler=$2
13948 for ac_option in --version -v -V -qversion; do
13949 { { ac_try="$ac_compiler $ac_option >&5"
13950 case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13953 esac
13954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13955 printf "%s\n" "$ac_try_echo"; } >&5
13956 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13957 ac_status=$?
13958 if test -s conftest.err; then
13959 sed '10a\
13960 ... rest of stderr output deleted ...
13961 10q' conftest.err >conftest.er1
13962 cat conftest.er1 >&5
13963 fi
13964 rm -f conftest.er1 conftest.err
13965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13966 test $ac_status = 0; }
13967 done
13968
13969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
13970 printf %s "checking whether the compiler supports GNU C++... " >&6; }
13971 if test ${ac_cv_cxx_compiler_gnu+y}
13972 then :
13973 printf %s "(cached) " >&6
13974 else $as_nop
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13977
13978 int
13979 main (void)
13980 {
13981 #ifndef __GNUC__
13982 choke me
13983 #endif
13984
13985 ;
13986 return 0;
13987 }
13988 _ACEOF
13989 if ac_fn_cxx_try_compile "$LINENO"
13990 then :
13991 ac_compiler_gnu=yes
13992 else $as_nop
13993 ac_compiler_gnu=no
13994 fi
13995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13996 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13997
13998 fi
13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14000 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14002
14003 if test $ac_compiler_gnu = yes; then
14004 GXX=yes
14005 else
14006 GXX=
14007 fi
14008 ac_test_CXXFLAGS=${CXXFLAGS+y}
14009 ac_save_CXXFLAGS=$CXXFLAGS
14010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14011 printf %s "checking whether $CXX accepts -g... " >&6; }
14012 if test ${ac_cv_prog_cxx_g+y}
14013 then :
14014 printf %s "(cached) " >&6
14015 else $as_nop
14016 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14017 ac_cxx_werror_flag=yes
14018 ac_cv_prog_cxx_g=no
14019 CXXFLAGS="-g"
14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14022
14023 int
14024 main (void)
14025 {
14026
14027 ;
14028 return 0;
14029 }
14030 _ACEOF
14031 if ac_fn_cxx_try_compile "$LINENO"
14032 then :
14033 ac_cv_prog_cxx_g=yes
14034 else $as_nop
14035 CXXFLAGS=""
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14038
14039 int
14040 main (void)
14041 {
14042
14043 ;
14044 return 0;
14045 }
14046 _ACEOF
14047 if ac_fn_cxx_try_compile "$LINENO"
14048 then :
14049
14050 else $as_nop
14051 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14052 CXXFLAGS="-g"
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055
14056 int
14057 main (void)
14058 {
14059
14060 ;
14061 return 0;
14062 }
14063 _ACEOF
14064 if ac_fn_cxx_try_compile "$LINENO"
14065 then :
14066 ac_cv_prog_cxx_g=yes
14067 fi
14068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14069 fi
14070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14071 fi
14072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14073 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14074 fi
14075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14076 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
14077 if test $ac_test_CXXFLAGS; then
14078 CXXFLAGS=$ac_save_CXXFLAGS
14079 elif test $ac_cv_prog_cxx_g = yes; then
14080 if test "$GXX" = yes; then
14081 CXXFLAGS="-g -O2"
14082 else
14083 CXXFLAGS="-g"
14084 fi
14085 else
14086 if test "$GXX" = yes; then
14087 CXXFLAGS="-O2"
14088 else
14089 CXXFLAGS=
14090 fi
14091 fi
14092 ac_prog_cxx_stdcxx=no
14093 if test x$ac_prog_cxx_stdcxx = xno
14094 then :
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
14096 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
14097 if test ${ac_cv_prog_cxx_11+y}
14098 then :
14099 printf %s "(cached) " >&6
14100 else $as_nop
14101 ac_cv_prog_cxx_11=no
14102 ac_save_CXX=$CXX
14103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h. */
14105 $ac_cxx_conftest_cxx11_program
14106 _ACEOF
14107 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
14108 do
14109 CXX="$ac_save_CXX $ac_arg"
14110 if ac_fn_cxx_try_compile "$LINENO"
14111 then :
14112 ac_cv_prog_cxx_cxx11=$ac_arg
14113 fi
14114 rm -f core conftest.err conftest.$ac_objext conftest.beam
14115 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
14116 done
14117 rm -f conftest.$ac_ext
14118 CXX=$ac_save_CXX
14119 fi
14120
14121 if test "x$ac_cv_prog_cxx_cxx11" = xno
14122 then :
14123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14124 printf "%s\n" "unsupported" >&6; }
14125 else $as_nop
14126 if test "x$ac_cv_prog_cxx_cxx11" = x
14127 then :
14128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14129 printf "%s\n" "none needed" >&6; }
14130 else $as_nop
14131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
14132 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
14133 CXX="$CXX $ac_cv_prog_cxx_cxx11"
14134 fi
14135 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
14136 ac_prog_cxx_stdcxx=cxx11
14137 fi
14138 fi
14139 if test x$ac_prog_cxx_stdcxx = xno
14140 then :
14141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
14142 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
14143 if test ${ac_cv_prog_cxx_98+y}
14144 then :
14145 printf %s "(cached) " >&6
14146 else $as_nop
14147 ac_cv_prog_cxx_98=no
14148 ac_save_CXX=$CXX
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14151 $ac_cxx_conftest_cxx98_program
14152 _ACEOF
14153 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
14154 do
14155 CXX="$ac_save_CXX $ac_arg"
14156 if ac_fn_cxx_try_compile "$LINENO"
14157 then :
14158 ac_cv_prog_cxx_cxx98=$ac_arg
14159 fi
14160 rm -f core conftest.err conftest.$ac_objext conftest.beam
14161 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
14162 done
14163 rm -f conftest.$ac_ext
14164 CXX=$ac_save_CXX
14165 fi
14166
14167 if test "x$ac_cv_prog_cxx_cxx98" = xno
14168 then :
14169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14170 printf "%s\n" "unsupported" >&6; }
14171 else $as_nop
14172 if test "x$ac_cv_prog_cxx_cxx98" = x
14173 then :
14174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14175 printf "%s\n" "none needed" >&6; }
14176 else $as_nop
14177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
14178 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
14179 CXX="$CXX $ac_cv_prog_cxx_cxx98"
14180 fi
14181 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
14182 ac_prog_cxx_stdcxx=cxx98
14183 fi
14184 fi
14185
14186 ac_ext=c
14187 ac_cpp='$CPP $CPPFLAGS'
14188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14191
14192
14193
14194 func_stripname_cnf ()
14195 {
14196 case $2 in
14197 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14198 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14199 esac
14200 } # func_stripname_cnf
14201
14202 if test -n "$CXX" && ( test no != "$CXX" &&
14203 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14204 (test g++ != "$CXX"))); then
14205 ac_ext=cpp
14206 ac_cpp='$CXXCPP $CPPFLAGS'
14207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14211 printf %s "checking how to run the C++ preprocessor... " >&6; }
14212 if test -z "$CXXCPP"; then
14213 if test ${ac_cv_prog_CXXCPP+y}
14214 then :
14215 printf %s "(cached) " >&6
14216 else $as_nop
14217 # Double quotes because $CXX needs to be expanded
14218 for CXXCPP in "$CXX -E" cpp /lib/cpp
14219 do
14220 ac_preproc_ok=false
14221 for ac_cxx_preproc_warn_flag in '' yes
14222 do
14223 # Use a header file that comes with gcc, so configuring glibc
14224 # with a fresh cross-compiler works.
14225 # On the NeXT, cc -E runs the code through the compiler's parser,
14226 # not just through cpp. "Syntax error" is here to catch this case.
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14229 #include <limits.h>
14230 Syntax error
14231 _ACEOF
14232 if ac_fn_cxx_try_cpp "$LINENO"
14233 then :
14234
14235 else $as_nop
14236 # Broken: fails on valid input.
14237 continue
14238 fi
14239 rm -f conftest.err conftest.i conftest.$ac_ext
14240
14241 # OK, works on sane cases. Now check whether nonexistent headers
14242 # can be detected and how.
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14245 #include <ac_nonexistent.h>
14246 _ACEOF
14247 if ac_fn_cxx_try_cpp "$LINENO"
14248 then :
14249 # Broken: success on invalid input.
14250 continue
14251 else $as_nop
14252 # Passes both tests.
14253 ac_preproc_ok=:
14254 break
14255 fi
14256 rm -f conftest.err conftest.i conftest.$ac_ext
14257
14258 done
14259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14260 rm -f conftest.i conftest.err conftest.$ac_ext
14261 if $ac_preproc_ok
14262 then :
14263 break
14264 fi
14265
14266 done
14267 ac_cv_prog_CXXCPP=$CXXCPP
14268
14269 fi
14270 CXXCPP=$ac_cv_prog_CXXCPP
14271 else
14272 ac_cv_prog_CXXCPP=$CXXCPP
14273 fi
14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14275 printf "%s\n" "$CXXCPP" >&6; }
14276 ac_preproc_ok=false
14277 for ac_cxx_preproc_warn_flag in '' yes
14278 do
14279 # Use a header file that comes with gcc, so configuring glibc
14280 # with a fresh cross-compiler works.
14281 # On the NeXT, cc -E runs the code through the compiler's parser,
14282 # not just through cpp. "Syntax error" is here to catch this case.
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14285 #include <limits.h>
14286 Syntax error
14287 _ACEOF
14288 if ac_fn_cxx_try_cpp "$LINENO"
14289 then :
14290
14291 else $as_nop
14292 # Broken: fails on valid input.
14293 continue
14294 fi
14295 rm -f conftest.err conftest.i conftest.$ac_ext
14296
14297 # OK, works on sane cases. Now check whether nonexistent headers
14298 # can be detected and how.
14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h. */
14301 #include <ac_nonexistent.h>
14302 _ACEOF
14303 if ac_fn_cxx_try_cpp "$LINENO"
14304 then :
14305 # Broken: success on invalid input.
14306 continue
14307 else $as_nop
14308 # Passes both tests.
14309 ac_preproc_ok=:
14310 break
14311 fi
14312 rm -f conftest.err conftest.i conftest.$ac_ext
14313
14314 done
14315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14316 rm -f conftest.i conftest.err conftest.$ac_ext
14317 if $ac_preproc_ok
14318 then :
14319
14320 else $as_nop
14321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14322 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14323 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14324 See \`config.log' for more details" "$LINENO" 5; }
14325 fi
14326
14327 ac_ext=c
14328 ac_cpp='$CPP $CPPFLAGS'
14329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14332
14333 else
14334 _lt_caught_CXX_error=yes
14335 fi
14336
14337 ac_ext=cpp
14338 ac_cpp='$CXXCPP $CPPFLAGS'
14339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14342
14343 archive_cmds_need_lc_CXX=no
14344 allow_undefined_flag_CXX=
14345 always_export_symbols_CXX=no
14346 archive_expsym_cmds_CXX=
14347 compiler_needs_object_CXX=no
14348 export_dynamic_flag_spec_CXX=
14349 hardcode_direct_CXX=no
14350 hardcode_direct_absolute_CXX=no
14351 hardcode_libdir_flag_spec_CXX=
14352 hardcode_libdir_separator_CXX=
14353 hardcode_minus_L_CXX=no
14354 hardcode_shlibpath_var_CXX=unsupported
14355 hardcode_automatic_CXX=no
14356 inherit_rpath_CXX=no
14357 module_cmds_CXX=
14358 module_expsym_cmds_CXX=
14359 link_all_deplibs_CXX=unknown
14360 old_archive_cmds_CXX=$old_archive_cmds
14361 reload_flag_CXX=$reload_flag
14362 reload_cmds_CXX=$reload_cmds
14363 no_undefined_flag_CXX=
14364 whole_archive_flag_spec_CXX=
14365 enable_shared_with_static_runtimes_CXX=no
14366
14367 # Source file extension for C++ test sources.
14368 ac_ext=cpp
14369
14370 # Object file extension for compiled C++ test sources.
14371 objext=o
14372 objext_CXX=$objext
14373
14374 # No sense in running all these tests if we already determined that
14375 # the CXX compiler isn't working. Some variables (like enable_shared)
14376 # are currently assumed to apply to all compilers on this platform,
14377 # and will be corrupted by setting them based on a non-working compiler.
14378 if test yes != "$_lt_caught_CXX_error"; then
14379 # Code to be used in simple compile tests
14380 lt_simple_compile_test_code="int some_variable = 0;"
14381
14382 # Code to be used in simple link tests
14383 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14384
14385 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14386
14387
14388
14389
14390
14391
14392 # If no C compiler was specified, use CC.
14393 LTCC=${LTCC-"$CC"}
14394
14395 # If no C compiler flags were specified, use CFLAGS.
14396 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14397
14398 # Allow CC to be a program name with arguments.
14399 compiler=$CC
14400
14401
14402 # save warnings/boilerplate of simple test code
14403 ac_outfile=conftest.$ac_objext
14404 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14405 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14406 _lt_compiler_boilerplate=`cat conftest.err`
14407 $RM conftest*
14408
14409 ac_outfile=conftest.$ac_objext
14410 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14411 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14412 _lt_linker_boilerplate=`cat conftest.err`
14413 $RM -r conftest*
14414
14415
14416 # Allow CC to be a program name with arguments.
14417 lt_save_CC=$CC
14418 lt_save_CFLAGS=$CFLAGS
14419 lt_save_LD=$LD
14420 lt_save_GCC=$GCC
14421 GCC=$GXX
14422 lt_save_with_gnu_ld=$with_gnu_ld
14423 lt_save_path_LD=$lt_cv_path_LD
14424 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14425 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14426 else
14427 $as_unset lt_cv_prog_gnu_ld
14428 fi
14429 if test -n "${lt_cv_path_LDCXX+set}"; then
14430 lt_cv_path_LD=$lt_cv_path_LDCXX
14431 else
14432 $as_unset lt_cv_path_LD
14433 fi
14434 test -z "${LDCXX+set}" || LD=$LDCXX
14435 CC=${CXX-"c++"}
14436 CFLAGS=$CXXFLAGS
14437 compiler=$CC
14438 compiler_CXX=$CC
14439 func_cc_basename $compiler
14440 cc_basename=$func_cc_basename_result
14441
14442
14443 if test -n "$compiler"; then
14444 # We don't want -fno-exception when compiling C++ code, so set the
14445 # no_builtin_flag separately
14446 if test yes = "$GXX"; then
14447 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14448 else
14449 lt_prog_compiler_no_builtin_flag_CXX=
14450 fi
14451
14452 if test yes = "$GXX"; then
14453 # Set up default GNU C++ configuration
14454
14455
14456
14457 # Check whether --with-gnu-ld was given.
14458 if test ${with_gnu_ld+y}
14459 then :
14460 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14461 else $as_nop
14462 with_gnu_ld=no
14463 fi
14464
14465 ac_prog=ld
14466 if test yes = "$GCC"; then
14467 # Check if gcc -print-prog-name=ld gives a path.
14468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14469 printf %s "checking for ld used by $CC... " >&6; }
14470 case $host in
14471 *-*-mingw*)
14472 # gcc leaves a trailing carriage return, which upsets mingw
14473 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14474 *)
14475 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14476 esac
14477 case $ac_prog in
14478 # Accept absolute paths.
14479 [\\/]* | ?:[\\/]*)
14480 re_direlt='/[^/][^/]*/\.\./'
14481 # Canonicalize the pathname of ld
14482 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14483 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14484 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14485 done
14486 test -z "$LD" && LD=$ac_prog
14487 ;;
14488 "")
14489 # If it fails, then pretend we aren't using GCC.
14490 ac_prog=ld
14491 ;;
14492 *)
14493 # If it is relative, then search for the first ld in PATH.
14494 with_gnu_ld=unknown
14495 ;;
14496 esac
14497 elif test yes = "$with_gnu_ld"; then
14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14499 printf %s "checking for GNU ld... " >&6; }
14500 else
14501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14502 printf %s "checking for non-GNU ld... " >&6; }
14503 fi
14504 if test ${lt_cv_path_LD+y}
14505 then :
14506 printf %s "(cached) " >&6
14507 else $as_nop
14508 if test -z "$LD"; then
14509 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14510 for ac_dir in $PATH; do
14511 IFS=$lt_save_ifs
14512 test -z "$ac_dir" && ac_dir=.
14513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14514 lt_cv_path_LD=$ac_dir/$ac_prog
14515 # Check to see if the program is GNU ld. I'd rather use --version,
14516 # but apparently some variants of GNU ld only accept -v.
14517 # Break only if it was the GNU/non-GNU ld that we prefer.
14518 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14519 *GNU* | *'with BFD'*)
14520 test no != "$with_gnu_ld" && break
14521 ;;
14522 *)
14523 test yes != "$with_gnu_ld" && break
14524 ;;
14525 esac
14526 fi
14527 done
14528 IFS=$lt_save_ifs
14529 else
14530 lt_cv_path_LD=$LD # Let the user override the test with a path.
14531 fi
14532 fi
14533
14534 LD=$lt_cv_path_LD
14535 if test -n "$LD"; then
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14537 printf "%s\n" "$LD" >&6; }
14538 else
14539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14540 printf "%s\n" "no" >&6; }
14541 fi
14542 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14544 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14545 if test ${lt_cv_prog_gnu_ld+y}
14546 then :
14547 printf %s "(cached) " >&6
14548 else $as_nop
14549 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14550 case `$LD -v 2>&1 </dev/null` in
14551 *GNU* | *'with BFD'*)
14552 lt_cv_prog_gnu_ld=yes
14553 ;;
14554 *)
14555 lt_cv_prog_gnu_ld=no
14556 ;;
14557 esac
14558 fi
14559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14560 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14561 with_gnu_ld=$lt_cv_prog_gnu_ld
14562
14563
14564
14565
14566
14567
14568
14569 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14570 # archiving commands below assume that GNU ld is being used.
14571 if test yes = "$with_gnu_ld"; then
14572 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14573 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'
14574
14575 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14576 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14577
14578 # If archive_cmds runs LD, not CC, wlarc should be empty
14579 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14580 # investigate it a little bit more. (MM)
14581 wlarc='$wl'
14582
14583 # ancient GNU ld didn't support --whole-archive et. al.
14584 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14585 $GREP 'no-whole-archive' > /dev/null; then
14586 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14587 else
14588 whole_archive_flag_spec_CXX=
14589 fi
14590 else
14591 with_gnu_ld=no
14592 wlarc=
14593
14594 # A generic and very simple default shared library creation
14595 # command for GNU C++ for the case where it uses the native
14596 # linker, instead of GNU ld. If possible, this setting should
14597 # overridden to take advantage of the native linker features on
14598 # the platform it is being used on.
14599 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14600 fi
14601
14602 # Commands to make compiler produce verbose output that lists
14603 # what "hidden" libraries, object files and flags are used when
14604 # linking a shared library.
14605 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14606
14607 else
14608 GXX=no
14609 with_gnu_ld=no
14610 wlarc=
14611 fi
14612
14613 # PORTME: fill in a description of your system's C++ link characteristics
14614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14615 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14616 ld_shlibs_CXX=yes
14617 case $host_os in
14618 aix3*)
14619 # FIXME: insert proper C++ library support
14620 ld_shlibs_CXX=no
14621 ;;
14622 aix[4-9]*)
14623 if test ia64 = "$host_cpu"; then
14624 # On IA64, the linker does run time linking by default, so we don't
14625 # have to do anything special.
14626 aix_use_runtimelinking=no
14627 exp_sym_flag='-Bexport'
14628 no_entry_flag=
14629 else
14630 aix_use_runtimelinking=no
14631
14632 # Test if we are trying to use run time linking or normal
14633 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14634 # have runtime linking enabled, and use it for executables.
14635 # For shared libraries, we enable/disable runtime linking
14636 # depending on the kind of the shared library created -
14637 # when "with_aix_soname,aix_use_runtimelinking" is:
14638 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14639 # "aix,yes" lib.so shared, rtl:yes, for executables
14640 # lib.a static archive
14641 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14642 # lib.a(lib.so.V) shared, rtl:no, for executables
14643 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14644 # lib.a(lib.so.V) shared, rtl:no
14645 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14646 # lib.a static archive
14647 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14648 for ld_flag in $LDFLAGS; do
14649 case $ld_flag in
14650 *-brtl*)
14651 aix_use_runtimelinking=yes
14652 break
14653 ;;
14654 esac
14655 done
14656 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14657 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14658 # so we don't have lib.a shared libs to link our executables.
14659 # We have to force runtime linking in this case.
14660 aix_use_runtimelinking=yes
14661 LDFLAGS="$LDFLAGS -Wl,-brtl"
14662 fi
14663 ;;
14664 esac
14665
14666 exp_sym_flag='-bexport'
14667 no_entry_flag='-bnoentry'
14668 fi
14669
14670 # When large executables or shared objects are built, AIX ld can
14671 # have problems creating the table of contents. If linking a library
14672 # or program results in "error TOC overflow" add -mminimal-toc to
14673 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14674 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14675
14676 archive_cmds_CXX=''
14677 hardcode_direct_CXX=yes
14678 hardcode_direct_absolute_CXX=yes
14679 hardcode_libdir_separator_CXX=':'
14680 link_all_deplibs_CXX=yes
14681 file_list_spec_CXX='$wl-f,'
14682 case $with_aix_soname,$aix_use_runtimelinking in
14683 aix,*) ;; # no import file
14684 svr4,* | *,yes) # use import file
14685 # The Import File defines what to hardcode.
14686 hardcode_direct_CXX=no
14687 hardcode_direct_absolute_CXX=no
14688 ;;
14689 esac
14690
14691 if test yes = "$GXX"; then
14692 case $host_os in aix4.[012]|aix4.[012].*)
14693 # We only want to do this on AIX 4.2 and lower, the check
14694 # below for broken collect2 doesn't work under 4.3+
14695 collect2name=`$CC -print-prog-name=collect2`
14696 if test -f "$collect2name" &&
14697 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14698 then
14699 # We have reworked collect2
14700 :
14701 else
14702 # We have old collect2
14703 hardcode_direct_CXX=unsupported
14704 # It fails to find uninstalled libraries when the uninstalled
14705 # path is not listed in the libpath. Setting hardcode_minus_L
14706 # to unsupported forces relinking
14707 hardcode_minus_L_CXX=yes
14708 hardcode_libdir_flag_spec_CXX='-L$libdir'
14709 hardcode_libdir_separator_CXX=
14710 fi
14711 esac
14712 shared_flag='-shared'
14713 if test yes = "$aix_use_runtimelinking"; then
14714 shared_flag=$shared_flag' $wl-G'
14715 fi
14716 # Need to ensure runtime linking is disabled for the traditional
14717 # shared library, or the linker may eventually find shared libraries
14718 # /with/ Import File - we do not want to mix them.
14719 shared_flag_aix='-shared'
14720 shared_flag_svr4='-shared $wl-G'
14721 else
14722 # not using gcc
14723 if test ia64 = "$host_cpu"; then
14724 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14725 # chokes on -Wl,-G. The following line is correct:
14726 shared_flag='-G'
14727 else
14728 if test yes = "$aix_use_runtimelinking"; then
14729 shared_flag='$wl-G'
14730 else
14731 shared_flag='$wl-bM:SRE'
14732 fi
14733 shared_flag_aix='$wl-bM:SRE'
14734 shared_flag_svr4='$wl-G'
14735 fi
14736 fi
14737
14738 export_dynamic_flag_spec_CXX='$wl-bexpall'
14739 # It seems that -bexpall does not export symbols beginning with
14740 # underscore (_), so it is better to generate a list of symbols to
14741 # export.
14742 always_export_symbols_CXX=yes
14743 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14744 # Warning - without using the other runtime loading flags (-brtl),
14745 # -berok will link without error, but may produce a broken library.
14746 # The "-G" linker flag allows undefined symbols.
14747 no_undefined_flag_CXX='-bernotok'
14748 # Determine the default libpath from the value encoded in an empty
14749 # executable.
14750 if test set = "${lt_cv_aix_libpath+set}"; then
14751 aix_libpath=$lt_cv_aix_libpath
14752 else
14753 if test ${lt_cv_aix_libpath__CXX+y}
14754 then :
14755 printf %s "(cached) " >&6
14756 else $as_nop
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759
14760 int
14761 main (void)
14762 {
14763
14764 ;
14765 return 0;
14766 }
14767 _ACEOF
14768 if ac_fn_cxx_try_link "$LINENO"
14769 then :
14770
14771 lt_aix_libpath_sed='
14772 /Import File Strings/,/^$/ {
14773 /^0/ {
14774 s/^0 *\([^ ]*\) *$/\1/
14775 p
14776 }
14777 }'
14778 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14779 # Check for a 64-bit object if we didn't find anything.
14780 if test -z "$lt_cv_aix_libpath__CXX"; then
14781 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14782 fi
14783 fi
14784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14785 conftest$ac_exeext conftest.$ac_ext
14786 if test -z "$lt_cv_aix_libpath__CXX"; then
14787 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14788 fi
14789
14790 fi
14791
14792 aix_libpath=$lt_cv_aix_libpath__CXX
14793 fi
14794
14795 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14796
14797 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
14798 else
14799 if test ia64 = "$host_cpu"; then
14800 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14801 allow_undefined_flag_CXX="-z nodefs"
14802 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"
14803 else
14804 # Determine the default libpath from the value encoded in an
14805 # empty executable.
14806 if test set = "${lt_cv_aix_libpath+set}"; then
14807 aix_libpath=$lt_cv_aix_libpath
14808 else
14809 if test ${lt_cv_aix_libpath__CXX+y}
14810 then :
14811 printf %s "(cached) " >&6
14812 else $as_nop
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14815
14816 int
14817 main (void)
14818 {
14819
14820 ;
14821 return 0;
14822 }
14823 _ACEOF
14824 if ac_fn_cxx_try_link "$LINENO"
14825 then :
14826
14827 lt_aix_libpath_sed='
14828 /Import File Strings/,/^$/ {
14829 /^0/ {
14830 s/^0 *\([^ ]*\) *$/\1/
14831 p
14832 }
14833 }'
14834 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14835 # Check for a 64-bit object if we didn't find anything.
14836 if test -z "$lt_cv_aix_libpath__CXX"; then
14837 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14838 fi
14839 fi
14840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14841 conftest$ac_exeext conftest.$ac_ext
14842 if test -z "$lt_cv_aix_libpath__CXX"; then
14843 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14844 fi
14845
14846 fi
14847
14848 aix_libpath=$lt_cv_aix_libpath__CXX
14849 fi
14850
14851 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14852 # Warning - without using the other run time loading flags,
14853 # -berok will link without error, but may produce a broken library.
14854 no_undefined_flag_CXX=' $wl-bernotok'
14855 allow_undefined_flag_CXX=' $wl-berok'
14856 if test yes = "$with_gnu_ld"; then
14857 # We only use this code for GNU lds that support --whole-archive.
14858 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14859 else
14860 # Exported symbols can be pulled into shared objects from archives
14861 whole_archive_flag_spec_CXX='$convenience'
14862 fi
14863 archive_cmds_need_lc_CXX=yes
14864 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14865 # -brtl affects multiple linker settings, -berok does not and is overridden later
14866 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14867 if test svr4 != "$with_aix_soname"; then
14868 # This is similar to how AIX traditionally builds its shared
14869 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14870 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'
14871 fi
14872 if test aix != "$with_aix_soname"; then
14873 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'
14874 else
14875 # used by -dlpreopen to get the symbols
14876 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14877 fi
14878 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14879 fi
14880 fi
14881 ;;
14882
14883 beos*)
14884 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14885 allow_undefined_flag_CXX=unsupported
14886 # Joseph Beckenbach <[email protected]> says some releases of gcc
14887 # support --undefined. This deserves some investigation. FIXME
14888 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14889 else
14890 ld_shlibs_CXX=no
14891 fi
14892 ;;
14893
14894 chorus*)
14895 case $cc_basename in
14896 *)
14897 # FIXME: insert proper C++ library support
14898 ld_shlibs_CXX=no
14899 ;;
14900 esac
14901 ;;
14902
14903 cygwin* | mingw* | pw32* | cegcc*)
14904 case $GXX,$cc_basename in
14905 ,cl* | no,cl*)
14906 # Native MSVC
14907 # hardcode_libdir_flag_spec is actually meaningless, as there is
14908 # no search path for DLLs.
14909 hardcode_libdir_flag_spec_CXX=' '
14910 allow_undefined_flag_CXX=unsupported
14911 always_export_symbols_CXX=yes
14912 file_list_spec_CXX='@'
14913 # Tell ltmain to make .lib files, not .a files.
14914 libext=lib
14915 # Tell ltmain to make .dll files, not .so files.
14916 shrext_cmds=.dll
14917 # FIXME: Setting linknames here is a bad hack.
14918 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14919 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14920 cp "$export_symbols" "$output_objdir/$soname.def";
14921 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14922 else
14923 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14924 fi~
14925 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14926 linknames='
14927 # The linker will not automatically build a static lib if we build a DLL.
14928 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14929 enable_shared_with_static_runtimes_CXX=yes
14930 # Don't use ranlib
14931 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14932 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14933 lt_tool_outputfile="@TOOL_OUTPUT@"~
14934 case $lt_outputfile in
14935 *.exe|*.EXE) ;;
14936 *)
14937 lt_outputfile=$lt_outputfile.exe
14938 lt_tool_outputfile=$lt_tool_outputfile.exe
14939 ;;
14940 esac~
14941 func_to_tool_file "$lt_outputfile"~
14942 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14943 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14944 $RM "$lt_outputfile.manifest";
14945 fi'
14946 ;;
14947 *)
14948 # g++
14949 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14950 # as there is no search path for DLLs.
14951 hardcode_libdir_flag_spec_CXX='-L$libdir'
14952 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14953 allow_undefined_flag_CXX=unsupported
14954 always_export_symbols_CXX=no
14955 enable_shared_with_static_runtimes_CXX=yes
14956
14957 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14958 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'
14959 # If the export-symbols file already is a .def file, use it as
14960 # is; otherwise, prepend EXPORTS...
14961 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14962 cp $export_symbols $output_objdir/$soname.def;
14963 else
14964 echo EXPORTS > $output_objdir/$soname.def;
14965 cat $export_symbols >> $output_objdir/$soname.def;
14966 fi~
14967 $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'
14968 else
14969 ld_shlibs_CXX=no
14970 fi
14971 ;;
14972 esac
14973 ;;
14974 darwin* | rhapsody*)
14975
14976
14977 archive_cmds_need_lc_CXX=no
14978 hardcode_direct_CXX=no
14979 hardcode_automatic_CXX=yes
14980 hardcode_shlibpath_var_CXX=unsupported
14981 if test yes = "$lt_cv_ld_force_load"; then
14982 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\"`'
14983
14984 else
14985 whole_archive_flag_spec_CXX=''
14986 fi
14987 link_all_deplibs_CXX=yes
14988 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14989 case $cc_basename in
14990 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14991 *) _lt_dar_can_shared=$GCC ;;
14992 esac
14993 if test yes = "$_lt_dar_can_shared"; then
14994 output_verbose_link_cmd=func_echo_all
14995 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"
14996 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14997 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"
14998 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"
14999 if test yes != "$lt_cv_apple_cc_single_mod"; then
15000 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"
15001 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"
15002 fi
15003
15004 else
15005 ld_shlibs_CXX=no
15006 fi
15007
15008 ;;
15009
15010 os2*)
15011 hardcode_libdir_flag_spec_CXX='-L$libdir'
15012 hardcode_minus_L_CXX=yes
15013 allow_undefined_flag_CXX=unsupported
15014 shrext_cmds=.dll
15015 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15016 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15017 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15018 $ECHO EXPORTS >> $output_objdir/$libname.def~
15019 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15020 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15021 emximp -o $lib $output_objdir/$libname.def'
15022 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15023 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15024 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15025 $ECHO EXPORTS >> $output_objdir/$libname.def~
15026 prefix_cmds="$SED"~
15027 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15028 prefix_cmds="$prefix_cmds -e 1d";
15029 fi~
15030 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15031 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15032 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15033 emximp -o $lib $output_objdir/$libname.def'
15034 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15035 enable_shared_with_static_runtimes_CXX=yes
15036 ;;
15037
15038 dgux*)
15039 case $cc_basename in
15040 ec++*)
15041 # FIXME: insert proper C++ library support
15042 ld_shlibs_CXX=no
15043 ;;
15044 ghcx*)
15045 # Green Hills C++ Compiler
15046 # FIXME: insert proper C++ library support
15047 ld_shlibs_CXX=no
15048 ;;
15049 *)
15050 # FIXME: insert proper C++ library support
15051 ld_shlibs_CXX=no
15052 ;;
15053 esac
15054 ;;
15055
15056 freebsd2.*)
15057 # C++ shared libraries reported to be fairly broken before
15058 # switch to ELF
15059 ld_shlibs_CXX=no
15060 ;;
15061
15062 freebsd-elf*)
15063 archive_cmds_need_lc_CXX=no
15064 ;;
15065
15066 freebsd* | dragonfly*)
15067 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15068 # conventions
15069 ld_shlibs_CXX=yes
15070 ;;
15071
15072 haiku*)
15073 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15074 link_all_deplibs_CXX=yes
15075 ;;
15076
15077 hpux9*)
15078 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15079 hardcode_libdir_separator_CXX=:
15080 export_dynamic_flag_spec_CXX='$wl-E'
15081 hardcode_direct_CXX=yes
15082 hardcode_minus_L_CXX=yes # Not in the search PATH,
15083 # but as the default
15084 # location of the library.
15085
15086 case $cc_basename in
15087 CC*)
15088 # FIXME: insert proper C++ library support
15089 ld_shlibs_CXX=no
15090 ;;
15091 aCC*)
15092 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'
15093 # Commands to make compiler produce verbose output that lists
15094 # what "hidden" libraries, object files and flags are used when
15095 # linking a shared library.
15096 #
15097 # There doesn't appear to be a way to prevent this compiler from
15098 # explicitly linking system object files so we need to strip them
15099 # from the output so that they don't get included in the library
15100 # dependencies.
15101 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"'
15102 ;;
15103 *)
15104 if test yes = "$GXX"; then
15105 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'
15106 else
15107 # FIXME: insert proper C++ library support
15108 ld_shlibs_CXX=no
15109 fi
15110 ;;
15111 esac
15112 ;;
15113
15114 hpux10*|hpux11*)
15115 if test no = "$with_gnu_ld"; then
15116 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15117 hardcode_libdir_separator_CXX=:
15118
15119 case $host_cpu in
15120 hppa*64*|ia64*)
15121 ;;
15122 *)
15123 export_dynamic_flag_spec_CXX='$wl-E'
15124 ;;
15125 esac
15126 fi
15127 case $host_cpu in
15128 hppa*64*|ia64*)
15129 hardcode_direct_CXX=no
15130 hardcode_shlibpath_var_CXX=no
15131 ;;
15132 *)
15133 hardcode_direct_CXX=yes
15134 hardcode_direct_absolute_CXX=yes
15135 hardcode_minus_L_CXX=yes # Not in the search PATH,
15136 # but as the default
15137 # location of the library.
15138 ;;
15139 esac
15140
15141 case $cc_basename in
15142 CC*)
15143 # FIXME: insert proper C++ library support
15144 ld_shlibs_CXX=no
15145 ;;
15146 aCC*)
15147 case $host_cpu in
15148 hppa*64*)
15149 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15150 ;;
15151 ia64*)
15152 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15153 ;;
15154 *)
15155 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15156 ;;
15157 esac
15158 # Commands to make compiler produce verbose output that lists
15159 # what "hidden" libraries, object files and flags are used when
15160 # linking a shared library.
15161 #
15162 # There doesn't appear to be a way to prevent this compiler from
15163 # explicitly linking system object files so we need to strip them
15164 # from the output so that they don't get included in the library
15165 # dependencies.
15166 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"'
15167 ;;
15168 *)
15169 if test yes = "$GXX"; then
15170 if test no = "$with_gnu_ld"; then
15171 case $host_cpu in
15172 hppa*64*)
15173 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15174 ;;
15175 ia64*)
15176 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15177 ;;
15178 *)
15179 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'
15180 ;;
15181 esac
15182 fi
15183 else
15184 # FIXME: insert proper C++ library support
15185 ld_shlibs_CXX=no
15186 fi
15187 ;;
15188 esac
15189 ;;
15190
15191 interix[3-9]*)
15192 hardcode_direct_CXX=no
15193 hardcode_shlibpath_var_CXX=no
15194 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15195 export_dynamic_flag_spec_CXX='$wl-E'
15196 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15197 # Instead, shared libraries are loaded at an image base (0x10000000 by
15198 # default) and relocated if they conflict, which is a slow very memory
15199 # consuming and fragmenting process. To avoid this, we pick a random,
15200 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15201 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15202 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'
15203 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'
15204 ;;
15205 irix5* | irix6*)
15206 case $cc_basename in
15207 CC*)
15208 # SGI C++
15209 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'
15210
15211 # Archives containing C++ object files must be created using
15212 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15213 # necessary to make sure instantiated templates are included
15214 # in the archive.
15215 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15216 ;;
15217 *)
15218 if test yes = "$GXX"; then
15219 if test no = "$with_gnu_ld"; then
15220 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'
15221 else
15222 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'
15223 fi
15224 fi
15225 link_all_deplibs_CXX=yes
15226 ;;
15227 esac
15228 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15229 hardcode_libdir_separator_CXX=:
15230 inherit_rpath_CXX=yes
15231 ;;
15232
15233 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15234 case $cc_basename in
15235 KCC*)
15236 # Kuck and Associates, Inc. (KAI) C++ Compiler
15237
15238 # KCC will only create a shared library if the output file
15239 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15240 # to its proper name (with version) after linking.
15241 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'
15242 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'
15243 # Commands to make compiler produce verbose output that lists
15244 # what "hidden" libraries, object files and flags are used when
15245 # linking a shared library.
15246 #
15247 # There doesn't appear to be a way to prevent this compiler from
15248 # explicitly linking system object files so we need to strip them
15249 # from the output so that they don't get included in the library
15250 # dependencies.
15251 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"'
15252
15253 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15254 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15255
15256 # Archives containing C++ object files must be created using
15257 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15258 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15259 ;;
15260 icpc* | ecpc* )
15261 # Intel C++
15262 with_gnu_ld=yes
15263 # version 8.0 and above of icpc choke on multiply defined symbols
15264 # if we add $predep_objects and $postdep_objects, however 7.1 and
15265 # earlier do not add the objects themselves.
15266 case `$CC -V 2>&1` in
15267 *"Version 7."*)
15268 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15269 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'
15270 ;;
15271 *) # Version 8.0 or newer
15272 tmp_idyn=
15273 case $host_cpu in
15274 ia64*) tmp_idyn=' -i_dynamic';;
15275 esac
15276 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15277 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'
15278 ;;
15279 esac
15280 archive_cmds_need_lc_CXX=no
15281 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15282 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15283 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15284 ;;
15285 pgCC* | pgcpp*)
15286 # Portland Group C++ compiler
15287 case `$CC -V` in
15288 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15289 prelink_cmds_CXX='tpldir=Template.dir~
15290 rm -rf $tpldir~
15291 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15292 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15293 old_archive_cmds_CXX='tpldir=Template.dir~
15294 rm -rf $tpldir~
15295 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15296 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15297 $RANLIB $oldlib'
15298 archive_cmds_CXX='tpldir=Template.dir~
15299 rm -rf $tpldir~
15300 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15301 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15302 archive_expsym_cmds_CXX='tpldir=Template.dir~
15303 rm -rf $tpldir~
15304 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15305 $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'
15306 ;;
15307 *) # Version 6 and above use weak symbols
15308 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15309 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'
15310 ;;
15311 esac
15312
15313 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15314 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15315 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'
15316 ;;
15317 cxx*)
15318 # Compaq C++
15319 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15320 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'
15321
15322 runpath_var=LD_RUN_PATH
15323 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15324 hardcode_libdir_separator_CXX=:
15325
15326 # Commands to make compiler produce verbose output that lists
15327 # what "hidden" libraries, object files and flags are used when
15328 # linking a shared library.
15329 #
15330 # There doesn't appear to be a way to prevent this compiler from
15331 # explicitly linking system object files so we need to strip them
15332 # from the output so that they don't get included in the library
15333 # dependencies.
15334 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'
15335 ;;
15336 xl* | mpixl* | bgxl*)
15337 # IBM XL 8.0 on PPC, with GNU ld
15338 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15339 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15340 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15341 if test yes = "$supports_anon_versioning"; then
15342 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15344 echo "local: *; };" >> $output_objdir/$libname.ver~
15345 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15346 fi
15347 ;;
15348 *)
15349 case `$CC -V 2>&1 | sed 5q` in
15350 *Sun\ C*)
15351 # Sun C++ 5.9
15352 no_undefined_flag_CXX=' -zdefs'
15353 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15354 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'
15355 hardcode_libdir_flag_spec_CXX='-R$libdir'
15356 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'
15357 compiler_needs_object_CXX=yes
15358
15359 # Not sure whether something based on
15360 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15361 # would be better.
15362 output_verbose_link_cmd='func_echo_all'
15363
15364 # Archives containing C++ object files must be created using
15365 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15366 # necessary to make sure instantiated templates are included
15367 # in the archive.
15368 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15369 ;;
15370 esac
15371 ;;
15372 esac
15373 ;;
15374
15375 lynxos*)
15376 # FIXME: insert proper C++ library support
15377 ld_shlibs_CXX=no
15378 ;;
15379
15380 m88k*)
15381 # FIXME: insert proper C++ library support
15382 ld_shlibs_CXX=no
15383 ;;
15384
15385 mvs*)
15386 case $cc_basename in
15387 cxx*)
15388 # FIXME: insert proper C++ library support
15389 ld_shlibs_CXX=no
15390 ;;
15391 *)
15392 # FIXME: insert proper C++ library support
15393 ld_shlibs_CXX=no
15394 ;;
15395 esac
15396 ;;
15397
15398 netbsd*)
15399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15400 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15401 wlarc=
15402 hardcode_libdir_flag_spec_CXX='-R$libdir'
15403 hardcode_direct_CXX=yes
15404 hardcode_shlibpath_var_CXX=no
15405 fi
15406 # Workaround some broken pre-1.5 toolchains
15407 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15408 ;;
15409
15410 *nto* | *qnx*)
15411 ld_shlibs_CXX=yes
15412 ;;
15413
15414 openbsd* | bitrig*)
15415 if test -f /usr/libexec/ld.so; then
15416 hardcode_direct_CXX=yes
15417 hardcode_shlibpath_var_CXX=no
15418 hardcode_direct_absolute_CXX=yes
15419 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15420 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15422 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15423 export_dynamic_flag_spec_CXX='$wl-E'
15424 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15425 fi
15426 output_verbose_link_cmd=func_echo_all
15427 else
15428 ld_shlibs_CXX=no
15429 fi
15430 ;;
15431
15432 osf3* | osf4* | osf5*)
15433 case $cc_basename in
15434 KCC*)
15435 # Kuck and Associates, Inc. (KAI) C++ Compiler
15436
15437 # KCC will only create a shared library if the output file
15438 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15439 # to its proper name (with version) after linking.
15440 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'
15441
15442 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15443 hardcode_libdir_separator_CXX=:
15444
15445 # Archives containing C++ object files must be created using
15446 # the KAI C++ compiler.
15447 case $host in
15448 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15449 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15450 esac
15451 ;;
15452 RCC*)
15453 # Rational C++ 2.4.1
15454 # FIXME: insert proper C++ library support
15455 ld_shlibs_CXX=no
15456 ;;
15457 cxx*)
15458 case $host in
15459 osf3*)
15460 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15461 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'
15462 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15463 ;;
15464 *)
15465 allow_undefined_flag_CXX=' -expect_unresolved \*'
15466 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'
15467 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15468 echo "-hidden">> $lib.exp~
15469 $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~
15470 $RM $lib.exp'
15471 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15472 ;;
15473 esac
15474
15475 hardcode_libdir_separator_CXX=:
15476
15477 # Commands to make compiler produce verbose output that lists
15478 # what "hidden" libraries, object files and flags are used when
15479 # linking a shared library.
15480 #
15481 # There doesn't appear to be a way to prevent this compiler from
15482 # explicitly linking system object files so we need to strip them
15483 # from the output so that they don't get included in the library
15484 # dependencies.
15485 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"'
15486 ;;
15487 *)
15488 if test yes,no = "$GXX,$with_gnu_ld"; then
15489 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15490 case $host in
15491 osf3*)
15492 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'
15493 ;;
15494 *)
15495 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'
15496 ;;
15497 esac
15498
15499 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15500 hardcode_libdir_separator_CXX=:
15501
15502 # Commands to make compiler produce verbose output that lists
15503 # what "hidden" libraries, object files and flags are used when
15504 # linking a shared library.
15505 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15506
15507 else
15508 # FIXME: insert proper C++ library support
15509 ld_shlibs_CXX=no
15510 fi
15511 ;;
15512 esac
15513 ;;
15514
15515 psos*)
15516 # FIXME: insert proper C++ library support
15517 ld_shlibs_CXX=no
15518 ;;
15519
15520 sunos4*)
15521 case $cc_basename in
15522 CC*)
15523 # Sun C++ 4.x
15524 # FIXME: insert proper C++ library support
15525 ld_shlibs_CXX=no
15526 ;;
15527 lcc*)
15528 # Lucid
15529 # FIXME: insert proper C++ library support
15530 ld_shlibs_CXX=no
15531 ;;
15532 *)
15533 # FIXME: insert proper C++ library support
15534 ld_shlibs_CXX=no
15535 ;;
15536 esac
15537 ;;
15538
15539 solaris*)
15540 case $cc_basename in
15541 CC* | sunCC*)
15542 # Sun C++ 4.2, 5.x and Centerline C++
15543 archive_cmds_need_lc_CXX=yes
15544 no_undefined_flag_CXX=' -zdefs'
15545 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15546 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15547 $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'
15548
15549 hardcode_libdir_flag_spec_CXX='-R$libdir'
15550 hardcode_shlibpath_var_CXX=no
15551 case $host_os in
15552 solaris2.[0-5] | solaris2.[0-5].*) ;;
15553 *)
15554 # The compiler driver will combine and reorder linker options,
15555 # but understands '-z linker_flag'.
15556 # Supported since Solaris 2.6 (maybe 2.5.1?)
15557 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15558 ;;
15559 esac
15560 link_all_deplibs_CXX=yes
15561
15562 output_verbose_link_cmd='func_echo_all'
15563
15564 # Archives containing C++ object files must be created using
15565 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15566 # necessary to make sure instantiated templates are included
15567 # in the archive.
15568 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15569 ;;
15570 gcx*)
15571 # Green Hills C++ Compiler
15572 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15573
15574 # The C++ compiler must be used to create the archive.
15575 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15576 ;;
15577 *)
15578 # GNU C++ compiler with Solaris linker
15579 if test yes,no = "$GXX,$with_gnu_ld"; then
15580 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15581 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15582 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15583 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15584 $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'
15585
15586 # Commands to make compiler produce verbose output that lists
15587 # what "hidden" libraries, object files and flags are used when
15588 # linking a shared library.
15589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15590 else
15591 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15592 # platform.
15593 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15594 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15595 $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'
15596
15597 # Commands to make compiler produce verbose output that lists
15598 # what "hidden" libraries, object files and flags are used when
15599 # linking a shared library.
15600 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15601 fi
15602
15603 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15604 case $host_os in
15605 solaris2.[0-5] | solaris2.[0-5].*) ;;
15606 *)
15607 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15608 ;;
15609 esac
15610 fi
15611 ;;
15612 esac
15613 ;;
15614
15615 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15616 no_undefined_flag_CXX='$wl-z,text'
15617 archive_cmds_need_lc_CXX=no
15618 hardcode_shlibpath_var_CXX=no
15619 runpath_var='LD_RUN_PATH'
15620
15621 case $cc_basename in
15622 CC*)
15623 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15624 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15625 ;;
15626 *)
15627 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15628 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15629 ;;
15630 esac
15631 ;;
15632
15633 sysv5* | sco3.2v5* | sco5v6*)
15634 # Note: We CANNOT use -z defs as we might desire, because we do not
15635 # link with -lc, and that would cause any symbols used from libc to
15636 # always be unresolved, which means just about no library would
15637 # ever link correctly. If we're not using GNU ld we use -z text
15638 # though, which does catch some bad symbols but isn't as heavy-handed
15639 # as -z defs.
15640 no_undefined_flag_CXX='$wl-z,text'
15641 allow_undefined_flag_CXX='$wl-z,nodefs'
15642 archive_cmds_need_lc_CXX=no
15643 hardcode_shlibpath_var_CXX=no
15644 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15645 hardcode_libdir_separator_CXX=':'
15646 link_all_deplibs_CXX=yes
15647 export_dynamic_flag_spec_CXX='$wl-Bexport'
15648 runpath_var='LD_RUN_PATH'
15649
15650 case $cc_basename in
15651 CC*)
15652 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15653 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15654 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15655 '"$old_archive_cmds_CXX"
15656 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15657 '"$reload_cmds_CXX"
15658 ;;
15659 *)
15660 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15661 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15662 ;;
15663 esac
15664 ;;
15665
15666 tandem*)
15667 case $cc_basename in
15668 NCC*)
15669 # NonStop-UX NCC 3.20
15670 # FIXME: insert proper C++ library support
15671 ld_shlibs_CXX=no
15672 ;;
15673 *)
15674 # FIXME: insert proper C++ library support
15675 ld_shlibs_CXX=no
15676 ;;
15677 esac
15678 ;;
15679
15680 vxworks*)
15681 # FIXME: insert proper C++ library support
15682 ld_shlibs_CXX=no
15683 ;;
15684
15685 *)
15686 # FIXME: insert proper C++ library support
15687 ld_shlibs_CXX=no
15688 ;;
15689 esac
15690
15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15692 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15693 test no = "$ld_shlibs_CXX" && can_build_shared=no
15694
15695 GCC_CXX=$GXX
15696 LD_CXX=$LD
15697
15698 ## CAVEAT EMPTOR:
15699 ## There is no encapsulation within the following macros, do not change
15700 ## the running order or otherwise move them around unless you know exactly
15701 ## what you are doing...
15702 # Dependencies to place before and after the object being linked:
15703 predep_objects_CXX=
15704 postdep_objects_CXX=
15705 predeps_CXX=
15706 postdeps_CXX=
15707 compiler_lib_search_path_CXX=
15708
15709 cat > conftest.$ac_ext <<_LT_EOF
15710 class Foo
15711 {
15712 public:
15713 Foo (void) { a = 0; }
15714 private:
15715 int a;
15716 };
15717 _LT_EOF
15718
15719
15720 _lt_libdeps_save_CFLAGS=$CFLAGS
15721 case "$CC $CFLAGS " in #(
15722 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15723 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15724 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15725 esac
15726
15727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15728 (eval $ac_compile) 2>&5
15729 ac_status=$?
15730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15731 test $ac_status = 0; }; then
15732 # Parse the compiler output and extract the necessary
15733 # objects, libraries and library flags.
15734
15735 # Sentinel used to keep track of whether or not we are before
15736 # the conftest object file.
15737 pre_test_object_deps_done=no
15738
15739 for p in `eval "$output_verbose_link_cmd"`; do
15740 case $prev$p in
15741
15742 -L* | -R* | -l*)
15743 # Some compilers place space between "-{L,R}" and the path.
15744 # Remove the space.
15745 if test x-L = "$p" ||
15746 test x-R = "$p"; then
15747 prev=$p
15748 continue
15749 fi
15750
15751 # Expand the sysroot to ease extracting the directories later.
15752 if test -z "$prev"; then
15753 case $p in
15754 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15755 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15756 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15757 esac
15758 fi
15759 case $p in
15760 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15761 esac
15762 if test no = "$pre_test_object_deps_done"; then
15763 case $prev in
15764 -L | -R)
15765 # Internal compiler library paths should come after those
15766 # provided the user. The postdeps already come after the
15767 # user supplied libs so there is no need to process them.
15768 if test -z "$compiler_lib_search_path_CXX"; then
15769 compiler_lib_search_path_CXX=$prev$p
15770 else
15771 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15772 fi
15773 ;;
15774 # The "-l" case would never come before the object being
15775 # linked, so don't bother handling this case.
15776 esac
15777 else
15778 if test -z "$postdeps_CXX"; then
15779 postdeps_CXX=$prev$p
15780 else
15781 postdeps_CXX="${postdeps_CXX} $prev$p"
15782 fi
15783 fi
15784 prev=
15785 ;;
15786
15787 *.lto.$objext) ;; # Ignore GCC LTO objects
15788 *.$objext)
15789 # This assumes that the test object file only shows up
15790 # once in the compiler output.
15791 if test "$p" = "conftest.$objext"; then
15792 pre_test_object_deps_done=yes
15793 continue
15794 fi
15795
15796 if test no = "$pre_test_object_deps_done"; then
15797 if test -z "$predep_objects_CXX"; then
15798 predep_objects_CXX=$p
15799 else
15800 predep_objects_CXX="$predep_objects_CXX $p"
15801 fi
15802 else
15803 if test -z "$postdep_objects_CXX"; then
15804 postdep_objects_CXX=$p
15805 else
15806 postdep_objects_CXX="$postdep_objects_CXX $p"
15807 fi
15808 fi
15809 ;;
15810
15811 *) ;; # Ignore the rest.
15812
15813 esac
15814 done
15815
15816 # Clean up.
15817 rm -f a.out a.exe
15818 else
15819 echo "libtool.m4: error: problem compiling CXX test program"
15820 fi
15821
15822 $RM -f confest.$objext
15823 CFLAGS=$_lt_libdeps_save_CFLAGS
15824
15825 # PORTME: override above test on systems where it is broken
15826 case $host_os in
15827 interix[3-9]*)
15828 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15829 # hack all around it, let's just trust "g++" to DTRT.
15830 predep_objects_CXX=
15831 postdep_objects_CXX=
15832 postdeps_CXX=
15833 ;;
15834 esac
15835
15836
15837 case " $postdeps_CXX " in
15838 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15839 esac
15840 compiler_lib_search_dirs_CXX=
15841 if test -n "${compiler_lib_search_path_CXX}"; then
15842 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15843 fi
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875 lt_prog_compiler_wl_CXX=
15876 lt_prog_compiler_pic_CXX=
15877 lt_prog_compiler_static_CXX=
15878
15879
15880 # C++ specific cases for pic, static, wl, etc.
15881 if test yes = "$GXX"; then
15882 lt_prog_compiler_wl_CXX='-Wl,'
15883 lt_prog_compiler_static_CXX='-static'
15884
15885 case $host_os in
15886 aix*)
15887 # All AIX code is PIC.
15888 if test ia64 = "$host_cpu"; then
15889 # AIX 5 now supports IA64 processor
15890 lt_prog_compiler_static_CXX='-Bstatic'
15891 fi
15892 lt_prog_compiler_pic_CXX='-fPIC'
15893 ;;
15894
15895 amigaos*)
15896 case $host_cpu in
15897 powerpc)
15898 # see comment about AmigaOS4 .so support
15899 lt_prog_compiler_pic_CXX='-fPIC'
15900 ;;
15901 m68k)
15902 # FIXME: we need at least 68020 code to build shared libraries, but
15903 # adding the '-m68020' flag to GCC prevents building anything better,
15904 # like '-m68040'.
15905 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15906 ;;
15907 esac
15908 ;;
15909
15910 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15911 # PIC is the default for these OSes.
15912 ;;
15913 mingw* | cygwin* | os2* | pw32* | cegcc*)
15914 # This hack is so that the source file can tell whether it is being
15915 # built for inclusion in a dll (and should export symbols for example).
15916 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15917 # (--disable-auto-import) libraries
15918 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15919 case $host_os in
15920 os2*)
15921 lt_prog_compiler_static_CXX='$wl-static'
15922 ;;
15923 esac
15924 ;;
15925 darwin* | rhapsody*)
15926 # PIC is the default on this platform
15927 # Common symbols not allowed in MH_DYLIB files
15928 lt_prog_compiler_pic_CXX='-fno-common'
15929 ;;
15930 *djgpp*)
15931 # DJGPP does not support shared libraries at all
15932 lt_prog_compiler_pic_CXX=
15933 ;;
15934 haiku*)
15935 # PIC is the default for Haiku.
15936 # The "-static" flag exists, but is broken.
15937 lt_prog_compiler_static_CXX=
15938 ;;
15939 interix[3-9]*)
15940 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15941 # Instead, we relocate shared libraries at runtime.
15942 ;;
15943 sysv4*MP*)
15944 if test -d /usr/nec; then
15945 lt_prog_compiler_pic_CXX=-Kconform_pic
15946 fi
15947 ;;
15948 hpux*)
15949 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15950 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15951 # sets the default TLS model and affects inlining.
15952 case $host_cpu in
15953 hppa*64*)
15954 ;;
15955 *)
15956 lt_prog_compiler_pic_CXX='-fPIC'
15957 ;;
15958 esac
15959 ;;
15960 *qnx* | *nto*)
15961 # QNX uses GNU C++, but need to define -shared option too, otherwise
15962 # it will coredump.
15963 lt_prog_compiler_pic_CXX='-fPIC -shared'
15964 ;;
15965 *)
15966 lt_prog_compiler_pic_CXX='-fPIC'
15967 ;;
15968 esac
15969 else
15970 case $host_os in
15971 aix[4-9]*)
15972 # All AIX code is PIC.
15973 if test ia64 = "$host_cpu"; then
15974 # AIX 5 now supports IA64 processor
15975 lt_prog_compiler_static_CXX='-Bstatic'
15976 else
15977 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15978 fi
15979 ;;
15980 chorus*)
15981 case $cc_basename in
15982 cxch68*)
15983 # Green Hills C++ Compiler
15984 # _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"
15985 ;;
15986 esac
15987 ;;
15988 mingw* | cygwin* | os2* | pw32* | cegcc*)
15989 # This hack is so that the source file can tell whether it is being
15990 # built for inclusion in a dll (and should export symbols for example).
15991 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15992 ;;
15993 dgux*)
15994 case $cc_basename in
15995 ec++*)
15996 lt_prog_compiler_pic_CXX='-KPIC'
15997 ;;
15998 ghcx*)
15999 # Green Hills C++ Compiler
16000 lt_prog_compiler_pic_CXX='-pic'
16001 ;;
16002 *)
16003 ;;
16004 esac
16005 ;;
16006 freebsd* | dragonfly*)
16007 # FreeBSD uses GNU C++
16008 ;;
16009 hpux9* | hpux10* | hpux11*)
16010 case $cc_basename in
16011 CC*)
16012 lt_prog_compiler_wl_CXX='-Wl,'
16013 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16014 if test ia64 != "$host_cpu"; then
16015 lt_prog_compiler_pic_CXX='+Z'
16016 fi
16017 ;;
16018 aCC*)
16019 lt_prog_compiler_wl_CXX='-Wl,'
16020 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16021 case $host_cpu in
16022 hppa*64*|ia64*)
16023 # +Z the default
16024 ;;
16025 *)
16026 lt_prog_compiler_pic_CXX='+Z'
16027 ;;
16028 esac
16029 ;;
16030 *)
16031 ;;
16032 esac
16033 ;;
16034 interix*)
16035 # This is c89, which is MS Visual C++ (no shared libs)
16036 # Anyone wants to do a port?
16037 ;;
16038 irix5* | irix6* | nonstopux*)
16039 case $cc_basename in
16040 CC*)
16041 lt_prog_compiler_wl_CXX='-Wl,'
16042 lt_prog_compiler_static_CXX='-non_shared'
16043 # CC pic flag -KPIC is the default.
16044 ;;
16045 *)
16046 ;;
16047 esac
16048 ;;
16049 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16050 case $cc_basename in
16051 KCC*)
16052 # KAI C++ Compiler
16053 lt_prog_compiler_wl_CXX='--backend -Wl,'
16054 lt_prog_compiler_pic_CXX='-fPIC'
16055 ;;
16056 ecpc* )
16057 # old Intel C++ for x86_64, which still supported -KPIC.
16058 lt_prog_compiler_wl_CXX='-Wl,'
16059 lt_prog_compiler_pic_CXX='-KPIC'
16060 lt_prog_compiler_static_CXX='-static'
16061 ;;
16062 icpc* )
16063 # Intel C++, used to be incompatible with GCC.
16064 # ICC 10 doesn't accept -KPIC any more.
16065 lt_prog_compiler_wl_CXX='-Wl,'
16066 lt_prog_compiler_pic_CXX='-fPIC'
16067 lt_prog_compiler_static_CXX='-static'
16068 ;;
16069 pgCC* | pgcpp*)
16070 # Portland Group C++ compiler
16071 lt_prog_compiler_wl_CXX='-Wl,'
16072 lt_prog_compiler_pic_CXX='-fpic'
16073 lt_prog_compiler_static_CXX='-Bstatic'
16074 ;;
16075 cxx*)
16076 # Compaq C++
16077 # Make sure the PIC flag is empty. It appears that all Alpha
16078 # Linux and Compaq Tru64 Unix objects are PIC.
16079 lt_prog_compiler_pic_CXX=
16080 lt_prog_compiler_static_CXX='-non_shared'
16081 ;;
16082 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16083 # IBM XL 8.0, 9.0 on PPC and BlueGene
16084 lt_prog_compiler_wl_CXX='-Wl,'
16085 lt_prog_compiler_pic_CXX='-qpic'
16086 lt_prog_compiler_static_CXX='-qstaticlink'
16087 ;;
16088 *)
16089 case `$CC -V 2>&1 | sed 5q` in
16090 *Sun\ C*)
16091 # Sun C++ 5.9
16092 lt_prog_compiler_pic_CXX='-KPIC'
16093 lt_prog_compiler_static_CXX='-Bstatic'
16094 lt_prog_compiler_wl_CXX='-Qoption ld '
16095 ;;
16096 esac
16097 ;;
16098 esac
16099 ;;
16100 lynxos*)
16101 ;;
16102 m88k*)
16103 ;;
16104 mvs*)
16105 case $cc_basename in
16106 cxx*)
16107 lt_prog_compiler_pic_CXX='-W c,exportall'
16108 ;;
16109 *)
16110 ;;
16111 esac
16112 ;;
16113 netbsd*)
16114 ;;
16115 *qnx* | *nto*)
16116 # QNX uses GNU C++, but need to define -shared option too, otherwise
16117 # it will coredump.
16118 lt_prog_compiler_pic_CXX='-fPIC -shared'
16119 ;;
16120 osf3* | osf4* | osf5*)
16121 case $cc_basename in
16122 KCC*)
16123 lt_prog_compiler_wl_CXX='--backend -Wl,'
16124 ;;
16125 RCC*)
16126 # Rational C++ 2.4.1
16127 lt_prog_compiler_pic_CXX='-pic'
16128 ;;
16129 cxx*)
16130 # Digital/Compaq C++
16131 lt_prog_compiler_wl_CXX='-Wl,'
16132 # Make sure the PIC flag is empty. It appears that all Alpha
16133 # Linux and Compaq Tru64 Unix objects are PIC.
16134 lt_prog_compiler_pic_CXX=
16135 lt_prog_compiler_static_CXX='-non_shared'
16136 ;;
16137 *)
16138 ;;
16139 esac
16140 ;;
16141 psos*)
16142 ;;
16143 solaris*)
16144 case $cc_basename in
16145 CC* | sunCC*)
16146 # Sun C++ 4.2, 5.x and Centerline C++
16147 lt_prog_compiler_pic_CXX='-KPIC'
16148 lt_prog_compiler_static_CXX='-Bstatic'
16149 lt_prog_compiler_wl_CXX='-Qoption ld '
16150 ;;
16151 gcx*)
16152 # Green Hills C++ Compiler
16153 lt_prog_compiler_pic_CXX='-PIC'
16154 ;;
16155 *)
16156 ;;
16157 esac
16158 ;;
16159 sunos4*)
16160 case $cc_basename in
16161 CC*)
16162 # Sun C++ 4.x
16163 lt_prog_compiler_pic_CXX='-pic'
16164 lt_prog_compiler_static_CXX='-Bstatic'
16165 ;;
16166 lcc*)
16167 # Lucid
16168 lt_prog_compiler_pic_CXX='-pic'
16169 ;;
16170 *)
16171 ;;
16172 esac
16173 ;;
16174 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16175 case $cc_basename in
16176 CC*)
16177 lt_prog_compiler_wl_CXX='-Wl,'
16178 lt_prog_compiler_pic_CXX='-KPIC'
16179 lt_prog_compiler_static_CXX='-Bstatic'
16180 ;;
16181 esac
16182 ;;
16183 tandem*)
16184 case $cc_basename in
16185 NCC*)
16186 # NonStop-UX NCC 3.20
16187 lt_prog_compiler_pic_CXX='-KPIC'
16188 ;;
16189 *)
16190 ;;
16191 esac
16192 ;;
16193 vxworks*)
16194 ;;
16195 *)
16196 lt_prog_compiler_can_build_shared_CXX=no
16197 ;;
16198 esac
16199 fi
16200
16201 case $host_os in
16202 # For platforms that do not support PIC, -DPIC is meaningless:
16203 *djgpp*)
16204 lt_prog_compiler_pic_CXX=
16205 ;;
16206 *)
16207 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16208 ;;
16209 esac
16210
16211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16212 printf %s "checking for $compiler option to produce PIC... " >&6; }
16213 if test ${lt_cv_prog_compiler_pic_CXX+y}
16214 then :
16215 printf %s "(cached) " >&6
16216 else $as_nop
16217 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16218 fi
16219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16220 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16221 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16222
16223 #
16224 # Check to make sure the PIC flag actually works.
16225 #
16226 if test -n "$lt_prog_compiler_pic_CXX"; then
16227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16228 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16229 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
16230 then :
16231 printf %s "(cached) " >&6
16232 else $as_nop
16233 lt_cv_prog_compiler_pic_works_CXX=no
16234 ac_outfile=conftest.$ac_objext
16235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16236 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16237 # Insert the option either (1) after the last *FLAGS variable, or
16238 # (2) before a word containing "conftest.", or (3) at the end.
16239 # Note that $ac_compile itself does not contain backslashes and begins
16240 # with a dollar sign (not a hyphen), so the echo should work correctly.
16241 # The option is referenced via a variable to avoid confusing sed.
16242 lt_compile=`echo "$ac_compile" | $SED \
16243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16245 -e 's:$: $lt_compiler_flag:'`
16246 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16247 (eval "$lt_compile" 2>conftest.err)
16248 ac_status=$?
16249 cat conftest.err >&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 if (exit $ac_status) && test -s "$ac_outfile"; then
16252 # The compiler can only warn and ignore the option if not recognized
16253 # So say no if there are warnings other than the usual output.
16254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16256 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16257 lt_cv_prog_compiler_pic_works_CXX=yes
16258 fi
16259 fi
16260 $RM conftest*
16261
16262 fi
16263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16264 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16265
16266 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16267 case $lt_prog_compiler_pic_CXX in
16268 "" | " "*) ;;
16269 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16270 esac
16271 else
16272 lt_prog_compiler_pic_CXX=
16273 lt_prog_compiler_can_build_shared_CXX=no
16274 fi
16275
16276 fi
16277
16278
16279
16280
16281
16282 #
16283 # Check to make sure the static flag actually works.
16284 #
16285 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16287 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16288 if test ${lt_cv_prog_compiler_static_works_CXX+y}
16289 then :
16290 printf %s "(cached) " >&6
16291 else $as_nop
16292 lt_cv_prog_compiler_static_works_CXX=no
16293 save_LDFLAGS=$LDFLAGS
16294 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16295 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16296 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16297 # The linker can only warn and ignore the option if not recognized
16298 # So say no if there are warnings
16299 if test -s conftest.err; then
16300 # Append any errors to the config.log.
16301 cat conftest.err 1>&5
16302 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16304 if diff conftest.exp conftest.er2 >/dev/null; then
16305 lt_cv_prog_compiler_static_works_CXX=yes
16306 fi
16307 else
16308 lt_cv_prog_compiler_static_works_CXX=yes
16309 fi
16310 fi
16311 $RM -r conftest*
16312 LDFLAGS=$save_LDFLAGS
16313
16314 fi
16315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16316 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16317
16318 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16319 :
16320 else
16321 lt_prog_compiler_static_CXX=
16322 fi
16323
16324
16325
16326
16327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16328 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16329 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16330 then :
16331 printf %s "(cached) " >&6
16332 else $as_nop
16333 lt_cv_prog_compiler_c_o_CXX=no
16334 $RM -r conftest 2>/dev/null
16335 mkdir conftest
16336 cd conftest
16337 mkdir out
16338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16339
16340 lt_compiler_flag="-o out/conftest2.$ac_objext"
16341 # Insert the option either (1) after the last *FLAGS variable, or
16342 # (2) before a word containing "conftest.", or (3) at the end.
16343 # Note that $ac_compile itself does not contain backslashes and begins
16344 # with a dollar sign (not a hyphen), so the echo should work correctly.
16345 lt_compile=`echo "$ac_compile" | $SED \
16346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16348 -e 's:$: $lt_compiler_flag:'`
16349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16350 (eval "$lt_compile" 2>out/conftest.err)
16351 ac_status=$?
16352 cat out/conftest.err >&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16355 then
16356 # The compiler can only warn and ignore the option if not recognized
16357 # So say no if there are warnings
16358 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16361 lt_cv_prog_compiler_c_o_CXX=yes
16362 fi
16363 fi
16364 chmod u+w . 2>&5
16365 $RM conftest*
16366 # SGI C++ compiler will create directory out/ii_files/ for
16367 # template instantiation
16368 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16369 $RM out/* && rmdir out
16370 cd ..
16371 $RM -r conftest
16372 $RM conftest*
16373
16374 fi
16375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16376 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16377
16378
16379
16380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16381 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16382 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16383 then :
16384 printf %s "(cached) " >&6
16385 else $as_nop
16386 lt_cv_prog_compiler_c_o_CXX=no
16387 $RM -r conftest 2>/dev/null
16388 mkdir conftest
16389 cd conftest
16390 mkdir out
16391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16392
16393 lt_compiler_flag="-o out/conftest2.$ac_objext"
16394 # Insert the option either (1) after the last *FLAGS variable, or
16395 # (2) before a word containing "conftest.", or (3) at the end.
16396 # Note that $ac_compile itself does not contain backslashes and begins
16397 # with a dollar sign (not a hyphen), so the echo should work correctly.
16398 lt_compile=`echo "$ac_compile" | $SED \
16399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16401 -e 's:$: $lt_compiler_flag:'`
16402 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16403 (eval "$lt_compile" 2>out/conftest.err)
16404 ac_status=$?
16405 cat out/conftest.err >&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16408 then
16409 # The compiler can only warn and ignore the option if not recognized
16410 # So say no if there are warnings
16411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16414 lt_cv_prog_compiler_c_o_CXX=yes
16415 fi
16416 fi
16417 chmod u+w . 2>&5
16418 $RM conftest*
16419 # SGI C++ compiler will create directory out/ii_files/ for
16420 # template instantiation
16421 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16422 $RM out/* && rmdir out
16423 cd ..
16424 $RM -r conftest
16425 $RM conftest*
16426
16427 fi
16428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16429 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16430
16431
16432
16433
16434 hard_links=nottested
16435 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16436 # do not overwrite the value of need_locks provided by the user
16437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16438 printf %s "checking if we can lock with hard links... " >&6; }
16439 hard_links=yes
16440 $RM conftest*
16441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16442 touch conftest.a
16443 ln conftest.a conftest.b 2>&5 || hard_links=no
16444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16446 printf "%s\n" "$hard_links" >&6; }
16447 if test no = "$hard_links"; then
16448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16449 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16450 need_locks=warn
16451 fi
16452 else
16453 need_locks=no
16454 fi
16455
16456
16457
16458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16459 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16460
16461 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16462 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16463 case $host_os in
16464 aix[4-9]*)
16465 # If we're using GNU nm, then we don't want the "-C" option.
16466 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16467 # Without the "-l" option, or with the "-B" option, AIX nm treats
16468 # weak defined symbols like other global defined symbols, whereas
16469 # GNU nm marks them as "W".
16470 # While the 'weak' keyword is ignored in the Export File, we need
16471 # it in the Import File for the 'aix-soname' feature, so we have
16472 # to replace the "-B" option with "-P" for AIX nm.
16473 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16474 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'
16475 else
16476 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 == "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'
16477 fi
16478 ;;
16479 pw32*)
16480 export_symbols_cmds_CXX=$ltdll_cmds
16481 ;;
16482 cygwin* | mingw* | cegcc*)
16483 case $cc_basename in
16484 cl*)
16485 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16486 ;;
16487 *)
16488 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'
16489 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16490 ;;
16491 esac
16492 ;;
16493 *)
16494 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16495 ;;
16496 esac
16497
16498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16499 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16500 test no = "$ld_shlibs_CXX" && can_build_shared=no
16501
16502 with_gnu_ld_CXX=$with_gnu_ld
16503
16504
16505
16506
16507
16508
16509 #
16510 # Do we need to explicitly link libc?
16511 #
16512 case "x$archive_cmds_need_lc_CXX" in
16513 x|xyes)
16514 # Assume -lc should be added
16515 archive_cmds_need_lc_CXX=yes
16516
16517 if test yes,yes = "$GCC,$enable_shared"; then
16518 case $archive_cmds_CXX in
16519 *'~'*)
16520 # FIXME: we may have to deal with multi-command sequences.
16521 ;;
16522 '$CC '*)
16523 # Test whether the compiler implicitly links with -lc since on some
16524 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16525 # to ld, don't add -lc before -lgcc.
16526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16527 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16528 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16529 then :
16530 printf %s "(cached) " >&6
16531 else $as_nop
16532 $RM conftest*
16533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16534
16535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16536 (eval $ac_compile) 2>&5
16537 ac_status=$?
16538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16539 test $ac_status = 0; } 2>conftest.err; then
16540 soname=conftest
16541 lib=conftest
16542 libobjs=conftest.$ac_objext
16543 deplibs=
16544 wl=$lt_prog_compiler_wl_CXX
16545 pic_flag=$lt_prog_compiler_pic_CXX
16546 compiler_flags=-v
16547 linker_flags=-v
16548 verstring=
16549 output_objdir=.
16550 libname=conftest
16551 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16552 allow_undefined_flag_CXX=
16553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16554 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16555 ac_status=$?
16556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16557 test $ac_status = 0; }
16558 then
16559 lt_cv_archive_cmds_need_lc_CXX=no
16560 else
16561 lt_cv_archive_cmds_need_lc_CXX=yes
16562 fi
16563 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16564 else
16565 cat conftest.err 1>&5
16566 fi
16567 $RM conftest*
16568
16569 fi
16570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16571 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16572 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16573 ;;
16574 esac
16575 fi
16576 ;;
16577 esac
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16641 printf %s "checking dynamic linker characteristics... " >&6; }
16642
16643 library_names_spec=
16644 libname_spec='lib$name'
16645 soname_spec=
16646 shrext_cmds=.so
16647 postinstall_cmds=
16648 postuninstall_cmds=
16649 finish_cmds=
16650 finish_eval=
16651 shlibpath_var=
16652 shlibpath_overrides_runpath=unknown
16653 version_type=none
16654 dynamic_linker="$host_os ld.so"
16655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16656 need_lib_prefix=unknown
16657 hardcode_into_libs=no
16658
16659 # when you set need_version to no, make sure it does not cause -set_version
16660 # flags to be left without arguments
16661 need_version=unknown
16662
16663
16664
16665 case $host_os in
16666 aix3*)
16667 version_type=linux # correct to gnu/linux during the next big refactor
16668 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16669 shlibpath_var=LIBPATH
16670
16671 # AIX 3 has no versioning support, so we append a major version to the name.
16672 soname_spec='$libname$release$shared_ext$major'
16673 ;;
16674
16675 aix[4-9]*)
16676 version_type=linux # correct to gnu/linux during the next big refactor
16677 need_lib_prefix=no
16678 need_version=no
16679 hardcode_into_libs=yes
16680 if test ia64 = "$host_cpu"; then
16681 # AIX 5 supports IA64
16682 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16683 shlibpath_var=LD_LIBRARY_PATH
16684 else
16685 # With GCC up to 2.95.x, collect2 would create an import file
16686 # for dependence libraries. The import file would start with
16687 # the line '#! .'. This would cause the generated library to
16688 # depend on '.', always an invalid library. This was fixed in
16689 # development snapshots of GCC prior to 3.0.
16690 case $host_os in
16691 aix4 | aix4.[01] | aix4.[01].*)
16692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16693 echo ' yes '
16694 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16695 :
16696 else
16697 can_build_shared=no
16698 fi
16699 ;;
16700 esac
16701 # Using Import Files as archive members, it is possible to support
16702 # filename-based versioning of shared library archives on AIX. While
16703 # this would work for both with and without runtime linking, it will
16704 # prevent static linking of such archives. So we do filename-based
16705 # shared library versioning with .so extension only, which is used
16706 # when both runtime linking and shared linking is enabled.
16707 # Unfortunately, runtime linking may impact performance, so we do
16708 # not want this to be the default eventually. Also, we use the
16709 # versioned .so libs for executables only if there is the -brtl
16710 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16711 # To allow for filename-based versioning support, we need to create
16712 # libNAME.so.V as an archive file, containing:
16713 # *) an Import File, referring to the versioned filename of the
16714 # archive as well as the shared archive member, telling the
16715 # bitwidth (32 or 64) of that shared object, and providing the
16716 # list of exported symbols of that shared object, eventually
16717 # decorated with the 'weak' keyword
16718 # *) the shared object with the F_LOADONLY flag set, to really avoid
16719 # it being seen by the linker.
16720 # At run time we better use the real file rather than another symlink,
16721 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16722
16723 case $with_aix_soname,$aix_use_runtimelinking in
16724 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16725 # soname into executable. Probably we can add versioning support to
16726 # collect2, so additional links can be useful in future.
16727 aix,yes) # traditional libtool
16728 dynamic_linker='AIX unversionable lib.so'
16729 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16730 # instead of lib<name>.a to let people know that these are not
16731 # typical AIX shared libraries.
16732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16733 ;;
16734 aix,no) # traditional AIX only
16735 dynamic_linker='AIX lib.a(lib.so.V)'
16736 # We preserve .a as extension for shared libraries through AIX4.2
16737 # and later when we are not doing run time linking.
16738 library_names_spec='$libname$release.a $libname.a'
16739 soname_spec='$libname$release$shared_ext$major'
16740 ;;
16741 svr4,*) # full svr4 only
16742 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16743 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16744 # We do not specify a path in Import Files, so LIBPATH fires.
16745 shlibpath_overrides_runpath=yes
16746 ;;
16747 *,yes) # both, prefer svr4
16748 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16749 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16750 # unpreferred sharedlib libNAME.a needs extra handling
16751 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"'
16752 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"'
16753 # We do not specify a path in Import Files, so LIBPATH fires.
16754 shlibpath_overrides_runpath=yes
16755 ;;
16756 *,no) # both, prefer aix
16757 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16758 library_names_spec='$libname$release.a $libname.a'
16759 soname_spec='$libname$release$shared_ext$major'
16760 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16761 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)'
16762 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"'
16763 ;;
16764 esac
16765 shlibpath_var=LIBPATH
16766 fi
16767 ;;
16768
16769 amigaos*)
16770 case $host_cpu in
16771 powerpc)
16772 # Since July 2007 AmigaOS4 officially supports .so libraries.
16773 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16775 ;;
16776 m68k)
16777 library_names_spec='$libname.ixlibrary $libname.a'
16778 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16779 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'
16780 ;;
16781 esac
16782 ;;
16783
16784 beos*)
16785 library_names_spec='$libname$shared_ext'
16786 dynamic_linker="$host_os ld.so"
16787 shlibpath_var=LIBRARY_PATH
16788 ;;
16789
16790 bsdi[45]*)
16791 version_type=linux # correct to gnu/linux during the next big refactor
16792 need_version=no
16793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16794 soname_spec='$libname$release$shared_ext$major'
16795 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16796 shlibpath_var=LD_LIBRARY_PATH
16797 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16798 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16799 # the default ld.so.conf also contains /usr/contrib/lib and
16800 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16801 # libtool to hard-code these into programs
16802 ;;
16803
16804 cygwin* | mingw* | pw32* | cegcc*)
16805 version_type=windows
16806 shrext_cmds=.dll
16807 need_version=no
16808 need_lib_prefix=no
16809
16810 case $GCC,$cc_basename in
16811 yes,*)
16812 # gcc
16813 library_names_spec='$libname.dll.a'
16814 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16815 postinstall_cmds='base_file=`basename \$file`~
16816 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16817 dldir=$destdir/`dirname \$dlpath`~
16818 test -d \$dldir || mkdir -p \$dldir~
16819 $install_prog $dir/$dlname \$dldir/$dlname~
16820 chmod a+x \$dldir/$dlname~
16821 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16822 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16823 fi'
16824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16825 dlpath=$dir/\$dldll~
16826 $RM \$dlpath'
16827 shlibpath_overrides_runpath=yes
16828
16829 case $host_os in
16830 cygwin*)
16831 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16832 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16833
16834 ;;
16835 mingw* | cegcc*)
16836 # MinGW DLLs use traditional 'lib' prefix
16837 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16838 ;;
16839 pw32*)
16840 # pw32 DLLs use 'pw' prefix rather than 'lib'
16841 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16842 ;;
16843 esac
16844 dynamic_linker='Win32 ld.exe'
16845 ;;
16846
16847 *,cl*)
16848 # Native MSVC
16849 libname_spec='$name'
16850 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16851 library_names_spec='$libname.dll.lib'
16852
16853 case $build_os in
16854 mingw*)
16855 sys_lib_search_path_spec=
16856 lt_save_ifs=$IFS
16857 IFS=';'
16858 for lt_path in $LIB
16859 do
16860 IFS=$lt_save_ifs
16861 # Let DOS variable expansion print the short 8.3 style file name.
16862 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16863 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16864 done
16865 IFS=$lt_save_ifs
16866 # Convert to MSYS style.
16867 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16868 ;;
16869 cygwin*)
16870 # Convert to unix form, then to dos form, then back to unix form
16871 # but this time dos style (no spaces!) so that the unix form looks
16872 # like /cygdrive/c/PROGRA~1:/cygdr...
16873 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16874 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16875 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16876 ;;
16877 *)
16878 sys_lib_search_path_spec=$LIB
16879 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16880 # It is most probably a Windows format PATH.
16881 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16882 else
16883 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16884 fi
16885 # FIXME: find the short name or the path components, as spaces are
16886 # common. (e.g. "Program Files" -> "PROGRA~1")
16887 ;;
16888 esac
16889
16890 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16891 postinstall_cmds='base_file=`basename \$file`~
16892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16893 dldir=$destdir/`dirname \$dlpath`~
16894 test -d \$dldir || mkdir -p \$dldir~
16895 $install_prog $dir/$dlname \$dldir/$dlname'
16896 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16897 dlpath=$dir/\$dldll~
16898 $RM \$dlpath'
16899 shlibpath_overrides_runpath=yes
16900 dynamic_linker='Win32 link.exe'
16901 ;;
16902
16903 *)
16904 # Assume MSVC wrapper
16905 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16906 dynamic_linker='Win32 ld.exe'
16907 ;;
16908 esac
16909 # FIXME: first we should search . and the directory the executable is in
16910 shlibpath_var=PATH
16911 ;;
16912
16913 darwin* | rhapsody*)
16914 dynamic_linker="$host_os dyld"
16915 version_type=darwin
16916 need_lib_prefix=no
16917 need_version=no
16918 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16919 soname_spec='$libname$release$major$shared_ext'
16920 shlibpath_overrides_runpath=yes
16921 shlibpath_var=DYLD_LIBRARY_PATH
16922 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16923
16924 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16925 ;;
16926
16927 dgux*)
16928 version_type=linux # correct to gnu/linux during the next big refactor
16929 need_lib_prefix=no
16930 need_version=no
16931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16932 soname_spec='$libname$release$shared_ext$major'
16933 shlibpath_var=LD_LIBRARY_PATH
16934 ;;
16935
16936 freebsd* | dragonfly*)
16937 # DragonFly does not have aout. When/if they implement a new
16938 # versioning mechanism, adjust this.
16939 if test -x /usr/bin/objformat; then
16940 objformat=`/usr/bin/objformat`
16941 else
16942 case $host_os in
16943 freebsd[23].*) objformat=aout ;;
16944 *) objformat=elf ;;
16945 esac
16946 fi
16947 version_type=freebsd-$objformat
16948 case $version_type in
16949 freebsd-elf*)
16950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16951 soname_spec='$libname$release$shared_ext$major'
16952 need_version=no
16953 need_lib_prefix=no
16954 ;;
16955 freebsd-*)
16956 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16957 need_version=yes
16958 ;;
16959 esac
16960 shlibpath_var=LD_LIBRARY_PATH
16961 case $host_os in
16962 freebsd2.*)
16963 shlibpath_overrides_runpath=yes
16964 ;;
16965 freebsd3.[01]* | freebsdelf3.[01]*)
16966 shlibpath_overrides_runpath=yes
16967 hardcode_into_libs=yes
16968 ;;
16969 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16970 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16971 shlibpath_overrides_runpath=no
16972 hardcode_into_libs=yes
16973 ;;
16974 *) # from 4.6 on, and DragonFly
16975 shlibpath_overrides_runpath=yes
16976 hardcode_into_libs=yes
16977 ;;
16978 esac
16979 ;;
16980
16981 haiku*)
16982 version_type=linux # correct to gnu/linux during the next big refactor
16983 need_lib_prefix=no
16984 need_version=no
16985 dynamic_linker="$host_os runtime_loader"
16986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16987 soname_spec='$libname$release$shared_ext$major'
16988 shlibpath_var=LIBRARY_PATH
16989 shlibpath_overrides_runpath=no
16990 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16991 hardcode_into_libs=yes
16992 ;;
16993
16994 hpux9* | hpux10* | hpux11*)
16995 # Give a soname corresponding to the major version so that dld.sl refuses to
16996 # link against other versions.
16997 version_type=sunos
16998 need_lib_prefix=no
16999 need_version=no
17000 case $host_cpu in
17001 ia64*)
17002 shrext_cmds='.so'
17003 hardcode_into_libs=yes
17004 dynamic_linker="$host_os dld.so"
17005 shlibpath_var=LD_LIBRARY_PATH
17006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17008 soname_spec='$libname$release$shared_ext$major'
17009 if test 32 = "$HPUX_IA64_MODE"; then
17010 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17011 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17012 else
17013 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17014 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17015 fi
17016 ;;
17017 hppa*64*)
17018 shrext_cmds='.sl'
17019 hardcode_into_libs=yes
17020 dynamic_linker="$host_os dld.sl"
17021 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17022 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17024 soname_spec='$libname$release$shared_ext$major'
17025 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17027 ;;
17028 *)
17029 shrext_cmds='.sl'
17030 dynamic_linker="$host_os dld.sl"
17031 shlibpath_var=SHLIB_PATH
17032 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17034 soname_spec='$libname$release$shared_ext$major'
17035 ;;
17036 esac
17037 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17038 postinstall_cmds='chmod 555 $lib'
17039 # or fails outright, so override atomically:
17040 install_override_mode=555
17041 ;;
17042
17043 interix[3-9]*)
17044 version_type=linux # correct to gnu/linux during the next big refactor
17045 need_lib_prefix=no
17046 need_version=no
17047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17048 soname_spec='$libname$release$shared_ext$major'
17049 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 shlibpath_overrides_runpath=no
17052 hardcode_into_libs=yes
17053 ;;
17054
17055 irix5* | irix6* | nonstopux*)
17056 case $host_os in
17057 nonstopux*) version_type=nonstopux ;;
17058 *)
17059 if test yes = "$lt_cv_prog_gnu_ld"; then
17060 version_type=linux # correct to gnu/linux during the next big refactor
17061 else
17062 version_type=irix
17063 fi ;;
17064 esac
17065 need_lib_prefix=no
17066 need_version=no
17067 soname_spec='$libname$release$shared_ext$major'
17068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17069 case $host_os in
17070 irix5* | nonstopux*)
17071 libsuff= shlibsuff=
17072 ;;
17073 *)
17074 case $LD in # libtool.m4 will add one of these switches to LD
17075 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17076 libsuff= shlibsuff= libmagic=32-bit;;
17077 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17078 libsuff=32 shlibsuff=N32 libmagic=N32;;
17079 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17080 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17081 *) libsuff= shlibsuff= libmagic=never-match;;
17082 esac
17083 ;;
17084 esac
17085 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17086 shlibpath_overrides_runpath=no
17087 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17088 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17089 hardcode_into_libs=yes
17090 ;;
17091
17092 # No shared lib support for Linux oldld, aout, or coff.
17093 linux*oldld* | linux*aout* | linux*coff*)
17094 dynamic_linker=no
17095 ;;
17096
17097 linux*android*)
17098 version_type=none # Android doesn't support versioned libraries.
17099 need_lib_prefix=no
17100 need_version=no
17101 library_names_spec='$libname$release$shared_ext'
17102 soname_spec='$libname$release$shared_ext'
17103 finish_cmds=
17104 shlibpath_var=LD_LIBRARY_PATH
17105 shlibpath_overrides_runpath=yes
17106
17107 # This implies no fast_install, which is unacceptable.
17108 # Some rework will be needed to allow for fast_install
17109 # before this can be enabled.
17110 hardcode_into_libs=yes
17111
17112 dynamic_linker='Android linker'
17113 # Don't embed -rpath directories since the linker doesn't support them.
17114 hardcode_libdir_flag_spec_CXX='-L$libdir'
17115 ;;
17116
17117 # This must be glibc/ELF.
17118 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17119 version_type=linux # correct to gnu/linux during the next big refactor
17120 need_lib_prefix=no
17121 need_version=no
17122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17123 soname_spec='$libname$release$shared_ext$major'
17124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17125 shlibpath_var=LD_LIBRARY_PATH
17126 shlibpath_overrides_runpath=no
17127
17128 # Some binutils ld are patched to set DT_RUNPATH
17129 if test ${lt_cv_shlibpath_overrides_runpath+y}
17130 then :
17131 printf %s "(cached) " >&6
17132 else $as_nop
17133 lt_cv_shlibpath_overrides_runpath=no
17134 save_LDFLAGS=$LDFLAGS
17135 save_libdir=$libdir
17136 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17137 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17139 /* end confdefs.h. */
17140
17141 int
17142 main (void)
17143 {
17144
17145 ;
17146 return 0;
17147 }
17148 _ACEOF
17149 if ac_fn_cxx_try_link "$LINENO"
17150 then :
17151 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17152 then :
17153 lt_cv_shlibpath_overrides_runpath=yes
17154 fi
17155 fi
17156 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17157 conftest$ac_exeext conftest.$ac_ext
17158 LDFLAGS=$save_LDFLAGS
17159 libdir=$save_libdir
17160
17161 fi
17162
17163 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17164
17165 # This implies no fast_install, which is unacceptable.
17166 # Some rework will be needed to allow for fast_install
17167 # before this can be enabled.
17168 hardcode_into_libs=yes
17169
17170 # Ideally, we could use ldconfig to report *all* directores which are
17171 # searched for libraries, however this is still not possible. Aside from not
17172 # being certain /sbin/ldconfig is available, command
17173 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17174 # even though it is searched at run-time. Try to do the best guess by
17175 # appending ld.so.conf contents (and includes) to the search path.
17176 if test -f /etc/ld.so.conf; then
17177 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' ' '`
17178 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17179 fi
17180
17181 # We used to test for /lib/ld.so.1 and disable shared libraries on
17182 # powerpc, because MkLinux only supported shared libraries with the
17183 # GNU dynamic linker. Since this was broken with cross compilers,
17184 # most powerpc-linux boxes support dynamic linking these days and
17185 # people can always --disable-shared, the test was removed, and we
17186 # assume the GNU/Linux dynamic linker is in use.
17187 dynamic_linker='GNU/Linux ld.so'
17188 ;;
17189
17190 netbsd*)
17191 version_type=sunos
17192 need_lib_prefix=no
17193 need_version=no
17194 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17195 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17197 dynamic_linker='NetBSD (a.out) ld.so'
17198 else
17199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17200 soname_spec='$libname$release$shared_ext$major'
17201 dynamic_linker='NetBSD ld.elf_so'
17202 fi
17203 shlibpath_var=LD_LIBRARY_PATH
17204 shlibpath_overrides_runpath=yes
17205 hardcode_into_libs=yes
17206 ;;
17207
17208 newsos6)
17209 version_type=linux # correct to gnu/linux during the next big refactor
17210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 shlibpath_overrides_runpath=yes
17213 ;;
17214
17215 *nto* | *qnx*)
17216 version_type=qnx
17217 need_lib_prefix=no
17218 need_version=no
17219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17220 soname_spec='$libname$release$shared_ext$major'
17221 shlibpath_var=LD_LIBRARY_PATH
17222 shlibpath_overrides_runpath=no
17223 hardcode_into_libs=yes
17224 dynamic_linker='ldqnx.so'
17225 ;;
17226
17227 openbsd* | bitrig*)
17228 version_type=sunos
17229 sys_lib_dlsearch_path_spec=/usr/lib
17230 need_lib_prefix=no
17231 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17232 need_version=no
17233 else
17234 need_version=yes
17235 fi
17236 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 shlibpath_overrides_runpath=yes
17240 ;;
17241
17242 os2*)
17243 libname_spec='$name'
17244 version_type=windows
17245 shrext_cmds=.dll
17246 need_version=no
17247 need_lib_prefix=no
17248 # OS/2 can only load a DLL with a base name of 8 characters or less.
17249 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17250 v=$($ECHO $release$versuffix | tr -d .-);
17251 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17252 $ECHO $n$v`$shared_ext'
17253 library_names_spec='${libname}_dll.$libext'
17254 dynamic_linker='OS/2 ld.exe'
17255 shlibpath_var=BEGINLIBPATH
17256 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17258 postinstall_cmds='base_file=`basename \$file`~
17259 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17260 dldir=$destdir/`dirname \$dlpath`~
17261 test -d \$dldir || mkdir -p \$dldir~
17262 $install_prog $dir/$dlname \$dldir/$dlname~
17263 chmod a+x \$dldir/$dlname~
17264 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17265 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17266 fi'
17267 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17268 dlpath=$dir/\$dldll~
17269 $RM \$dlpath'
17270 ;;
17271
17272 osf3* | osf4* | osf5*)
17273 version_type=osf
17274 need_lib_prefix=no
17275 need_version=no
17276 soname_spec='$libname$release$shared_ext$major'
17277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17278 shlibpath_var=LD_LIBRARY_PATH
17279 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17281 ;;
17282
17283 rdos*)
17284 dynamic_linker=no
17285 ;;
17286
17287 solaris*)
17288 version_type=linux # correct to gnu/linux during the next big refactor
17289 need_lib_prefix=no
17290 need_version=no
17291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17292 soname_spec='$libname$release$shared_ext$major'
17293 shlibpath_var=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath=yes
17295 hardcode_into_libs=yes
17296 # ldd complains unless libraries are executable
17297 postinstall_cmds='chmod +x $lib'
17298 ;;
17299
17300 sunos4*)
17301 version_type=sunos
17302 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17303 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath=yes
17306 if test yes = "$with_gnu_ld"; then
17307 need_lib_prefix=no
17308 fi
17309 need_version=yes
17310 ;;
17311
17312 sysv4 | sysv4.3*)
17313 version_type=linux # correct to gnu/linux during the next big refactor
17314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17315 soname_spec='$libname$release$shared_ext$major'
17316 shlibpath_var=LD_LIBRARY_PATH
17317 case $host_vendor in
17318 sni)
17319 shlibpath_overrides_runpath=no
17320 need_lib_prefix=no
17321 runpath_var=LD_RUN_PATH
17322 ;;
17323 siemens)
17324 need_lib_prefix=no
17325 ;;
17326 motorola)
17327 need_lib_prefix=no
17328 need_version=no
17329 shlibpath_overrides_runpath=no
17330 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17331 ;;
17332 esac
17333 ;;
17334
17335 sysv4*MP*)
17336 if test -d /usr/nec; then
17337 version_type=linux # correct to gnu/linux during the next big refactor
17338 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17339 soname_spec='$libname$shared_ext.$major'
17340 shlibpath_var=LD_LIBRARY_PATH
17341 fi
17342 ;;
17343
17344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17345 version_type=sco
17346 need_lib_prefix=no
17347 need_version=no
17348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17349 soname_spec='$libname$release$shared_ext$major'
17350 shlibpath_var=LD_LIBRARY_PATH
17351 shlibpath_overrides_runpath=yes
17352 hardcode_into_libs=yes
17353 if test yes = "$with_gnu_ld"; then
17354 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17355 else
17356 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17357 case $host_os in
17358 sco3.2v5*)
17359 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17360 ;;
17361 esac
17362 fi
17363 sys_lib_dlsearch_path_spec='/usr/lib'
17364 ;;
17365
17366 tpf*)
17367 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17368 version_type=linux # correct to gnu/linux during the next big refactor
17369 need_lib_prefix=no
17370 need_version=no
17371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17372 shlibpath_var=LD_LIBRARY_PATH
17373 shlibpath_overrides_runpath=no
17374 hardcode_into_libs=yes
17375 ;;
17376
17377 uts4*)
17378 version_type=linux # correct to gnu/linux during the next big refactor
17379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17380 soname_spec='$libname$release$shared_ext$major'
17381 shlibpath_var=LD_LIBRARY_PATH
17382 ;;
17383
17384 *)
17385 dynamic_linker=no
17386 ;;
17387 esac
17388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17389 printf "%s\n" "$dynamic_linker" >&6; }
17390 test no = "$dynamic_linker" && can_build_shared=no
17391
17392 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17393 if test yes = "$GCC"; then
17394 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17395 fi
17396
17397 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17398 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17399 fi
17400
17401 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17402 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17403 fi
17404
17405 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17406 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17407
17408 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17409 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17410
17411 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17412 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17454 printf %s "checking how to hardcode library paths into programs... " >&6; }
17455 hardcode_action_CXX=
17456 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17457 test -n "$runpath_var_CXX" ||
17458 test yes = "$hardcode_automatic_CXX"; then
17459
17460 # We can hardcode non-existent directories.
17461 if test no != "$hardcode_direct_CXX" &&
17462 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17463 # have to relink, otherwise we might link with an installed library
17464 # when we should be linking with a yet-to-be-installed one
17465 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17466 test no != "$hardcode_minus_L_CXX"; then
17467 # Linking always hardcodes the temporary library directory.
17468 hardcode_action_CXX=relink
17469 else
17470 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17471 hardcode_action_CXX=immediate
17472 fi
17473 else
17474 # We cannot hardcode anything, or else we can only hardcode existing
17475 # directories.
17476 hardcode_action_CXX=unsupported
17477 fi
17478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17479 printf "%s\n" "$hardcode_action_CXX" >&6; }
17480
17481 if test relink = "$hardcode_action_CXX" ||
17482 test yes = "$inherit_rpath_CXX"; then
17483 # Fast installation is not supported
17484 enable_fast_install=no
17485 elif test yes = "$shlibpath_overrides_runpath" ||
17486 test no = "$enable_shared"; then
17487 # Fast installation is not necessary
17488 enable_fast_install=needless
17489 fi
17490
17491
17492
17493
17494
17495
17496
17497 fi # test -n "$compiler"
17498
17499 CC=$lt_save_CC
17500 CFLAGS=$lt_save_CFLAGS
17501 LDCXX=$LD
17502 LD=$lt_save_LD
17503 GCC=$lt_save_GCC
17504 with_gnu_ld=$lt_save_with_gnu_ld
17505 lt_cv_path_LDCXX=$lt_cv_path_LD
17506 lt_cv_path_LD=$lt_save_path_LD
17507 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17508 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17509 fi # test yes != "$_lt_caught_CXX_error"
17510
17511 ac_ext=c
17512 ac_cpp='$CPP $CPPFLAGS'
17513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17516
17517
17518 ac_ext=cpp
17519 ac_cpp='$CXXCPP $CPPFLAGS'
17520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17523
17524
17525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for STL slist extension" >&5
17526 printf %s "checking for STL slist extension... " >&6; }
17527
17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529 /* end confdefs.h. */
17530 #include <slist>
17531 int
17532 main (void)
17533 {
17534 slist<int> l
17535 ;
17536 return 0;
17537 }
17538 _ACEOF
17539 if ac_fn_cxx_try_compile "$LINENO"
17540 then :
17541
17542 printf "%s\n" "#define HAVE_GLOBAL_SLIST 1" >>confdefs.h
17543
17544 else $as_nop
17545 TRY_NEXT=yes
17546 fi
17547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17548
17549 if test -z "$TRY_NEXT"
17550 then
17551 SLIST_LOC="<slist>, global scope"
17552 else
17553 TRY_NEXT=""
17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555 /* end confdefs.h. */
17556 #include <slist>
17557 int
17558 main (void)
17559 {
17560 std::slist<int> l
17561 ;
17562 return 0;
17563 }
17564 _ACEOF
17565 if ac_fn_cxx_try_compile "$LINENO"
17566 then :
17567
17568 printf "%s\n" "#define HAVE_STD_SLIST 1" >>confdefs.h
17569
17570 else $as_nop
17571 TRY_NEXT=yes
17572 fi
17573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17574
17575 if test -z "$TRY_NEXT"
17576 then
17577 SLIST_LOC="<slist>, namespace std"
17578 else
17579 TRY_NEXT=""
17580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h. */
17582 #include <ext/slist>
17583 int
17584 main (void)
17585 {
17586 __gnu_cxx::slist<int> l
17587 ;
17588 return 0;
17589 }
17590 _ACEOF
17591 if ac_fn_cxx_try_compile "$LINENO"
17592 then :
17593
17594 printf "%s\n" "#define HAVE_EXT_SLIST 1" >>confdefs.h
17595
17596 else $as_nop
17597 SLIST_LOC="not found"
17598 fi
17599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17600
17601 if test -z "$SLIST_LOC"
17602 then
17603 SLIST_LOC="<ext/slist>, namespace __gnu_cxx"
17604 fi
17605 fi
17606 fi
17607
17608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SLIST_LOC" >&5
17609 printf "%s\n" "$SLIST_LOC" >&6; }
17610
17611 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=false
17612 ac_ext=cpp
17613 ac_cpp='$CXXCPP $CPPFLAGS'
17614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17617 ac_success=no
17618
17619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17620 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
17621 if test ${ax_cv_cxx_compile_cxx11+y}
17622 then :
17623 printf %s "(cached) " >&6
17624 else $as_nop
17625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h. */
17627
17628
17629 // If the compiler admits that it is not ready for C++11, why torture it?
17630 // Hopefully, this will speed up the test.
17631
17632 #ifndef __cplusplus
17633
17634 #error "This is not a C++ compiler"
17635
17636 #elif __cplusplus < 201103L
17637
17638 #error "This is not a C++11 compiler"
17639
17640 #else
17641
17642 namespace cxx11
17643 {
17644
17645 namespace test_static_assert
17646 {
17647
17648 template <typename T>
17649 struct check
17650 {
17651 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17652 };
17653
17654 }
17655
17656 namespace test_final_override
17657 {
17658
17659 struct Base
17660 {
17661 virtual ~Base() {}
17662 virtual void f() {}
17663 };
17664
17665 struct Derived : public Base
17666 {
17667 virtual ~Derived() override {}
17668 virtual void f() override {}
17669 };
17670
17671 }
17672
17673 namespace test_double_right_angle_brackets
17674 {
17675
17676 template < typename T >
17677 struct check {};
17678
17679 typedef check<void> single_type;
17680 typedef check<check<void>> double_type;
17681 typedef check<check<check<void>>> triple_type;
17682 typedef check<check<check<check<void>>>> quadruple_type;
17683
17684 }
17685
17686 namespace test_decltype
17687 {
17688
17689 int
17690 f()
17691 {
17692 int a = 1;
17693 decltype(a) b = 2;
17694 return a + b;
17695 }
17696
17697 }
17698
17699 namespace test_type_deduction
17700 {
17701
17702 template < typename T1, typename T2 >
17703 struct is_same
17704 {
17705 static const bool value = false;
17706 };
17707
17708 template < typename T >
17709 struct is_same<T, T>
17710 {
17711 static const bool value = true;
17712 };
17713
17714 template < typename T1, typename T2 >
17715 auto
17716 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17717 {
17718 return a1 + a2;
17719 }
17720
17721 int
17722 test(const int c, volatile int v)
17723 {
17724 static_assert(is_same<int, decltype(0)>::value == true, "");
17725 static_assert(is_same<int, decltype(c)>::value == false, "");
17726 static_assert(is_same<int, decltype(v)>::value == false, "");
17727 auto ac = c;
17728 auto av = v;
17729 auto sumi = ac + av + 'x';
17730 auto sumf = ac + av + 1.0;
17731 static_assert(is_same<int, decltype(ac)>::value == true, "");
17732 static_assert(is_same<int, decltype(av)>::value == true, "");
17733 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17734 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17735 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17736 return (sumf > 0.0) ? sumi : add(c, v);
17737 }
17738
17739 }
17740
17741 namespace test_noexcept
17742 {
17743
17744 int f() { return 0; }
17745 int g() noexcept { return 0; }
17746
17747 static_assert(noexcept(f()) == false, "");
17748 static_assert(noexcept(g()) == true, "");
17749
17750 }
17751
17752 namespace test_constexpr
17753 {
17754
17755 template < typename CharT >
17756 unsigned long constexpr
17757 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17758 {
17759 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17760 }
17761
17762 template < typename CharT >
17763 unsigned long constexpr
17764 strlen_c(const CharT *const s) noexcept
17765 {
17766 return strlen_c_r(s, 0UL);
17767 }
17768
17769 static_assert(strlen_c("") == 0UL, "");
17770 static_assert(strlen_c("1") == 1UL, "");
17771 static_assert(strlen_c("example") == 7UL, "");
17772 static_assert(strlen_c("another\0example") == 7UL, "");
17773
17774 }
17775
17776 namespace test_rvalue_references
17777 {
17778
17779 template < int N >
17780 struct answer
17781 {
17782 static constexpr int value = N;
17783 };
17784
17785 answer<1> f(int&) { return answer<1>(); }
17786 answer<2> f(const int&) { return answer<2>(); }
17787 answer<3> f(int&&) { return answer<3>(); }
17788
17789 void
17790 test()
17791 {
17792 int i = 0;
17793 const int c = 0;
17794 static_assert(decltype(f(i))::value == 1, "");
17795 static_assert(decltype(f(c))::value == 2, "");
17796 static_assert(decltype(f(0))::value == 3, "");
17797 }
17798
17799 }
17800
17801 namespace test_uniform_initialization
17802 {
17803
17804 struct test
17805 {
17806 static const int zero {};
17807 static const int one {1};
17808 };
17809
17810 static_assert(test::zero == 0, "");
17811 static_assert(test::one == 1, "");
17812
17813 }
17814
17815 namespace test_lambdas
17816 {
17817
17818 void
17819 test1()
17820 {
17821 auto lambda1 = [](){};
17822 auto lambda2 = lambda1;
17823 lambda1();
17824 lambda2();
17825 }
17826
17827 int
17828 test2()
17829 {
17830 auto a = [](int i, int j){ return i + j; }(1, 2);
17831 auto b = []() -> int { return '0'; }();
17832 auto c = [=](){ return a + b; }();
17833 auto d = [&](){ return c; }();
17834 auto e = [a, &b](int x) mutable {
17835 const auto identity = [](int y){ return y; };
17836 for (auto i = 0; i < a; ++i)
17837 a += b--;
17838 return x + identity(a + b);
17839 }(0);
17840 return a + b + c + d + e;
17841 }
17842
17843 int
17844 test3()
17845 {
17846 const auto nullary = [](){ return 0; };
17847 const auto unary = [](int x){ return x; };
17848 using nullary_t = decltype(nullary);
17849 using unary_t = decltype(unary);
17850 const auto higher1st = [](nullary_t f){ return f(); };
17851 const auto higher2nd = [unary](nullary_t f1){
17852 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17853 };
17854 return higher1st(nullary) + higher2nd(nullary)(unary);
17855 }
17856
17857 }
17858
17859 namespace test_variadic_templates
17860 {
17861
17862 template <int...>
17863 struct sum;
17864
17865 template <int N0, int... N1toN>
17866 struct sum<N0, N1toN...>
17867 {
17868 static constexpr auto value = N0 + sum<N1toN...>::value;
17869 };
17870
17871 template <>
17872 struct sum<>
17873 {
17874 static constexpr auto value = 0;
17875 };
17876
17877 static_assert(sum<>::value == 0, "");
17878 static_assert(sum<1>::value == 1, "");
17879 static_assert(sum<23>::value == 23, "");
17880 static_assert(sum<1, 2>::value == 3, "");
17881 static_assert(sum<5, 5, 11>::value == 21, "");
17882 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17883
17884 }
17885
17886 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17887 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17888 // because of this.
17889 namespace test_template_alias_sfinae
17890 {
17891
17892 struct foo {};
17893
17894 template<typename T>
17895 using member = typename T::member_type;
17896
17897 template<typename T>
17898 void func(...) {}
17899
17900 template<typename T>
17901 void func(member<T>*) {}
17902
17903 void test();
17904
17905 void test() { func<foo>(0); }
17906
17907 }
17908
17909 } // namespace cxx11
17910
17911 #endif // __cplusplus >= 201103L
17912
17913
17914
17915 _ACEOF
17916 if ac_fn_cxx_try_compile "$LINENO"
17917 then :
17918 ax_cv_cxx_compile_cxx11=yes
17919 else $as_nop
17920 ax_cv_cxx_compile_cxx11=no
17921 fi
17922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17923 fi
17924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
17925 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
17926 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
17927 ac_success=yes
17928 fi
17929
17930 if test x$ac_success = xno; then
17931 for alternative in ${ax_cxx_compile_alternatives}; do
17932 switch="-std=gnu++${alternative}"
17933 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17935 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
17936 if eval test \${$cachevar+y}
17937 then :
17938 printf %s "(cached) " >&6
17939 else $as_nop
17940 ac_save_CXX="$CXX"
17941 CXX="$CXX $switch"
17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17943 /* end confdefs.h. */
17944
17945
17946 // If the compiler admits that it is not ready for C++11, why torture it?
17947 // Hopefully, this will speed up the test.
17948
17949 #ifndef __cplusplus
17950
17951 #error "This is not a C++ compiler"
17952
17953 #elif __cplusplus < 201103L
17954
17955 #error "This is not a C++11 compiler"
17956
17957 #else
17958
17959 namespace cxx11
17960 {
17961
17962 namespace test_static_assert
17963 {
17964
17965 template <typename T>
17966 struct check
17967 {
17968 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17969 };
17970
17971 }
17972
17973 namespace test_final_override
17974 {
17975
17976 struct Base
17977 {
17978 virtual ~Base() {}
17979 virtual void f() {}
17980 };
17981
17982 struct Derived : public Base
17983 {
17984 virtual ~Derived() override {}
17985 virtual void f() override {}
17986 };
17987
17988 }
17989
17990 namespace test_double_right_angle_brackets
17991 {
17992
17993 template < typename T >
17994 struct check {};
17995
17996 typedef check<void> single_type;
17997 typedef check<check<void>> double_type;
17998 typedef check<check<check<void>>> triple_type;
17999 typedef check<check<check<check<void>>>> quadruple_type;
18000
18001 }
18002
18003 namespace test_decltype
18004 {
18005
18006 int
18007 f()
18008 {
18009 int a = 1;
18010 decltype(a) b = 2;
18011 return a + b;
18012 }
18013
18014 }
18015
18016 namespace test_type_deduction
18017 {
18018
18019 template < typename T1, typename T2 >
18020 struct is_same
18021 {
18022 static const bool value = false;
18023 };
18024
18025 template < typename T >
18026 struct is_same<T, T>
18027 {
18028 static const bool value = true;
18029 };
18030
18031 template < typename T1, typename T2 >
18032 auto
18033 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18034 {
18035 return a1 + a2;
18036 }
18037
18038 int
18039 test(const int c, volatile int v)
18040 {
18041 static_assert(is_same<int, decltype(0)>::value == true, "");
18042 static_assert(is_same<int, decltype(c)>::value == false, "");
18043 static_assert(is_same<int, decltype(v)>::value == false, "");
18044 auto ac = c;
18045 auto av = v;
18046 auto sumi = ac + av + 'x';
18047 auto sumf = ac + av + 1.0;
18048 static_assert(is_same<int, decltype(ac)>::value == true, "");
18049 static_assert(is_same<int, decltype(av)>::value == true, "");
18050 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18051 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18052 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18053 return (sumf > 0.0) ? sumi : add(c, v);
18054 }
18055
18056 }
18057
18058 namespace test_noexcept
18059 {
18060
18061 int f() { return 0; }
18062 int g() noexcept { return 0; }
18063
18064 static_assert(noexcept(f()) == false, "");
18065 static_assert(noexcept(g()) == true, "");
18066
18067 }
18068
18069 namespace test_constexpr
18070 {
18071
18072 template < typename CharT >
18073 unsigned long constexpr
18074 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18075 {
18076 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18077 }
18078
18079 template < typename CharT >
18080 unsigned long constexpr
18081 strlen_c(const CharT *const s) noexcept
18082 {
18083 return strlen_c_r(s, 0UL);
18084 }
18085
18086 static_assert(strlen_c("") == 0UL, "");
18087 static_assert(strlen_c("1") == 1UL, "");
18088 static_assert(strlen_c("example") == 7UL, "");
18089 static_assert(strlen_c("another\0example") == 7UL, "");
18090
18091 }
18092
18093 namespace test_rvalue_references
18094 {
18095
18096 template < int N >
18097 struct answer
18098 {
18099 static constexpr int value = N;
18100 };
18101
18102 answer<1> f(int&) { return answer<1>(); }
18103 answer<2> f(const int&) { return answer<2>(); }
18104 answer<3> f(int&&) { return answer<3>(); }
18105
18106 void
18107 test()
18108 {
18109 int i = 0;
18110 const int c = 0;
18111 static_assert(decltype(f(i))::value == 1, "");
18112 static_assert(decltype(f(c))::value == 2, "");
18113 static_assert(decltype(f(0))::value == 3, "");
18114 }
18115
18116 }
18117
18118 namespace test_uniform_initialization
18119 {
18120
18121 struct test
18122 {
18123 static const int zero {};
18124 static const int one {1};
18125 };
18126
18127 static_assert(test::zero == 0, "");
18128 static_assert(test::one == 1, "");
18129
18130 }
18131
18132 namespace test_lambdas
18133 {
18134
18135 void
18136 test1()
18137 {
18138 auto lambda1 = [](){};
18139 auto lambda2 = lambda1;
18140 lambda1();
18141 lambda2();
18142 }
18143
18144 int
18145 test2()
18146 {
18147 auto a = [](int i, int j){ return i + j; }(1, 2);
18148 auto b = []() -> int { return '0'; }();
18149 auto c = [=](){ return a + b; }();
18150 auto d = [&](){ return c; }();
18151 auto e = [a, &b](int x) mutable {
18152 const auto identity = [](int y){ return y; };
18153 for (auto i = 0; i < a; ++i)
18154 a += b--;
18155 return x + identity(a + b);
18156 }(0);
18157 return a + b + c + d + e;
18158 }
18159
18160 int
18161 test3()
18162 {
18163 const auto nullary = [](){ return 0; };
18164 const auto unary = [](int x){ return x; };
18165 using nullary_t = decltype(nullary);
18166 using unary_t = decltype(unary);
18167 const auto higher1st = [](nullary_t f){ return f(); };
18168 const auto higher2nd = [unary](nullary_t f1){
18169 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18170 };
18171 return higher1st(nullary) + higher2nd(nullary)(unary);
18172 }
18173
18174 }
18175
18176 namespace test_variadic_templates
18177 {
18178
18179 template <int...>
18180 struct sum;
18181
18182 template <int N0, int... N1toN>
18183 struct sum<N0, N1toN...>
18184 {
18185 static constexpr auto value = N0 + sum<N1toN...>::value;
18186 };
18187
18188 template <>
18189 struct sum<>
18190 {
18191 static constexpr auto value = 0;
18192 };
18193
18194 static_assert(sum<>::value == 0, "");
18195 static_assert(sum<1>::value == 1, "");
18196 static_assert(sum<23>::value == 23, "");
18197 static_assert(sum<1, 2>::value == 3, "");
18198 static_assert(sum<5, 5, 11>::value == 21, "");
18199 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18200
18201 }
18202
18203 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18204 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18205 // because of this.
18206 namespace test_template_alias_sfinae
18207 {
18208
18209 struct foo {};
18210
18211 template<typename T>
18212 using member = typename T::member_type;
18213
18214 template<typename T>
18215 void func(...) {}
18216
18217 template<typename T>
18218 void func(member<T>*) {}
18219
18220 void test();
18221
18222 void test() { func<foo>(0); }
18223
18224 }
18225
18226 } // namespace cxx11
18227
18228 #endif // __cplusplus >= 201103L
18229
18230
18231
18232 _ACEOF
18233 if ac_fn_cxx_try_compile "$LINENO"
18234 then :
18235 eval $cachevar=yes
18236 else $as_nop
18237 eval $cachevar=no
18238 fi
18239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18240 CXX="$ac_save_CXX"
18241 fi
18242 eval ac_res=\$$cachevar
18243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18244 printf "%s\n" "$ac_res" >&6; }
18245 if eval test x\$$cachevar = xyes; then
18246 CXX="$CXX $switch"
18247 if test -n "$CXXCPP" ; then
18248 CXXCPP="$CXXCPP $switch"
18249 fi
18250 ac_success=yes
18251 break
18252 fi
18253 done
18254 fi
18255
18256 if test x$ac_success = xno; then
18257 for alternative in ${ax_cxx_compile_alternatives}; do
18258 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
18259 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18261 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
18262 if eval test \${$cachevar+y}
18263 then :
18264 printf %s "(cached) " >&6
18265 else $as_nop
18266 ac_save_CXX="$CXX"
18267 CXX="$CXX $switch"
18268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18270
18271
18272 // If the compiler admits that it is not ready for C++11, why torture it?
18273 // Hopefully, this will speed up the test.
18274
18275 #ifndef __cplusplus
18276
18277 #error "This is not a C++ compiler"
18278
18279 #elif __cplusplus < 201103L
18280
18281 #error "This is not a C++11 compiler"
18282
18283 #else
18284
18285 namespace cxx11
18286 {
18287
18288 namespace test_static_assert
18289 {
18290
18291 template <typename T>
18292 struct check
18293 {
18294 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18295 };
18296
18297 }
18298
18299 namespace test_final_override
18300 {
18301
18302 struct Base
18303 {
18304 virtual ~Base() {}
18305 virtual void f() {}
18306 };
18307
18308 struct Derived : public Base
18309 {
18310 virtual ~Derived() override {}
18311 virtual void f() override {}
18312 };
18313
18314 }
18315
18316 namespace test_double_right_angle_brackets
18317 {
18318
18319 template < typename T >
18320 struct check {};
18321
18322 typedef check<void> single_type;
18323 typedef check<check<void>> double_type;
18324 typedef check<check<check<void>>> triple_type;
18325 typedef check<check<check<check<void>>>> quadruple_type;
18326
18327 }
18328
18329 namespace test_decltype
18330 {
18331
18332 int
18333 f()
18334 {
18335 int a = 1;
18336 decltype(a) b = 2;
18337 return a + b;
18338 }
18339
18340 }
18341
18342 namespace test_type_deduction
18343 {
18344
18345 template < typename T1, typename T2 >
18346 struct is_same
18347 {
18348 static const bool value = false;
18349 };
18350
18351 template < typename T >
18352 struct is_same<T, T>
18353 {
18354 static const bool value = true;
18355 };
18356
18357 template < typename T1, typename T2 >
18358 auto
18359 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18360 {
18361 return a1 + a2;
18362 }
18363
18364 int
18365 test(const int c, volatile int v)
18366 {
18367 static_assert(is_same<int, decltype(0)>::value == true, "");
18368 static_assert(is_same<int, decltype(c)>::value == false, "");
18369 static_assert(is_same<int, decltype(v)>::value == false, "");
18370 auto ac = c;
18371 auto av = v;
18372 auto sumi = ac + av + 'x';
18373 auto sumf = ac + av + 1.0;
18374 static_assert(is_same<int, decltype(ac)>::value == true, "");
18375 static_assert(is_same<int, decltype(av)>::value == true, "");
18376 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18377 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18378 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18379 return (sumf > 0.0) ? sumi : add(c, v);
18380 }
18381
18382 }
18383
18384 namespace test_noexcept
18385 {
18386
18387 int f() { return 0; }
18388 int g() noexcept { return 0; }
18389
18390 static_assert(noexcept(f()) == false, "");
18391 static_assert(noexcept(g()) == true, "");
18392
18393 }
18394
18395 namespace test_constexpr
18396 {
18397
18398 template < typename CharT >
18399 unsigned long constexpr
18400 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18401 {
18402 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18403 }
18404
18405 template < typename CharT >
18406 unsigned long constexpr
18407 strlen_c(const CharT *const s) noexcept
18408 {
18409 return strlen_c_r(s, 0UL);
18410 }
18411
18412 static_assert(strlen_c("") == 0UL, "");
18413 static_assert(strlen_c("1") == 1UL, "");
18414 static_assert(strlen_c("example") == 7UL, "");
18415 static_assert(strlen_c("another\0example") == 7UL, "");
18416
18417 }
18418
18419 namespace test_rvalue_references
18420 {
18421
18422 template < int N >
18423 struct answer
18424 {
18425 static constexpr int value = N;
18426 };
18427
18428 answer<1> f(int&) { return answer<1>(); }
18429 answer<2> f(const int&) { return answer<2>(); }
18430 answer<3> f(int&&) { return answer<3>(); }
18431
18432 void
18433 test()
18434 {
18435 int i = 0;
18436 const int c = 0;
18437 static_assert(decltype(f(i))::value == 1, "");
18438 static_assert(decltype(f(c))::value == 2, "");
18439 static_assert(decltype(f(0))::value == 3, "");
18440 }
18441
18442 }
18443
18444 namespace test_uniform_initialization
18445 {
18446
18447 struct test
18448 {
18449 static const int zero {};
18450 static const int one {1};
18451 };
18452
18453 static_assert(test::zero == 0, "");
18454 static_assert(test::one == 1, "");
18455
18456 }
18457
18458 namespace test_lambdas
18459 {
18460
18461 void
18462 test1()
18463 {
18464 auto lambda1 = [](){};
18465 auto lambda2 = lambda1;
18466 lambda1();
18467 lambda2();
18468 }
18469
18470 int
18471 test2()
18472 {
18473 auto a = [](int i, int j){ return i + j; }(1, 2);
18474 auto b = []() -> int { return '0'; }();
18475 auto c = [=](){ return a + b; }();
18476 auto d = [&](){ return c; }();
18477 auto e = [a, &b](int x) mutable {
18478 const auto identity = [](int y){ return y; };
18479 for (auto i = 0; i < a; ++i)
18480 a += b--;
18481 return x + identity(a + b);
18482 }(0);
18483 return a + b + c + d + e;
18484 }
18485
18486 int
18487 test3()
18488 {
18489 const auto nullary = [](){ return 0; };
18490 const auto unary = [](int x){ return x; };
18491 using nullary_t = decltype(nullary);
18492 using unary_t = decltype(unary);
18493 const auto higher1st = [](nullary_t f){ return f(); };
18494 const auto higher2nd = [unary](nullary_t f1){
18495 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18496 };
18497 return higher1st(nullary) + higher2nd(nullary)(unary);
18498 }
18499
18500 }
18501
18502 namespace test_variadic_templates
18503 {
18504
18505 template <int...>
18506 struct sum;
18507
18508 template <int N0, int... N1toN>
18509 struct sum<N0, N1toN...>
18510 {
18511 static constexpr auto value = N0 + sum<N1toN...>::value;
18512 };
18513
18514 template <>
18515 struct sum<>
18516 {
18517 static constexpr auto value = 0;
18518 };
18519
18520 static_assert(sum<>::value == 0, "");
18521 static_assert(sum<1>::value == 1, "");
18522 static_assert(sum<23>::value == 23, "");
18523 static_assert(sum<1, 2>::value == 3, "");
18524 static_assert(sum<5, 5, 11>::value == 21, "");
18525 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18526
18527 }
18528
18529 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18530 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18531 // because of this.
18532 namespace test_template_alias_sfinae
18533 {
18534
18535 struct foo {};
18536
18537 template<typename T>
18538 using member = typename T::member_type;
18539
18540 template<typename T>
18541 void func(...) {}
18542
18543 template<typename T>
18544 void func(member<T>*) {}
18545
18546 void test();
18547
18548 void test() { func<foo>(0); }
18549
18550 }
18551
18552 } // namespace cxx11
18553
18554 #endif // __cplusplus >= 201103L
18555
18556
18557
18558 _ACEOF
18559 if ac_fn_cxx_try_compile "$LINENO"
18560 then :
18561 eval $cachevar=yes
18562 else $as_nop
18563 eval $cachevar=no
18564 fi
18565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18566 CXX="$ac_save_CXX"
18567 fi
18568 eval ac_res=\$$cachevar
18569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18570 printf "%s\n" "$ac_res" >&6; }
18571 if eval test x\$$cachevar = xyes; then
18572 CXX="$CXX $switch"
18573 if test -n "$CXXCPP" ; then
18574 CXXCPP="$CXXCPP $switch"
18575 fi
18576 ac_success=yes
18577 break
18578 fi
18579 done
18580 if test x$ac_success = xyes; then
18581 break
18582 fi
18583 done
18584 fi
18585 ac_ext=cpp
18586 ac_cpp='$CXXCPP $CPPFLAGS'
18587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18590
18591 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18592 if test x$ac_success = xno; then
18593 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18594 fi
18595 fi
18596 if test x$ac_success = xno; then
18597 HAVE_CXX11=0
18598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18599 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
18600 else
18601 HAVE_CXX11=1
18602
18603 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
18604
18605 fi
18606
18607
18608
18609
18610 # Include Bakefile macros
18611
18612
18613
18614
18615
18616
18617 ac_ext=c
18618 ac_cpp='$CPP $CPPFLAGS'
18619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18622
18623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the Intel C compiler" >&5
18624 printf %s "checking whether we are using the Intel C compiler... " >&6; }
18625 if test ${bakefile_cv_c_compiler___INTEL_COMPILER+y}
18626 then :
18627 printf %s "(cached) " >&6
18628 else $as_nop
18629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18630 /* end confdefs.h. */
18631
18632 int
18633 main (void)
18634 {
18635
18636 #ifndef __INTEL_COMPILER
18637 choke me
18638 #endif
18639
18640 ;
18641 return 0;
18642 }
18643 _ACEOF
18644 if ac_fn_c_try_compile "$LINENO"
18645 then :
18646 bakefile_cv_c_compiler___INTEL_COMPILER=yes
18647 else $as_nop
18648 bakefile_cv_c_compiler___INTEL_COMPILER=no
18649
18650 fi
18651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18652
18653
18654 fi
18655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
18656 printf "%s\n" "$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
18657 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
18658 :; INTELCC=yes
18659 else
18660 :;
18661 fi
18662 ac_ext=cpp
18663 ac_cpp='$CXXCPP $CPPFLAGS'
18664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18667
18668
18669
18670
18671 if test "$INTELCC" = "yes"; then
18672
18673
18674 ac_ext=c
18675 ac_cpp='$CPP $CPPFLAGS'
18676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18679
18680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C compiler v8 or later" >&5
18681 printf %s "checking whether we are using Intel C compiler v8 or later... " >&6; }
18682 if test ${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+y}
18683 then :
18684 printf %s "(cached) " >&6
18685 else $as_nop
18686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18687 /* end confdefs.h. */
18688
18689 int
18690 main (void)
18691 {
18692
18693 #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
18694 choke me
18695 #endif
18696
18697 ;
18698 return 0;
18699 }
18700 _ACEOF
18701 if ac_fn_c_try_compile "$LINENO"
18702 then :
18703 bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
18704 else $as_nop
18705 bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
18706
18707 fi
18708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18709
18710
18711 fi
18712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
18713 printf "%s\n" "$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
18714 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
18715 :; INTELCC8=yes
18716 else
18717 :;
18718 fi
18719 ac_ext=cpp
18720 ac_cpp='$CXXCPP $CPPFLAGS'
18721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18724
18725
18726
18727
18728
18729 ac_ext=c
18730 ac_cpp='$CPP $CPPFLAGS'
18731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18734
18735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C compiler v10 or later" >&5
18736 printf %s "checking whether we are using Intel C compiler v10 or later... " >&6; }
18737 if test ${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+y}
18738 then :
18739 printf %s "(cached) " >&6
18740 else $as_nop
18741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h. */
18743
18744 int
18745 main (void)
18746 {
18747
18748 #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
18749 choke me
18750 #endif
18751
18752 ;
18753 return 0;
18754 }
18755 _ACEOF
18756 if ac_fn_c_try_compile "$LINENO"
18757 then :
18758 bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
18759 else $as_nop
18760 bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
18761
18762 fi
18763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18764
18765
18766 fi
18767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
18768 printf "%s\n" "$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
18769 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
18770 :; INTELCC10=yes
18771 else
18772 :;
18773 fi
18774 ac_ext=cpp
18775 ac_cpp='$CXXCPP $CPPFLAGS'
18776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18779
18780
18781
18782 fi
18783
18784 if test "x$GCC" != "xyes"; then
18785 case `uname -s` in
18786 AIX*)
18787
18788
18789 ac_ext=c
18790 ac_cpp='$CPP $CPPFLAGS'
18791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18794
18795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C compiler" >&5
18796 printf %s "checking whether we are using the IBM xlC C compiler... " >&6; }
18797 if test ${bakefile_cv_c_compiler___xlC__+y}
18798 then :
18799 printf %s "(cached) " >&6
18800 else $as_nop
18801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18802 /* end confdefs.h. */
18803
18804 int
18805 main (void)
18806 {
18807
18808 #ifndef __xlC__
18809 choke me
18810 #endif
18811
18812 ;
18813 return 0;
18814 }
18815 _ACEOF
18816 if ac_fn_c_try_compile "$LINENO"
18817 then :
18818 bakefile_cv_c_compiler___xlC__=yes
18819 else $as_nop
18820 bakefile_cv_c_compiler___xlC__=no
18821
18822 fi
18823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18824
18825
18826 fi
18827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___xlC__" >&5
18828 printf "%s\n" "$bakefile_cv_c_compiler___xlC__" >&6; }
18829 if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
18830 :; XLCC=yes
18831 else
18832 :;
18833 fi
18834 ac_ext=cpp
18835 ac_cpp='$CXXCPP $CPPFLAGS'
18836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18839
18840
18841
18842 ;;
18843
18844 Darwin)
18845
18846
18847 ac_ext=c
18848 ac_cpp='$CPP $CPPFLAGS'
18849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18852
18853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C compiler" >&5
18854 printf %s "checking whether we are using the IBM xlC C compiler... " >&6; }
18855 if test ${bakefile_cv_c_compiler___xlC__+y}
18856 then :
18857 printf %s "(cached) " >&6
18858 else $as_nop
18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18861
18862 int
18863 main (void)
18864 {
18865
18866 #ifndef __xlC__
18867 choke me
18868 #endif
18869
18870 ;
18871 return 0;
18872 }
18873 _ACEOF
18874 if ac_fn_c_try_compile "$LINENO"
18875 then :
18876 bakefile_cv_c_compiler___xlC__=yes
18877 else $as_nop
18878 bakefile_cv_c_compiler___xlC__=no
18879
18880 fi
18881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18882
18883
18884 fi
18885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___xlC__" >&5
18886 printf "%s\n" "$bakefile_cv_c_compiler___xlC__" >&6; }
18887 if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
18888 :; XLCC=yes
18889 else
18890 :;
18891 fi
18892 ac_ext=cpp
18893 ac_cpp='$CXXCPP $CPPFLAGS'
18894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18897
18898
18899
18900 ;;
18901
18902 IRIX*)
18903
18904
18905 ac_ext=c
18906 ac_cpp='$CPP $CPPFLAGS'
18907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18910
18911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the SGI C compiler" >&5
18912 printf %s "checking whether we are using the SGI C compiler... " >&6; }
18913 if test ${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+y}
18914 then :
18915 printf %s "(cached) " >&6
18916 else $as_nop
18917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918 /* end confdefs.h. */
18919
18920 int
18921 main (void)
18922 {
18923
18924 #ifndef _SGI_COMPILER_VERSION
18925 choke me
18926 #endif
18927
18928 ;
18929 return 0;
18930 }
18931 _ACEOF
18932 if ac_fn_c_try_compile "$LINENO"
18933 then :
18934 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
18935 else $as_nop
18936 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
18937
18938 fi
18939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18940
18941
18942 fi
18943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
18944 printf "%s\n" "$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
18945 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18946 :; SGICC=yes
18947 else
18948 :;
18949 fi
18950 ac_ext=cpp
18951 ac_cpp='$CXXCPP $CPPFLAGS'
18952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18955
18956
18957
18958 ;;
18959
18960 Linux*)
18961 if test "$INTELCC" != "yes"; then
18962
18963
18964 ac_ext=c
18965 ac_cpp='$CPP $CPPFLAGS'
18966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18969
18970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C compiler" >&5
18971 printf %s "checking whether we are using the Sun C compiler... " >&6; }
18972 if test ${bakefile_cv_c_compiler___SUNPRO_C+y}
18973 then :
18974 printf %s "(cached) " >&6
18975 else $as_nop
18976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18977 /* end confdefs.h. */
18978
18979 int
18980 main (void)
18981 {
18982
18983 #ifndef __SUNPRO_C
18984 choke me
18985 #endif
18986
18987 ;
18988 return 0;
18989 }
18990 _ACEOF
18991 if ac_fn_c_try_compile "$LINENO"
18992 then :
18993 bakefile_cv_c_compiler___SUNPRO_C=yes
18994 else $as_nop
18995 bakefile_cv_c_compiler___SUNPRO_C=no
18996
18997 fi
18998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18999
19000
19001 fi
19002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
19003 printf "%s\n" "$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
19004 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
19005 :; SUNCC=yes
19006 else
19007 :;
19008 fi
19009 ac_ext=cpp
19010 ac_cpp='$CXXCPP $CPPFLAGS'
19011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19014
19015
19016
19017 fi
19018 ;;
19019
19020 HP-UX*)
19021
19022
19023 ac_ext=c
19024 ac_cpp='$CPP $CPPFLAGS'
19025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19028
19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the HP C compiler" >&5
19030 printf %s "checking whether we are using the HP C compiler... " >&6; }
19031 if test ${bakefile_cv_c_compiler___HP_cc+y}
19032 then :
19033 printf %s "(cached) " >&6
19034 else $as_nop
19035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19036 /* end confdefs.h. */
19037
19038 int
19039 main (void)
19040 {
19041
19042 #ifndef __HP_cc
19043 choke me
19044 #endif
19045
19046 ;
19047 return 0;
19048 }
19049 _ACEOF
19050 if ac_fn_c_try_compile "$LINENO"
19051 then :
19052 bakefile_cv_c_compiler___HP_cc=yes
19053 else $as_nop
19054 bakefile_cv_c_compiler___HP_cc=no
19055
19056 fi
19057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19058
19059
19060 fi
19061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___HP_cc" >&5
19062 printf "%s\n" "$bakefile_cv_c_compiler___HP_cc" >&6; }
19063 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
19064 :; HPCC=yes
19065 else
19066 :;
19067 fi
19068 ac_ext=cpp
19069 ac_cpp='$CXXCPP $CPPFLAGS'
19070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19073
19074
19075
19076 ;;
19077
19078 OSF1)
19079
19080
19081 ac_ext=c
19082 ac_cpp='$CPP $CPPFLAGS'
19083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19086
19087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the Compaq C compiler" >&5
19088 printf %s "checking whether we are using the Compaq C compiler... " >&6; }
19089 if test ${bakefile_cv_c_compiler___DECC+y}
19090 then :
19091 printf %s "(cached) " >&6
19092 else $as_nop
19093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094 /* end confdefs.h. */
19095
19096 int
19097 main (void)
19098 {
19099
19100 #ifndef __DECC
19101 choke me
19102 #endif
19103
19104 ;
19105 return 0;
19106 }
19107 _ACEOF
19108 if ac_fn_c_try_compile "$LINENO"
19109 then :
19110 bakefile_cv_c_compiler___DECC=yes
19111 else $as_nop
19112 bakefile_cv_c_compiler___DECC=no
19113
19114 fi
19115 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19116
19117
19118 fi
19119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___DECC" >&5
19120 printf "%s\n" "$bakefile_cv_c_compiler___DECC" >&6; }
19121 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
19122 :; COMPAQCC=yes
19123 else
19124 :;
19125 fi
19126 ac_ext=cpp
19127 ac_cpp='$CXXCPP $CPPFLAGS'
19128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19131
19132
19133
19134 ;;
19135
19136 SunOS)
19137
19138
19139 ac_ext=c
19140 ac_cpp='$CPP $CPPFLAGS'
19141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19144
19145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C compiler" >&5
19146 printf %s "checking whether we are using the Sun C compiler... " >&6; }
19147 if test ${bakefile_cv_c_compiler___SUNPRO_C+y}
19148 then :
19149 printf %s "(cached) " >&6
19150 else $as_nop
19151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h. */
19153
19154 int
19155 main (void)
19156 {
19157
19158 #ifndef __SUNPRO_C
19159 choke me
19160 #endif
19161
19162 ;
19163 return 0;
19164 }
19165 _ACEOF
19166 if ac_fn_c_try_compile "$LINENO"
19167 then :
19168 bakefile_cv_c_compiler___SUNPRO_C=yes
19169 else $as_nop
19170 bakefile_cv_c_compiler___SUNPRO_C=no
19171
19172 fi
19173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19174
19175
19176 fi
19177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
19178 printf "%s\n" "$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
19179 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
19180 :; SUNCC=yes
19181 else
19182 :;
19183 fi
19184 ac_ext=cpp
19185 ac_cpp='$CXXCPP $CPPFLAGS'
19186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19189
19190
19191
19192 ;;
19193 esac
19194 fi
19195
19196
19197
19198
19199
19200
19201
19202
19203 ac_ext=cpp
19204 ac_cpp='$CXXCPP $CPPFLAGS'
19205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19208
19209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the Intel C++ compiler" >&5
19210 printf %s "checking whether we are using the Intel C++ compiler... " >&6; }
19211 if test ${bakefile_cv_cxx_compiler___INTEL_COMPILER+y}
19212 then :
19213 printf %s "(cached) " >&6
19214 else $as_nop
19215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19216 /* end confdefs.h. */
19217
19218 int
19219 main (void)
19220 {
19221
19222 #ifndef __INTEL_COMPILER
19223 choke me
19224 #endif
19225
19226 ;
19227 return 0;
19228 }
19229 _ACEOF
19230 if ac_fn_cxx_try_compile "$LINENO"
19231 then :
19232 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
19233 else $as_nop
19234 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
19235
19236 fi
19237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19238
19239
19240 fi
19241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
19242 printf "%s\n" "$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
19243 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
19244 :; INTELCXX=yes
19245 else
19246 :;
19247 fi
19248 ac_ext=cpp
19249 ac_cpp='$CXXCPP $CPPFLAGS'
19250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19253
19254
19255
19256
19257 if test "$INTELCXX" = "yes"; then
19258
19259
19260 ac_ext=cpp
19261 ac_cpp='$CXXCPP $CPPFLAGS'
19262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19265
19266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C++ compiler v8 or later" >&5
19267 printf %s "checking whether we are using Intel C++ compiler v8 or later... " >&6; }
19268 if test ${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+y}
19269 then :
19270 printf %s "(cached) " >&6
19271 else $as_nop
19272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h. */
19274
19275 int
19276 main (void)
19277 {
19278
19279 #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
19280 choke me
19281 #endif
19282
19283 ;
19284 return 0;
19285 }
19286 _ACEOF
19287 if ac_fn_cxx_try_compile "$LINENO"
19288 then :
19289 bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
19290 else $as_nop
19291 bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
19292
19293 fi
19294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19295
19296
19297 fi
19298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
19299 printf "%s\n" "$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
19300 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
19301 :; INTELCXX8=yes
19302 else
19303 :;
19304 fi
19305 ac_ext=cpp
19306 ac_cpp='$CXXCPP $CPPFLAGS'
19307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19310
19311
19312
19313
19314
19315 ac_ext=cpp
19316 ac_cpp='$CXXCPP $CPPFLAGS'
19317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19320
19321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C++ compiler v10 or later" >&5
19322 printf %s "checking whether we are using Intel C++ compiler v10 or later... " >&6; }
19323 if test ${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+y}
19324 then :
19325 printf %s "(cached) " >&6
19326 else $as_nop
19327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19328 /* end confdefs.h. */
19329
19330 int
19331 main (void)
19332 {
19333
19334 #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
19335 choke me
19336 #endif
19337
19338 ;
19339 return 0;
19340 }
19341 _ACEOF
19342 if ac_fn_cxx_try_compile "$LINENO"
19343 then :
19344 bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
19345 else $as_nop
19346 bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
19347
19348 fi
19349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19350
19351
19352 fi
19353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
19354 printf "%s\n" "$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
19355 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
19356 :; INTELCXX10=yes
19357 else
19358 :;
19359 fi
19360 ac_ext=cpp
19361 ac_cpp='$CXXCPP $CPPFLAGS'
19362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19365
19366
19367
19368 fi
19369
19370 if test "x$GCXX" != "xyes"; then
19371 case `uname -s` in
19372 AIX*)
19373
19374
19375 ac_ext=cpp
19376 ac_cpp='$CXXCPP $CPPFLAGS'
19377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19380
19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C++ compiler" >&5
19382 printf %s "checking whether we are using the IBM xlC C++ compiler... " >&6; }
19383 if test ${bakefile_cv_cxx_compiler___xlC__+y}
19384 then :
19385 printf %s "(cached) " >&6
19386 else $as_nop
19387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19388 /* end confdefs.h. */
19389
19390 int
19391 main (void)
19392 {
19393
19394 #ifndef __xlC__
19395 choke me
19396 #endif
19397
19398 ;
19399 return 0;
19400 }
19401 _ACEOF
19402 if ac_fn_cxx_try_compile "$LINENO"
19403 then :
19404 bakefile_cv_cxx_compiler___xlC__=yes
19405 else $as_nop
19406 bakefile_cv_cxx_compiler___xlC__=no
19407
19408 fi
19409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19410
19411
19412 fi
19413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19414 printf "%s\n" "$bakefile_cv_cxx_compiler___xlC__" >&6; }
19415 if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19416 :; XLCXX=yes
19417 else
19418 :;
19419 fi
19420 ac_ext=cpp
19421 ac_cpp='$CXXCPP $CPPFLAGS'
19422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19425
19426
19427
19428 ;;
19429
19430 Darwin)
19431
19432
19433 ac_ext=cpp
19434 ac_cpp='$CXXCPP $CPPFLAGS'
19435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19438
19439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C++ compiler" >&5
19440 printf %s "checking whether we are using the IBM xlC C++ compiler... " >&6; }
19441 if test ${bakefile_cv_cxx_compiler___xlC__+y}
19442 then :
19443 printf %s "(cached) " >&6
19444 else $as_nop
19445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19446 /* end confdefs.h. */
19447
19448 int
19449 main (void)
19450 {
19451
19452 #ifndef __xlC__
19453 choke me
19454 #endif
19455
19456 ;
19457 return 0;
19458 }
19459 _ACEOF
19460 if ac_fn_cxx_try_compile "$LINENO"
19461 then :
19462 bakefile_cv_cxx_compiler___xlC__=yes
19463 else $as_nop
19464 bakefile_cv_cxx_compiler___xlC__=no
19465
19466 fi
19467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19468
19469
19470 fi
19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19472 printf "%s\n" "$bakefile_cv_cxx_compiler___xlC__" >&6; }
19473 if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19474 :; XLCXX=yes
19475 else
19476 :;
19477 fi
19478 ac_ext=cpp
19479 ac_cpp='$CXXCPP $CPPFLAGS'
19480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19483
19484
19485
19486 ;;
19487
19488 IRIX*)
19489
19490
19491 ac_ext=cpp
19492 ac_cpp='$CXXCPP $CPPFLAGS'
19493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19496
19497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the SGI C++ compiler" >&5
19498 printf %s "checking whether we are using the SGI C++ compiler... " >&6; }
19499 if test ${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+y}
19500 then :
19501 printf %s "(cached) " >&6
19502 else $as_nop
19503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19504 /* end confdefs.h. */
19505
19506 int
19507 main (void)
19508 {
19509
19510 #ifndef _SGI_COMPILER_VERSION
19511 choke me
19512 #endif
19513
19514 ;
19515 return 0;
19516 }
19517 _ACEOF
19518 if ac_fn_cxx_try_compile "$LINENO"
19519 then :
19520 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
19521 else $as_nop
19522 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
19523
19524 fi
19525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19526
19527
19528 fi
19529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
19530 printf "%s\n" "$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
19531 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
19532 :; SGICXX=yes
19533 else
19534 :;
19535 fi
19536 ac_ext=cpp
19537 ac_cpp='$CXXCPP $CPPFLAGS'
19538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19541
19542
19543
19544 ;;
19545
19546 Linux*)
19547 if test "$INTELCXX" != "yes"; then
19548
19549
19550 ac_ext=cpp
19551 ac_cpp='$CXXCPP $CPPFLAGS'
19552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19555
19556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C++ compiler" >&5
19557 printf %s "checking whether we are using the Sun C++ compiler... " >&6; }
19558 if test ${bakefile_cv_cxx_compiler___SUNPRO_CC+y}
19559 then :
19560 printf %s "(cached) " >&6
19561 else $as_nop
19562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19563 /* end confdefs.h. */
19564
19565 int
19566 main (void)
19567 {
19568
19569 #ifndef __SUNPRO_CC
19570 choke me
19571 #endif
19572
19573 ;
19574 return 0;
19575 }
19576 _ACEOF
19577 if ac_fn_cxx_try_compile "$LINENO"
19578 then :
19579 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19580 else $as_nop
19581 bakefile_cv_cxx_compiler___SUNPRO_CC=no
19582
19583 fi
19584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19585
19586
19587 fi
19588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19589 printf "%s\n" "$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19590 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19591 :; SUNCXX=yes
19592 else
19593 :;
19594 fi
19595 ac_ext=cpp
19596 ac_cpp='$CXXCPP $CPPFLAGS'
19597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19600
19601
19602
19603 fi
19604 ;;
19605
19606 HP-UX*)
19607
19608
19609 ac_ext=cpp
19610 ac_cpp='$CXXCPP $CPPFLAGS'
19611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19614
19615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the HP C++ compiler" >&5
19616 printf %s "checking whether we are using the HP C++ compiler... " >&6; }
19617 if test ${bakefile_cv_cxx_compiler___HP_aCC+y}
19618 then :
19619 printf %s "(cached) " >&6
19620 else $as_nop
19621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19622 /* end confdefs.h. */
19623
19624 int
19625 main (void)
19626 {
19627
19628 #ifndef __HP_aCC
19629 choke me
19630 #endif
19631
19632 ;
19633 return 0;
19634 }
19635 _ACEOF
19636 if ac_fn_cxx_try_compile "$LINENO"
19637 then :
19638 bakefile_cv_cxx_compiler___HP_aCC=yes
19639 else $as_nop
19640 bakefile_cv_cxx_compiler___HP_aCC=no
19641
19642 fi
19643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19644
19645
19646 fi
19647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
19648 printf "%s\n" "$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
19649 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
19650 :; HPCXX=yes
19651 else
19652 :;
19653 fi
19654 ac_ext=cpp
19655 ac_cpp='$CXXCPP $CPPFLAGS'
19656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19659
19660
19661
19662 ;;
19663
19664 OSF1)
19665
19666
19667 ac_ext=cpp
19668 ac_cpp='$CXXCPP $CPPFLAGS'
19669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19672
19673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the Compaq C++ compiler" >&5
19674 printf %s "checking whether we are using the Compaq C++ compiler... " >&6; }
19675 if test ${bakefile_cv_cxx_compiler___DECCXX+y}
19676 then :
19677 printf %s "(cached) " >&6
19678 else $as_nop
19679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680 /* end confdefs.h. */
19681
19682 int
19683 main (void)
19684 {
19685
19686 #ifndef __DECCXX
19687 choke me
19688 #endif
19689
19690 ;
19691 return 0;
19692 }
19693 _ACEOF
19694 if ac_fn_cxx_try_compile "$LINENO"
19695 then :
19696 bakefile_cv_cxx_compiler___DECCXX=yes
19697 else $as_nop
19698 bakefile_cv_cxx_compiler___DECCXX=no
19699
19700 fi
19701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19702
19703
19704 fi
19705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
19706 printf "%s\n" "$bakefile_cv_cxx_compiler___DECCXX" >&6; }
19707 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
19708 :; COMPAQCXX=yes
19709 else
19710 :;
19711 fi
19712 ac_ext=cpp
19713 ac_cpp='$CXXCPP $CPPFLAGS'
19714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19717
19718
19719
19720 ;;
19721
19722 SunOS)
19723
19724
19725 ac_ext=cpp
19726 ac_cpp='$CXXCPP $CPPFLAGS'
19727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19730
19731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C++ compiler" >&5
19732 printf %s "checking whether we are using the Sun C++ compiler... " >&6; }
19733 if test ${bakefile_cv_cxx_compiler___SUNPRO_CC+y}
19734 then :
19735 printf %s "(cached) " >&6
19736 else $as_nop
19737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19738 /* end confdefs.h. */
19739
19740 int
19741 main (void)
19742 {
19743
19744 #ifndef __SUNPRO_CC
19745 choke me
19746 #endif
19747
19748 ;
19749 return 0;
19750 }
19751 _ACEOF
19752 if ac_fn_cxx_try_compile "$LINENO"
19753 then :
19754 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19755 else $as_nop
19756 bakefile_cv_cxx_compiler___SUNPRO_CC=no
19757
19758 fi
19759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19760
19761
19762 fi
19763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19764 printf "%s\n" "$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19765 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19766 :; SUNCXX=yes
19767 else
19768 :;
19769 fi
19770 ac_ext=cpp
19771 ac_cpp='$CXXCPP $CPPFLAGS'
19772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19775
19776
19777
19778 ;;
19779 esac
19780 fi
19781
19782
19783
19784 # Find a good install program. We prefer a C program (faster),
19785 # so one script is as good as another. But avoid the broken or
19786 # incompatible versions:
19787 # SysV /etc/install, /usr/sbin/install
19788 # SunOS /usr/etc/install
19789 # IRIX /sbin/install
19790 # AIX /bin/install
19791 # AmigaOS /C/install, which installs bootblocks on floppy discs
19792 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19793 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19794 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19795 # OS/2's system install, which has a completely different semantic
19796 # ./install, which can be erroneously created by make from ./install.sh.
19797 # Reject install programs that cannot install multiple files.
19798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
19799 printf %s "checking for a BSD-compatible install... " >&6; }
19800 if test -z "$INSTALL"; then
19801 if test ${ac_cv_path_install+y}
19802 then :
19803 printf %s "(cached) " >&6
19804 else $as_nop
19805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19806 for as_dir in $PATH
19807 do
19808 IFS=$as_save_IFS
19809 case $as_dir in #(((
19810 '') as_dir=./ ;;
19811 */) ;;
19812 *) as_dir=$as_dir/ ;;
19813 esac
19814 # Account for fact that we put trailing slashes in our PATH walk.
19815 case $as_dir in #((
19816 ./ | /[cC]/* | \
19817 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19818 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19819 /usr/ucb/* ) ;;
19820 *)
19821 # OSF1 and SCO ODT 3.0 have their own names for install.
19822 # Don't use installbsd from OSF since it installs stuff as root
19823 # by default.
19824 for ac_prog in ginstall scoinst install; do
19825 for ac_exec_ext in '' $ac_executable_extensions; do
19826 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
19827 if test $ac_prog = install &&
19828 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19829 # AIX install. It has an incompatible calling convention.
19830 :
19831 elif test $ac_prog = install &&
19832 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19833 # program-specific install script used by HP pwplus--don't use.
19834 :
19835 else
19836 rm -rf conftest.one conftest.two conftest.dir
19837 echo one > conftest.one
19838 echo two > conftest.two
19839 mkdir conftest.dir
19840 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
19841 test -s conftest.one && test -s conftest.two &&
19842 test -s conftest.dir/conftest.one &&
19843 test -s conftest.dir/conftest.two
19844 then
19845 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
19846 break 3
19847 fi
19848 fi
19849 fi
19850 done
19851 done
19852 ;;
19853 esac
19854
19855 done
19856 IFS=$as_save_IFS
19857
19858 rm -rf conftest.one conftest.two conftest.dir
19859
19860 fi
19861 if test ${ac_cv_path_install+y}; then
19862 INSTALL=$ac_cv_path_install
19863 else
19864 # As a last resort, use the slow shell script. Don't cache a
19865 # value for INSTALL within a source directory, because that will
19866 # break other packages using the cache if that directory is
19867 # removed, or if the value is a relative name.
19868 INSTALL=$ac_install_sh
19869 fi
19870 fi
19871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
19872 printf "%s\n" "$INSTALL" >&6; }
19873
19874 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19875 # It thinks the first close brace ends the variable substitution.
19876 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19877
19878 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19879
19880 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19881
19882
19883
19884
19885
19886
19887
19888 if test "x$BAKEFILE_HOST" = "x"; then
19889 if test "x${host}" = "x" ; then
19890 as_fn_error $? "You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." "$LINENO" 5
19891 fi
19892
19893 BAKEFILE_HOST="${host}"
19894 fi
19895
19896 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
19897
19898 if test -n "$ac_tool_prefix"; then
19899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19902 printf %s "checking for $ac_word... " >&6; }
19903 if test ${ac_cv_prog_RANLIB+y}
19904 then :
19905 printf %s "(cached) " >&6
19906 else $as_nop
19907 if test -n "$RANLIB"; then
19908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19909 else
19910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19911 for as_dir in $PATH
19912 do
19913 IFS=$as_save_IFS
19914 case $as_dir in #(((
19915 '') as_dir=./ ;;
19916 */) ;;
19917 *) as_dir=$as_dir/ ;;
19918 esac
19919 for ac_exec_ext in '' $ac_executable_extensions; do
19920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19921 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19923 break 2
19924 fi
19925 done
19926 done
19927 IFS=$as_save_IFS
19928
19929 fi
19930 fi
19931 RANLIB=$ac_cv_prog_RANLIB
19932 if test -n "$RANLIB"; then
19933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19934 printf "%s\n" "$RANLIB" >&6; }
19935 else
19936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19937 printf "%s\n" "no" >&6; }
19938 fi
19939
19940
19941 fi
19942 if test -z "$ac_cv_prog_RANLIB"; then
19943 ac_ct_RANLIB=$RANLIB
19944 # Extract the first word of "ranlib", so it can be a program name with args.
19945 set dummy ranlib; ac_word=$2
19946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19947 printf %s "checking for $ac_word... " >&6; }
19948 if test ${ac_cv_prog_ac_ct_RANLIB+y}
19949 then :
19950 printf %s "(cached) " >&6
19951 else $as_nop
19952 if test -n "$ac_ct_RANLIB"; then
19953 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19954 else
19955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19956 for as_dir in $PATH
19957 do
19958 IFS=$as_save_IFS
19959 case $as_dir in #(((
19960 '') as_dir=./ ;;
19961 */) ;;
19962 *) as_dir=$as_dir/ ;;
19963 esac
19964 for ac_exec_ext in '' $ac_executable_extensions; do
19965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19966 ac_cv_prog_ac_ct_RANLIB="ranlib"
19967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19968 break 2
19969 fi
19970 done
19971 done
19972 IFS=$as_save_IFS
19973
19974 fi
19975 fi
19976 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19977 if test -n "$ac_ct_RANLIB"; then
19978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19979 printf "%s\n" "$ac_ct_RANLIB" >&6; }
19980 else
19981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19982 printf "%s\n" "no" >&6; }
19983 fi
19984
19985 if test "x$ac_ct_RANLIB" = x; then
19986 RANLIB=":"
19987 else
19988 case $cross_compiling:$ac_tool_warned in
19989 yes:)
19990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19992 ac_tool_warned=yes ;;
19993 esac
19994 RANLIB=$ac_ct_RANLIB
19995 fi
19996 else
19997 RANLIB="$ac_cv_prog_RANLIB"
19998 fi
19999
20000
20001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
20002 printf %s "checking whether ln -s works... " >&6; }
20003 LN_S=$as_ln_s
20004 if test "$LN_S" = "ln -s"; then
20005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20006 printf "%s\n" "yes" >&6; }
20007 else
20008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
20009 printf "%s\n" "no, using $LN_S" >&6; }
20010 fi
20011
20012
20013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20014 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
20015 set x ${MAKE-make}
20016 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20017 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
20018 then :
20019 printf %s "(cached) " >&6
20020 else $as_nop
20021 cat >conftest.make <<\_ACEOF
20022 SHELL = /bin/sh
20023 all:
20024 @echo '@@@%%%=$(MAKE)=@@@%%%'
20025 _ACEOF
20026 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
20027 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20028 *@@@%%%=?*=@@@%%%*)
20029 eval ac_cv_prog_make_${ac_make}_set=yes;;
20030 *)
20031 eval ac_cv_prog_make_${ac_make}_set=no;;
20032 esac
20033 rm -f conftest.make
20034 fi
20035 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20037 printf "%s\n" "yes" >&6; }
20038 SET_MAKE=
20039 else
20040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20041 printf "%s\n" "no" >&6; }
20042 SET_MAKE="MAKE=${MAKE-make}"
20043 fi
20044
20045
20046
20047 if test "x$SUNCXX" = "xyes"; then
20048 AR=$CXX
20049 AROPTIONS="-xar -o"
20050
20051 elif test "x$SGICC" = "xyes"; then
20052 AR=$CXX
20053 AROPTIONS="-ar -o"
20054
20055 else
20056 if test -n "$ac_tool_prefix"; then
20057 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20058 set dummy ${ac_tool_prefix}ar; ac_word=$2
20059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20060 printf %s "checking for $ac_word... " >&6; }
20061 if test ${ac_cv_prog_AR+y}
20062 then :
20063 printf %s "(cached) " >&6
20064 else $as_nop
20065 if test -n "$AR"; then
20066 ac_cv_prog_AR="$AR" # Let the user override the test.
20067 else
20068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20069 for as_dir in $PATH
20070 do
20071 IFS=$as_save_IFS
20072 case $as_dir in #(((
20073 '') as_dir=./ ;;
20074 */) ;;
20075 *) as_dir=$as_dir/ ;;
20076 esac
20077 for ac_exec_ext in '' $ac_executable_extensions; do
20078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20079 ac_cv_prog_AR="${ac_tool_prefix}ar"
20080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20081 break 2
20082 fi
20083 done
20084 done
20085 IFS=$as_save_IFS
20086
20087 fi
20088 fi
20089 AR=$ac_cv_prog_AR
20090 if test -n "$AR"; then
20091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
20092 printf "%s\n" "$AR" >&6; }
20093 else
20094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20095 printf "%s\n" "no" >&6; }
20096 fi
20097
20098
20099 fi
20100 if test -z "$ac_cv_prog_AR"; then
20101 ac_ct_AR=$AR
20102 # Extract the first word of "ar", so it can be a program name with args.
20103 set dummy ar; ac_word=$2
20104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20105 printf %s "checking for $ac_word... " >&6; }
20106 if test ${ac_cv_prog_ac_ct_AR+y}
20107 then :
20108 printf %s "(cached) " >&6
20109 else $as_nop
20110 if test -n "$ac_ct_AR"; then
20111 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20112 else
20113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20114 for as_dir in $PATH
20115 do
20116 IFS=$as_save_IFS
20117 case $as_dir in #(((
20118 '') as_dir=./ ;;
20119 */) ;;
20120 *) as_dir=$as_dir/ ;;
20121 esac
20122 for ac_exec_ext in '' $ac_executable_extensions; do
20123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20124 ac_cv_prog_ac_ct_AR="ar"
20125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20126 break 2
20127 fi
20128 done
20129 done
20130 IFS=$as_save_IFS
20131
20132 fi
20133 fi
20134 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20135 if test -n "$ac_ct_AR"; then
20136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
20137 printf "%s\n" "$ac_ct_AR" >&6; }
20138 else
20139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20140 printf "%s\n" "no" >&6; }
20141 fi
20142
20143 if test "x$ac_ct_AR" = x; then
20144 AR="ar"
20145 else
20146 case $cross_compiling:$ac_tool_warned in
20147 yes:)
20148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20149 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20150 ac_tool_warned=yes ;;
20151 esac
20152 AR=$ac_ct_AR
20153 fi
20154 else
20155 AR="$ac_cv_prog_AR"
20156 fi
20157
20158 AROPTIONS=rc
20159 fi
20160
20161
20162 if test -n "$ac_tool_prefix"; then
20163 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
20164 set dummy ${ac_tool_prefix}strip; ac_word=$2
20165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20166 printf %s "checking for $ac_word... " >&6; }
20167 if test ${ac_cv_prog_STRIP+y}
20168 then :
20169 printf %s "(cached) " >&6
20170 else $as_nop
20171 if test -n "$STRIP"; then
20172 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
20173 else
20174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20175 for as_dir in $PATH
20176 do
20177 IFS=$as_save_IFS
20178 case $as_dir in #(((
20179 '') as_dir=./ ;;
20180 */) ;;
20181 *) as_dir=$as_dir/ ;;
20182 esac
20183 for ac_exec_ext in '' $ac_executable_extensions; do
20184 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20185 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
20186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20187 break 2
20188 fi
20189 done
20190 done
20191 IFS=$as_save_IFS
20192
20193 fi
20194 fi
20195 STRIP=$ac_cv_prog_STRIP
20196 if test -n "$STRIP"; then
20197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
20198 printf "%s\n" "$STRIP" >&6; }
20199 else
20200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20201 printf "%s\n" "no" >&6; }
20202 fi
20203
20204
20205 fi
20206 if test -z "$ac_cv_prog_STRIP"; then
20207 ac_ct_STRIP=$STRIP
20208 # Extract the first word of "strip", so it can be a program name with args.
20209 set dummy strip; ac_word=$2
20210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20211 printf %s "checking for $ac_word... " >&6; }
20212 if test ${ac_cv_prog_ac_ct_STRIP+y}
20213 then :
20214 printf %s "(cached) " >&6
20215 else $as_nop
20216 if test -n "$ac_ct_STRIP"; then
20217 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
20218 else
20219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20220 for as_dir in $PATH
20221 do
20222 IFS=$as_save_IFS
20223 case $as_dir in #(((
20224 '') as_dir=./ ;;
20225 */) ;;
20226 *) as_dir=$as_dir/ ;;
20227 esac
20228 for ac_exec_ext in '' $ac_executable_extensions; do
20229 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20230 ac_cv_prog_ac_ct_STRIP="strip"
20231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20232 break 2
20233 fi
20234 done
20235 done
20236 IFS=$as_save_IFS
20237
20238 fi
20239 fi
20240 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
20241 if test -n "$ac_ct_STRIP"; then
20242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
20243 printf "%s\n" "$ac_ct_STRIP" >&6; }
20244 else
20245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20246 printf "%s\n" "no" >&6; }
20247 fi
20248
20249 if test "x$ac_ct_STRIP" = x; then
20250 STRIP=":"
20251 else
20252 case $cross_compiling:$ac_tool_warned in
20253 yes:)
20254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20255 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20256 ac_tool_warned=yes ;;
20257 esac
20258 STRIP=$ac_ct_STRIP
20259 fi
20260 else
20261 STRIP="$ac_cv_prog_STRIP"
20262 fi
20263
20264 if test -n "$ac_tool_prefix"; then
20265 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
20266 set dummy ${ac_tool_prefix}nm; ac_word=$2
20267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20268 printf %s "checking for $ac_word... " >&6; }
20269 if test ${ac_cv_prog_NM+y}
20270 then :
20271 printf %s "(cached) " >&6
20272 else $as_nop
20273 if test -n "$NM"; then
20274 ac_cv_prog_NM="$NM" # Let the user override the test.
20275 else
20276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20277 for as_dir in $PATH
20278 do
20279 IFS=$as_save_IFS
20280 case $as_dir in #(((
20281 '') as_dir=./ ;;
20282 */) ;;
20283 *) as_dir=$as_dir/ ;;
20284 esac
20285 for ac_exec_ext in '' $ac_executable_extensions; do
20286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20287 ac_cv_prog_NM="${ac_tool_prefix}nm"
20288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20289 break 2
20290 fi
20291 done
20292 done
20293 IFS=$as_save_IFS
20294
20295 fi
20296 fi
20297 NM=$ac_cv_prog_NM
20298 if test -n "$NM"; then
20299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
20300 printf "%s\n" "$NM" >&6; }
20301 else
20302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20303 printf "%s\n" "no" >&6; }
20304 fi
20305
20306
20307 fi
20308 if test -z "$ac_cv_prog_NM"; then
20309 ac_ct_NM=$NM
20310 # Extract the first word of "nm", so it can be a program name with args.
20311 set dummy nm; ac_word=$2
20312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20313 printf %s "checking for $ac_word... " >&6; }
20314 if test ${ac_cv_prog_ac_ct_NM+y}
20315 then :
20316 printf %s "(cached) " >&6
20317 else $as_nop
20318 if test -n "$ac_ct_NM"; then
20319 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
20320 else
20321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20322 for as_dir in $PATH
20323 do
20324 IFS=$as_save_IFS
20325 case $as_dir in #(((
20326 '') as_dir=./ ;;
20327 */) ;;
20328 *) as_dir=$as_dir/ ;;
20329 esac
20330 for ac_exec_ext in '' $ac_executable_extensions; do
20331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20332 ac_cv_prog_ac_ct_NM="nm"
20333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20334 break 2
20335 fi
20336 done
20337 done
20338 IFS=$as_save_IFS
20339
20340 fi
20341 fi
20342 ac_ct_NM=$ac_cv_prog_ac_ct_NM
20343 if test -n "$ac_ct_NM"; then
20344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
20345 printf "%s\n" "$ac_ct_NM" >&6; }
20346 else
20347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20348 printf "%s\n" "no" >&6; }
20349 fi
20350
20351 if test "x$ac_ct_NM" = x; then
20352 NM=":"
20353 else
20354 case $cross_compiling:$ac_tool_warned in
20355 yes:)
20356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20357 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20358 ac_tool_warned=yes ;;
20359 esac
20360 NM=$ac_ct_NM
20361 fi
20362 else
20363 NM="$ac_cv_prog_NM"
20364 fi
20365
20366
20367 INSTALL_DIR="mkdir -p"
20368
20369
20370 LDFLAGS_GUI=
20371 case ${BAKEFILE_HOST} in
20372 *-*-cygwin* | *-*-mingw32* )
20373 LDFLAGS_GUI="-mwindows"
20374 esac
20375
20376
20377 fi
20378
20379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if make is GNU make" >&5
20380 printf %s "checking if make is GNU make... " >&6; }
20381 if test ${bakefile_cv_prog_makeisgnu+y}
20382 then :
20383 printf %s "(cached) " >&6
20384 else $as_nop
20385
20386 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
20387 egrep -s GNU > /dev/null); then
20388 bakefile_cv_prog_makeisgnu="yes"
20389 else
20390 bakefile_cv_prog_makeisgnu="no"
20391 fi
20392
20393 fi
20394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_prog_makeisgnu" >&5
20395 printf "%s\n" "$bakefile_cv_prog_makeisgnu" >&6; }
20396
20397 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
20398 IF_GNU_MAKE=""
20399 else
20400 IF_GNU_MAKE="#"
20401 fi
20402
20403
20404
20405 PLATFORM_UNIX=0
20406 PLATFORM_WIN32=0
20407 PLATFORM_MAC=0
20408 PLATFORM_MACOS=0
20409 PLATFORM_MACOSX=0
20410 PLATFORM_BEOS=0
20411
20412 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
20413 case "${BAKEFILE_HOST}" in
20414 *-*-mingw32* )
20415 PLATFORM_WIN32=1
20416 ;;
20417 *-*-darwin* )
20418 PLATFORM_MAC=1
20419 PLATFORM_MACOSX=1
20420 ;;
20421 *-*-beos* )
20422 PLATFORM_BEOS=1
20423 ;;
20424 powerpc-apple-macos* )
20425 PLATFORM_MAC=1
20426 PLATFORM_MACOS=1
20427 ;;
20428 * )
20429 PLATFORM_UNIX=1
20430 ;;
20431 esac
20432 else
20433 case "$BAKEFILE_FORCE_PLATFORM" in
20434 win32 )
20435 PLATFORM_WIN32=1
20436 ;;
20437 darwin )
20438 PLATFORM_MAC=1
20439 PLATFORM_MACOSX=1
20440 ;;
20441 unix )
20442 PLATFORM_UNIX=1
20443 ;;
20444 beos )
20445 PLATFORM_BEOS=1
20446 ;;
20447 * )
20448 as_fn_error $? "Unknown platform: $BAKEFILE_FORCE_PLATFORM" "$LINENO" 5
20449 ;;
20450 esac
20451 fi
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461 case "${BAKEFILE_HOST}" in
20462 *-*-darwin* )
20463 if test "x$GCC" = "xyes"; then
20464 CFLAGS="$CFLAGS -fno-common"
20465 CXXFLAGS="$CXXFLAGS -fno-common"
20466 fi
20467 if test "x$XLCC" = "xyes"; then
20468 CFLAGS="$CFLAGS -qnocommon"
20469 CXXFLAGS="$CXXFLAGS -qnocommon"
20470 fi
20471 ;;
20472
20473 i*86-*-beos* )
20474 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
20475 ;;
20476 esac
20477
20478
20479 SO_SUFFIX="so"
20480 SO_SUFFIX_MODULE="so"
20481 EXEEXT=""
20482 LIBPREFIX="lib"
20483 LIBEXT=".a"
20484 DLLPREFIX="lib"
20485 DLLPREFIX_MODULE=""
20486 DLLIMP_SUFFIX=""
20487 dlldir="$libdir"
20488
20489 case "${BAKEFILE_HOST}" in
20490 ia64-hp-hpux* )
20491 ;;
20492 *-hp-hpux* )
20493 SO_SUFFIX="sl"
20494 SO_SUFFIX_MODULE="sl"
20495 ;;
20496 *-*-aix* )
20497 SO_SUFFIX="a"
20498 SO_SUFFIX_MODULE="a"
20499 ;;
20500 *-*-cygwin* )
20501 SO_SUFFIX="dll"
20502 SO_SUFFIX_MODULE="dll"
20503 DLLIMP_SUFFIX="dll.a"
20504 EXEEXT=".exe"
20505 DLLPREFIX="cyg"
20506 dlldir="$bindir"
20507 ;;
20508 *-*-mingw32* )
20509 SO_SUFFIX="dll"
20510 SO_SUFFIX_MODULE="dll"
20511 DLLIMP_SUFFIX="dll.a"
20512 EXEEXT=".exe"
20513 DLLPREFIX=""
20514 dlldir="$bindir"
20515 ;;
20516 *-*-darwin* )
20517 SO_SUFFIX="dylib"
20518 SO_SUFFIX_MODULE="bundle"
20519 ;;
20520 esac
20521
20522 if test "x$DLLIMP_SUFFIX" = "x" ; then
20523 DLLIMP_SUFFIX="$SO_SUFFIX"
20524 fi
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537 PIC_FLAG=""
20538 if test "x$GCC" = "xyes"; then
20539 PIC_FLAG="-fPIC"
20540 fi
20541
20542 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
20543 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
20544 WINDOWS_IMPLIB=0
20545
20546 case "${BAKEFILE_HOST}" in
20547 *-hp-hpux* )
20548 if test "x$GCC" != "xyes"; then
20549 LDFLAGS="$LDFLAGS -L/usr/lib"
20550
20551 SHARED_LD_CC="${CC} -b -o"
20552 SHARED_LD_CXX="${CXX} -b -o"
20553 PIC_FLAG="+Z"
20554 fi
20555 ;;
20556
20557 *-*-linux* )
20558 if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
20559 PIC_FLAG="-KPIC"
20560 elif test "x$SUNCXX" = "xyes"; then
20561 SHARED_LD_CC="${CC} -G -o"
20562 SHARED_LD_CXX="${CXX} -G -o"
20563 PIC_FLAG="-KPIC"
20564 fi
20565 ;;
20566
20567 *-*-solaris2* )
20568 if test "x$SUNCXX" = xyes ; then
20569 SHARED_LD_CC="${CC} -G -o"
20570 SHARED_LD_CXX="${CXX} -G -o"
20571 PIC_FLAG="-KPIC"
20572 fi
20573 ;;
20574
20575 *-*-darwin* )
20576
20577 D='$'
20578 cat <<EOF >shared-ld-sh
20579 #!/bin/sh
20580 #-----------------------------------------------------------------------------
20581 #-- Name: distrib/mac/shared-ld-sh
20582 #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
20583 #-- Author: Gilles Depeyrot
20584 #-- Copyright: (c) 2002 Gilles Depeyrot
20585 #-- Licence: any use permitted
20586 #-----------------------------------------------------------------------------
20587
20588 verbose=0
20589 args=""
20590 objects=""
20591 linking_flag="-dynamiclib"
20592 ldargs="-r -keep_private_externs -nostdlib"
20593
20594 if test "x${D}CXX" = "x"; then
20595 CXX="c++"
20596 fi
20597
20598 while test ${D}# -gt 0; do
20599 case ${D}1 in
20600
20601 -v)
20602 verbose=1
20603 ;;
20604
20605 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
20606 # collect these options and values
20607 args="${D}{args} ${D}1 ${D}2"
20608 shift
20609 ;;
20610
20611 -arch|-isysroot)
20612 # collect these options and values
20613 ldargs="${D}{ldargs} ${D}1 ${D}2"
20614 shift
20615 ;;
20616
20617 -s|-Wl,*)
20618 # collect these load args
20619 ldargs="${D}{ldargs} ${D}1"
20620 ;;
20621
20622 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
20623 # collect these options
20624 args="${D}{args} ${D}1"
20625 ;;
20626
20627 -dynamiclib|-bundle)
20628 linking_flag="${D}1"
20629 ;;
20630
20631 -*)
20632 echo "shared-ld: unhandled option '${D}1'"
20633 exit 1
20634 ;;
20635
20636 *.o | *.a | *.dylib)
20637 # collect object files
20638 objects="${D}{objects} ${D}1"
20639 ;;
20640
20641 *)
20642 echo "shared-ld: unhandled argument '${D}1'"
20643 exit 1
20644 ;;
20645
20646 esac
20647 shift
20648 done
20649
20650 status=0
20651
20652 #
20653 # Link one module containing all the others
20654 #
20655 if test ${D}{verbose} = 1; then
20656 echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
20657 fi
20658 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
20659 status=${D}?
20660
20661 #
20662 # Link the shared library from the single module created, but only if the
20663 # previous command didn't fail:
20664 #
20665 if test ${D}{status} = 0; then
20666 if test ${D}{verbose} = 1; then
20667 echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
20668 fi
20669 ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
20670 status=${D}?
20671 fi
20672
20673 #
20674 # Remove intermediate module
20675 #
20676 rm -f master.${D}${D}.o
20677
20678 exit ${D}status
20679 EOF
20680
20681 chmod +x shared-ld-sh
20682
20683 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
20684 SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
20685
20686
20687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc 3.1 or later" >&5
20688 printf %s "checking for gcc 3.1 or later... " >&6; }
20689 if test ${bakefile_cv_gcc31+y}
20690 then :
20691 printf %s "(cached) " >&6
20692 else $as_nop
20693
20694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20695 /* end confdefs.h. */
20696
20697 int
20698 main (void)
20699 {
20700
20701 #if (__GNUC__ < 3) || \
20702 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
20703 This is old gcc
20704 #endif
20705
20706 ;
20707 return 0;
20708 }
20709 _ACEOF
20710 if ac_fn_cxx_try_compile "$LINENO"
20711 then :
20712
20713 bakefile_cv_gcc31=yes
20714
20715 else $as_nop
20716
20717 bakefile_cv_gcc31=no
20718
20719
20720 fi
20721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20722
20723 fi
20724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_gcc31" >&5
20725 printf "%s\n" "$bakefile_cv_gcc31" >&6; }
20726 if test "$bakefile_cv_gcc31" = "no"; then
20727 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
20728 SHARED_LD_CXX="$SHARED_LD_CC"
20729 else
20730 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
20731 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
20732 fi
20733
20734 if test "x$GCC" == "xyes"; then
20735 PIC_FLAG="-dynamic -fPIC"
20736 fi
20737 if test "x$XLCC" = "xyes"; then
20738 PIC_FLAG="-dynamic -DPIC"
20739 fi
20740 ;;
20741
20742 *-*-aix* )
20743 if test "x$GCC" = "xyes"; then
20744 PIC_FLAG=""
20745
20746 case "${BAKEFILE_HOST}" in
20747 *-*-aix5* )
20748 LD_EXPFULL="-Wl,-bexpfull"
20749 ;;
20750 esac
20751
20752 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
20753 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
20754 else
20755 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
20756 set dummy makeC++SharedLib; ac_word=$2
20757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20758 printf %s "checking for $ac_word... " >&6; }
20759 if test ${ac_cv_prog_AIX_CXX_LD+y}
20760 then :
20761 printf %s "(cached) " >&6
20762 else $as_nop
20763 if test -n "$AIX_CXX_LD"; then
20764 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
20765 else
20766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20767 for as_dir in $PATH
20768 do
20769 IFS=$as_save_IFS
20770 case $as_dir in #(((
20771 '') as_dir=./ ;;
20772 */) ;;
20773 *) as_dir=$as_dir/ ;;
20774 esac
20775 for ac_exec_ext in '' $ac_executable_extensions; do
20776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20777 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
20778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20779 break 2
20780 fi
20781 done
20782 done
20783 IFS=$as_save_IFS
20784
20785 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
20786 fi
20787 fi
20788 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
20789 if test -n "$AIX_CXX_LD"; then
20790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AIX_CXX_LD" >&5
20791 printf "%s\n" "$AIX_CXX_LD" >&6; }
20792 else
20793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20794 printf "%s\n" "no" >&6; }
20795 fi
20796
20797
20798 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
20799 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
20800 fi
20801 ;;
20802
20803 *-*-beos* )
20804 SHARED_LD_CC="${LD} -nostart -o"
20805 SHARED_LD_CXX="${LD} -nostart -o"
20806 ;;
20807
20808 *-*-irix* )
20809 if test "x$GCC" != "xyes"; then
20810 PIC_FLAG="-KPIC"
20811 fi
20812 ;;
20813
20814 *-*-cygwin* | *-*-mingw32* )
20815 PIC_FLAG=""
20816 SHARED_LD_CC="\$(CC) -shared -o"
20817 SHARED_LD_CXX="\$(CXX) -shared -o"
20818 WINDOWS_IMPLIB=1
20819 ;;
20820
20821 powerpc-apple-macos* | \
20822 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-gnu* | *-*-k*bsd*-gnu | \
20823 *-*-mirbsd* | \
20824 *-*-sunos4* | \
20825 *-*-osf* | \
20826 *-*-dgux5* | \
20827 *-*-sysv5* )
20828 ;;
20829
20830 *)
20831 as_fn_error $? "unknown system type $BAKEFILE_HOST." "$LINENO" 5
20832 esac
20833
20834 if test "x$PIC_FLAG" != "x" ; then
20835 PIC_FLAG="$PIC_FLAG -DPIC"
20836 fi
20837
20838 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
20839 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
20840 fi
20841 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
20842 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
20843 fi
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853 USE_SOVERSION=0
20854 USE_SOVERLINUX=0
20855 USE_SOVERSOLARIS=0
20856 USE_SOVERCYGWIN=0
20857 USE_SOTWOSYMLINKS=0
20858 USE_MACVERSION=0
20859 SONAME_FLAG=
20860
20861 case "${BAKEFILE_HOST}" in
20862 *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
20863 *-*-k*bsd*-gnu | *-*-mirbsd* | *-*-gnu* )
20864 if test "x$SUNCXX" = "xyes"; then
20865 SONAME_FLAG="-h "
20866 else
20867 SONAME_FLAG="-Wl,-soname,"
20868 fi
20869 USE_SOVERSION=1
20870 USE_SOVERLINUX=1
20871 USE_SOTWOSYMLINKS=1
20872 ;;
20873
20874 *-*-solaris2* )
20875 SONAME_FLAG="-h "
20876 USE_SOVERSION=1
20877 USE_SOVERSOLARIS=1
20878 ;;
20879
20880 *-*-darwin* )
20881 USE_MACVERSION=1
20882 USE_SOVERSION=1
20883 USE_SOTWOSYMLINKS=1
20884 ;;
20885
20886 *-*-cygwin* )
20887 USE_SOVERSION=1
20888 USE_SOVERCYGWIN=1
20889 ;;
20890 esac
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901 # Check whether --enable-dependency-tracking was given.
20902 if test ${enable_dependency_tracking+y}
20903 then :
20904 enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
20905 fi
20906
20907
20908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dependency tracking method" >&5
20909 printf %s "checking for dependency tracking method... " >&6; }
20910
20911 BK_DEPS=""
20912 if test "x$bk_use_trackdeps" = "xno" ; then
20913 DEPS_TRACKING=0
20914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20915 printf "%s\n" "disabled" >&6; }
20916 else
20917 DEPS_TRACKING=1
20918
20919 if test "x$GCC" = "xyes"; then
20920 DEPSMODE=gcc
20921 DEPSFLAG="-MMD"
20922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gcc" >&5
20923 printf "%s\n" "gcc" >&6; }
20924 elif test "x$SUNCC" = "xyes"; then
20925 DEPSMODE=unixcc
20926 DEPSFLAG="-xM1"
20927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Sun cc" >&5
20928 printf "%s\n" "Sun cc" >&6; }
20929 elif test "x$SGICC" = "xyes"; then
20930 DEPSMODE=unixcc
20931 DEPSFLAG="-M"
20932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: SGI cc" >&5
20933 printf "%s\n" "SGI cc" >&6; }
20934 elif test "x$HPCC" = "xyes"; then
20935 DEPSMODE=unixcc
20936 DEPSFLAG="+make"
20937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: HP cc" >&5
20938 printf "%s\n" "HP cc" >&6; }
20939 elif test "x$COMPAQCC" = "xyes"; then
20940 DEPSMODE=gcc
20941 DEPSFLAG="-MD"
20942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compaq cc" >&5
20943 printf "%s\n" "Compaq cc" >&6; }
20944 else
20945 DEPS_TRACKING=0
20946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
20947 printf "%s\n" "none" >&6; }
20948 fi
20949
20950 if test $DEPS_TRACKING = 1 ; then
20951
20952 D='$'
20953 cat <<EOF >bk-deps
20954 #!/bin/sh
20955
20956 # This script is part of Bakefile (http://www.bakefile.org) autoconf
20957 # script. It is used to track C/C++ files dependencies in portable way.
20958 #
20959 # Permission is given to use this file in any way.
20960
20961 DEPSMODE=${DEPSMODE}
20962 DEPSFLAG="${DEPSFLAG}"
20963 DEPSDIRBASE=.deps
20964
20965 if test ${D}DEPSMODE = gcc ; then
20966 ${D}* ${D}{DEPSFLAG}
20967 status=${D}?
20968
20969 # determine location of created files:
20970 while test ${D}# -gt 0; do
20971 case "${D}1" in
20972 -o )
20973 shift
20974 objfile=${D}1
20975 ;;
20976 -* )
20977 ;;
20978 * )
20979 srcfile=${D}1
20980 ;;
20981 esac
20982 shift
20983 done
20984 objfilebase=\`basename ${D}objfile\`
20985 builddir=\`dirname ${D}objfile\`
20986 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
20987 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
20988 depsdir=${D}builddir/${D}DEPSDIRBASE
20989 mkdir -p ${D}depsdir
20990
20991 # if the compiler failed, we're done:
20992 if test ${D}{status} != 0 ; then
20993 rm -f ${D}depfile
20994 exit ${D}{status}
20995 fi
20996
20997 # move created file to the location we want it in:
20998 if test -f ${D}depfile ; then
20999 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
21000 rm -f ${D}depfile
21001 else
21002 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
21003 depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
21004 if test ! -f ${D}depfile ; then
21005 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
21006 depfile="${D}objfile.d"
21007 fi
21008 if test -f ${D}depfile ; then
21009 sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
21010 rm -f ${D}depfile
21011 fi
21012 fi
21013 exit 0
21014
21015 elif test ${D}DEPSMODE = unixcc; then
21016 ${D}* || exit ${D}?
21017 # Run compiler again with deps flag and redirect into the dep file.
21018 # It doesn't work if the '-o FILE' option is used, but without it the
21019 # dependency file will contain the wrong name for the object. So it is
21020 # removed from the command line, and the dep file is fixed with sed.
21021 cmd=""
21022 while test ${D}# -gt 0; do
21023 case "${D}1" in
21024 -o )
21025 shift
21026 objfile=${D}1
21027 ;;
21028 * )
21029 eval arg${D}#=\\${D}1
21030 cmd="${D}cmd \\${D}arg${D}#"
21031 ;;
21032 esac
21033 shift
21034 done
21035
21036 objfilebase=\`basename ${D}objfile\`
21037 builddir=\`dirname ${D}objfile\`
21038 depsdir=${D}builddir/${D}DEPSDIRBASE
21039 mkdir -p ${D}depsdir
21040
21041 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
21042 exit 0
21043
21044 else
21045 ${D}*
21046 exit ${D}?
21047 fi
21048 EOF
21049
21050 chmod +x bk-deps
21051 BK_DEPS="`pwd`/bk-deps"
21052 fi
21053 fi
21054
21055
21056
21057
21058
21059 case ${BAKEFILE_HOST} in
21060 *-*-cygwin* | *-*-mingw32* )
21061 if test -n "$ac_tool_prefix"; then
21062 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
21063 set dummy ${ac_tool_prefix}windres; ac_word=$2
21064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21065 printf %s "checking for $ac_word... " >&6; }
21066 if test ${ac_cv_prog_WINDRES+y}
21067 then :
21068 printf %s "(cached) " >&6
21069 else $as_nop
21070 if test -n "$WINDRES"; then
21071 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
21072 else
21073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21074 for as_dir in $PATH
21075 do
21076 IFS=$as_save_IFS
21077 case $as_dir in #(((
21078 '') as_dir=./ ;;
21079 */) ;;
21080 *) as_dir=$as_dir/ ;;
21081 esac
21082 for ac_exec_ext in '' $ac_executable_extensions; do
21083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21084 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
21085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21086 break 2
21087 fi
21088 done
21089 done
21090 IFS=$as_save_IFS
21091
21092 fi
21093 fi
21094 WINDRES=$ac_cv_prog_WINDRES
21095 if test -n "$WINDRES"; then
21096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
21097 printf "%s\n" "$WINDRES" >&6; }
21098 else
21099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21100 printf "%s\n" "no" >&6; }
21101 fi
21102
21103
21104 fi
21105 if test -z "$ac_cv_prog_WINDRES"; then
21106 ac_ct_WINDRES=$WINDRES
21107 # Extract the first word of "windres", so it can be a program name with args.
21108 set dummy windres; ac_word=$2
21109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21110 printf %s "checking for $ac_word... " >&6; }
21111 if test ${ac_cv_prog_ac_ct_WINDRES+y}
21112 then :
21113 printf %s "(cached) " >&6
21114 else $as_nop
21115 if test -n "$ac_ct_WINDRES"; then
21116 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
21117 else
21118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21119 for as_dir in $PATH
21120 do
21121 IFS=$as_save_IFS
21122 case $as_dir in #(((
21123 '') as_dir=./ ;;
21124 */) ;;
21125 *) as_dir=$as_dir/ ;;
21126 esac
21127 for ac_exec_ext in '' $ac_executable_extensions; do
21128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21129 ac_cv_prog_ac_ct_WINDRES="windres"
21130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21131 break 2
21132 fi
21133 done
21134 done
21135 IFS=$as_save_IFS
21136
21137 fi
21138 fi
21139 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
21140 if test -n "$ac_ct_WINDRES"; then
21141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
21142 printf "%s\n" "$ac_ct_WINDRES" >&6; }
21143 else
21144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21145 printf "%s\n" "no" >&6; }
21146 fi
21147
21148 if test "x$ac_ct_WINDRES" = x; then
21149 WINDRES=""
21150 else
21151 case $cross_compiling:$ac_tool_warned in
21152 yes:)
21153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21154 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21155 ac_tool_warned=yes ;;
21156 esac
21157 WINDRES=$ac_ct_WINDRES
21158 fi
21159 else
21160 WINDRES="$ac_cv_prog_WINDRES"
21161 fi
21162
21163 ;;
21164 esac
21165
21166
21167
21168
21169
21170
21171
21172 BAKEFILE_BAKEFILE_M4_VERSION="0.2.11"
21173
21174
21175 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.11"
21176
21177 COND_BUILD_debug="#"
21178 if test "x$BUILD" = "xdebug" ; then
21179 COND_BUILD_debug=""
21180 fi
21181
21182 COND_BUILD_release="#"
21183 if test "x$BUILD" = "xrelease" ; then
21184 COND_BUILD_release=""
21185 fi
21186
21187 COND_DEPS_TRACKING_0="#"
21188 if test "x$DEPS_TRACKING" = "x0" ; then
21189 COND_DEPS_TRACKING_0=""
21190 fi
21191
21192 COND_DEPS_TRACKING_1="#"
21193 if test "x$DEPS_TRACKING" = "x1" ; then
21194 COND_DEPS_TRACKING_1=""
21195 fi
21196
21197 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
21198 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
21199 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
21200 fi
21201
21202 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
21203 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
21204 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
21205 fi
21206
21207 COND_PLATFORM_MACOSX_1="#"
21208 if test "x$PLATFORM_MACOSX" = "x1" ; then
21209 COND_PLATFORM_MACOSX_1=""
21210 fi
21211
21212 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
21213 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
21214 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
21215 fi
21216
21217 COND_PLATFORM_OS2_1="#"
21218 if test "x$PLATFORM_OS2" = "x1" ; then
21219 COND_PLATFORM_OS2_1=""
21220 fi
21221
21222 COND_USE_SOTWOSYMLINKS_1="#"
21223 if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
21224 COND_USE_SOTWOSYMLINKS_1=""
21225 fi
21226
21227 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
21228 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
21229 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
21230 fi
21231
21232 COND_USE_SOVERLINUX_1="#"
21233 if test "x$USE_SOVERLINUX" = "x1" ; then
21234 COND_USE_SOVERLINUX_1=""
21235 fi
21236
21237 COND_USE_SOVERSION_0="#"
21238 if test "x$USE_SOVERSION" = "x0" ; then
21239 COND_USE_SOVERSION_0=""
21240 fi
21241
21242 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
21243 if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
21244 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
21245 fi
21246
21247 COND_USE_SOVERSOLARIS_1="#"
21248 if test "x$USE_SOVERSOLARIS" = "x1" ; then
21249 COND_USE_SOVERSOLARIS_1=""
21250 fi
21251
21252 COND_WINDOWS_IMPLIB_1="#"
21253 if test "x$WINDOWS_IMPLIB" = "x1" ; then
21254 COND_WINDOWS_IMPLIB_1=""
21255 fi
21256
21257
21258
21259 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
21260 as_fn_error $? "No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" "$LINENO" 5
21261 fi
21262
21263 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
21264 as_fn_error $? "Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." "$LINENO" 5
21265 fi
21266
21267
21268
21269 #
21270 # Configure process complete; write out files generated from *.in.
21271 #
21272 ac_config_files="$ac_config_files doc/userman/userman.dbx install.hta lib/Doxyfile lib/mysql++.h ssx/Doxyfile abi.xml mysql++.spec Makefile version"
21273
21274 cat >confcache <<\_ACEOF
21275 # This file is a shell script that caches the results of configure
21276 # tests run on this system so they can be shared between configure
21277 # scripts and configure runs, see configure's option --config-cache.
21278 # It is not useful on other systems. If it contains results you don't
21279 # want to keep, you may remove or edit it.
21280 #
21281 # config.status only pays attention to the cache file if you give it
21282 # the --recheck option to rerun configure.
21283 #
21284 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21285 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21286 # following values.
21287
21288 _ACEOF
21289
21290 # The following way of writing the cache mishandles newlines in values,
21291 # but we know of no workaround that is simple, portable, and efficient.
21292 # So, we kill variables containing newlines.
21293 # Ultrix sh set writes to stderr and can't be redirected directly,
21294 # and sets the high bit in the cache file unless we assign to the vars.
21295 (
21296 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21297 eval ac_val=\$$ac_var
21298 case $ac_val in #(
21299 *${as_nl}*)
21300 case $ac_var in #(
21301 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21302 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21303 esac
21304 case $ac_var in #(
21305 _ | IFS | as_nl) ;; #(
21306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21307 *) { eval $ac_var=; unset $ac_var;} ;;
21308 esac ;;
21309 esac
21310 done
21311
21312 (set) 2>&1 |
21313 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21314 *${as_nl}ac_space=\ *)
21315 # `set' does not quote correctly, so add quotes: double-quote
21316 # substitution turns \\\\ into \\, and sed turns \\ into \.
21317 sed -n \
21318 "s/'/'\\\\''/g;
21319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21320 ;; #(
21321 *)
21322 # `set' quotes correctly as required by POSIX, so do not add quotes.
21323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21324 ;;
21325 esac |
21326 sort
21327 ) |
21328 sed '
21329 /^ac_cv_env_/b end
21330 t clear
21331 :clear
21332 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21333 t end
21334 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21335 :end' >>confcache
21336 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21337 if test -w "$cache_file"; then
21338 if test "x$cache_file" != "x/dev/null"; then
21339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21340 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21341 if test ! -f "$cache_file" || test -h "$cache_file"; then
21342 cat confcache >"$cache_file"
21343 else
21344 case $cache_file in #(
21345 */* | ?:*)
21346 mv -f confcache "$cache_file"$$ &&
21347 mv -f "$cache_file"$$ "$cache_file" ;; #(
21348 *)
21349 mv -f confcache "$cache_file" ;;
21350 esac
21351 fi
21352 fi
21353 else
21354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21355 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21356 fi
21357 fi
21358 rm -f confcache
21359
21360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21361 # Let make expand exec_prefix.
21362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21363
21364 DEFS=-DHAVE_CONFIG_H
21365
21366 ac_libobjs=
21367 ac_ltlibobjs=
21368 U=
21369 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21370 # 1. Remove the extension, and $U if already installed.
21371 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21372 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21373 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21374 # will be set to the directory where LIBOBJS objects are built.
21375 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21376 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21377 done
21378 LIBOBJS=$ac_libobjs
21379
21380 LTLIBOBJS=$ac_ltlibobjs
21381
21382
21383
21384 : "${CONFIG_STATUS=./config.status}"
21385 ac_write_fail=0
21386 ac_clean_files_save=$ac_clean_files
21387 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21389 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21390 as_write_fail=0
21391 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21392 #! $SHELL
21393 # Generated by $as_me.
21394 # Run this file to recreate the current configuration.
21395 # Compiler output produced by configure, useful for debugging
21396 # configure, is in config.log if it exists.
21397
21398 debug=false
21399 ac_cs_recheck=false
21400 ac_cs_silent=false
21401
21402 SHELL=\${CONFIG_SHELL-$SHELL}
21403 export SHELL
21404 _ASEOF
21405 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21406 ## -------------------- ##
21407 ## M4sh Initialization. ##
21408 ## -------------------- ##
21409
21410 # Be more Bourne compatible
21411 DUALCASE=1; export DUALCASE # for MKS sh
21412 as_nop=:
21413 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21414 then :
21415 emulate sh
21416 NULLCMD=:
21417 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21418 # is contrary to our usage. Disable this feature.
21419 alias -g '${1+"$@"}'='"$@"'
21420 setopt NO_GLOB_SUBST
21421 else $as_nop
21422 case `(set -o) 2>/dev/null` in #(
21423 *posix*) :
21424 set -o posix ;; #(
21425 *) :
21426 ;;
21427 esac
21428 fi
21429
21430
21431
21432 # Reset variables that may have inherited troublesome values from
21433 # the environment.
21434
21435 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21436 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21437 # side effect of setting IFS to empty, thus disabling word splitting.)
21438 # Quoting is to prevent editors from complaining about space-tab.
21439 as_nl='
21440 '
21441 export as_nl
21442 IFS=" "" $as_nl"
21443
21444 PS1='$ '
21445 PS2='> '
21446 PS4='+ '
21447
21448 # Ensure predictable behavior from utilities with locale-dependent output.
21449 LC_ALL=C
21450 export LC_ALL
21451 LANGUAGE=C
21452 export LANGUAGE
21453
21454 # We cannot yet rely on "unset" to work, but we need these variables
21455 # to be unset--not just set to an empty or harmless value--now, to
21456 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21457 # also avoids known problems related to "unset" and subshell syntax
21458 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21459 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21460 do eval test \${$as_var+y} \
21461 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21462 done
21463
21464 # Ensure that fds 0, 1, and 2 are open.
21465 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21466 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21467 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21468
21469 # The user is always right.
21470 if ${PATH_SEPARATOR+false} :; then
21471 PATH_SEPARATOR=:
21472 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21473 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21474 PATH_SEPARATOR=';'
21475 }
21476 fi
21477
21478
21479 # Find who we are. Look in the path if we contain no directory separator.
21480 as_myself=
21481 case $0 in #((
21482 *[\\/]* ) as_myself=$0 ;;
21483 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21484 for as_dir in $PATH
21485 do
21486 IFS=$as_save_IFS
21487 case $as_dir in #(((
21488 '') as_dir=./ ;;
21489 */) ;;
21490 *) as_dir=$as_dir/ ;;
21491 esac
21492 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21493 done
21494 IFS=$as_save_IFS
21495
21496 ;;
21497 esac
21498 # We did not find ourselves, most probably we were run as `sh COMMAND'
21499 # in which case we are not to be found in the path.
21500 if test "x$as_myself" = x; then
21501 as_myself=$0
21502 fi
21503 if test ! -f "$as_myself"; then
21504 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21505 exit 1
21506 fi
21507
21508
21509
21510 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21511 # ----------------------------------------
21512 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21513 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21514 # script with STATUS, using 1 if that was 0.
21515 as_fn_error ()
21516 {
21517 as_status=$1; test $as_status -eq 0 && as_status=1
21518 if test "$4"; then
21519 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21521 fi
21522 printf "%s\n" "$as_me: error: $2" >&2
21523 as_fn_exit $as_status
21524 } # as_fn_error
21525
21526
21527
21528 # as_fn_set_status STATUS
21529 # -----------------------
21530 # Set $? to STATUS, without forking.
21531 as_fn_set_status ()
21532 {
21533 return $1
21534 } # as_fn_set_status
21535
21536 # as_fn_exit STATUS
21537 # -----------------
21538 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21539 as_fn_exit ()
21540 {
21541 set +e
21542 as_fn_set_status $1
21543 exit $1
21544 } # as_fn_exit
21545
21546 # as_fn_unset VAR
21547 # ---------------
21548 # Portably unset VAR.
21549 as_fn_unset ()
21550 {
21551 { eval $1=; unset $1;}
21552 }
21553 as_unset=as_fn_unset
21554
21555 # as_fn_append VAR VALUE
21556 # ----------------------
21557 # Append the text in VALUE to the end of the definition contained in VAR. Take
21558 # advantage of any shell optimizations that allow amortized linear growth over
21559 # repeated appends, instead of the typical quadratic growth present in naive
21560 # implementations.
21561 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21562 then :
21563 eval 'as_fn_append ()
21564 {
21565 eval $1+=\$2
21566 }'
21567 else $as_nop
21568 as_fn_append ()
21569 {
21570 eval $1=\$$1\$2
21571 }
21572 fi # as_fn_append
21573
21574 # as_fn_arith ARG...
21575 # ------------------
21576 # Perform arithmetic evaluation on the ARGs, and store the result in the
21577 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21578 # must be portable across $(()) and expr.
21579 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21580 then :
21581 eval 'as_fn_arith ()
21582 {
21583 as_val=$(( $* ))
21584 }'
21585 else $as_nop
21586 as_fn_arith ()
21587 {
21588 as_val=`expr "$@" || test $? -eq 1`
21589 }
21590 fi # as_fn_arith
21591
21592
21593 if expr a : '\(a\)' >/dev/null 2>&1 &&
21594 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21595 as_expr=expr
21596 else
21597 as_expr=false
21598 fi
21599
21600 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21601 as_basename=basename
21602 else
21603 as_basename=false
21604 fi
21605
21606 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21607 as_dirname=dirname
21608 else
21609 as_dirname=false
21610 fi
21611
21612 as_me=`$as_basename -- "$0" ||
21613 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21614 X"$0" : 'X\(//\)$' \| \
21615 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21616 printf "%s\n" X/"$0" |
21617 sed '/^.*\/\([^/][^/]*\)\/*$/{
21618 s//\1/
21619 q
21620 }
21621 /^X\/\(\/\/\)$/{
21622 s//\1/
21623 q
21624 }
21625 /^X\/\(\/\).*/{
21626 s//\1/
21627 q
21628 }
21629 s/.*/./; q'`
21630
21631 # Avoid depending upon Character Ranges.
21632 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21633 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21634 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21635 as_cr_digits='0123456789'
21636 as_cr_alnum=$as_cr_Letters$as_cr_digits
21637
21638
21639 # Determine whether it's possible to make 'echo' print without a newline.
21640 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21641 # for compatibility with existing Makefiles.
21642 ECHO_C= ECHO_N= ECHO_T=
21643 case `echo -n x` in #(((((
21644 -n*)
21645 case `echo 'xy\c'` in
21646 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21647 xy) ECHO_C='\c';;
21648 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21649 ECHO_T=' ';;
21650 esac;;
21651 *)
21652 ECHO_N='-n';;
21653 esac
21654
21655 # For backward compatibility with old third-party macros, we provide
21656 # the shell variables $as_echo and $as_echo_n. New code should use
21657 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21658 as_echo='printf %s\n'
21659 as_echo_n='printf %s'
21660
21661 rm -f conf$$ conf$$.exe conf$$.file
21662 if test -d conf$$.dir; then
21663 rm -f conf$$.dir/conf$$.file
21664 else
21665 rm -f conf$$.dir
21666 mkdir conf$$.dir 2>/dev/null
21667 fi
21668 if (echo >conf$$.file) 2>/dev/null; then
21669 if ln -s conf$$.file conf$$ 2>/dev/null; then
21670 as_ln_s='ln -s'
21671 # ... but there are two gotchas:
21672 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21673 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21674 # In both cases, we have to default to `cp -pR'.
21675 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21676 as_ln_s='cp -pR'
21677 elif ln conf$$.file conf$$ 2>/dev/null; then
21678 as_ln_s=ln
21679 else
21680 as_ln_s='cp -pR'
21681 fi
21682 else
21683 as_ln_s='cp -pR'
21684 fi
21685 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21686 rmdir conf$$.dir 2>/dev/null
21687
21688
21689 # as_fn_mkdir_p
21690 # -------------
21691 # Create "$as_dir" as a directory, including parents if necessary.
21692 as_fn_mkdir_p ()
21693 {
21694
21695 case $as_dir in #(
21696 -*) as_dir=./$as_dir;;
21697 esac
21698 test -d "$as_dir" || eval $as_mkdir_p || {
21699 as_dirs=
21700 while :; do
21701 case $as_dir in #(
21702 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21703 *) as_qdir=$as_dir;;
21704 esac
21705 as_dirs="'$as_qdir' $as_dirs"
21706 as_dir=`$as_dirname -- "$as_dir" ||
21707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21708 X"$as_dir" : 'X\(//\)[^/]' \| \
21709 X"$as_dir" : 'X\(//\)$' \| \
21710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21711 printf "%s\n" X"$as_dir" |
21712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21713 s//\1/
21714 q
21715 }
21716 /^X\(\/\/\)[^/].*/{
21717 s//\1/
21718 q
21719 }
21720 /^X\(\/\/\)$/{
21721 s//\1/
21722 q
21723 }
21724 /^X\(\/\).*/{
21725 s//\1/
21726 q
21727 }
21728 s/.*/./; q'`
21729 test -d "$as_dir" && break
21730 done
21731 test -z "$as_dirs" || eval "mkdir $as_dirs"
21732 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21733
21734
21735 } # as_fn_mkdir_p
21736 if mkdir -p . 2>/dev/null; then
21737 as_mkdir_p='mkdir -p "$as_dir"'
21738 else
21739 test -d ./-p && rmdir ./-p
21740 as_mkdir_p=false
21741 fi
21742
21743
21744 # as_fn_executable_p FILE
21745 # -----------------------
21746 # Test if FILE is an executable regular file.
21747 as_fn_executable_p ()
21748 {
21749 test -f "$1" && test -x "$1"
21750 } # as_fn_executable_p
21751 as_test_x='test -x'
21752 as_executable_p=as_fn_executable_p
21753
21754 # Sed expression to map a string onto a valid CPP name.
21755 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21756
21757 # Sed expression to map a string onto a valid variable name.
21758 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21759
21760
21761 exec 6>&1
21762 ## ----------------------------------- ##
21763 ## Main body of $CONFIG_STATUS script. ##
21764 ## ----------------------------------- ##
21765 _ASEOF
21766 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21767
21768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21769 # Save the log message, to keep $0 and so on meaningful, and to
21770 # report actual input values of CONFIG_FILES etc. instead of their
21771 # values after options handling.
21772 ac_log="
21773 This file was extended by mysql++ $as_me 3.3.0, which was
21774 generated by GNU Autoconf 2.71. Invocation command line was
21775
21776 CONFIG_FILES = $CONFIG_FILES
21777 CONFIG_HEADERS = $CONFIG_HEADERS
21778 CONFIG_LINKS = $CONFIG_LINKS
21779 CONFIG_COMMANDS = $CONFIG_COMMANDS
21780 $ $0 $@
21781
21782 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21783 "
21784
21785 _ACEOF
21786
21787 case $ac_config_files in *"
21788 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21789 esac
21790
21791 case $ac_config_headers in *"
21792 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21793 esac
21794
21795
21796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21797 # Files that config.status was made for.
21798 config_files="$ac_config_files"
21799 config_headers="$ac_config_headers"
21800 config_commands="$ac_config_commands"
21801
21802 _ACEOF
21803
21804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21805 ac_cs_usage="\
21806 \`$as_me' instantiates files and other configuration actions
21807 from templates according to the current configuration. Unless the files
21808 and actions are specified as TAGs, all are instantiated by default.
21809
21810 Usage: $0 [OPTION]... [TAG]...
21811
21812 -h, --help print this help, then exit
21813 -V, --version print version number and configuration settings, then exit
21814 --config print configuration, then exit
21815 -q, --quiet, --silent
21816 do not print progress messages
21817 -d, --debug don't remove temporary files
21818 --recheck update $as_me by reconfiguring in the same conditions
21819 --file=FILE[:TEMPLATE]
21820 instantiate the configuration file FILE
21821 --header=FILE[:TEMPLATE]
21822 instantiate the configuration header FILE
21823
21824 Configuration files:
21825 $config_files
21826
21827 Configuration headers:
21828 $config_headers
21829
21830 Configuration commands:
21831 $config_commands
21832
21833 Report bugs to <[email protected]>."
21834
21835 _ACEOF
21836 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21837 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21839 ac_cs_config='$ac_cs_config_escaped'
21840 ac_cs_version="\\
21841 mysql++ config.status 3.3.0
21842 configured by $0, generated by GNU Autoconf 2.71,
21843 with options \\"\$ac_cs_config\\"
21844
21845 Copyright (C) 2021 Free Software Foundation, Inc.
21846 This config.status script is free software; the Free Software Foundation
21847 gives unlimited permission to copy, distribute and modify it."
21848
21849 ac_pwd='$ac_pwd'
21850 srcdir='$srcdir'
21851 INSTALL='$INSTALL'
21852 AWK='$AWK'
21853 test -n "\$AWK" || AWK=awk
21854 _ACEOF
21855
21856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21857 # The default lists apply if the user does not specify any file.
21858 ac_need_defaults=:
21859 while test $# != 0
21860 do
21861 case $1 in
21862 --*=?*)
21863 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21864 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21865 ac_shift=:
21866 ;;
21867 --*=)
21868 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21869 ac_optarg=
21870 ac_shift=:
21871 ;;
21872 *)
21873 ac_option=$1
21874 ac_optarg=$2
21875 ac_shift=shift
21876 ;;
21877 esac
21878
21879 case $ac_option in
21880 # Handling of the options.
21881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21882 ac_cs_recheck=: ;;
21883 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21884 printf "%s\n" "$ac_cs_version"; exit ;;
21885 --config | --confi | --conf | --con | --co | --c )
21886 printf "%s\n" "$ac_cs_config"; exit ;;
21887 --debug | --debu | --deb | --de | --d | -d )
21888 debug=: ;;
21889 --file | --fil | --fi | --f )
21890 $ac_shift
21891 case $ac_optarg in
21892 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21893 '') as_fn_error $? "missing file argument" ;;
21894 esac
21895 as_fn_append CONFIG_FILES " '$ac_optarg'"
21896 ac_need_defaults=false;;
21897 --header | --heade | --head | --hea )
21898 $ac_shift
21899 case $ac_optarg in
21900 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21901 esac
21902 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21903 ac_need_defaults=false;;
21904 --he | --h)
21905 # Conflict between --help and --header
21906 as_fn_error $? "ambiguous option: \`$1'
21907 Try \`$0 --help' for more information.";;
21908 --help | --hel | -h )
21909 printf "%s\n" "$ac_cs_usage"; exit ;;
21910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21911 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21912 ac_cs_silent=: ;;
21913
21914 # This is an error.
21915 -*) as_fn_error $? "unrecognized option: \`$1'
21916 Try \`$0 --help' for more information." ;;
21917
21918 *) as_fn_append ac_config_targets " $1"
21919 ac_need_defaults=false ;;
21920
21921 esac
21922 shift
21923 done
21924
21925 ac_configure_extra_args=
21926
21927 if $ac_cs_silent; then
21928 exec 6>/dev/null
21929 ac_configure_extra_args="$ac_configure_extra_args --silent"
21930 fi
21931
21932 _ACEOF
21933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21934 if \$ac_cs_recheck; then
21935 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21936 shift
21937 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21938 CONFIG_SHELL='$SHELL'
21939 export CONFIG_SHELL
21940 exec "\$@"
21941 fi
21942
21943 _ACEOF
21944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21945 exec 5>>config.log
21946 {
21947 echo
21948 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21949 ## Running $as_me. ##
21950 _ASBOX
21951 printf "%s\n" "$ac_log"
21952 } >&5
21953
21954 _ACEOF
21955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21956 #
21957 # INIT-COMMANDS
21958 #
21959
21960
21961 # The HP-UX ksh and POSIX shell print the target directory to stdout
21962 # if CDPATH is set.
21963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21964
21965 sed_quote_subst='$sed_quote_subst'
21966 double_quote_subst='$double_quote_subst'
21967 delay_variable_subst='$delay_variable_subst'
21968 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21969 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21970 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21971 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21972 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21973 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21974 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21975 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21976 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21977 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21978 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21979 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21980 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21981 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21982 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21983 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21984 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21985 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21986 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21987 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21988 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21989 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21990 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21991 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21992 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21993 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21994 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21995 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21996 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21997 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21998 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21999 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22000 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22001 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22002 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22003 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22004 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22005 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22006 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22007 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22008 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22009 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22010 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22011 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22012 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22013 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22014 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22015 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22016 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22017 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22018 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22019 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22020 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22021 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22022 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22023 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22024 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22025 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22026 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"`'
22027 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22028 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22029 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22030 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22031 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22032 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22033 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22034 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22035 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22036 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22037 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22038 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22039 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22040 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22041 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22042 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22043 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22044 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22045 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22046 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22047 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22048 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22049 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22050 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22051 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22052 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22053 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22054 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22055 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22056 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22057 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22058 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22059 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22060 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22061 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22062 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22063 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22064 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22065 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22066 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22067 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22068 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22069 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22070 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22071 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22072 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22073 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22074 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22075 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22076 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22077 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22078 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22079 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22080 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22081 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22082 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22083 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22084 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22085 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22086 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22087 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22088 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22089 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22090 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22091 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22092 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22093 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22094 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22095 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22096 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22097 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22098 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22099 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22100 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22101 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22102 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22103 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22104 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22105 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22106 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22107 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22108 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22109 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22110 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22111 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22112 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22113 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22114 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22115 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22116 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22117 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22118 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22119 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22120 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22121 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22122 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22123 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22124 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22125 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22126 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22127 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22128 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22129 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22130 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22131 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22132 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22133 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22134 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22135 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22136 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22137 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22138 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22139 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22140 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22141 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22142 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22143 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22144 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22145 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22146 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22147 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22148 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22149 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22150 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22151 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22152 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22153 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22154 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22155 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22156 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22157
22158 LTCC='$LTCC'
22159 LTCFLAGS='$LTCFLAGS'
22160 compiler='$compiler_DEFAULT'
22161
22162 # A function that is used when there is no print builtin or printf.
22163 func_fallback_echo ()
22164 {
22165 eval 'cat <<_LTECHO_EOF
22166 \$1
22167 _LTECHO_EOF'
22168 }
22169
22170 # Quote evaled strings.
22171 for var in SHELL \
22172 ECHO \
22173 PATH_SEPARATOR \
22174 SED \
22175 GREP \
22176 EGREP \
22177 FGREP \
22178 LD \
22179 NM \
22180 LN_S \
22181 lt_SP2NL \
22182 lt_NL2SP \
22183 reload_flag \
22184 OBJDUMP \
22185 deplibs_check_method \
22186 file_magic_cmd \
22187 file_magic_glob \
22188 want_nocaseglob \
22189 DLLTOOL \
22190 sharedlib_from_linklib_cmd \
22191 AR \
22192 AR_FLAGS \
22193 archiver_list_spec \
22194 STRIP \
22195 RANLIB \
22196 CC \
22197 CFLAGS \
22198 compiler \
22199 lt_cv_sys_global_symbol_pipe \
22200 lt_cv_sys_global_symbol_to_cdecl \
22201 lt_cv_sys_global_symbol_to_import \
22202 lt_cv_sys_global_symbol_to_c_name_address \
22203 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22204 lt_cv_nm_interface \
22205 nm_file_list_spec \
22206 lt_cv_truncate_bin \
22207 lt_prog_compiler_no_builtin_flag \
22208 lt_prog_compiler_pic \
22209 lt_prog_compiler_wl \
22210 lt_prog_compiler_static \
22211 lt_cv_prog_compiler_c_o \
22212 need_locks \
22213 MANIFEST_TOOL \
22214 DSYMUTIL \
22215 NMEDIT \
22216 LIPO \
22217 OTOOL \
22218 OTOOL64 \
22219 shrext_cmds \
22220 export_dynamic_flag_spec \
22221 whole_archive_flag_spec \
22222 compiler_needs_object \
22223 with_gnu_ld \
22224 allow_undefined_flag \
22225 no_undefined_flag \
22226 hardcode_libdir_flag_spec \
22227 hardcode_libdir_separator \
22228 exclude_expsyms \
22229 include_expsyms \
22230 file_list_spec \
22231 variables_saved_for_relink \
22232 libname_spec \
22233 library_names_spec \
22234 soname_spec \
22235 install_override_mode \
22236 finish_eval \
22237 old_striplib \
22238 striplib \
22239 compiler_lib_search_dirs \
22240 predep_objects \
22241 postdep_objects \
22242 predeps \
22243 postdeps \
22244 compiler_lib_search_path \
22245 LD_CXX \
22246 reload_flag_CXX \
22247 compiler_CXX \
22248 lt_prog_compiler_no_builtin_flag_CXX \
22249 lt_prog_compiler_pic_CXX \
22250 lt_prog_compiler_wl_CXX \
22251 lt_prog_compiler_static_CXX \
22252 lt_cv_prog_compiler_c_o_CXX \
22253 export_dynamic_flag_spec_CXX \
22254 whole_archive_flag_spec_CXX \
22255 compiler_needs_object_CXX \
22256 with_gnu_ld_CXX \
22257 allow_undefined_flag_CXX \
22258 no_undefined_flag_CXX \
22259 hardcode_libdir_flag_spec_CXX \
22260 hardcode_libdir_separator_CXX \
22261 exclude_expsyms_CXX \
22262 include_expsyms_CXX \
22263 file_list_spec_CXX \
22264 compiler_lib_search_dirs_CXX \
22265 predep_objects_CXX \
22266 postdep_objects_CXX \
22267 predeps_CXX \
22268 postdeps_CXX \
22269 compiler_lib_search_path_CXX; do
22270 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22271 *[\\\\\\\`\\"\\\$]*)
22272 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22273 ;;
22274 *)
22275 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22276 ;;
22277 esac
22278 done
22279
22280 # Double-quote double-evaled strings.
22281 for var in reload_cmds \
22282 old_postinstall_cmds \
22283 old_postuninstall_cmds \
22284 old_archive_cmds \
22285 extract_expsyms_cmds \
22286 old_archive_from_new_cmds \
22287 old_archive_from_expsyms_cmds \
22288 archive_cmds \
22289 archive_expsym_cmds \
22290 module_cmds \
22291 module_expsym_cmds \
22292 export_symbols_cmds \
22293 prelink_cmds \
22294 postlink_cmds \
22295 postinstall_cmds \
22296 postuninstall_cmds \
22297 finish_cmds \
22298 sys_lib_search_path_spec \
22299 configure_time_dlsearch_path \
22300 configure_time_lt_sys_library_path \
22301 reload_cmds_CXX \
22302 old_archive_cmds_CXX \
22303 old_archive_from_new_cmds_CXX \
22304 old_archive_from_expsyms_cmds_CXX \
22305 archive_cmds_CXX \
22306 archive_expsym_cmds_CXX \
22307 module_cmds_CXX \
22308 module_expsym_cmds_CXX \
22309 export_symbols_cmds_CXX \
22310 prelink_cmds_CXX \
22311 postlink_cmds_CXX; do
22312 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22313 *[\\\\\\\`\\"\\\$]*)
22314 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22315 ;;
22316 *)
22317 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22318 ;;
22319 esac
22320 done
22321
22322 ac_aux_dir='$ac_aux_dir'
22323
22324 # See if we are running on zsh, and set the options that allow our
22325 # commands through without removal of \ escapes INIT.
22326 if test -n "\${ZSH_VERSION+set}"; then
22327 setopt NO_GLOB_SUBST
22328 fi
22329
22330
22331 PACKAGE='$PACKAGE'
22332 VERSION='$VERSION'
22333 RM='$RM'
22334 ofile='$ofile'
22335
22336
22337
22338
22339
22340
22341 _ACEOF
22342
22343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22344
22345 # Handling of arguments.
22346 for ac_config_target in $ac_config_targets
22347 do
22348 case $ac_config_target in
22349 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22350 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22351 "doc/userman/userman.dbx") CONFIG_FILES="$CONFIG_FILES doc/userman/userman.dbx" ;;
22352 "install.hta") CONFIG_FILES="$CONFIG_FILES install.hta" ;;
22353 "lib/Doxyfile") CONFIG_FILES="$CONFIG_FILES lib/Doxyfile" ;;
22354 "lib/mysql++.h") CONFIG_FILES="$CONFIG_FILES lib/mysql++.h" ;;
22355 "ssx/Doxyfile") CONFIG_FILES="$CONFIG_FILES ssx/Doxyfile" ;;
22356 "abi.xml") CONFIG_FILES="$CONFIG_FILES abi.xml" ;;
22357 "mysql++.spec") CONFIG_FILES="$CONFIG_FILES mysql++.spec" ;;
22358 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22359 "version") CONFIG_FILES="$CONFIG_FILES version" ;;
22360
22361 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22362 esac
22363 done
22364
22365
22366 # If the user did not use the arguments to specify the items to instantiate,
22367 # then the envvar interface is used. Set only those that are not.
22368 # We use the long form for the default assignment because of an extremely
22369 # bizarre bug on SunOS 4.1.3.
22370 if $ac_need_defaults; then
22371 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22372 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22373 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22374 fi
22375
22376 # Have a temporary directory for convenience. Make it in the build tree
22377 # simply because there is no reason against having it here, and in addition,
22378 # creating and moving files from /tmp can sometimes cause problems.
22379 # Hook for its removal unless debugging.
22380 # Note that there is a small window in which the directory will not be cleaned:
22381 # after its creation but before its name has been assigned to `$tmp'.
22382 $debug ||
22383 {
22384 tmp= ac_tmp=
22385 trap 'exit_status=$?
22386 : "${ac_tmp:=$tmp}"
22387 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22388 ' 0
22389 trap 'as_fn_exit 1' 1 2 13 15
22390 }
22391 # Create a (secure) tmp directory for tmp files.
22392
22393 {
22394 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22395 test -d "$tmp"
22396 } ||
22397 {
22398 tmp=./conf$$-$RANDOM
22399 (umask 077 && mkdir "$tmp")
22400 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22401 ac_tmp=$tmp
22402
22403 # Set up the scripts for CONFIG_FILES section.
22404 # No need to generate them if there are no CONFIG_FILES.
22405 # This happens for instance with `./config.status config.h'.
22406 if test -n "$CONFIG_FILES"; then
22407
22408
22409 ac_cr=`echo X | tr X '\015'`
22410 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22411 # But we know of no other shell where ac_cr would be empty at this
22412 # point, so we can use a bashism as a fallback.
22413 if test "x$ac_cr" = x; then
22414 eval ac_cr=\$\'\\r\'
22415 fi
22416 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22417 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22418 ac_cs_awk_cr='\\r'
22419 else
22420 ac_cs_awk_cr=$ac_cr
22421 fi
22422
22423 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22424 _ACEOF
22425
22426
22427 {
22428 echo "cat >conf$$subs.awk <<_ACEOF" &&
22429 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22430 echo "_ACEOF"
22431 } >conf$$subs.sh ||
22432 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22433 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22434 ac_delim='%!_!# '
22435 for ac_last_try in false false false false false :; do
22436 . ./conf$$subs.sh ||
22437 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22438
22439 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22440 if test $ac_delim_n = $ac_delim_num; then
22441 break
22442 elif $ac_last_try; then
22443 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22444 else
22445 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22446 fi
22447 done
22448 rm -f conf$$subs.sh
22449
22450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22451 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22452 _ACEOF
22453 sed -n '
22454 h
22455 s/^/S["/; s/!.*/"]=/
22456 p
22457 g
22458 s/^[^!]*!//
22459 :repl
22460 t repl
22461 s/'"$ac_delim"'$//
22462 t delim
22463 :nl
22464 h
22465 s/\(.\{148\}\)..*/\1/
22466 t more1
22467 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22468 p
22469 n
22470 b repl
22471 :more1
22472 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22473 p
22474 g
22475 s/.\{148\}//
22476 t nl
22477 :delim
22478 h
22479 s/\(.\{148\}\)..*/\1/
22480 t more2
22481 s/["\\]/\\&/g; s/^/"/; s/$/"/
22482 p
22483 b
22484 :more2
22485 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22486 p
22487 g
22488 s/.\{148\}//
22489 t delim
22490 ' <conf$$subs.awk | sed '
22491 /^[^""]/{
22492 N
22493 s/\n//
22494 }
22495 ' >>$CONFIG_STATUS || ac_write_fail=1
22496 rm -f conf$$subs.awk
22497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22498 _ACAWK
22499 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22500 for (key in S) S_is_set[key] = 1
22501 FS = ""
22502
22503 }
22504 {
22505 line = $ 0
22506 nfields = split(line, field, "@")
22507 substed = 0
22508 len = length(field[1])
22509 for (i = 2; i < nfields; i++) {
22510 key = field[i]
22511 keylen = length(key)
22512 if (S_is_set[key]) {
22513 value = S[key]
22514 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22515 len += length(value) + length(field[++i])
22516 substed = 1
22517 } else
22518 len += 1 + keylen
22519 }
22520
22521 print line
22522 }
22523
22524 _ACAWK
22525 _ACEOF
22526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22527 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22528 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22529 else
22530 cat
22531 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22532 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22533 _ACEOF
22534
22535 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22536 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22537 # trailing colons and then remove the whole line if VPATH becomes empty
22538 # (actually we leave an empty line to preserve line numbers).
22539 if test "x$srcdir" = x.; then
22540 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22541 h
22542 s///
22543 s/^/:/
22544 s/[ ]*$/:/
22545 s/:\$(srcdir):/:/g
22546 s/:\${srcdir}:/:/g
22547 s/:@srcdir@:/:/g
22548 s/^:*//
22549 s/:*$//
22550 x
22551 s/\(=[ ]*\).*/\1/
22552 G
22553 s/\n//
22554 s/^[^=]*=[ ]*$//
22555 }'
22556 fi
22557
22558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22559 fi # test -n "$CONFIG_FILES"
22560
22561 # Set up the scripts for CONFIG_HEADERS section.
22562 # No need to generate them if there are no CONFIG_HEADERS.
22563 # This happens for instance with `./config.status Makefile'.
22564 if test -n "$CONFIG_HEADERS"; then
22565 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22566 BEGIN {
22567 _ACEOF
22568
22569 # Transform confdefs.h into an awk script `defines.awk', embedded as
22570 # here-document in config.status, that substitutes the proper values into
22571 # config.h.in to produce config.h.
22572
22573 # Create a delimiter string that does not exist in confdefs.h, to ease
22574 # handling of long lines.
22575 ac_delim='%!_!# '
22576 for ac_last_try in false false :; do
22577 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22578 if test -z "$ac_tt"; then
22579 break
22580 elif $ac_last_try; then
22581 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22582 else
22583 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22584 fi
22585 done
22586
22587 # For the awk script, D is an array of macro values keyed by name,
22588 # likewise P contains macro parameters if any. Preserve backslash
22589 # newline sequences.
22590
22591 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22592 sed -n '
22593 s/.\{148\}/&'"$ac_delim"'/g
22594 t rset
22595 :rset
22596 s/^[ ]*#[ ]*define[ ][ ]*/ /
22597 t def
22598 d
22599 :def
22600 s/\\$//
22601 t bsnl
22602 s/["\\]/\\&/g
22603 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22604 D["\1"]=" \3"/p
22605 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22606 d
22607 :bsnl
22608 s/["\\]/\\&/g
22609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22610 D["\1"]=" \3\\\\\\n"\\/p
22611 t cont
22612 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22613 t cont
22614 d
22615 :cont
22616 n
22617 s/.\{148\}/&'"$ac_delim"'/g
22618 t clear
22619 :clear
22620 s/\\$//
22621 t bsnlc
22622 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22623 d
22624 :bsnlc
22625 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22626 b cont
22627 ' <confdefs.h | sed '
22628 s/'"$ac_delim"'/"\\\
22629 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22630
22631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22632 for (key in D) D_is_set[key] = 1
22633 FS = ""
22634 }
22635 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22636 line = \$ 0
22637 split(line, arg, " ")
22638 if (arg[1] == "#") {
22639 defundef = arg[2]
22640 mac1 = arg[3]
22641 } else {
22642 defundef = substr(arg[1], 2)
22643 mac1 = arg[2]
22644 }
22645 split(mac1, mac2, "(") #)
22646 macro = mac2[1]
22647 prefix = substr(line, 1, index(line, defundef) - 1)
22648 if (D_is_set[macro]) {
22649 # Preserve the white space surrounding the "#".
22650 print prefix "define", macro P[macro] D[macro]
22651 next
22652 } else {
22653 # Replace #undef with comments. This is necessary, for example,
22654 # in the case of _POSIX_SOURCE, which is predefined and required
22655 # on some systems where configure will not decide to define it.
22656 if (defundef == "undef") {
22657 print "/*", prefix defundef, macro, "*/"
22658 next
22659 }
22660 }
22661 }
22662 { print }
22663 _ACAWK
22664 _ACEOF
22665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22666 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22667 fi # test -n "$CONFIG_HEADERS"
22668
22669
22670 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22671 shift
22672 for ac_tag
22673 do
22674 case $ac_tag in
22675 :[FHLC]) ac_mode=$ac_tag; continue;;
22676 esac
22677 case $ac_mode$ac_tag in
22678 :[FHL]*:*);;
22679 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22680 :[FH]-) ac_tag=-:-;;
22681 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22682 esac
22683 ac_save_IFS=$IFS
22684 IFS=:
22685 set x $ac_tag
22686 IFS=$ac_save_IFS
22687 shift
22688 ac_file=$1
22689 shift
22690
22691 case $ac_mode in
22692 :L) ac_source=$1;;
22693 :[FH])
22694 ac_file_inputs=
22695 for ac_f
22696 do
22697 case $ac_f in
22698 -) ac_f="$ac_tmp/stdin";;
22699 *) # Look for the file first in the build tree, then in the source tree
22700 # (if the path is not absolute). The absolute path cannot be DOS-style,
22701 # because $ac_f cannot contain `:'.
22702 test -f "$ac_f" ||
22703 case $ac_f in
22704 [\\/$]*) false;;
22705 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22706 esac ||
22707 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22708 esac
22709 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22710 as_fn_append ac_file_inputs " '$ac_f'"
22711 done
22712
22713 # Let's still pretend it is `configure' which instantiates (i.e., don't
22714 # use $as_me), people would be surprised to read:
22715 # /* config.h. Generated by config.status. */
22716 configure_input='Generated from '`
22717 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22718 `' by configure.'
22719 if test x"$ac_file" != x-; then
22720 configure_input="$ac_file. $configure_input"
22721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22722 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22723 fi
22724 # Neutralize special characters interpreted by sed in replacement strings.
22725 case $configure_input in #(
22726 *\&* | *\|* | *\\* )
22727 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22728 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22729 *) ac_sed_conf_input=$configure_input;;
22730 esac
22731
22732 case $ac_tag in
22733 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22735 esac
22736 ;;
22737 esac
22738
22739 ac_dir=`$as_dirname -- "$ac_file" ||
22740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22741 X"$ac_file" : 'X\(//\)[^/]' \| \
22742 X"$ac_file" : 'X\(//\)$' \| \
22743 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22744 printf "%s\n" X"$ac_file" |
22745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22746 s//\1/
22747 q
22748 }
22749 /^X\(\/\/\)[^/].*/{
22750 s//\1/
22751 q
22752 }
22753 /^X\(\/\/\)$/{
22754 s//\1/
22755 q
22756 }
22757 /^X\(\/\).*/{
22758 s//\1/
22759 q
22760 }
22761 s/.*/./; q'`
22762 as_dir="$ac_dir"; as_fn_mkdir_p
22763 ac_builddir=.
22764
22765 case "$ac_dir" in
22766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22767 *)
22768 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22769 # A ".." for each directory in $ac_dir_suffix.
22770 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22771 case $ac_top_builddir_sub in
22772 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22773 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22774 esac ;;
22775 esac
22776 ac_abs_top_builddir=$ac_pwd
22777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22778 # for backward compatibility:
22779 ac_top_builddir=$ac_top_build_prefix
22780
22781 case $srcdir in
22782 .) # We are building in place.
22783 ac_srcdir=.
22784 ac_top_srcdir=$ac_top_builddir_sub
22785 ac_abs_top_srcdir=$ac_pwd ;;
22786 [\\/]* | ?:[\\/]* ) # Absolute name.
22787 ac_srcdir=$srcdir$ac_dir_suffix;
22788 ac_top_srcdir=$srcdir
22789 ac_abs_top_srcdir=$srcdir ;;
22790 *) # Relative name.
22791 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22792 ac_top_srcdir=$ac_top_build_prefix$srcdir
22793 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22794 esac
22795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22796
22797
22798 case $ac_mode in
22799 :F)
22800 #
22801 # CONFIG_FILE
22802 #
22803
22804 case $INSTALL in
22805 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22806 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22807 esac
22808 _ACEOF
22809
22810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22811 # If the template does not know about datarootdir, expand it.
22812 # FIXME: This hack should be removed a few years after 2.60.
22813 ac_datarootdir_hack=; ac_datarootdir_seen=
22814 ac_sed_dataroot='
22815 /datarootdir/ {
22816 p
22817 q
22818 }
22819 /@datadir@/p
22820 /@docdir@/p
22821 /@infodir@/p
22822 /@localedir@/p
22823 /@mandir@/p'
22824 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22825 *datarootdir*) ac_datarootdir_seen=yes;;
22826 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22828 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22829 _ACEOF
22830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22831 ac_datarootdir_hack='
22832 s&@datadir@&$datadir&g
22833 s&@docdir@&$docdir&g
22834 s&@infodir@&$infodir&g
22835 s&@localedir@&$localedir&g
22836 s&@mandir@&$mandir&g
22837 s&\\\${datarootdir}&$datarootdir&g' ;;
22838 esac
22839 _ACEOF
22840
22841 # Neutralize VPATH when `$srcdir' = `.'.
22842 # Shell code in configure.ac might set extrasub.
22843 # FIXME: do we really want to maintain this feature?
22844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22845 ac_sed_extra="$ac_vpsub
22846 $extrasub
22847 _ACEOF
22848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22849 :t
22850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22851 s|@configure_input@|$ac_sed_conf_input|;t t
22852 s&@top_builddir@&$ac_top_builddir_sub&;t t
22853 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22854 s&@srcdir@&$ac_srcdir&;t t
22855 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22856 s&@top_srcdir@&$ac_top_srcdir&;t t
22857 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22858 s&@builddir@&$ac_builddir&;t t
22859 s&@abs_builddir@&$ac_abs_builddir&;t t
22860 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22861 s&@INSTALL@&$ac_INSTALL&;t t
22862 $ac_datarootdir_hack
22863 "
22864 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22865 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22866
22867 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22868 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22869 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22870 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22872 which seems to be undefined. Please make sure it is defined" >&5
22873 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22874 which seems to be undefined. Please make sure it is defined" >&2;}
22875
22876 rm -f "$ac_tmp/stdin"
22877 case $ac_file in
22878 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22879 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22880 esac \
22881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22882 ;;
22883 :H)
22884 #
22885 # CONFIG_HEADER
22886 #
22887 if test x"$ac_file" != x-; then
22888 {
22889 printf "%s\n" "/* $configure_input */" >&1 \
22890 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22891 } >"$ac_tmp/config.h" \
22892 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22893 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22895 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22896 else
22897 rm -f "$ac_file"
22898 mv "$ac_tmp/config.h" "$ac_file" \
22899 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22900 fi
22901 else
22902 printf "%s\n" "/* $configure_input */" >&1 \
22903 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22904 || as_fn_error $? "could not create -" "$LINENO" 5
22905 fi
22906 ;;
22907
22908 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22909 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22910 ;;
22911 esac
22912
22913
22914 case $ac_file$ac_mode in
22915 "libtool":C)
22916
22917 # See if we are running on zsh, and set the options that allow our
22918 # commands through without removal of \ escapes.
22919 if test -n "${ZSH_VERSION+set}"; then
22920 setopt NO_GLOB_SUBST
22921 fi
22922
22923 cfgfile=${ofile}T
22924 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22925 $RM "$cfgfile"
22926
22927 cat <<_LT_EOF >> "$cfgfile"
22928 #! $SHELL
22929 # Generated automatically by $as_me ($PACKAGE) $VERSION
22930 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22931 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22932
22933 # Provide generalized library-building support services.
22934 # Written by Gordon Matzigkeit, 1996
22935
22936 # Copyright (C) 2014 Free Software Foundation, Inc.
22937 # This is free software; see the source for copying conditions. There is NO
22938 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22939
22940 # GNU Libtool is free software; you can redistribute it and/or modify
22941 # it under the terms of the GNU General Public License as published by
22942 # the Free Software Foundation; either version 2 of of the License, or
22943 # (at your option) any later version.
22944 #
22945 # As a special exception to the GNU General Public License, if you
22946 # distribute this file as part of a program or library that is built
22947 # using GNU Libtool, you may include this file under the same
22948 # distribution terms that you use for the rest of that program.
22949 #
22950 # GNU Libtool is distributed in the hope that it will be useful, but
22951 # WITHOUT ANY WARRANTY; without even the implied warranty of
22952 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22953 # GNU General Public License for more details.
22954 #
22955 # You should have received a copy of the GNU General Public License
22956 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22957
22958
22959 # The names of the tagged configurations supported by this script.
22960 available_tags='CXX '
22961
22962 # Configured defaults for sys_lib_dlsearch_path munging.
22963 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22964
22965 # ### BEGIN LIBTOOL CONFIG
22966
22967 # Which release of libtool.m4 was used?
22968 macro_version=$macro_version
22969 macro_revision=$macro_revision
22970
22971 # Whether or not to build shared libraries.
22972 build_libtool_libs=$enable_shared
22973
22974 # Whether or not to build static libraries.
22975 build_old_libs=$enable_static
22976
22977 # What type of objects to build.
22978 pic_mode=$pic_mode
22979
22980 # Whether or not to optimize for fast installation.
22981 fast_install=$enable_fast_install
22982
22983 # Shared archive member basename,for filename based shared library versioning on AIX.
22984 shared_archive_member_spec=$shared_archive_member_spec
22985
22986 # Shell to use when invoking shell scripts.
22987 SHELL=$lt_SHELL
22988
22989 # An echo program that protects backslashes.
22990 ECHO=$lt_ECHO
22991
22992 # The PATH separator for the build system.
22993 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22994
22995 # The host system.
22996 host_alias=$host_alias
22997 host=$host
22998 host_os=$host_os
22999
23000 # The build system.
23001 build_alias=$build_alias
23002 build=$build
23003 build_os=$build_os
23004
23005 # A sed program that does not truncate output.
23006 SED=$lt_SED
23007
23008 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23009 Xsed="\$SED -e 1s/^X//"
23010
23011 # A grep program that handles long lines.
23012 GREP=$lt_GREP
23013
23014 # An ERE matcher.
23015 EGREP=$lt_EGREP
23016
23017 # A literal string matcher.
23018 FGREP=$lt_FGREP
23019
23020 # A BSD- or MS-compatible name lister.
23021 NM=$lt_NM
23022
23023 # Whether we need soft or hard links.
23024 LN_S=$lt_LN_S
23025
23026 # What is the maximum length of a command?
23027 max_cmd_len=$max_cmd_len
23028
23029 # Object file suffix (normally "o").
23030 objext=$ac_objext
23031
23032 # Executable file suffix (normally "").
23033 exeext=$exeext
23034
23035 # whether the shell understands "unset".
23036 lt_unset=$lt_unset
23037
23038 # turn spaces into newlines.
23039 SP2NL=$lt_lt_SP2NL
23040
23041 # turn newlines into spaces.
23042 NL2SP=$lt_lt_NL2SP
23043
23044 # convert \$build file names to \$host format.
23045 to_host_file_cmd=$lt_cv_to_host_file_cmd
23046
23047 # convert \$build files to toolchain format.
23048 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23049
23050 # An object symbol dumper.
23051 OBJDUMP=$lt_OBJDUMP
23052
23053 # Method to check whether dependent libraries are shared objects.
23054 deplibs_check_method=$lt_deplibs_check_method
23055
23056 # Command to use when deplibs_check_method = "file_magic".
23057 file_magic_cmd=$lt_file_magic_cmd
23058
23059 # How to find potential files when deplibs_check_method = "file_magic".
23060 file_magic_glob=$lt_file_magic_glob
23061
23062 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23063 want_nocaseglob=$lt_want_nocaseglob
23064
23065 # DLL creation program.
23066 DLLTOOL=$lt_DLLTOOL
23067
23068 # Command to associate shared and link libraries.
23069 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23070
23071 # The archiver.
23072 AR=$lt_AR
23073
23074 # Flags to create an archive.
23075 AR_FLAGS=$lt_AR_FLAGS
23076
23077 # How to feed a file listing to the archiver.
23078 archiver_list_spec=$lt_archiver_list_spec
23079
23080 # A symbol stripping program.
23081 STRIP=$lt_STRIP
23082
23083 # Commands used to install an old-style archive.
23084 RANLIB=$lt_RANLIB
23085 old_postinstall_cmds=$lt_old_postinstall_cmds
23086 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23087
23088 # Whether to use a lock for old archive extraction.
23089 lock_old_archive_extraction=$lock_old_archive_extraction
23090
23091 # A C compiler.
23092 LTCC=$lt_CC
23093
23094 # LTCC compiler flags.
23095 LTCFLAGS=$lt_CFLAGS
23096
23097 # Take the output of nm and produce a listing of raw symbols and C names.
23098 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23099
23100 # Transform the output of nm in a proper C declaration.
23101 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23102
23103 # Transform the output of nm into a list of symbols to manually relocate.
23104 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23105
23106 # Transform the output of nm in a C name address pair.
23107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23108
23109 # Transform the output of nm in a C name address pair when lib prefix is needed.
23110 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23111
23112 # The name lister interface.
23113 nm_interface=$lt_lt_cv_nm_interface
23114
23115 # Specify filename containing input files for \$NM.
23116 nm_file_list_spec=$lt_nm_file_list_spec
23117
23118 # The root where to search for dependent libraries,and where our libraries should be installed.
23119 lt_sysroot=$lt_sysroot
23120
23121 # Command to truncate a binary pipe.
23122 lt_truncate_bin=$lt_lt_cv_truncate_bin
23123
23124 # The name of the directory that contains temporary libtool files.
23125 objdir=$objdir
23126
23127 # Used to examine libraries when file_magic_cmd begins with "file".
23128 MAGIC_CMD=$MAGIC_CMD
23129
23130 # Must we lock files when doing compilation?
23131 need_locks=$lt_need_locks
23132
23133 # Manifest tool.
23134 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23135
23136 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23137 DSYMUTIL=$lt_DSYMUTIL
23138
23139 # Tool to change global to local symbols on Mac OS X.
23140 NMEDIT=$lt_NMEDIT
23141
23142 # Tool to manipulate fat objects and archives on Mac OS X.
23143 LIPO=$lt_LIPO
23144
23145 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23146 OTOOL=$lt_OTOOL
23147
23148 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23149 OTOOL64=$lt_OTOOL64
23150
23151 # Old archive suffix (normally "a").
23152 libext=$libext
23153
23154 # Shared library suffix (normally ".so").
23155 shrext_cmds=$lt_shrext_cmds
23156
23157 # The commands to extract the exported symbol list from a shared archive.
23158 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23159
23160 # Variables whose values should be saved in libtool wrapper scripts and
23161 # restored at link time.
23162 variables_saved_for_relink=$lt_variables_saved_for_relink
23163
23164 # Do we need the "lib" prefix for modules?
23165 need_lib_prefix=$need_lib_prefix
23166
23167 # Do we need a version for libraries?
23168 need_version=$need_version
23169
23170 # Library versioning type.
23171 version_type=$version_type
23172
23173 # Shared library runtime path variable.
23174 runpath_var=$runpath_var
23175
23176 # Shared library path variable.
23177 shlibpath_var=$shlibpath_var
23178
23179 # Is shlibpath searched before the hard-coded library search path?
23180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23181
23182 # Format of library name prefix.
23183 libname_spec=$lt_libname_spec
23184
23185 # List of archive names. First name is the real one, the rest are links.
23186 # The last name is the one that the linker finds with -lNAME
23187 library_names_spec=$lt_library_names_spec
23188
23189 # The coded name of the library, if different from the real name.
23190 soname_spec=$lt_soname_spec
23191
23192 # Permission mode override for installation of shared libraries.
23193 install_override_mode=$lt_install_override_mode
23194
23195 # Command to use after installation of a shared archive.
23196 postinstall_cmds=$lt_postinstall_cmds
23197
23198 # Command to use after uninstallation of a shared archive.
23199 postuninstall_cmds=$lt_postuninstall_cmds
23200
23201 # Commands used to finish a libtool library installation in a directory.
23202 finish_cmds=$lt_finish_cmds
23203
23204 # As "finish_cmds", except a single script fragment to be evaled but
23205 # not shown.
23206 finish_eval=$lt_finish_eval
23207
23208 # Whether we should hardcode library paths into libraries.
23209 hardcode_into_libs=$hardcode_into_libs
23210
23211 # Compile-time system search path for libraries.
23212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23213
23214 # Detected run-time system search path for libraries.
23215 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23216
23217 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23218 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23219
23220 # Whether dlopen is supported.
23221 dlopen_support=$enable_dlopen
23222
23223 # Whether dlopen of programs is supported.
23224 dlopen_self=$enable_dlopen_self
23225
23226 # Whether dlopen of statically linked programs is supported.
23227 dlopen_self_static=$enable_dlopen_self_static
23228
23229 # Commands to strip libraries.
23230 old_striplib=$lt_old_striplib
23231 striplib=$lt_striplib
23232
23233
23234 # The linker used to build libraries.
23235 LD=$lt_LD
23236
23237 # How to create reloadable object files.
23238 reload_flag=$lt_reload_flag
23239 reload_cmds=$lt_reload_cmds
23240
23241 # Commands used to build an old-style archive.
23242 old_archive_cmds=$lt_old_archive_cmds
23243
23244 # A language specific compiler.
23245 CC=$lt_compiler
23246
23247 # Is the compiler the GNU compiler?
23248 with_gcc=$GCC
23249
23250 # Compiler flag to turn off builtin functions.
23251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23252
23253 # Additional compiler flags for building library objects.
23254 pic_flag=$lt_lt_prog_compiler_pic
23255
23256 # How to pass a linker flag through the compiler.
23257 wl=$lt_lt_prog_compiler_wl
23258
23259 # Compiler flag to prevent dynamic linking.
23260 link_static_flag=$lt_lt_prog_compiler_static
23261
23262 # Does compiler simultaneously support -c and -o options?
23263 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23264
23265 # Whether or not to add -lc for building shared libraries.
23266 build_libtool_need_lc=$archive_cmds_need_lc
23267
23268 # Whether or not to disallow shared libs when runtime libs are static.
23269 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23270
23271 # Compiler flag to allow reflexive dlopens.
23272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23273
23274 # Compiler flag to generate shared objects directly from archives.
23275 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23276
23277 # Whether the compiler copes with passing no objects directly.
23278 compiler_needs_object=$lt_compiler_needs_object
23279
23280 # Create an old-style archive from a shared archive.
23281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23282
23283 # Create a temporary old-style archive to link instead of a shared archive.
23284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23285
23286 # Commands used to build a shared archive.
23287 archive_cmds=$lt_archive_cmds
23288 archive_expsym_cmds=$lt_archive_expsym_cmds
23289
23290 # Commands used to build a loadable module if different from building
23291 # a shared archive.
23292 module_cmds=$lt_module_cmds
23293 module_expsym_cmds=$lt_module_expsym_cmds
23294
23295 # Whether we are building with GNU ld or not.
23296 with_gnu_ld=$lt_with_gnu_ld
23297
23298 # Flag that allows shared libraries with undefined symbols to be built.
23299 allow_undefined_flag=$lt_allow_undefined_flag
23300
23301 # Flag that enforces no undefined symbols.
23302 no_undefined_flag=$lt_no_undefined_flag
23303
23304 # Flag to hardcode \$libdir into a binary during linking.
23305 # This must work even if \$libdir does not exist
23306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23307
23308 # Whether we need a single "-rpath" flag with a separated argument.
23309 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23310
23311 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23312 # DIR into the resulting binary.
23313 hardcode_direct=$hardcode_direct
23314
23315 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23316 # DIR into the resulting binary and the resulting library dependency is
23317 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23318 # library is relocated.
23319 hardcode_direct_absolute=$hardcode_direct_absolute
23320
23321 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23322 # into the resulting binary.
23323 hardcode_minus_L=$hardcode_minus_L
23324
23325 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23326 # into the resulting binary.
23327 hardcode_shlibpath_var=$hardcode_shlibpath_var
23328
23329 # Set to "yes" if building a shared library automatically hardcodes DIR
23330 # into the library and all subsequent libraries and executables linked
23331 # against it.
23332 hardcode_automatic=$hardcode_automatic
23333
23334 # Set to yes if linker adds runtime paths of dependent libraries
23335 # to runtime path list.
23336 inherit_rpath=$inherit_rpath
23337
23338 # Whether libtool must link a program against all its dependency libraries.
23339 link_all_deplibs=$link_all_deplibs
23340
23341 # Set to "yes" if exported symbols are required.
23342 always_export_symbols=$always_export_symbols
23343
23344 # The commands to list exported symbols.
23345 export_symbols_cmds=$lt_export_symbols_cmds
23346
23347 # Symbols that should not be listed in the preloaded symbols.
23348 exclude_expsyms=$lt_exclude_expsyms
23349
23350 # Symbols that must always be exported.
23351 include_expsyms=$lt_include_expsyms
23352
23353 # Commands necessary for linking programs (against libraries) with templates.
23354 prelink_cmds=$lt_prelink_cmds
23355
23356 # Commands necessary for finishing linking programs.
23357 postlink_cmds=$lt_postlink_cmds
23358
23359 # Specify filename containing input files.
23360 file_list_spec=$lt_file_list_spec
23361
23362 # How to hardcode a shared library path into an executable.
23363 hardcode_action=$hardcode_action
23364
23365 # The directories searched by this compiler when creating a shared library.
23366 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23367
23368 # Dependencies to place before and after the objects being linked to
23369 # create a shared library.
23370 predep_objects=$lt_predep_objects
23371 postdep_objects=$lt_postdep_objects
23372 predeps=$lt_predeps
23373 postdeps=$lt_postdeps
23374
23375 # The library search path used internally by the compiler when linking
23376 # a shared library.
23377 compiler_lib_search_path=$lt_compiler_lib_search_path
23378
23379 # ### END LIBTOOL CONFIG
23380
23381 _LT_EOF
23382
23383 cat <<'_LT_EOF' >> "$cfgfile"
23384
23385 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23386
23387 # func_munge_path_list VARIABLE PATH
23388 # -----------------------------------
23389 # VARIABLE is name of variable containing _space_ separated list of
23390 # directories to be munged by the contents of PATH, which is string
23391 # having a format:
23392 # "DIR[:DIR]:"
23393 # string "DIR[ DIR]" will be prepended to VARIABLE
23394 # ":DIR[:DIR]"
23395 # string "DIR[ DIR]" will be appended to VARIABLE
23396 # "DIRP[:DIRP]::[DIRA:]DIRA"
23397 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23398 # "DIRA[ DIRA]" will be appended to VARIABLE
23399 # "DIR[:DIR]"
23400 # VARIABLE will be replaced by "DIR[ DIR]"
23401 func_munge_path_list ()
23402 {
23403 case x$2 in
23404 x)
23405 ;;
23406 *:)
23407 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23408 ;;
23409 x:*)
23410 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23411 ;;
23412 *::*)
23413 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23414 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23415 ;;
23416 *)
23417 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23418 ;;
23419 esac
23420 }
23421
23422
23423 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23424 func_cc_basename ()
23425 {
23426 for cc_temp in $*""; do
23427 case $cc_temp in
23428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23430 \-*) ;;
23431 *) break;;
23432 esac
23433 done
23434 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23435 }
23436
23437
23438 # ### END FUNCTIONS SHARED WITH CONFIGURE
23439
23440 _LT_EOF
23441
23442 case $host_os in
23443 aix3*)
23444 cat <<\_LT_EOF >> "$cfgfile"
23445 # AIX sometimes has problems with the GCC collect2 program. For some
23446 # reason, if we set the COLLECT_NAMES environment variable, the problems
23447 # vanish in a puff of smoke.
23448 if test set != "${COLLECT_NAMES+set}"; then
23449 COLLECT_NAMES=
23450 export COLLECT_NAMES
23451 fi
23452 _LT_EOF
23453 ;;
23454 esac
23455
23456
23457
23458 ltmain=$ac_aux_dir/ltmain.sh
23459
23460
23461 # We use sed instead of cat because bash on DJGPP gets confused if
23462 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23463 # text mode, it properly converts lines to CR/LF. This bash problem
23464 # is reportedly fixed, but why not run on old versions too?
23465 sed '$q' "$ltmain" >> "$cfgfile" \
23466 || (rm -f "$cfgfile"; exit 1)
23467
23468 mv -f "$cfgfile" "$ofile" ||
23469 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23470 chmod +x "$ofile"
23471
23472
23473 cat <<_LT_EOF >> "$ofile"
23474
23475 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23476
23477 # The linker used to build libraries.
23478 LD=$lt_LD_CXX
23479
23480 # How to create reloadable object files.
23481 reload_flag=$lt_reload_flag_CXX
23482 reload_cmds=$lt_reload_cmds_CXX
23483
23484 # Commands used to build an old-style archive.
23485 old_archive_cmds=$lt_old_archive_cmds_CXX
23486
23487 # A language specific compiler.
23488 CC=$lt_compiler_CXX
23489
23490 # Is the compiler the GNU compiler?
23491 with_gcc=$GCC_CXX
23492
23493 # Compiler flag to turn off builtin functions.
23494 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23495
23496 # Additional compiler flags for building library objects.
23497 pic_flag=$lt_lt_prog_compiler_pic_CXX
23498
23499 # How to pass a linker flag through the compiler.
23500 wl=$lt_lt_prog_compiler_wl_CXX
23501
23502 # Compiler flag to prevent dynamic linking.
23503 link_static_flag=$lt_lt_prog_compiler_static_CXX
23504
23505 # Does compiler simultaneously support -c and -o options?
23506 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23507
23508 # Whether or not to add -lc for building shared libraries.
23509 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23510
23511 # Whether or not to disallow shared libs when runtime libs are static.
23512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23513
23514 # Compiler flag to allow reflexive dlopens.
23515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23516
23517 # Compiler flag to generate shared objects directly from archives.
23518 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23519
23520 # Whether the compiler copes with passing no objects directly.
23521 compiler_needs_object=$lt_compiler_needs_object_CXX
23522
23523 # Create an old-style archive from a shared archive.
23524 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23525
23526 # Create a temporary old-style archive to link instead of a shared archive.
23527 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23528
23529 # Commands used to build a shared archive.
23530 archive_cmds=$lt_archive_cmds_CXX
23531 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23532
23533 # Commands used to build a loadable module if different from building
23534 # a shared archive.
23535 module_cmds=$lt_module_cmds_CXX
23536 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23537
23538 # Whether we are building with GNU ld or not.
23539 with_gnu_ld=$lt_with_gnu_ld_CXX
23540
23541 # Flag that allows shared libraries with undefined symbols to be built.
23542 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23543
23544 # Flag that enforces no undefined symbols.
23545 no_undefined_flag=$lt_no_undefined_flag_CXX
23546
23547 # Flag to hardcode \$libdir into a binary during linking.
23548 # This must work even if \$libdir does not exist
23549 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23550
23551 # Whether we need a single "-rpath" flag with a separated argument.
23552 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23553
23554 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23555 # DIR into the resulting binary.
23556 hardcode_direct=$hardcode_direct_CXX
23557
23558 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23559 # DIR into the resulting binary and the resulting library dependency is
23560 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23561 # library is relocated.
23562 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23563
23564 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23565 # into the resulting binary.
23566 hardcode_minus_L=$hardcode_minus_L_CXX
23567
23568 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23569 # into the resulting binary.
23570 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23571
23572 # Set to "yes" if building a shared library automatically hardcodes DIR
23573 # into the library and all subsequent libraries and executables linked
23574 # against it.
23575 hardcode_automatic=$hardcode_automatic_CXX
23576
23577 # Set to yes if linker adds runtime paths of dependent libraries
23578 # to runtime path list.
23579 inherit_rpath=$inherit_rpath_CXX
23580
23581 # Whether libtool must link a program against all its dependency libraries.
23582 link_all_deplibs=$link_all_deplibs_CXX
23583
23584 # Set to "yes" if exported symbols are required.
23585 always_export_symbols=$always_export_symbols_CXX
23586
23587 # The commands to list exported symbols.
23588 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23589
23590 # Symbols that should not be listed in the preloaded symbols.
23591 exclude_expsyms=$lt_exclude_expsyms_CXX
23592
23593 # Symbols that must always be exported.
23594 include_expsyms=$lt_include_expsyms_CXX
23595
23596 # Commands necessary for linking programs (against libraries) with templates.
23597 prelink_cmds=$lt_prelink_cmds_CXX
23598
23599 # Commands necessary for finishing linking programs.
23600 postlink_cmds=$lt_postlink_cmds_CXX
23601
23602 # Specify filename containing input files.
23603 file_list_spec=$lt_file_list_spec_CXX
23604
23605 # How to hardcode a shared library path into an executable.
23606 hardcode_action=$hardcode_action_CXX
23607
23608 # The directories searched by this compiler when creating a shared library.
23609 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23610
23611 # Dependencies to place before and after the objects being linked to
23612 # create a shared library.
23613 predep_objects=$lt_predep_objects_CXX
23614 postdep_objects=$lt_postdep_objects_CXX
23615 predeps=$lt_predeps_CXX
23616 postdeps=$lt_postdeps_CXX
23617
23618 # The library search path used internally by the compiler when linking
23619 # a shared library.
23620 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23621
23622 # ### END LIBTOOL TAG CONFIG: CXX
23623 _LT_EOF
23624
23625 ;;
23626
23627 esac
23628 done # for ac_tag
23629
23630
23631 as_fn_exit 0
23632 _ACEOF
23633 ac_clean_files=$ac_clean_files_save
23634
23635 test $ac_write_fail = 0 ||
23636 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23637
23638
23639 # configure is writing to config.log, and then calls config.status.
23640 # config.status does its own redirection, appending to config.log.
23641 # Unfortunately, on DOS this fails, as config.log is still kept open
23642 # by configure, so config.status won't be able to write to it; its
23643 # output is simply discarded. So we exec the FD to /dev/null,
23644 # effectively closing config.log, so it can be properly (re)opened and
23645 # appended to by config.status. When coming back to configure, we
23646 # need to make the FD available again.
23647 if test "$no_create" != yes; then
23648 ac_cs_success=:
23649 ac_config_status_args=
23650 test "$silent" = yes &&
23651 ac_config_status_args="$ac_config_status_args --quiet"
23652 exec 5>/dev/null
23653 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23654 exec 5>>config.log
23655 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23656 # would make configure fail if this is the last instruction.
23657 $ac_cs_success || as_fn_exit 1
23658 fi
23659 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23661 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23662 fi
23663
23664 chmod +x version
23665
23666