Debian Codegraph @

plugins/null/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for gyoto-null 0.0.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 any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: 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='gyoto-null'
623 PACKAGE_TARNAME='gyoto-null'
624 PACKAGE_VERSION='0.0.0'
625 PACKAGE_STRING='gyoto-null 0.0.0'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 ac_unique_file="include/GyotoNull.h"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 LIBOBJS
666 mySUBDIRS
667 CXXCPP
668 am__fastdepCXX_FALSE
669 am__fastdepCXX_TRUE
670 CXXDEPMODE
671 ac_ct_CXX
672 CXXFLAGS
673 CXX
674 soverdir
675 Y_INST_SITE
676 Y_INST_HOME
677 GYOTO_EPREFIX
678 GYOTO_PREFIX
679 GYOTO
680 LORENELDFLAGS
681 LORENECPPFLAGS
682 HOME_LORENE
683 SWIG
684 PYTHON
685 YORICK
686 Gyoto_LIBS
687 Gyoto_CFLAGS
688 plugin_sfx
689 SYS
690 DYLIB_VAR
691 PKG_CONFIG_LIBDIR
692 PKG_CONFIG_PATH
693 PKG_CONFIG
694 LT_SYS_LIBRARY_PATH
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 MANIFEST_TOOL
701 RANLIB
702 ac_ct_AR
703 AR
704 DLLTOOL
705 OBJDUMP
706 FILECMD
707 LN_S
708 NM
709 ac_ct_DUMPBIN
710 DUMPBIN
711 LD
712 FGREP
713 EGREP
714 GREP
715 SED
716 am__fastdepCC_FALSE
717 am__fastdepCC_TRUE
718 CCDEPMODE
719 am__nodep
720 AMDEPBACKSLASH
721 AMDEP_FALSE
722 AMDEP_TRUE
723 am__include
724 DEPDIR
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 LIBTOOL
733 AM_BACKSLASH
734 AM_DEFAULT_VERBOSITY
735 AM_DEFAULT_V
736 AM_V
737 CSCOPE
738 ETAGS
739 CTAGS
740 am__untar
741 am__tar
742 AMTAR
743 am__leading_dot
744 SET_MAKE
745 AWK
746 mkdir_p
747 MKDIR_P
748 INSTALL_STRIP_PROGRAM
749 STRIP
750 install_sh
751 MAKEINFO
752 AUTOHEADER
753 AUTOMAKE
754 AUTOCONF
755 ACLOCAL
756 VERSION
757 PACKAGE
758 CYGPATH_W
759 am__isrc
760 INSTALL_DATA
761 INSTALL_SCRIPT
762 INSTALL_PROGRAM
763 target_os
764 target_vendor
765 target_cpu
766 target
767 host_os
768 host_vendor
769 host_cpu
770 host
771 build_os
772 build_vendor
773 build_cpu
774 build
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 runstatedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL
814 am__quote'
815 ac_subst_files=''
816 ac_user_opts='
817 enable_option_checking
818 enable_silent_rules
819 enable_shared
820 enable_static
821 with_pic
822 enable_fast_install
823 with_aix_soname
824 enable_dependency_tracking
825 with_gnu_ld
826 with_sysroot
827 enable_libtool_lock
828 enable_globalinstall
829 with_soverdir
830 '
831 ac_precious_vars='build_alias
832 host_alias
833 target_alias
834 CC
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
839 LT_SYS_LIBRARY_PATH
840 PKG_CONFIG
841 PKG_CONFIG_PATH
842 PKG_CONFIG_LIBDIR
843 Gyoto_CFLAGS
844 Gyoto_LIBS
845 CXX
846 CXXFLAGS
847 CCC
848 CXXCPP'
849
850
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 ac_unrecognized_opts=
855 ac_unrecognized_sep=
856 # The variables have the same names as the options, with
857 # dashes changed to underlines.
858 cache_file=/dev/null
859 exec_prefix=NONE
860 no_create=
861 no_recursion=
862 prefix=NONE
863 program_prefix=NONE
864 program_suffix=NONE
865 program_transform_name=s,x,x,
866 silent=
867 site=
868 srcdir=
869 verbose=
870 x_includes=NONE
871 x_libraries=NONE
872
873 # Installation directory options.
874 # These are left unexpanded so users can "make install exec_prefix=/foo"
875 # and all the variables that are supposed to be based on exec_prefix
876 # by default will actually change.
877 # Use braces instead of parens because sh, perl, etc. also accept them.
878 # (The list follows the same order as the GNU Coding Standards.)
879 bindir='${exec_prefix}/bin'
880 sbindir='${exec_prefix}/sbin'
881 libexecdir='${exec_prefix}/libexec'
882 datarootdir='${prefix}/share'
883 datadir='${datarootdir}'
884 sysconfdir='${prefix}/etc'
885 sharedstatedir='${prefix}/com'
886 localstatedir='${prefix}/var'
887 runstatedir='${localstatedir}/run'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
899
900 ac_prev=
901 ac_dashdash=
902 for ac_option
903 do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
909 fi
910
911 case $ac_option in
912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *=) ac_optarg= ;;
914 *) ac_optarg=yes ;;
915 esac
916
917 case $ac_dashdash$ac_option in
918 --)
919 ac_dashdash=yes ;;
920
921 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 ac_prev=bindir ;;
923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 bindir=$ac_optarg ;;
925
926 -build | --build | --buil | --bui | --bu)
927 ac_prev=build_alias ;;
928 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929 build_alias=$ac_optarg ;;
930
931 -cache-file | --cache-file | --cache-fil | --cache-fi \
932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933 ac_prev=cache_file ;;
934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936 cache_file=$ac_optarg ;;
937
938 --config-cache | -C)
939 cache_file=config.cache ;;
940
941 -datadir | --datadir | --datadi | --datad)
942 ac_prev=datadir ;;
943 -datadir=* | --datadir=* | --datadi=* | --datad=*)
944 datadir=$ac_optarg ;;
945
946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947 | --dataroo | --dataro | --datar)
948 ac_prev=datarootdir ;;
949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951 datarootdir=$ac_optarg ;;
952
953 -disable-* | --disable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: \`$ac_useropt'"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
968
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
973
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
978
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: \`$ac_useropt'"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
987 *"
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
994
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1003
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1007
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1014
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1019
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1025
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1032
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1037
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1042
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1049
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1054
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1061
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1066
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1070
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1074
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1078
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1087
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1092
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1099
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1106
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1123
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1128
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1133
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1137
1138 -runstatedir | --runstatedir | --runstatedi | --runstated \
1139 | --runstate | --runstat | --runsta | --runst | --runs \
1140 | --run | --ru | --r)
1141 ac_prev=runstatedir ;;
1142 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1143 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1144 | --run=* | --ru=* | --r=*)
1145 runstatedir=$ac_optarg ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: \`$ac_useropt'"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: \`$ac_useropt'"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 ;;
1263
1264 esac
1265 done
1266
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1270 fi
1271
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278 fi
1279
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir runstatedir
1285 do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315 fi
1316
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320 test "$silent" = yes && exec 6>/dev/null
1321
1322
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 printf "%s\n" X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362 else
1363 ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures gyoto-null 0.0.0 to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/gyoto-null]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 --target=TARGET configure for building compilers for TARGET [HOST]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of gyoto-null 0.0.0:";;
1470 esac
1471 cat <<\_ACEOF
1472
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-silent-rules less verbose build output (undo: "make V=1")
1478 --disable-silent-rules verbose build output (undo: "make V=0")
1479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-static[=PKGS] build static libraries [default=yes]
1481 --enable-fast-install[=PKGS]
1482 optimize for fast installation [default=yes]
1483 --enable-dependency-tracking
1484 do not reject slow dependency extractors
1485 --disable-dependency-tracking
1486 speeds up one-time build
1487 --disable-libtool-lock avoid locking (might break parallel builds)
1488 --enable-globalinstall install the plug-in in the global system directory
1489 instead of the local tree
1490
1491 Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1495 both]
1496 --with-aix-soname=aix|svr4|both
1497 shared library versioning (aka "SONAME") variant to
1498 provide on AIX, [default=aix].
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1501 compiler's sysroot if not specified).
1502 --with-soverdir=SOVERDIR
1503 install the plug-in exactly in SOVERDIR. By default,
1504 use instructions from gyoto.pc or default to LIBDIR
1505 (see --enable-globalinstall)
1506
1507 Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
1512 LIBS libraries to pass to the linker, e.g. -l<library>
1513 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
1515 LT_SYS_LIBRARY_PATH
1516 User-defined run-time library search path.
1517 PKG_CONFIG path to pkg-config utility
1518 PKG_CONFIG_PATH
1519 directories to add to pkg-config's search path
1520 PKG_CONFIG_LIBDIR
1521 path overriding pkg-config's built-in search path
1522 Gyoto_CFLAGS
1523 C compiler flags for Gyoto, overriding pkg-config
1524 Gyoto_LIBS linker flags for Gyoto, overriding pkg-config
1525 CXX C++ compiler command
1526 CXXFLAGS C++ compiler flags
1527 CXXCPP C++ preprocessor
1528
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1531
1532 Report bugs to <[email protected]>.
1533 _ACEOF
1534 ac_status=$?
1535 fi
1536
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 continue
1543 ac_builddir=.
1544
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *)
1548 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1560
1561 case $srcdir in
1562 .) # We are building in place.
1563 ac_srcdir=.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1570 *) # Relative name.
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for configure.gnu first; this name is used for a wrapper for
1579 # Metaconfig's "Configure" on case-insensitive file systems.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1586 else
1587 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 fi || ac_status=$?
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1590 done
1591 fi
1592
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1595 cat <<\_ACEOF
1596 gyoto-null configure 0.0.0
1597 generated by GNU Autoconf 2.71
1598
1599 Copyright (C) 2021 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602 _ACEOF
1603 exit
1604 fi
1605
1606 ## ------------------------ ##
1607 ## Autoconf initialization. ##
1608 ## ------------------------ ##
1609
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext conftest.beam
1617 if { { ac_try="$ac_compile"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 printf "%s\n" "$ac_try_echo"; } >&5
1624 (eval "$ac_compile") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest.$ac_objext
1636 then :
1637 ac_retval=0
1638 else $as_nop
1639 printf "%s\n" "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643 fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_compile
1648
1649 # ac_fn_c_try_link LINENO
1650 # -----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_link ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 printf "%s\n" "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 test -x conftest$ac_exeext
1677 }
1678 then :
1679 ac_retval=0
1680 else $as_nop
1681 printf "%s\n" "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1
1685 fi
1686 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688 # interfere with the next link command; also delete a directory that is
1689 # left behind by Apple's compiler. We do this before executing the actions.
1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_link
1695
1696 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1697 # -------------------------------------------------------
1698 # Tests whether HEADER exists and can be compiled using the include files in
1699 # INCLUDES, setting the cache variable VAR accordingly.
1700 ac_fn_c_check_header_compile ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 printf %s "checking for $2... " >&6; }
1705 if eval test \${$3+y}
1706 then :
1707 printf %s "(cached) " >&6
1708 else $as_nop
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1711 $4
1712 #include <$2>
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"
1715 then :
1716 eval "$3=yes"
1717 else $as_nop
1718 eval "$3=no"
1719 fi
1720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1721 fi
1722 eval ac_res=\$$3
1723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 printf "%s\n" "$ac_res" >&6; }
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726
1727 } # ac_fn_c_check_header_compile
1728
1729 # ac_fn_c_check_func LINENO FUNC VAR
1730 # ----------------------------------
1731 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1732 ac_fn_c_check_func ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 printf %s "checking for $2... " >&6; }
1737 if eval test \${$3+y}
1738 then :
1739 printf %s "(cached) " >&6
1740 else $as_nop
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1745 #define $2 innocuous_$2
1746
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $2 (); below. */
1749
1750 #include <limits.h>
1751 #undef $2
1752
1753 /* Override any GCC internal prototype to avoid an error.
1754 Use char because int might match the return type of a GCC
1755 builtin and then its argument prototype would still apply. */
1756 #ifdef __cplusplus
1757 extern "C"
1758 #endif
1759 char $2 ();
1760 /* The GNU C library defines this for functions which it implements
1761 to always fail with ENOSYS. Some functions are actually named
1762 something starting with __ and the normal name is an alias. */
1763 #if defined __stub_$2 || defined __stub___$2
1764 choke me
1765 #endif
1766
1767 int
1768 main (void)
1769 {
1770 return $2 ();
1771 ;
1772 return 0;
1773 }
1774 _ACEOF
1775 if ac_fn_c_try_link "$LINENO"
1776 then :
1777 eval "$3=yes"
1778 else $as_nop
1779 eval "$3=no"
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1782 conftest$ac_exeext conftest.$ac_ext
1783 fi
1784 eval ac_res=\$$3
1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 printf "%s\n" "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789 } # ac_fn_c_check_func
1790
1791 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1792 # -------------------------------------------
1793 # Tests whether TYPE exists after having included INCLUDES, setting cache
1794 # variable VAR accordingly.
1795 ac_fn_c_check_type ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 printf %s "checking for $2... " >&6; }
1800 if eval test \${$3+y}
1801 then :
1802 printf %s "(cached) " >&6
1803 else $as_nop
1804 eval "$3=no"
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 $4
1808 int
1809 main (void)
1810 {
1811 if (sizeof ($2))
1812 return 0;
1813 ;
1814 return 0;
1815 }
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"
1818 then :
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 $4
1822 int
1823 main (void)
1824 {
1825 if (sizeof (($2)))
1826 return 0;
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"
1832 then :
1833
1834 else $as_nop
1835 eval "$3=yes"
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1840 fi
1841 eval ac_res=\$$3
1842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 printf "%s\n" "$ac_res" >&6; }
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846 } # ac_fn_c_check_type
1847
1848 # ac_fn_cxx_try_compile LINENO
1849 # ----------------------------
1850 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_cxx_try_compile ()
1852 {
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext conftest.beam
1855 if { { ac_try="$ac_compile"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 printf "%s\n" "$ac_try_echo"; } >&5
1862 (eval "$ac_compile") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_cxx_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest.$ac_objext
1874 then :
1875 ac_retval=0
1876 else $as_nop
1877 printf "%s\n" "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=1
1881 fi
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1884
1885 } # ac_fn_cxx_try_compile
1886
1887 # ac_fn_cxx_try_cpp LINENO
1888 # ------------------------
1889 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1890 ac_fn_cxx_try_cpp ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { { ac_try="$ac_cpp conftest.$ac_ext"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 printf "%s\n" "$ac_try_echo"; } >&5
1900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1906 fi
1907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } > conftest.i && {
1909 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1910 test ! -s conftest.err
1911 }
1912 then :
1913 ac_retval=0
1914 else $as_nop
1915 printf "%s\n" "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=1
1919 fi
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1922
1923 } # ac_fn_cxx_try_cpp
1924
1925 # ac_fn_cxx_try_link LINENO
1926 # -------------------------
1927 # Try to link conftest.$ac_ext, and return whether this succeeded.
1928 ac_fn_cxx_try_link ()
1929 {
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1932 if { { ac_try="$ac_link"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 printf "%s\n" "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1945 fi
1946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_cxx_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest$ac_exeext && {
1951 test "$cross_compiling" = yes ||
1952 test -x conftest$ac_exeext
1953 }
1954 then :
1955 ac_retval=0
1956 else $as_nop
1957 printf "%s\n" "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1959
1960 ac_retval=1
1961 fi
1962 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1963 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1964 # interfere with the next link command; also delete a directory that is
1965 # left behind by Apple's compiler. We do this before executing the actions.
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1969
1970 } # ac_fn_cxx_try_link
1971 ac_configure_args_raw=
1972 for ac_arg
1973 do
1974 case $ac_arg in
1975 *\'*)
1976 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1977 esac
1978 as_fn_append ac_configure_args_raw " '$ac_arg'"
1979 done
1980
1981 case $ac_configure_args_raw in
1982 *$as_nl*)
1983 ac_safe_unquote= ;;
1984 *)
1985 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1986 ac_unsafe_a="$ac_unsafe_z#~"
1987 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1988 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1989 esac
1990
1991 cat >config.log <<_ACEOF
1992 This file contains any messages produced by compilers while
1993 running configure, to aid debugging if configure makes a mistake.
1994
1995 It was created by gyoto-null $as_me 0.0.0, which was
1996 generated by GNU Autoconf 2.71. Invocation command line was
1997
1998 $ $0$ac_configure_args_raw
1999
2000 _ACEOF
2001 exec 5>>config.log
2002 {
2003 cat <<_ASUNAME
2004 ## --------- ##
2005 ## Platform. ##
2006 ## --------- ##
2007
2008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2013
2014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2016
2017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2020 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2024
2025 _ASUNAME
2026
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2029 do
2030 IFS=$as_save_IFS
2031 case $as_dir in #(((
2032 '') as_dir=./ ;;
2033 */) ;;
2034 *) as_dir=$as_dir/ ;;
2035 esac
2036 printf "%s\n" "PATH: $as_dir"
2037 done
2038 IFS=$as_save_IFS
2039
2040 } >&5
2041
2042 cat >&5 <<_ACEOF
2043
2044
2045 ## ----------- ##
2046 ## Core tests. ##
2047 ## ----------- ##
2048
2049 _ACEOF
2050
2051
2052 # Keep a trace of the command line.
2053 # Strip out --no-create and --no-recursion so they do not pile up.
2054 # Strip out --silent because we don't want to record it for future runs.
2055 # Also quote any args containing shell meta-characters.
2056 # Make two passes to allow for proper duplicate-argument suppression.
2057 ac_configure_args=
2058 ac_configure_args0=
2059 ac_configure_args1=
2060 ac_must_keep_next=false
2061 for ac_pass in 1 2
2062 do
2063 for ac_arg
2064 do
2065 case $ac_arg in
2066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2068 | -silent | --silent | --silen | --sile | --sil)
2069 continue ;;
2070 *\'*)
2071 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2072 esac
2073 case $ac_pass in
2074 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2075 2)
2076 as_fn_append ac_configure_args1 " '$ac_arg'"
2077 if test $ac_must_keep_next = true; then
2078 ac_must_keep_next=false # Got value, back to normal.
2079 else
2080 case $ac_arg in
2081 *=* | --config-cache | -C | -disable-* | --disable-* \
2082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2084 | -with-* | --with-* | -without-* | --without-* | --x)
2085 case "$ac_configure_args0 " in
2086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2087 esac
2088 ;;
2089 -* ) ac_must_keep_next=true ;;
2090 esac
2091 fi
2092 as_fn_append ac_configure_args " '$ac_arg'"
2093 ;;
2094 esac
2095 done
2096 done
2097 { ac_configure_args0=; unset ac_configure_args0;}
2098 { ac_configure_args1=; unset ac_configure_args1;}
2099
2100 # When interrupted or exit'd, cleanup temporary files, and complete
2101 # config.log. We remove comments because anyway the quotes in there
2102 # would cause problems or look ugly.
2103 # WARNING: Use '\'' to represent an apostrophe within the trap.
2104 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2105 trap 'exit_status=$?
2106 # Sanitize IFS.
2107 IFS=" "" $as_nl"
2108 # Save into config.log some information that might help in debugging.
2109 {
2110 echo
2111
2112 printf "%s\n" "## ---------------- ##
2113 ## Cache variables. ##
2114 ## ---------------- ##"
2115 echo
2116 # The following way of writing the cache mishandles newlines in values,
2117 (
2118 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2119 eval ac_val=\$$ac_var
2120 case $ac_val in #(
2121 *${as_nl}*)
2122 case $ac_var in #(
2123 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2124 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2125 esac
2126 case $ac_var in #(
2127 _ | IFS | as_nl) ;; #(
2128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2129 *) { eval $ac_var=; unset $ac_var;} ;;
2130 esac ;;
2131 esac
2132 done
2133 (set) 2>&1 |
2134 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2135 *${as_nl}ac_space=\ *)
2136 sed -n \
2137 "s/'\''/'\''\\\\'\'''\''/g;
2138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2139 ;; #(
2140 *)
2141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2142 ;;
2143 esac |
2144 sort
2145 )
2146 echo
2147
2148 printf "%s\n" "## ----------------- ##
2149 ## Output variables. ##
2150 ## ----------------- ##"
2151 echo
2152 for ac_var in $ac_subst_vars
2153 do
2154 eval ac_val=\$$ac_var
2155 case $ac_val in
2156 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 esac
2158 printf "%s\n" "$ac_var='\''$ac_val'\''"
2159 done | sort
2160 echo
2161
2162 if test -n "$ac_subst_files"; then
2163 printf "%s\n" "## ------------------- ##
2164 ## File substitutions. ##
2165 ## ------------------- ##"
2166 echo
2167 for ac_var in $ac_subst_files
2168 do
2169 eval ac_val=\$$ac_var
2170 case $ac_val in
2171 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 esac
2173 printf "%s\n" "$ac_var='\''$ac_val'\''"
2174 done | sort
2175 echo
2176 fi
2177
2178 if test -s confdefs.h; then
2179 printf "%s\n" "## ----------- ##
2180 ## confdefs.h. ##
2181 ## ----------- ##"
2182 echo
2183 cat confdefs.h
2184 echo
2185 fi
2186 test "$ac_signal" != 0 &&
2187 printf "%s\n" "$as_me: caught signal $ac_signal"
2188 printf "%s\n" "$as_me: exit $exit_status"
2189 } >&5
2190 rm -f core *.core core.conftest.* &&
2191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2192 exit $exit_status
2193 ' 0
2194 for ac_signal in 1 2 13 15; do
2195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2196 done
2197 ac_signal=0
2198
2199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2200 rm -f -r conftest* confdefs.h
2201
2202 printf "%s\n" "/* confdefs.h */" > confdefs.h
2203
2204 # Predefined preprocessor variables.
2205
2206 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2207
2208 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2209
2210 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2211
2212 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2213
2214 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2215
2216 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2217
2218
2219 # Let the site file select an alternate cache file if it wants to.
2220 # Prefer an explicitly selected file to automatically selected ones.
2221 if test -n "$CONFIG_SITE"; then
2222 ac_site_files="$CONFIG_SITE"
2223 elif test "x$prefix" != xNONE; then
2224 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2225 else
2226 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2227 fi
2228
2229 for ac_site_file in $ac_site_files
2230 do
2231 case $ac_site_file in #(
2232 */*) :
2233 ;; #(
2234 *) :
2235 ac_site_file=./$ac_site_file ;;
2236 esac
2237 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2239 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2240 sed 's/^/| /' "$ac_site_file" >&5
2241 . "$ac_site_file" \
2242 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2244 as_fn_error $? "failed to load site script $ac_site_file
2245 See \`config.log' for more details" "$LINENO" 5; }
2246 fi
2247 done
2248
2249 if test -r "$cache_file"; then
2250 # Some versions of bash will fail to source /dev/null (special files
2251 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2252 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2254 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2255 case $cache_file in
2256 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2257 *) . "./$cache_file";;
2258 esac
2259 fi
2260 else
2261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2262 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2263 >$cache_file
2264 fi
2265
2266 # Test code for whether the C compiler supports C89 (global declarations)
2267 ac_c_conftest_c89_globals='
2268 /* Does the compiler advertise C89 conformance?
2269 Do not test the value of __STDC__, because some compilers set it to 0
2270 while being otherwise adequately conformant. */
2271 #if !defined __STDC__
2272 # error "Compiler does not advertise C89 conformance"
2273 #endif
2274
2275 #include <stddef.h>
2276 #include <stdarg.h>
2277 struct stat;
2278 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2279 struct buf { int x; };
2280 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2281 static char *e (p, i)
2282 char **p;
2283 int i;
2284 {
2285 return p[i];
2286 }
2287 static char *f (char * (*g) (char **, int), char **p, ...)
2288 {
2289 char *s;
2290 va_list v;
2291 va_start (v,p);
2292 s = g (p, va_arg (v,int));
2293 va_end (v);
2294 return s;
2295 }
2296
2297 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2298 function prototypes and stuff, but not \xHH hex character constants.
2299 These do not provoke an error unfortunately, instead are silently treated
2300 as an "x". The following induces an error, until -std is added to get
2301 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2302 array size at least. It is necessary to write \x00 == 0 to get something
2303 that is true only with -std. */
2304 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2305
2306 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2307 inside strings and character constants. */
2308 #define FOO(x) '\''x'\''
2309 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2310
2311 int test (int i, double x);
2312 struct s1 {int (*f) (int a);};
2313 struct s2 {int (*f) (double a);};
2314 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2315 int, int);'
2316
2317 # Test code for whether the C compiler supports C89 (body of main).
2318 ac_c_conftest_c89_main='
2319 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2320 '
2321
2322 # Test code for whether the C compiler supports C99 (global declarations)
2323 ac_c_conftest_c99_globals='
2324 // Does the compiler advertise C99 conformance?
2325 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2326 # error "Compiler does not advertise C99 conformance"
2327 #endif
2328
2329 #include <stdbool.h>
2330 extern int puts (const char *);
2331 extern int printf (const char *, ...);
2332 extern int dprintf (int, const char *, ...);
2333 extern void *malloc (size_t);
2334
2335 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2336 // dprintf is used instead of fprintf to avoid needing to declare
2337 // FILE and stderr.
2338 #define debug(...) dprintf (2, __VA_ARGS__)
2339 #define showlist(...) puts (#__VA_ARGS__)
2340 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2341 static void
2342 test_varargs_macros (void)
2343 {
2344 int x = 1234;
2345 int y = 5678;
2346 debug ("Flag");
2347 debug ("X = %d\n", x);
2348 showlist (The first, second, and third items.);
2349 report (x>y, "x is %d but y is %d", x, y);
2350 }
2351
2352 // Check long long types.
2353 #define BIG64 18446744073709551615ull
2354 #define BIG32 4294967295ul
2355 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2356 #if !BIG_OK
2357 #error "your preprocessor is broken"
2358 #endif
2359 #if BIG_OK
2360 #else
2361 #error "your preprocessor is broken"
2362 #endif
2363 static long long int bignum = -9223372036854775807LL;
2364 static unsigned long long int ubignum = BIG64;
2365
2366 struct incomplete_array
2367 {
2368 int datasize;
2369 double data[];
2370 };
2371
2372 struct named_init {
2373 int number;
2374 const wchar_t *name;
2375 double average;
2376 };
2377
2378 typedef const char *ccp;
2379
2380 static inline int
2381 test_restrict (ccp restrict text)
2382 {
2383 // See if C++-style comments work.
2384 // Iterate through items via the restricted pointer.
2385 // Also check for declarations in for loops.
2386 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2387 continue;
2388 return 0;
2389 }
2390
2391 // Check varargs and va_copy.
2392 static bool
2393 test_varargs (const char *format, ...)
2394 {
2395 va_list args;
2396 va_start (args, format);
2397 va_list args_copy;
2398 va_copy (args_copy, args);
2399
2400 const char *str = "";
2401 int number = 0;
2402 float fnumber = 0;
2403
2404 while (*format)
2405 {
2406 switch (*format++)
2407 {
2408 case '\''s'\'': // string
2409 str = va_arg (args_copy, const char *);
2410 break;
2411 case '\''d'\'': // int
2412 number = va_arg (args_copy, int);
2413 break;
2414 case '\''f'\'': // float
2415 fnumber = va_arg (args_copy, double);
2416 break;
2417 default:
2418 break;
2419 }
2420 }
2421 va_end (args_copy);
2422 va_end (args);
2423
2424 return *str && number && fnumber;
2425 }
2426 '
2427
2428 # Test code for whether the C compiler supports C99 (body of main).
2429 ac_c_conftest_c99_main='
2430 // Check bool.
2431 _Bool success = false;
2432 success |= (argc != 0);
2433
2434 // Check restrict.
2435 if (test_restrict ("String literal") == 0)
2436 success = true;
2437 char *restrict newvar = "Another string";
2438
2439 // Check varargs.
2440 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2441 test_varargs_macros ();
2442
2443 // Check flexible array members.
2444 struct incomplete_array *ia =
2445 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2446 ia->datasize = 10;
2447 for (int i = 0; i < ia->datasize; ++i)
2448 ia->data[i] = i * 1.234;
2449
2450 // Check named initializers.
2451 struct named_init ni = {
2452 .number = 34,
2453 .name = L"Test wide string",
2454 .average = 543.34343,
2455 };
2456
2457 ni.number = 58;
2458
2459 int dynamic_array[ni.number];
2460 dynamic_array[0] = argv[0][0];
2461 dynamic_array[ni.number - 1] = 543;
2462
2463 // work around unused variable warnings
2464 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2465 || dynamic_array[ni.number - 1] != 543);
2466 '
2467
2468 # Test code for whether the C compiler supports C11 (global declarations)
2469 ac_c_conftest_c11_globals='
2470 // Does the compiler advertise C11 conformance?
2471 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2472 # error "Compiler does not advertise C11 conformance"
2473 #endif
2474
2475 // Check _Alignas.
2476 char _Alignas (double) aligned_as_double;
2477 char _Alignas (0) no_special_alignment;
2478 extern char aligned_as_int;
2479 char _Alignas (0) _Alignas (int) aligned_as_int;
2480
2481 // Check _Alignof.
2482 enum
2483 {
2484 int_alignment = _Alignof (int),
2485 int_array_alignment = _Alignof (int[100]),
2486 char_alignment = _Alignof (char)
2487 };
2488 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2489
2490 // Check _Noreturn.
2491 int _Noreturn does_not_return (void) { for (;;) continue; }
2492
2493 // Check _Static_assert.
2494 struct test_static_assert
2495 {
2496 int x;
2497 _Static_assert (sizeof (int) <= sizeof (long int),
2498 "_Static_assert does not work in struct");
2499 long int y;
2500 };
2501
2502 // Check UTF-8 literals.
2503 #define u8 syntax error!
2504 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2505
2506 // Check duplicate typedefs.
2507 typedef long *long_ptr;
2508 typedef long int *long_ptr;
2509 typedef long_ptr long_ptr;
2510
2511 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2512 struct anonymous
2513 {
2514 union {
2515 struct { int i; int j; };
2516 struct { int k; long int l; } w;
2517 };
2518 int m;
2519 } v1;
2520 '
2521
2522 # Test code for whether the C compiler supports C11 (body of main).
2523 ac_c_conftest_c11_main='
2524 _Static_assert ((offsetof (struct anonymous, i)
2525 == offsetof (struct anonymous, w.k)),
2526 "Anonymous union alignment botch");
2527 v1.i = 2;
2528 v1.w.k = 5;
2529 ok |= v1.i != 5;
2530 '
2531
2532 # Test code for whether the C compiler supports C11 (complete).
2533 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2534 ${ac_c_conftest_c99_globals}
2535 ${ac_c_conftest_c11_globals}
2536
2537 int
2538 main (int argc, char **argv)
2539 {
2540 int ok = 0;
2541 ${ac_c_conftest_c89_main}
2542 ${ac_c_conftest_c99_main}
2543 ${ac_c_conftest_c11_main}
2544 return ok;
2545 }
2546 "
2547
2548 # Test code for whether the C compiler supports C99 (complete).
2549 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2550 ${ac_c_conftest_c99_globals}
2551
2552 int
2553 main (int argc, char **argv)
2554 {
2555 int ok = 0;
2556 ${ac_c_conftest_c89_main}
2557 ${ac_c_conftest_c99_main}
2558 return ok;
2559 }
2560 "
2561
2562 # Test code for whether the C compiler supports C89 (complete).
2563 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2564
2565 int
2566 main (int argc, char **argv)
2567 {
2568 int ok = 0;
2569 ${ac_c_conftest_c89_main}
2570 return ok;
2571 }
2572 "
2573
2574 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2575 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2576 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2577 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2578 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2579 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2580 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2581 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2582 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2583 # Test code for whether the C++ compiler supports C++98 (global declarations)
2584 ac_cxx_conftest_cxx98_globals='
2585 // Does the compiler advertise C++98 conformance?
2586 #if !defined __cplusplus || __cplusplus < 199711L
2587 # error "Compiler does not advertise C++98 conformance"
2588 #endif
2589
2590 // These inclusions are to reject old compilers that
2591 // lack the unsuffixed header files.
2592 #include <cstdlib>
2593 #include <exception>
2594
2595 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2596 extern void assert (int);
2597 namespace std {
2598 extern int strcmp (const char *, const char *);
2599 }
2600
2601 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2602 using std::exception;
2603 using std::strcmp;
2604
2605 namespace {
2606
2607 void test_exception_syntax()
2608 {
2609 try {
2610 throw "test";
2611 } catch (const char *s) {
2612 // Extra parentheses suppress a warning when building autoconf itself,
2613 // due to lint rules shared with more typical C programs.
2614 assert (!(strcmp) (s, "test"));
2615 }
2616 }
2617
2618 template <typename T> struct test_template
2619 {
2620 T const val;
2621 explicit test_template(T t) : val(t) {}
2622 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2623 };
2624
2625 } // anonymous namespace
2626 '
2627
2628 # Test code for whether the C++ compiler supports C++98 (body of main)
2629 ac_cxx_conftest_cxx98_main='
2630 assert (argc);
2631 assert (! argv[0]);
2632 {
2633 test_exception_syntax ();
2634 test_template<double> tt (2.0);
2635 assert (tt.add (4) == 6.0);
2636 assert (true && !false);
2637 }
2638 '
2639
2640 # Test code for whether the C++ compiler supports C++11 (global declarations)
2641 ac_cxx_conftest_cxx11_globals='
2642 // Does the compiler advertise C++ 2011 conformance?
2643 #if !defined __cplusplus || __cplusplus < 201103L
2644 # error "Compiler does not advertise C++11 conformance"
2645 #endif
2646
2647 namespace cxx11test
2648 {
2649 constexpr int get_val() { return 20; }
2650
2651 struct testinit
2652 {
2653 int i;
2654 double d;
2655 };
2656
2657 class delegate
2658 {
2659 public:
2660 delegate(int n) : n(n) {}
2661 delegate(): delegate(2354) {}
2662
2663 virtual int getval() { return this->n; };
2664 protected:
2665 int n;
2666 };
2667
2668 class overridden : public delegate
2669 {
2670 public:
2671 overridden(int n): delegate(n) {}
2672 virtual int getval() override final { return this->n * 2; }
2673 };
2674
2675 class nocopy
2676 {
2677 public:
2678 nocopy(int i): i(i) {}
2679 nocopy() = default;
2680 nocopy(const nocopy&) = delete;
2681 nocopy & operator=(const nocopy&) = delete;
2682 private:
2683 int i;
2684 };
2685
2686 // for testing lambda expressions
2687 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2688 {
2689 return f(v);
2690 }
2691
2692 // for testing variadic templates and trailing return types
2693 template <typename V> auto sum(V first) -> V
2694 {
2695 return first;
2696 }
2697 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2698 {
2699 return first + sum(rest...);
2700 }
2701 }
2702 '
2703
2704 # Test code for whether the C++ compiler supports C++11 (body of main)
2705 ac_cxx_conftest_cxx11_main='
2706 {
2707 // Test auto and decltype
2708 auto a1 = 6538;
2709 auto a2 = 48573953.4;
2710 auto a3 = "String literal";
2711
2712 int total = 0;
2713 for (auto i = a3; *i; ++i) { total += *i; }
2714
2715 decltype(a2) a4 = 34895.034;
2716 }
2717 {
2718 // Test constexpr
2719 short sa[cxx11test::get_val()] = { 0 };
2720 }
2721 {
2722 // Test initializer lists
2723 cxx11test::testinit il = { 4323, 435234.23544 };
2724 }
2725 {
2726 // Test range-based for
2727 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2728 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2729 for (auto &x : array) { x += 23; }
2730 }
2731 {
2732 // Test lambda expressions
2733 using cxx11test::eval;
2734 assert (eval ([](int x) { return x*2; }, 21) == 42);
2735 double d = 2.0;
2736 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2737 assert (d == 5.0);
2738 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2739 assert (d == 5.0);
2740 }
2741 {
2742 // Test use of variadic templates
2743 using cxx11test::sum;
2744 auto a = sum(1);
2745 auto b = sum(1, 2);
2746 auto c = sum(1.0, 2.0, 3.0);
2747 }
2748 {
2749 // Test constructor delegation
2750 cxx11test::delegate d1;
2751 cxx11test::delegate d2();
2752 cxx11test::delegate d3(45);
2753 }
2754 {
2755 // Test override and final
2756 cxx11test::overridden o1(55464);
2757 }
2758 {
2759 // Test nullptr
2760 char *c = nullptr;
2761 }
2762 {
2763 // Test template brackets
2764 test_template<::test_template<int>> v(test_template<int>(12));
2765 }
2766 {
2767 // Unicode literals
2768 char const *utf8 = u8"UTF-8 string \u2500";
2769 char16_t const *utf16 = u"UTF-8 string \u2500";
2770 char32_t const *utf32 = U"UTF-32 string \u2500";
2771 }
2772 '
2773
2774 # Test code for whether the C compiler supports C++11 (complete).
2775 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2776 ${ac_cxx_conftest_cxx11_globals}
2777
2778 int
2779 main (int argc, char **argv)
2780 {
2781 int ok = 0;
2782 ${ac_cxx_conftest_cxx98_main}
2783 ${ac_cxx_conftest_cxx11_main}
2784 return ok;
2785 }
2786 "
2787
2788 # Test code for whether the C compiler supports C++98 (complete).
2789 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2790 int
2791 main (int argc, char **argv)
2792 {
2793 int ok = 0;
2794 ${ac_cxx_conftest_cxx98_main}
2795 return ok;
2796 }
2797 "
2798
2799
2800 # Auxiliary files required by this configure script.
2801 ac_aux_files="compile ltmain.sh missing install-sh config.guess config.sub"
2802
2803 # Locations in which to look for auxiliary files.
2804 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2805
2806 # Search for a directory containing all of the required auxiliary files,
2807 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2808 # If we don't find one directory that contains all the files we need,
2809 # we report the set of missing files from the *first* directory in
2810 # $ac_aux_dir_candidates and give up.
2811 ac_missing_aux_files=""
2812 ac_first_candidate=:
2813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 as_found=false
2816 for as_dir in $ac_aux_dir_candidates
2817 do
2818 IFS=$as_save_IFS
2819 case $as_dir in #(((
2820 '') as_dir=./ ;;
2821 */) ;;
2822 *) as_dir=$as_dir/ ;;
2823 esac
2824 as_found=:
2825
2826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2827 ac_aux_dir_found=yes
2828 ac_install_sh=
2829 for ac_aux in $ac_aux_files
2830 do
2831 # As a special case, if "install-sh" is required, that requirement
2832 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2833 # and $ac_install_sh is set appropriately for whichever one is found.
2834 if test x"$ac_aux" = x"install-sh"
2835 then
2836 if test -f "${as_dir}install-sh"; then
2837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2838 ac_install_sh="${as_dir}install-sh -c"
2839 elif test -f "${as_dir}install.sh"; then
2840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2841 ac_install_sh="${as_dir}install.sh -c"
2842 elif test -f "${as_dir}shtool"; then
2843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2844 ac_install_sh="${as_dir}shtool install -c"
2845 else
2846 ac_aux_dir_found=no
2847 if $ac_first_candidate; then
2848 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2849 else
2850 break
2851 fi
2852 fi
2853 else
2854 if test -f "${as_dir}${ac_aux}"; then
2855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2856 else
2857 ac_aux_dir_found=no
2858 if $ac_first_candidate; then
2859 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2860 else
2861 break
2862 fi
2863 fi
2864 fi
2865 done
2866 if test "$ac_aux_dir_found" = yes; then
2867 ac_aux_dir="$as_dir"
2868 break
2869 fi
2870 ac_first_candidate=false
2871
2872 as_found=false
2873 done
2874 IFS=$as_save_IFS
2875 if $as_found
2876 then :
2877
2878 else $as_nop
2879 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2880 fi
2881
2882
2883 # These three variables are undocumented and unsupported,
2884 # and are intended to be withdrawn in a future Autoconf release.
2885 # They can cause serious problems if a builder's source tree is in a directory
2886 # whose full name contains unusual characters.
2887 if test -f "${ac_aux_dir}config.guess"; then
2888 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2889 fi
2890 if test -f "${ac_aux_dir}config.sub"; then
2891 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2892 fi
2893 if test -f "$ac_aux_dir/configure"; then
2894 ac_configure="$SHELL ${ac_aux_dir}configure"
2895 fi
2896
2897 # Check that the precious variables saved in the cache have kept the same
2898 # value.
2899 ac_cache_corrupted=false
2900 for ac_var in $ac_precious_vars; do
2901 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2902 eval ac_new_set=\$ac_env_${ac_var}_set
2903 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2904 eval ac_new_val=\$ac_env_${ac_var}_value
2905 case $ac_old_set,$ac_new_set in
2906 set,)
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2908 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2909 ac_cache_corrupted=: ;;
2910 ,set)
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2912 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2913 ac_cache_corrupted=: ;;
2914 ,);;
2915 *)
2916 if test "x$ac_old_val" != "x$ac_new_val"; then
2917 # differences in whitespace do not lead to failure.
2918 ac_old_val_w=`echo x $ac_old_val`
2919 ac_new_val_w=`echo x $ac_new_val`
2920 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2922 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2923 ac_cache_corrupted=:
2924 else
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2926 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2927 eval $ac_var=\$ac_old_val
2928 fi
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2930 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2932 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2933 fi;;
2934 esac
2935 # Pass precious variables to config.status.
2936 if test "$ac_new_set" = set; then
2937 case $ac_new_val in
2938 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2939 *) ac_arg=$ac_var=$ac_new_val ;;
2940 esac
2941 case " $ac_configure_args " in
2942 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2943 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2944 esac
2945 fi
2946 done
2947 if $ac_cache_corrupted; then
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2951 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2952 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2953 and start over" "$LINENO" 5
2954 fi
2955 ## -------------------- ##
2956 ## Main body of script. ##
2957 ## -------------------- ##
2958
2959 ac_ext=c
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964
2965
2966 # Below, give the name of some file that will stay in you source tree.
2967
2968
2969
2970
2971 # Make sure we can run config.sub.
2972 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2973 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2974
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2976 printf %s "checking build system type... " >&6; }
2977 if test ${ac_cv_build+y}
2978 then :
2979 printf %s "(cached) " >&6
2980 else $as_nop
2981 ac_build_alias=$build_alias
2982 test "x$ac_build_alias" = x &&
2983 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2984 test "x$ac_build_alias" = x &&
2985 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2986 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2987 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2988
2989 fi
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2991 printf "%s\n" "$ac_cv_build" >&6; }
2992 case $ac_cv_build in
2993 *-*-*) ;;
2994 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2995 esac
2996 build=$ac_cv_build
2997 ac_save_IFS=$IFS; IFS='-'
2998 set x $ac_cv_build
2999 shift
3000 build_cpu=$1
3001 build_vendor=$2
3002 shift; shift
3003 # Remember, the first character of IFS is used to create $*,
3004 # except with old shells:
3005 build_os=$*
3006 IFS=$ac_save_IFS
3007 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3008
3009
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3011 printf %s "checking host system type... " >&6; }
3012 if test ${ac_cv_host+y}
3013 then :
3014 printf %s "(cached) " >&6
3015 else $as_nop
3016 if test "x$host_alias" = x; then
3017 ac_cv_host=$ac_cv_build
3018 else
3019 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3020 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3021 fi
3022
3023 fi
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3025 printf "%s\n" "$ac_cv_host" >&6; }
3026 case $ac_cv_host in
3027 *-*-*) ;;
3028 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3029 esac
3030 host=$ac_cv_host
3031 ac_save_IFS=$IFS; IFS='-'
3032 set x $ac_cv_host
3033 shift
3034 host_cpu=$1
3035 host_vendor=$2
3036 shift; shift
3037 # Remember, the first character of IFS is used to create $*,
3038 # except with old shells:
3039 host_os=$*
3040 IFS=$ac_save_IFS
3041 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3042
3043
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3045 printf %s "checking target system type... " >&6; }
3046 if test ${ac_cv_target+y}
3047 then :
3048 printf %s "(cached) " >&6
3049 else $as_nop
3050 if test "x$target_alias" = x; then
3051 ac_cv_target=$ac_cv_host
3052 else
3053 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3054 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3055 fi
3056
3057 fi
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3059 printf "%s\n" "$ac_cv_target" >&6; }
3060 case $ac_cv_target in
3061 *-*-*) ;;
3062 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3063 esac
3064 target=$ac_cv_target
3065 ac_save_IFS=$IFS; IFS='-'
3066 set x $ac_cv_target
3067 shift
3068 target_cpu=$1
3069 target_vendor=$2
3070 shift; shift
3071 # Remember, the first character of IFS is used to create $*,
3072 # except with old shells:
3073 target_os=$*
3074 IFS=$ac_save_IFS
3075 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3076
3077
3078 # The aliases save the names the user supplied, while $host etc.
3079 # will get canonicalized.
3080 test -n "$target_alias" &&
3081 test "$program_prefix$program_suffix$program_transform_name" = \
3082 NONENONEs,x,x, &&
3083 program_prefix=${target_alias}-
3084 am__api_version='1.16'
3085
3086
3087 # Find a good install program. We prefer a C program (faster),
3088 # so one script is as good as another. But avoid the broken or
3089 # incompatible versions:
3090 # SysV /etc/install, /usr/sbin/install
3091 # SunOS /usr/etc/install
3092 # IRIX /sbin/install
3093 # AIX /bin/install
3094 # AmigaOS /C/install, which installs bootblocks on floppy discs
3095 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3096 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3097 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3098 # OS/2's system install, which has a completely different semantic
3099 # ./install, which can be erroneously created by make from ./install.sh.
3100 # Reject install programs that cannot install multiple files.
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3102 printf %s "checking for a BSD-compatible install... " >&6; }
3103 if test -z "$INSTALL"; then
3104 if test ${ac_cv_path_install+y}
3105 then :
3106 printf %s "(cached) " >&6
3107 else $as_nop
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111 IFS=$as_save_IFS
3112 case $as_dir in #(((
3113 '') as_dir=./ ;;
3114 */) ;;
3115 *) as_dir=$as_dir/ ;;
3116 esac
3117 # Account for fact that we put trailing slashes in our PATH walk.
3118 case $as_dir in #((
3119 ./ | /[cC]/* | \
3120 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3121 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3122 /usr/ucb/* ) ;;
3123 *)
3124 # OSF1 and SCO ODT 3.0 have their own names for install.
3125 # Don't use installbsd from OSF since it installs stuff as root
3126 # by default.
3127 for ac_prog in ginstall scoinst install; do
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3130 if test $ac_prog = install &&
3131 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3132 # AIX install. It has an incompatible calling convention.
3133 :
3134 elif test $ac_prog = install &&
3135 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3136 # program-specific install script used by HP pwplus--don't use.
3137 :
3138 else
3139 rm -rf conftest.one conftest.two conftest.dir
3140 echo one > conftest.one
3141 echo two > conftest.two
3142 mkdir conftest.dir
3143 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3144 test -s conftest.one && test -s conftest.two &&
3145 test -s conftest.dir/conftest.one &&
3146 test -s conftest.dir/conftest.two
3147 then
3148 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3149 break 3
3150 fi
3151 fi
3152 fi
3153 done
3154 done
3155 ;;
3156 esac
3157
3158 done
3159 IFS=$as_save_IFS
3160
3161 rm -rf conftest.one conftest.two conftest.dir
3162
3163 fi
3164 if test ${ac_cv_path_install+y}; then
3165 INSTALL=$ac_cv_path_install
3166 else
3167 # As a last resort, use the slow shell script. Don't cache a
3168 # value for INSTALL within a source directory, because that will
3169 # break other packages using the cache if that directory is
3170 # removed, or if the value is a relative name.
3171 INSTALL=$ac_install_sh
3172 fi
3173 fi
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3175 printf "%s\n" "$INSTALL" >&6; }
3176
3177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3178 # It thinks the first close brace ends the variable substitution.
3179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3180
3181 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3182
3183 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3184
3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3186 printf %s "checking whether build environment is sane... " >&6; }
3187 # Reject unsafe characters in $srcdir or the absolute working directory
3188 # name. Accept space and tab only in the latter.
3189 am_lf='
3190 '
3191 case `pwd` in
3192 *[\\\"\#\$\&\'\`$am_lf]*)
3193 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3194 esac
3195 case $srcdir in
3196 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3197 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3198 esac
3199
3200 # Do 'set' in a subshell so we don't clobber the current shell's
3201 # arguments. Must try -L first in case configure is actually a
3202 # symlink; some systems play weird games with the mod time of symlinks
3203 # (eg FreeBSD returns the mod time of the symlink's containing
3204 # directory).
3205 if (
3206 am_has_slept=no
3207 for am_try in 1 2; do
3208 echo "timestamp, slept: $am_has_slept" > conftest.file
3209 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3210 if test "$*" = "X"; then
3211 # -L didn't work.
3212 set X `ls -t "$srcdir/configure" conftest.file`
3213 fi
3214 if test "$*" != "X $srcdir/configure conftest.file" \
3215 && test "$*" != "X conftest.file $srcdir/configure"; then
3216
3217 # If neither matched, then we have a broken ls. This can happen
3218 # if, for instance, CONFIG_SHELL is bash and it inherits a
3219 # broken ls alias from the environment. This has actually
3220 # happened. Such a system could not be considered "sane".
3221 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3222 alias in your environment" "$LINENO" 5
3223 fi
3224 if test "$2" = conftest.file || test $am_try -eq 2; then
3225 break
3226 fi
3227 # Just in case.
3228 sleep 1
3229 am_has_slept=yes
3230 done
3231 test "$2" = conftest.file
3232 )
3233 then
3234 # Ok.
3235 :
3236 else
3237 as_fn_error $? "newly created file is older than distributed files!
3238 Check your system clock" "$LINENO" 5
3239 fi
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 printf "%s\n" "yes" >&6; }
3242 # If we didn't sleep, we still need to ensure time stamps of config.status and
3243 # generated files are strictly newer.
3244 am_sleep_pid=
3245 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3246 ( sleep 1 ) &
3247 am_sleep_pid=$!
3248 fi
3249
3250 rm -f conftest.file
3251
3252 test "$program_prefix" != NONE &&
3253 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3254 # Use a double $ so make ignores it.
3255 test "$program_suffix" != NONE &&
3256 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3257 # Double any \ or $.
3258 # By default was `s,x,x', remove it if useless.
3259 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3260 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3261
3262
3263 # Expand $ac_aux_dir to an absolute path.
3264 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3265
3266
3267 if test x"${MISSING+set}" != xset; then
3268 MISSING="\${SHELL} '$am_aux_dir/missing'"
3269 fi
3270 # Use eval to expand $SHELL
3271 if eval "$MISSING --is-lightweight"; then
3272 am_missing_run="$MISSING "
3273 else
3274 am_missing_run=
3275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3276 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3277 fi
3278
3279 if test x"${install_sh+set}" != xset; then
3280 case $am_aux_dir in
3281 *\ * | *\ *)
3282 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3283 *)
3284 install_sh="\${SHELL} $am_aux_dir/install-sh"
3285 esac
3286 fi
3287
3288 # Installed binaries are usually stripped using 'strip' when the user
3289 # run "make install-strip". However 'strip' might not be the right
3290 # tool to use in cross-compilation environments, therefore Automake
3291 # will honor the 'STRIP' environment variable to overrule this program.
3292 if test "$cross_compiling" != no; then
3293 if test -n "$ac_tool_prefix"; then
3294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3295 set dummy ${ac_tool_prefix}strip; ac_word=$2
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 printf %s "checking for $ac_word... " >&6; }
3298 if test ${ac_cv_prog_STRIP+y}
3299 then :
3300 printf %s "(cached) " >&6
3301 else $as_nop
3302 if test -n "$STRIP"; then
3303 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308 IFS=$as_save_IFS
3309 case $as_dir in #(((
3310 '') as_dir=./ ;;
3311 */) ;;
3312 *) as_dir=$as_dir/ ;;
3313 esac
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3316 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320 done
3321 done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 STRIP=$ac_cv_prog_STRIP
3327 if test -n "$STRIP"; then
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3329 printf "%s\n" "$STRIP" >&6; }
3330 else
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 printf "%s\n" "no" >&6; }
3333 fi
3334
3335
3336 fi
3337 if test -z "$ac_cv_prog_STRIP"; then
3338 ac_ct_STRIP=$STRIP
3339 # Extract the first word of "strip", so it can be a program name with args.
3340 set dummy strip; ac_word=$2
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 printf %s "checking for $ac_word... " >&6; }
3343 if test ${ac_cv_prog_ac_ct_STRIP+y}
3344 then :
3345 printf %s "(cached) " >&6
3346 else $as_nop
3347 if test -n "$ac_ct_STRIP"; then
3348 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353 IFS=$as_save_IFS
3354 case $as_dir in #(((
3355 '') as_dir=./ ;;
3356 */) ;;
3357 *) as_dir=$as_dir/ ;;
3358 esac
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_ac_ct_STRIP="strip"
3362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365 done
3366 done
3367 IFS=$as_save_IFS
3368
3369 fi
3370 fi
3371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3372 if test -n "$ac_ct_STRIP"; then
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3374 printf "%s\n" "$ac_ct_STRIP" >&6; }
3375 else
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 printf "%s\n" "no" >&6; }
3378 fi
3379
3380 if test "x$ac_ct_STRIP" = x; then
3381 STRIP=":"
3382 else
3383 case $cross_compiling:$ac_tool_warned in
3384 yes:)
3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3386 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3387 ac_tool_warned=yes ;;
3388 esac
3389 STRIP=$ac_ct_STRIP
3390 fi
3391 else
3392 STRIP="$ac_cv_prog_STRIP"
3393 fi
3394
3395 fi
3396 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3397
3398
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3400 printf %s "checking for a race-free mkdir -p... " >&6; }
3401 if test -z "$MKDIR_P"; then
3402 if test ${ac_cv_path_mkdir+y}
3403 then :
3404 printf %s "(cached) " >&6
3405 else $as_nop
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3408 do
3409 IFS=$as_save_IFS
3410 case $as_dir in #(((
3411 '') as_dir=./ ;;
3412 */) ;;
3413 *) as_dir=$as_dir/ ;;
3414 esac
3415 for ac_prog in mkdir gmkdir; do
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3418 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3419 'mkdir ('*'coreutils) '* | \
3420 'BusyBox '* | \
3421 'mkdir (fileutils) '4.1*)
3422 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3423 break 3;;
3424 esac
3425 done
3426 done
3427 done
3428 IFS=$as_save_IFS
3429
3430 fi
3431
3432 test -d ./--version && rmdir ./--version
3433 if test ${ac_cv_path_mkdir+y}; then
3434 MKDIR_P="$ac_cv_path_mkdir -p"
3435 else
3436 # As a last resort, use the slow shell script. Don't cache a
3437 # value for MKDIR_P within a source directory, because that will
3438 # break other packages using the cache if that directory is
3439 # removed, or if the value is a relative name.
3440 MKDIR_P="$ac_install_sh -d"
3441 fi
3442 fi
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3444 printf "%s\n" "$MKDIR_P" >&6; }
3445
3446 for ac_prog in gawk mawk nawk awk
3447 do
3448 # Extract the first word of "$ac_prog", so it can be a program name with args.
3449 set dummy $ac_prog; ac_word=$2
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 printf %s "checking for $ac_word... " >&6; }
3452 if test ${ac_cv_prog_AWK+y}
3453 then :
3454 printf %s "(cached) " >&6
3455 else $as_nop
3456 if test -n "$AWK"; then
3457 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462 IFS=$as_save_IFS
3463 case $as_dir in #(((
3464 '') as_dir=./ ;;
3465 */) ;;
3466 *) as_dir=$as_dir/ ;;
3467 esac
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3470 ac_cv_prog_AWK="$ac_prog"
3471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3472 break 2
3473 fi
3474 done
3475 done
3476 IFS=$as_save_IFS
3477
3478 fi
3479 fi
3480 AWK=$ac_cv_prog_AWK
3481 if test -n "$AWK"; then
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3483 printf "%s\n" "$AWK" >&6; }
3484 else
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 printf "%s\n" "no" >&6; }
3487 fi
3488
3489
3490 test -n "$AWK" && break
3491 done
3492
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3494 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3495 set x ${MAKE-make}
3496 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3497 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3498 then :
3499 printf %s "(cached) " >&6
3500 else $as_nop
3501 cat >conftest.make <<\_ACEOF
3502 SHELL = /bin/sh
3503 all:
3504 @echo '@@@%%%=$(MAKE)=@@@%%%'
3505 _ACEOF
3506 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3507 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3508 *@@@%%%=?*=@@@%%%*)
3509 eval ac_cv_prog_make_${ac_make}_set=yes;;
3510 *)
3511 eval ac_cv_prog_make_${ac_make}_set=no;;
3512 esac
3513 rm -f conftest.make
3514 fi
3515 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3517 printf "%s\n" "yes" >&6; }
3518 SET_MAKE=
3519 else
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 printf "%s\n" "no" >&6; }
3522 SET_MAKE="MAKE=${MAKE-make}"
3523 fi
3524
3525 rm -rf .tst 2>/dev/null
3526 mkdir .tst 2>/dev/null
3527 if test -d .tst; then
3528 am__leading_dot=.
3529 else
3530 am__leading_dot=_
3531 fi
3532 rmdir .tst 2>/dev/null
3533
3534 # Check whether --enable-silent-rules was given.
3535 if test ${enable_silent_rules+y}
3536 then :
3537 enableval=$enable_silent_rules;
3538 fi
3539
3540 case $enable_silent_rules in # (((
3541 yes) AM_DEFAULT_VERBOSITY=0;;
3542 no) AM_DEFAULT_VERBOSITY=1;;
3543 *) AM_DEFAULT_VERBOSITY=1;;
3544 esac
3545 am_make=${MAKE-make}
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3547 printf %s "checking whether $am_make supports nested variables... " >&6; }
3548 if test ${am_cv_make_support_nested_variables+y}
3549 then :
3550 printf %s "(cached) " >&6
3551 else $as_nop
3552 if printf "%s\n" 'TRUE=$(BAR$(V))
3553 BAR0=false
3554 BAR1=true
3555 V=1
3556 am__doit:
3557 @$(TRUE)
3558 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3559 am_cv_make_support_nested_variables=yes
3560 else
3561 am_cv_make_support_nested_variables=no
3562 fi
3563 fi
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3565 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3566 if test $am_cv_make_support_nested_variables = yes; then
3567 AM_V='$(V)'
3568 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3569 else
3570 AM_V=$AM_DEFAULT_VERBOSITY
3571 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3572 fi
3573 AM_BACKSLASH='\'
3574
3575 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3576 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3577 # is not polluted with repeated "-I."
3578 am__isrc=' -I$(srcdir)'
3579 # test to see if srcdir already configured
3580 if test -f $srcdir/config.status; then
3581 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3582 fi
3583 fi
3584
3585 # test whether we have cygpath
3586 if test -z "$CYGPATH_W"; then
3587 if (cygpath --version) >/dev/null 2>/dev/null; then
3588 CYGPATH_W='cygpath -w'
3589 else
3590 CYGPATH_W=echo
3591 fi
3592 fi
3593
3594
3595 # Define the identity of the package.
3596 PACKAGE='gyoto-null'
3597 VERSION='0.0.0'
3598
3599
3600 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3601
3602
3603 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3604
3605 # Some tools Automake needs.
3606
3607 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3608
3609
3610 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3611
3612
3613 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3614
3615
3616 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3617
3618
3619 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3620
3621 # For better backward compatibility. To be removed once Automake 1.9.x
3622 # dies out for good. For more background, see:
3623 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3624 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3625 mkdir_p='$(MKDIR_P)'
3626
3627 # We need awk for the "check" target (and possibly the TAP driver). The
3628 # system "awk" is bad on some platforms.
3629 # Always define AMTAR for backward compatibility. Yes, it's still used
3630 # in the wild :-( We should find a proper way to deprecate it ...
3631 AMTAR='$${TAR-tar}'
3632
3633
3634 # We'll loop over all known methods to create a tar archive until one works.
3635 _am_tools='gnutar pax cpio none'
3636
3637 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3638
3639
3640
3641
3642
3643 # Variables for tags utilities; see am/tags.am
3644 if test -z "$CTAGS"; then
3645 CTAGS=ctags
3646 fi
3647
3648 if test -z "$ETAGS"; then
3649 ETAGS=etags
3650 fi
3651
3652 if test -z "$CSCOPE"; then
3653 CSCOPE=cscope
3654 fi
3655
3656
3657
3658 # POSIX will say in a future version that running "rm -f" with no argument
3659 # is OK; and we want to be able to make that assumption in our Makefile
3660 # recipes. So use an aggressive probe to check that the usage we want is
3661 # actually supported "in the wild" to an acceptable degree.
3662 # See automake bug#10828.
3663 # To make any issue more visible, cause the running configure to be aborted
3664 # by default if the 'rm' program in use doesn't match our expectations; the
3665 # user can still override this though.
3666 if rm -f && rm -fr && rm -rf; then : OK; else
3667 cat >&2 <<'END'
3668 Oops!
3669
3670 Your 'rm' program seems unable to run without file operands specified
3671 on the command line, even when the '-f' option is present. This is contrary
3672 to the behaviour of most rm programs out there, and not conforming with
3673 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3674
3675 Please tell [email protected] about your system, including the value
3676 of your $PATH and any error possibly output before this message. This
3677 can help us improve future automake versions.
3678
3679 END
3680 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3681 echo 'Configuration will proceed anyway, since you have set the' >&2
3682 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3683 echo >&2
3684 else
3685 cat >&2 <<'END'
3686 Aborting the configuration process, to ensure you take notice of the issue.
3687
3688 You can download and install GNU coreutils to get an 'rm' implementation
3689 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3690
3691 If you want to complete the configuration process using your problematic
3692 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3693 to "yes", and re-run configure.
3694
3695 END
3696 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3697 fi
3698 fi
3699
3700
3701 case `pwd` in
3702 *\ * | *\ *)
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3704 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3705 esac
3706
3707
3708
3709 macro_version='2.4.7'
3710 macro_revision='2.4.7'
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725 ltmain=$ac_aux_dir/ltmain.sh
3726
3727 # Backslashify metacharacters that are still active within
3728 # double-quoted strings.
3729 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3730
3731 # Same as above, but do not quote variable references.
3732 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3733
3734 # Sed substitution to delay expansion of an escaped shell variable in a
3735 # double_quote_subst'ed string.
3736 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3737
3738 # Sed substitution to delay expansion of an escaped single quote.
3739 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3740
3741 # Sed substitution to avoid accidental globbing in evaled expressions
3742 no_glob_subst='s/\*/\\\*/g'
3743
3744 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3745 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3746 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3747
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3749 printf %s "checking how to print strings... " >&6; }
3750 # Test print first, because it will be a builtin if present.
3751 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3752 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3753 ECHO='print -r --'
3754 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3755 ECHO='printf %s\n'
3756 else
3757 # Use this function as a fallback that always works.
3758 func_fallback_echo ()
3759 {
3760 eval 'cat <<_LTECHO_EOF
3761 $1
3762 _LTECHO_EOF'
3763 }
3764 ECHO='func_fallback_echo'
3765 fi
3766
3767 # func_echo_all arg...
3768 # Invoke $ECHO with all args, space-separated.
3769 func_echo_all ()
3770 {
3771 $ECHO ""
3772 }
3773
3774 case $ECHO in
3775 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3776 printf "%s\n" "printf" >&6; } ;;
3777 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3778 printf "%s\n" "print -r" >&6; } ;;
3779 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3780 printf "%s\n" "cat" >&6; } ;;
3781 esac
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805 DEPDIR="${am__leading_dot}deps"
3806
3807 ac_config_commands="$ac_config_commands depfiles"
3808
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3810 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3811 cat > confinc.mk << 'END'
3812 am__doit:
3813 @echo this is the am__doit target >confinc.out
3814 .PHONY: am__doit
3815 END
3816 am__include="#"
3817 am__quote=
3818 # BSD make does it like this.
3819 echo '.include "confinc.mk" # ignored' > confmf.BSD
3820 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3821 echo 'include confinc.mk # ignored' > confmf.GNU
3822 _am_result=no
3823 for s in GNU BSD; do
3824 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3825 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }
3829 case $?:`cat confinc.out 2>/dev/null` in #(
3830 '0:this is the am__doit target') :
3831 case $s in #(
3832 BSD) :
3833 am__include='.include' am__quote='"' ;; #(
3834 *) :
3835 am__include='include' am__quote='' ;;
3836 esac ;; #(
3837 *) :
3838 ;;
3839 esac
3840 if test "$am__include" != "#"; then
3841 _am_result="yes ($s style)"
3842 break
3843 fi
3844 done
3845 rm -f confinc.* confmf.*
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3847 printf "%s\n" "${_am_result}" >&6; }
3848
3849 # Check whether --enable-dependency-tracking was given.
3850 if test ${enable_dependency_tracking+y}
3851 then :
3852 enableval=$enable_dependency_tracking;
3853 fi
3854
3855 if test "x$enable_dependency_tracking" != xno; then
3856 am_depcomp="$ac_aux_dir/depcomp"
3857 AMDEPBACKSLASH='\'
3858 am__nodep='_no'
3859 fi
3860 if test "x$enable_dependency_tracking" != xno; then
3861 AMDEP_TRUE=
3862 AMDEP_FALSE='#'
3863 else
3864 AMDEP_TRUE='#'
3865 AMDEP_FALSE=
3866 fi
3867
3868
3869 ac_ext=c
3870 ac_cpp='$CPP $CPPFLAGS'
3871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3874 if test -n "$ac_tool_prefix"; then
3875 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3876 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 printf %s "checking for $ac_word... " >&6; }
3879 if test ${ac_cv_prog_CC+y}
3880 then :
3881 printf %s "(cached) " >&6
3882 else $as_nop
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889 IFS=$as_save_IFS
3890 case $as_dir in #(((
3891 '') as_dir=./ ;;
3892 */) ;;
3893 *) as_dir=$as_dir/ ;;
3894 esac
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901 done
3902 done
3903 IFS=$as_save_IFS
3904
3905 fi
3906 fi
3907 CC=$ac_cv_prog_CC
3908 if test -n "$CC"; then
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3910 printf "%s\n" "$CC" >&6; }
3911 else
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 printf "%s\n" "no" >&6; }
3914 fi
3915
3916
3917 fi
3918 if test -z "$ac_cv_prog_CC"; then
3919 ac_ct_CC=$CC
3920 # Extract the first word of "gcc", so it can be a program name with args.
3921 set dummy gcc; ac_word=$2
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 printf %s "checking for $ac_word... " >&6; }
3924 if test ${ac_cv_prog_ac_ct_CC+y}
3925 then :
3926 printf %s "(cached) " >&6
3927 else $as_nop
3928 if test -n "$ac_ct_CC"; then
3929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3930 else
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3933 do
3934 IFS=$as_save_IFS
3935 case $as_dir in #(((
3936 '') as_dir=./ ;;
3937 */) ;;
3938 *) as_dir=$as_dir/ ;;
3939 esac
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_ac_ct_CC="gcc"
3943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946 done
3947 done
3948 IFS=$as_save_IFS
3949
3950 fi
3951 fi
3952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3953 if test -n "$ac_ct_CC"; then
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3955 printf "%s\n" "$ac_ct_CC" >&6; }
3956 else
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 printf "%s\n" "no" >&6; }
3959 fi
3960
3961 if test "x$ac_ct_CC" = x; then
3962 CC=""
3963 else
3964 case $cross_compiling:$ac_tool_warned in
3965 yes:)
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3967 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3968 ac_tool_warned=yes ;;
3969 esac
3970 CC=$ac_ct_CC
3971 fi
3972 else
3973 CC="$ac_cv_prog_CC"
3974 fi
3975
3976 if test -z "$CC"; then
3977 if test -n "$ac_tool_prefix"; then
3978 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3979 set dummy ${ac_tool_prefix}cc; ac_word=$2
3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 printf %s "checking for $ac_word... " >&6; }
3982 if test ${ac_cv_prog_CC+y}
3983 then :
3984 printf %s "(cached) " >&6
3985 else $as_nop
3986 if test -n "$CC"; then
3987 ac_cv_prog_CC="$CC" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992 IFS=$as_save_IFS
3993 case $as_dir in #(((
3994 '') as_dir=./ ;;
3995 */) ;;
3996 *) as_dir=$as_dir/ ;;
3997 esac
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4000 ac_cv_prog_CC="${ac_tool_prefix}cc"
4001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004 done
4005 done
4006 IFS=$as_save_IFS
4007
4008 fi
4009 fi
4010 CC=$ac_cv_prog_CC
4011 if test -n "$CC"; then
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4013 printf "%s\n" "$CC" >&6; }
4014 else
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 printf "%s\n" "no" >&6; }
4017 fi
4018
4019
4020 fi
4021 fi
4022 if test -z "$CC"; then
4023 # Extract the first word of "cc", so it can be a program name with args.
4024 set dummy cc; ac_word=$2
4025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 printf %s "checking for $ac_word... " >&6; }
4027 if test ${ac_cv_prog_CC+y}
4028 then :
4029 printf %s "(cached) " >&6
4030 else $as_nop
4031 if test -n "$CC"; then
4032 ac_cv_prog_CC="$CC" # Let the user override the test.
4033 else
4034 ac_prog_rejected=no
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038 IFS=$as_save_IFS
4039 case $as_dir in #(((
4040 '') as_dir=./ ;;
4041 */) ;;
4042 *) as_dir=$as_dir/ ;;
4043 esac
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4046 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4047 ac_prog_rejected=yes
4048 continue
4049 fi
4050 ac_cv_prog_CC="cc"
4051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4052 break 2
4053 fi
4054 done
4055 done
4056 IFS=$as_save_IFS
4057
4058 if test $ac_prog_rejected = yes; then
4059 # We found a bogon in the path, so make sure we never use it.
4060 set dummy $ac_cv_prog_CC
4061 shift
4062 if test $# != 0; then
4063 # We chose a different compiler from the bogus one.
4064 # However, it has the same basename, so the bogon will be chosen
4065 # first if we set CC to just the basename; use the full file name.
4066 shift
4067 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4068 fi
4069 fi
4070 fi
4071 fi
4072 CC=$ac_cv_prog_CC
4073 if test -n "$CC"; then
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4075 printf "%s\n" "$CC" >&6; }
4076 else
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 printf "%s\n" "no" >&6; }
4079 fi
4080
4081
4082 fi
4083 if test -z "$CC"; then
4084 if test -n "$ac_tool_prefix"; then
4085 for ac_prog in cl.exe
4086 do
4087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 printf %s "checking for $ac_word... " >&6; }
4091 if test ${ac_cv_prog_CC+y}
4092 then :
4093 printf %s "(cached) " >&6
4094 else $as_nop
4095 if test -n "$CC"; then
4096 ac_cv_prog_CC="$CC" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101 IFS=$as_save_IFS
4102 case $as_dir in #(((
4103 '') as_dir=./ ;;
4104 */) ;;
4105 *) as_dir=$as_dir/ ;;
4106 esac
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4109 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4111 break 2
4112 fi
4113 done
4114 done
4115 IFS=$as_save_IFS
4116
4117 fi
4118 fi
4119 CC=$ac_cv_prog_CC
4120 if test -n "$CC"; then
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4122 printf "%s\n" "$CC" >&6; }
4123 else
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 printf "%s\n" "no" >&6; }
4126 fi
4127
4128
4129 test -n "$CC" && break
4130 done
4131 fi
4132 if test -z "$CC"; then
4133 ac_ct_CC=$CC
4134 for ac_prog in cl.exe
4135 do
4136 # Extract the first word of "$ac_prog", so it can be a program name with args.
4137 set dummy $ac_prog; ac_word=$2
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 printf %s "checking for $ac_word... " >&6; }
4140 if test ${ac_cv_prog_ac_ct_CC+y}
4141 then :
4142 printf %s "(cached) " >&6
4143 else $as_nop
4144 if test -n "$ac_ct_CC"; then
4145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150 IFS=$as_save_IFS
4151 case $as_dir in #(((
4152 '') as_dir=./ ;;
4153 */) ;;
4154 *) as_dir=$as_dir/ ;;
4155 esac
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_ac_ct_CC="$ac_prog"
4159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162 done
4163 done
4164 IFS=$as_save_IFS
4165
4166 fi
4167 fi
4168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4169 if test -n "$ac_ct_CC"; then
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4171 printf "%s\n" "$ac_ct_CC" >&6; }
4172 else
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 printf "%s\n" "no" >&6; }
4175 fi
4176
4177
4178 test -n "$ac_ct_CC" && break
4179 done
4180
4181 if test "x$ac_ct_CC" = x; then
4182 CC=""
4183 else
4184 case $cross_compiling:$ac_tool_warned in
4185 yes:)
4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4187 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188 ac_tool_warned=yes ;;
4189 esac
4190 CC=$ac_ct_CC
4191 fi
4192 fi
4193
4194 fi
4195 if test -z "$CC"; then
4196 if test -n "$ac_tool_prefix"; then
4197 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4198 set dummy ${ac_tool_prefix}clang; ac_word=$2
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200 printf %s "checking for $ac_word... " >&6; }
4201 if test ${ac_cv_prog_CC+y}
4202 then :
4203 printf %s "(cached) " >&6
4204 else $as_nop
4205 if test -n "$CC"; then
4206 ac_cv_prog_CC="$CC" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211 IFS=$as_save_IFS
4212 case $as_dir in #(((
4213 '') as_dir=./ ;;
4214 */) ;;
4215 *) as_dir=$as_dir/ ;;
4216 esac
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_CC="${ac_tool_prefix}clang"
4220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4221 break 2
4222 fi
4223 done
4224 done
4225 IFS=$as_save_IFS
4226
4227 fi
4228 fi
4229 CC=$ac_cv_prog_CC
4230 if test -n "$CC"; then
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4232 printf "%s\n" "$CC" >&6; }
4233 else
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 printf "%s\n" "no" >&6; }
4236 fi
4237
4238
4239 fi
4240 if test -z "$ac_cv_prog_CC"; then
4241 ac_ct_CC=$CC
4242 # Extract the first word of "clang", so it can be a program name with args.
4243 set dummy clang; ac_word=$2
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 printf %s "checking for $ac_word... " >&6; }
4246 if test ${ac_cv_prog_ac_ct_CC+y}
4247 then :
4248 printf %s "(cached) " >&6
4249 else $as_nop
4250 if test -n "$ac_ct_CC"; then
4251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4255 do
4256 IFS=$as_save_IFS
4257 case $as_dir in #(((
4258 '') as_dir=./ ;;
4259 */) ;;
4260 *) as_dir=$as_dir/ ;;
4261 esac
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4264 ac_cv_prog_ac_ct_CC="clang"
4265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4266 break 2
4267 fi
4268 done
4269 done
4270 IFS=$as_save_IFS
4271
4272 fi
4273 fi
4274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4275 if test -n "$ac_ct_CC"; then
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4277 printf "%s\n" "$ac_ct_CC" >&6; }
4278 else
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 printf "%s\n" "no" >&6; }
4281 fi
4282
4283 if test "x$ac_ct_CC" = x; then
4284 CC=""
4285 else
4286 case $cross_compiling:$ac_tool_warned in
4287 yes:)
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4289 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4290 ac_tool_warned=yes ;;
4291 esac
4292 CC=$ac_ct_CC
4293 fi
4294 else
4295 CC="$ac_cv_prog_CC"
4296 fi
4297
4298 fi
4299
4300
4301 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4302 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4303 as_fn_error $? "no acceptable C compiler found in \$PATH
4304 See \`config.log' for more details" "$LINENO" 5; }
4305
4306 # Provide some information about the compiler.
4307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4308 set X $ac_compile
4309 ac_compiler=$2
4310 for ac_option in --version -v -V -qversion -version; do
4311 { { ac_try="$ac_compiler $ac_option >&5"
4312 case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315 esac
4316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4317 printf "%s\n" "$ac_try_echo"; } >&5
4318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4319 ac_status=$?
4320 if test -s conftest.err; then
4321 sed '10a\
4322 ... rest of stderr output deleted ...
4323 10q' conftest.err >conftest.er1
4324 cat conftest.er1 >&5
4325 fi
4326 rm -f conftest.er1 conftest.err
4327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; }
4329 done
4330
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333
4334 int
4335 main (void)
4336 {
4337
4338 ;
4339 return 0;
4340 }
4341 _ACEOF
4342 ac_clean_files_save=$ac_clean_files
4343 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4344 # Try to create an executable without -o first, disregard a.out.
4345 # It will help us diagnose broken compilers, and finding out an intuition
4346 # of exeext.
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4348 printf %s "checking whether the C compiler works... " >&6; }
4349 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4350
4351 # The possible output files:
4352 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4353
4354 ac_rmfiles=
4355 for ac_file in $ac_files
4356 do
4357 case $ac_file in
4358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4359 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4360 esac
4361 done
4362 rm -f $ac_rmfiles
4363
4364 if { { ac_try="$ac_link_default"
4365 case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368 esac
4369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4370 printf "%s\n" "$ac_try_echo"; } >&5
4371 (eval "$ac_link_default") 2>&5
4372 ac_status=$?
4373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4374 test $ac_status = 0; }
4375 then :
4376 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4377 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4378 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4379 # so that the user can short-circuit this test for compilers unknown to
4380 # Autoconf.
4381 for ac_file in $ac_files ''
4382 do
4383 test -f "$ac_file" || continue
4384 case $ac_file in
4385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4386 ;;
4387 [ab].out )
4388 # We found the default executable, but exeext='' is most
4389 # certainly right.
4390 break;;
4391 *.* )
4392 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4393 then :; else
4394 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4395 fi
4396 # We set ac_cv_exeext here because the later test for it is not
4397 # safe: cross compilers may not add the suffix if given an `-o'
4398 # argument, so we may need to know it at that point already.
4399 # Even if this section looks crufty: it has the advantage of
4400 # actually working.
4401 break;;
4402 * )
4403 break;;
4404 esac
4405 done
4406 test "$ac_cv_exeext" = no && ac_cv_exeext=
4407
4408 else $as_nop
4409 ac_file=''
4410 fi
4411 if test -z "$ac_file"
4412 then :
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414 printf "%s\n" "no" >&6; }
4415 printf "%s\n" "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4417
4418 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4419 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4420 as_fn_error 77 "C compiler cannot create executables
4421 See \`config.log' for more details" "$LINENO" 5; }
4422 else $as_nop
4423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4424 printf "%s\n" "yes" >&6; }
4425 fi
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4427 printf %s "checking for C compiler default output file name... " >&6; }
4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4429 printf "%s\n" "$ac_file" >&6; }
4430 ac_exeext=$ac_cv_exeext
4431
4432 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4433 ac_clean_files=$ac_clean_files_save
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4435 printf %s "checking for suffix of executables... " >&6; }
4436 if { { ac_try="$ac_link"
4437 case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440 esac
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 printf "%s\n" "$ac_try_echo"; } >&5
4443 (eval "$ac_link") 2>&5
4444 ac_status=$?
4445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }
4447 then :
4448 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4449 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4450 # work properly (i.e., refer to `conftest.exe'), while it won't with
4451 # `rm'.
4452 for ac_file in conftest.exe conftest conftest.*; do
4453 test -f "$ac_file" || continue
4454 case $ac_file in
4455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4456 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4457 break;;
4458 * ) break;;
4459 esac
4460 done
4461 else $as_nop
4462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4463 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4464 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4465 See \`config.log' for more details" "$LINENO" 5; }
4466 fi
4467 rm -f conftest conftest$ac_cv_exeext
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4469 printf "%s\n" "$ac_cv_exeext" >&6; }
4470
4471 rm -f conftest.$ac_ext
4472 EXEEXT=$ac_cv_exeext
4473 ac_exeext=$EXEEXT
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 #include <stdio.h>
4477 int
4478 main (void)
4479 {
4480 FILE *f = fopen ("conftest.out", "w");
4481 return ferror (f) || fclose (f) != 0;
4482
4483 ;
4484 return 0;
4485 }
4486 _ACEOF
4487 ac_clean_files="$ac_clean_files conftest.out"
4488 # Check that the compiler produces executables we can run. If not, either
4489 # the compiler is broken, or we cross compile.
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4491 printf %s "checking whether we are cross compiling... " >&6; }
4492 if test "$cross_compiling" != yes; then
4493 { { ac_try="$ac_link"
4494 case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497 esac
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 printf "%s\n" "$ac_try_echo"; } >&5
4500 (eval "$ac_link") 2>&5
4501 ac_status=$?
4502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }
4504 if { ac_try='./conftest$ac_cv_exeext'
4505 { { case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510 printf "%s\n" "$ac_try_echo"; } >&5
4511 (eval "$ac_try") 2>&5
4512 ac_status=$?
4513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }; }; then
4515 cross_compiling=no
4516 else
4517 if test "$cross_compiling" = maybe; then
4518 cross_compiling=yes
4519 else
4520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4521 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4522 as_fn_error 77 "cannot run C compiled programs.
4523 If you meant to cross compile, use \`--host'.
4524 See \`config.log' for more details" "$LINENO" 5; }
4525 fi
4526 fi
4527 fi
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4529 printf "%s\n" "$cross_compiling" >&6; }
4530
4531 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4532 ac_clean_files=$ac_clean_files_save
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4534 printf %s "checking for suffix of object files... " >&6; }
4535 if test ${ac_cv_objext+y}
4536 then :
4537 printf %s "(cached) " >&6
4538 else $as_nop
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541
4542 int
4543 main (void)
4544 {
4545
4546 ;
4547 return 0;
4548 }
4549 _ACEOF
4550 rm -f conftest.o conftest.obj
4551 if { { ac_try="$ac_compile"
4552 case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555 esac
4556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557 printf "%s\n" "$ac_try_echo"; } >&5
4558 (eval "$ac_compile") 2>&5
4559 ac_status=$?
4560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561 test $ac_status = 0; }
4562 then :
4563 for ac_file in conftest.o conftest.obj conftest.*; do
4564 test -f "$ac_file" || continue;
4565 case $ac_file in
4566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4567 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4568 break;;
4569 esac
4570 done
4571 else $as_nop
4572 printf "%s\n" "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4574
4575 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4576 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4577 as_fn_error $? "cannot compute suffix of object files: cannot compile
4578 See \`config.log' for more details" "$LINENO" 5; }
4579 fi
4580 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4581 fi
4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4583 printf "%s\n" "$ac_cv_objext" >&6; }
4584 OBJEXT=$ac_cv_objext
4585 ac_objext=$OBJEXT
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4587 printf %s "checking whether the compiler supports GNU C... " >&6; }
4588 if test ${ac_cv_c_compiler_gnu+y}
4589 then :
4590 printf %s "(cached) " >&6
4591 else $as_nop
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594
4595 int
4596 main (void)
4597 {
4598 #ifndef __GNUC__
4599 choke me
4600 #endif
4601
4602 ;
4603 return 0;
4604 }
4605 _ACEOF
4606 if ac_fn_c_try_compile "$LINENO"
4607 then :
4608 ac_compiler_gnu=yes
4609 else $as_nop
4610 ac_compiler_gnu=no
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4613 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4614
4615 fi
4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4617 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619
4620 if test $ac_compiler_gnu = yes; then
4621 GCC=yes
4622 else
4623 GCC=
4624 fi
4625 ac_test_CFLAGS=${CFLAGS+y}
4626 ac_save_CFLAGS=$CFLAGS
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4628 printf %s "checking whether $CC accepts -g... " >&6; }
4629 if test ${ac_cv_prog_cc_g+y}
4630 then :
4631 printf %s "(cached) " >&6
4632 else $as_nop
4633 ac_save_c_werror_flag=$ac_c_werror_flag
4634 ac_c_werror_flag=yes
4635 ac_cv_prog_cc_g=no
4636 CFLAGS="-g"
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639
4640 int
4641 main (void)
4642 {
4643
4644 ;
4645 return 0;
4646 }
4647 _ACEOF
4648 if ac_fn_c_try_compile "$LINENO"
4649 then :
4650 ac_cv_prog_cc_g=yes
4651 else $as_nop
4652 CFLAGS=""
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655
4656 int
4657 main (void)
4658 {
4659
4660 ;
4661 return 0;
4662 }
4663 _ACEOF
4664 if ac_fn_c_try_compile "$LINENO"
4665 then :
4666
4667 else $as_nop
4668 ac_c_werror_flag=$ac_save_c_werror_flag
4669 CFLAGS="-g"
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4672
4673 int
4674 main (void)
4675 {
4676
4677 ;
4678 return 0;
4679 }
4680 _ACEOF
4681 if ac_fn_c_try_compile "$LINENO"
4682 then :
4683 ac_cv_prog_cc_g=yes
4684 fi
4685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4686 fi
4687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4690 ac_c_werror_flag=$ac_save_c_werror_flag
4691 fi
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4693 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4694 if test $ac_test_CFLAGS; then
4695 CFLAGS=$ac_save_CFLAGS
4696 elif test $ac_cv_prog_cc_g = yes; then
4697 if test "$GCC" = yes; then
4698 CFLAGS="-g -O2"
4699 else
4700 CFLAGS="-g"
4701 fi
4702 else
4703 if test "$GCC" = yes; then
4704 CFLAGS="-O2"
4705 else
4706 CFLAGS=
4707 fi
4708 fi
4709 ac_prog_cc_stdc=no
4710 if test x$ac_prog_cc_stdc = xno
4711 then :
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4713 printf %s "checking for $CC option to enable C11 features... " >&6; }
4714 if test ${ac_cv_prog_cc_c11+y}
4715 then :
4716 printf %s "(cached) " >&6
4717 else $as_nop
4718 ac_cv_prog_cc_c11=no
4719 ac_save_CC=$CC
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722 $ac_c_conftest_c11_program
4723 _ACEOF
4724 for ac_arg in '' -std=gnu11
4725 do
4726 CC="$ac_save_CC $ac_arg"
4727 if ac_fn_c_try_compile "$LINENO"
4728 then :
4729 ac_cv_prog_cc_c11=$ac_arg
4730 fi
4731 rm -f core conftest.err conftest.$ac_objext conftest.beam
4732 test "x$ac_cv_prog_cc_c11" != "xno" && break
4733 done
4734 rm -f conftest.$ac_ext
4735 CC=$ac_save_CC
4736 fi
4737
4738 if test "x$ac_cv_prog_cc_c11" = xno
4739 then :
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4741 printf "%s\n" "unsupported" >&6; }
4742 else $as_nop
4743 if test "x$ac_cv_prog_cc_c11" = x
4744 then :
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4746 printf "%s\n" "none needed" >&6; }
4747 else $as_nop
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4749 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4750 CC="$CC $ac_cv_prog_cc_c11"
4751 fi
4752 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4753 ac_prog_cc_stdc=c11
4754 fi
4755 fi
4756 if test x$ac_prog_cc_stdc = xno
4757 then :
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4759 printf %s "checking for $CC option to enable C99 features... " >&6; }
4760 if test ${ac_cv_prog_cc_c99+y}
4761 then :
4762 printf %s "(cached) " >&6
4763 else $as_nop
4764 ac_cv_prog_cc_c99=no
4765 ac_save_CC=$CC
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768 $ac_c_conftest_c99_program
4769 _ACEOF
4770 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4771 do
4772 CC="$ac_save_CC $ac_arg"
4773 if ac_fn_c_try_compile "$LINENO"
4774 then :
4775 ac_cv_prog_cc_c99=$ac_arg
4776 fi
4777 rm -f core conftest.err conftest.$ac_objext conftest.beam
4778 test "x$ac_cv_prog_cc_c99" != "xno" && break
4779 done
4780 rm -f conftest.$ac_ext
4781 CC=$ac_save_CC
4782 fi
4783
4784 if test "x$ac_cv_prog_cc_c99" = xno
4785 then :
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4787 printf "%s\n" "unsupported" >&6; }
4788 else $as_nop
4789 if test "x$ac_cv_prog_cc_c99" = x
4790 then :
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4792 printf "%s\n" "none needed" >&6; }
4793 else $as_nop
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4795 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4796 CC="$CC $ac_cv_prog_cc_c99"
4797 fi
4798 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4799 ac_prog_cc_stdc=c99
4800 fi
4801 fi
4802 if test x$ac_prog_cc_stdc = xno
4803 then :
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4805 printf %s "checking for $CC option to enable C89 features... " >&6; }
4806 if test ${ac_cv_prog_cc_c89+y}
4807 then :
4808 printf %s "(cached) " >&6
4809 else $as_nop
4810 ac_cv_prog_cc_c89=no
4811 ac_save_CC=$CC
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814 $ac_c_conftest_c89_program
4815 _ACEOF
4816 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4817 do
4818 CC="$ac_save_CC $ac_arg"
4819 if ac_fn_c_try_compile "$LINENO"
4820 then :
4821 ac_cv_prog_cc_c89=$ac_arg
4822 fi
4823 rm -f core conftest.err conftest.$ac_objext conftest.beam
4824 test "x$ac_cv_prog_cc_c89" != "xno" && break
4825 done
4826 rm -f conftest.$ac_ext
4827 CC=$ac_save_CC
4828 fi
4829
4830 if test "x$ac_cv_prog_cc_c89" = xno
4831 then :
4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4833 printf "%s\n" "unsupported" >&6; }
4834 else $as_nop
4835 if test "x$ac_cv_prog_cc_c89" = x
4836 then :
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4838 printf "%s\n" "none needed" >&6; }
4839 else $as_nop
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4841 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4842 CC="$CC $ac_cv_prog_cc_c89"
4843 fi
4844 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4845 ac_prog_cc_stdc=c89
4846 fi
4847 fi
4848
4849 ac_ext=c
4850 ac_cpp='$CPP $CPPFLAGS'
4851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4854
4855
4856 ac_ext=c
4857 ac_cpp='$CPP $CPPFLAGS'
4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4862 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4863 if test ${am_cv_prog_cc_c_o+y}
4864 then :
4865 printf %s "(cached) " >&6
4866 else $as_nop
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4869
4870 int
4871 main (void)
4872 {
4873
4874 ;
4875 return 0;
4876 }
4877 _ACEOF
4878 # Make sure it works both with $CC and with simple cc.
4879 # Following AC_PROG_CC_C_O, we do the test twice because some
4880 # compilers refuse to overwrite an existing .o file with -o,
4881 # though they will create one.
4882 am_cv_prog_cc_c_o=yes
4883 for am_i in 1 2; do
4884 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4885 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } \
4889 && test -f conftest2.$ac_objext; then
4890 : OK
4891 else
4892 am_cv_prog_cc_c_o=no
4893 break
4894 fi
4895 done
4896 rm -f core conftest*
4897 unset am_i
4898 fi
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4900 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4901 if test "$am_cv_prog_cc_c_o" != yes; then
4902 # Losing compiler, so override with the script.
4903 # FIXME: It is wrong to rewrite CC.
4904 # But if we don't then we get into trouble of one sort or another.
4905 # A longer-term fix would be to have automake use am__CC in this case,
4906 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4907 CC="$am_aux_dir/compile $CC"
4908 fi
4909 ac_ext=c
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914
4915
4916 depcc="$CC" am_compiler_list=
4917
4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4919 printf %s "checking dependency style of $depcc... " >&6; }
4920 if test ${am_cv_CC_dependencies_compiler_type+y}
4921 then :
4922 printf %s "(cached) " >&6
4923 else $as_nop
4924 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4925 # We make a subdir and do the tests there. Otherwise we can end up
4926 # making bogus files that we don't know about and never remove. For
4927 # instance it was reported that on HP-UX the gcc test will end up
4928 # making a dummy file named 'D' -- because '-MD' means "put the output
4929 # in D".
4930 rm -rf conftest.dir
4931 mkdir conftest.dir
4932 # Copy depcomp to subdir because otherwise we won't find it if we're
4933 # using a relative directory.
4934 cp "$am_depcomp" conftest.dir
4935 cd conftest.dir
4936 # We will build objects and dependencies in a subdirectory because
4937 # it helps to detect inapplicable dependency modes. For instance
4938 # both Tru64's cc and ICC support -MD to output dependencies as a
4939 # side effect of compilation, but ICC will put the dependencies in
4940 # the current directory while Tru64 will put them in the object
4941 # directory.
4942 mkdir sub
4943
4944 am_cv_CC_dependencies_compiler_type=none
4945 if test "$am_compiler_list" = ""; then
4946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4947 fi
4948 am__universal=false
4949 case " $depcc " in #(
4950 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4951 esac
4952
4953 for depmode in $am_compiler_list; do
4954 # Setup a source with many dependencies, because some compilers
4955 # like to wrap large dependency lists on column 80 (with \), and
4956 # we should not choose a depcomp mode which is confused by this.
4957 #
4958 # We need to recreate these files for each test, as the compiler may
4959 # overwrite some of them when testing with obscure command lines.
4960 # This happens at least with the AIX C compiler.
4961 : > sub/conftest.c
4962 for i in 1 2 3 4 5 6; do
4963 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4964 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4965 # Solaris 10 /bin/sh.
4966 echo '/* dummy */' > sub/conftst$i.h
4967 done
4968 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4969
4970 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4971 # mode. It turns out that the SunPro C++ compiler does not properly
4972 # handle '-M -o', and we need to detect this. Also, some Intel
4973 # versions had trouble with output in subdirs.
4974 am__obj=sub/conftest.${OBJEXT-o}
4975 am__minus_obj="-o $am__obj"
4976 case $depmode in
4977 gcc)
4978 # This depmode causes a compiler race in universal mode.
4979 test "$am__universal" = false || continue
4980 ;;
4981 nosideeffect)
4982 # After this tag, mechanisms are not by side-effect, so they'll
4983 # only be used when explicitly requested.
4984 if test "x$enable_dependency_tracking" = xyes; then
4985 continue
4986 else
4987 break
4988 fi
4989 ;;
4990 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4991 # This compiler won't grok '-c -o', but also, the minuso test has
4992 # not run yet. These depmodes are late enough in the game, and
4993 # so weak that their functioning should not be impacted.
4994 am__obj=conftest.${OBJEXT-o}
4995 am__minus_obj=
4996 ;;
4997 none) break ;;
4998 esac
4999 if depmode=$depmode \
5000 source=sub/conftest.c object=$am__obj \
5001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5002 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5003 >/dev/null 2>conftest.err &&
5004 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5005 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5006 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5007 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5008 # icc doesn't choke on unknown options, it will just issue warnings
5009 # or remarks (even with -Werror). So we grep stderr for any message
5010 # that says an option was ignored or not supported.
5011 # When given -MP, icc 7.0 and 7.1 complain thusly:
5012 # icc: Command line warning: ignoring option '-M'; no argument required
5013 # The diagnosis changed in icc 8.0:
5014 # icc: Command line remark: option '-MP' not supported
5015 if (grep 'ignoring option' conftest.err ||
5016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5017 am_cv_CC_dependencies_compiler_type=$depmode
5018 break
5019 fi
5020 fi
5021 done
5022
5023 cd ..
5024 rm -rf conftest.dir
5025 else
5026 am_cv_CC_dependencies_compiler_type=none
5027 fi
5028
5029 fi
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5031 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5032 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5033
5034 if
5035 test "x$enable_dependency_tracking" != xno \
5036 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5037 am__fastdepCC_TRUE=
5038 am__fastdepCC_FALSE='#'
5039 else
5040 am__fastdepCC_TRUE='#'
5041 am__fastdepCC_FALSE=
5042 fi
5043
5044
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5046 printf %s "checking for a sed that does not truncate output... " >&6; }
5047 if test ${ac_cv_path_SED+y}
5048 then :
5049 printf %s "(cached) " >&6
5050 else $as_nop
5051 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5052 for ac_i in 1 2 3 4 5 6 7; do
5053 ac_script="$ac_script$as_nl$ac_script"
5054 done
5055 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5056 { ac_script=; unset ac_script;}
5057 if test -z "$SED"; then
5058 ac_path_SED_found=false
5059 # Loop through the user's path and test for each of PROGNAME-LIST
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063 IFS=$as_save_IFS
5064 case $as_dir in #(((
5065 '') as_dir=./ ;;
5066 */) ;;
5067 *) as_dir=$as_dir/ ;;
5068 esac
5069 for ac_prog in sed gsed
5070 do
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5073 as_fn_executable_p "$ac_path_SED" || continue
5074 # Check for GNU ac_path_SED and select it if it is found.
5075 # Check for GNU $ac_path_SED
5076 case `"$ac_path_SED" --version 2>&1` in
5077 *GNU*)
5078 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5079 *)
5080 ac_count=0
5081 printf %s 0123456789 >"conftest.in"
5082 while :
5083 do
5084 cat "conftest.in" "conftest.in" >"conftest.tmp"
5085 mv "conftest.tmp" "conftest.in"
5086 cp "conftest.in" "conftest.nl"
5087 printf "%s\n" '' >> "conftest.nl"
5088 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5090 as_fn_arith $ac_count + 1 && ac_count=$as_val
5091 if test $ac_count -gt ${ac_path_SED_max-0}; then
5092 # Best one so far, save it but keep looking for a better one
5093 ac_cv_path_SED="$ac_path_SED"
5094 ac_path_SED_max=$ac_count
5095 fi
5096 # 10*(2^10) chars as input seems more than enough
5097 test $ac_count -gt 10 && break
5098 done
5099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5100 esac
5101
5102 $ac_path_SED_found && break 3
5103 done
5104 done
5105 done
5106 IFS=$as_save_IFS
5107 if test -z "$ac_cv_path_SED"; then
5108 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5109 fi
5110 else
5111 ac_cv_path_SED=$SED
5112 fi
5113
5114 fi
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5116 printf "%s\n" "$ac_cv_path_SED" >&6; }
5117 SED="$ac_cv_path_SED"
5118 rm -f conftest.sed
5119
5120 test -z "$SED" && SED=sed
5121 Xsed="$SED -e 1s/^X//"
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5134 printf %s "checking for grep that handles long lines and -e... " >&6; }
5135 if test ${ac_cv_path_GREP+y}
5136 then :
5137 printf %s "(cached) " >&6
5138 else $as_nop
5139 if test -z "$GREP"; then
5140 ac_path_GREP_found=false
5141 # Loop through the user's path and test for each of PROGNAME-LIST
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5144 do
5145 IFS=$as_save_IFS
5146 case $as_dir in #(((
5147 '') as_dir=./ ;;
5148 */) ;;
5149 *) as_dir=$as_dir/ ;;
5150 esac
5151 for ac_prog in grep ggrep
5152 do
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5155 as_fn_executable_p "$ac_path_GREP" || continue
5156 # Check for GNU ac_path_GREP and select it if it is found.
5157 # Check for GNU $ac_path_GREP
5158 case `"$ac_path_GREP" --version 2>&1` in
5159 *GNU*)
5160 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5161 *)
5162 ac_count=0
5163 printf %s 0123456789 >"conftest.in"
5164 while :
5165 do
5166 cat "conftest.in" "conftest.in" >"conftest.tmp"
5167 mv "conftest.tmp" "conftest.in"
5168 cp "conftest.in" "conftest.nl"
5169 printf "%s\n" 'GREP' >> "conftest.nl"
5170 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5172 as_fn_arith $ac_count + 1 && ac_count=$as_val
5173 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5174 # Best one so far, save it but keep looking for a better one
5175 ac_cv_path_GREP="$ac_path_GREP"
5176 ac_path_GREP_max=$ac_count
5177 fi
5178 # 10*(2^10) chars as input seems more than enough
5179 test $ac_count -gt 10 && break
5180 done
5181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5182 esac
5183
5184 $ac_path_GREP_found && break 3
5185 done
5186 done
5187 done
5188 IFS=$as_save_IFS
5189 if test -z "$ac_cv_path_GREP"; then
5190 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5191 fi
5192 else
5193 ac_cv_path_GREP=$GREP
5194 fi
5195
5196 fi
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5198 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5199 GREP="$ac_cv_path_GREP"
5200
5201
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5203 printf %s "checking for egrep... " >&6; }
5204 if test ${ac_cv_path_EGREP+y}
5205 then :
5206 printf %s "(cached) " >&6
5207 else $as_nop
5208 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5209 then ac_cv_path_EGREP="$GREP -E"
5210 else
5211 if test -z "$EGREP"; then
5212 ac_path_EGREP_found=false
5213 # Loop through the user's path and test for each of PROGNAME-LIST
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5216 do
5217 IFS=$as_save_IFS
5218 case $as_dir in #(((
5219 '') as_dir=./ ;;
5220 */) ;;
5221 *) as_dir=$as_dir/ ;;
5222 esac
5223 for ac_prog in egrep
5224 do
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5227 as_fn_executable_p "$ac_path_EGREP" || continue
5228 # Check for GNU ac_path_EGREP and select it if it is found.
5229 # Check for GNU $ac_path_EGREP
5230 case `"$ac_path_EGREP" --version 2>&1` in
5231 *GNU*)
5232 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5233 *)
5234 ac_count=0
5235 printf %s 0123456789 >"conftest.in"
5236 while :
5237 do
5238 cat "conftest.in" "conftest.in" >"conftest.tmp"
5239 mv "conftest.tmp" "conftest.in"
5240 cp "conftest.in" "conftest.nl"
5241 printf "%s\n" 'EGREP' >> "conftest.nl"
5242 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5244 as_fn_arith $ac_count + 1 && ac_count=$as_val
5245 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5246 # Best one so far, save it but keep looking for a better one
5247 ac_cv_path_EGREP="$ac_path_EGREP"
5248 ac_path_EGREP_max=$ac_count
5249 fi
5250 # 10*(2^10) chars as input seems more than enough
5251 test $ac_count -gt 10 && break
5252 done
5253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5254 esac
5255
5256 $ac_path_EGREP_found && break 3
5257 done
5258 done
5259 done
5260 IFS=$as_save_IFS
5261 if test -z "$ac_cv_path_EGREP"; then
5262 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5263 fi
5264 else
5265 ac_cv_path_EGREP=$EGREP
5266 fi
5267
5268 fi
5269 fi
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5271 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5272 EGREP="$ac_cv_path_EGREP"
5273
5274
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5276 printf %s "checking for fgrep... " >&6; }
5277 if test ${ac_cv_path_FGREP+y}
5278 then :
5279 printf %s "(cached) " >&6
5280 else $as_nop
5281 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5282 then ac_cv_path_FGREP="$GREP -F"
5283 else
5284 if test -z "$FGREP"; then
5285 ac_path_FGREP_found=false
5286 # Loop through the user's path and test for each of PROGNAME-LIST
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5289 do
5290 IFS=$as_save_IFS
5291 case $as_dir in #(((
5292 '') as_dir=./ ;;
5293 */) ;;
5294 *) as_dir=$as_dir/ ;;
5295 esac
5296 for ac_prog in fgrep
5297 do
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5300 as_fn_executable_p "$ac_path_FGREP" || continue
5301 # Check for GNU ac_path_FGREP and select it if it is found.
5302 # Check for GNU $ac_path_FGREP
5303 case `"$ac_path_FGREP" --version 2>&1` in
5304 *GNU*)
5305 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5306 *)
5307 ac_count=0
5308 printf %s 0123456789 >"conftest.in"
5309 while :
5310 do
5311 cat "conftest.in" "conftest.in" >"conftest.tmp"
5312 mv "conftest.tmp" "conftest.in"
5313 cp "conftest.in" "conftest.nl"
5314 printf "%s\n" 'FGREP' >> "conftest.nl"
5315 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5317 as_fn_arith $ac_count + 1 && ac_count=$as_val
5318 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5319 # Best one so far, save it but keep looking for a better one
5320 ac_cv_path_FGREP="$ac_path_FGREP"
5321 ac_path_FGREP_max=$ac_count
5322 fi
5323 # 10*(2^10) chars as input seems more than enough
5324 test $ac_count -gt 10 && break
5325 done
5326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5327 esac
5328
5329 $ac_path_FGREP_found && break 3
5330 done
5331 done
5332 done
5333 IFS=$as_save_IFS
5334 if test -z "$ac_cv_path_FGREP"; then
5335 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5336 fi
5337 else
5338 ac_cv_path_FGREP=$FGREP
5339 fi
5340
5341 fi
5342 fi
5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5344 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5345 FGREP="$ac_cv_path_FGREP"
5346
5347
5348 test -z "$GREP" && GREP=grep
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368 # Check whether --with-gnu-ld was given.
5369 if test ${with_gnu_ld+y}
5370 then :
5371 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5372 else $as_nop
5373 with_gnu_ld=no
5374 fi
5375
5376 ac_prog=ld
5377 if test yes = "$GCC"; then
5378 # Check if gcc -print-prog-name=ld gives a path.
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5380 printf %s "checking for ld used by $CC... " >&6; }
5381 case $host in
5382 *-*-mingw*)
5383 # gcc leaves a trailing carriage return, which upsets mingw
5384 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5385 *)
5386 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5387 esac
5388 case $ac_prog in
5389 # Accept absolute paths.
5390 [\\/]* | ?:[\\/]*)
5391 re_direlt='/[^/][^/]*/\.\./'
5392 # Canonicalize the pathname of ld
5393 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5394 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5395 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5396 done
5397 test -z "$LD" && LD=$ac_prog
5398 ;;
5399 "")
5400 # If it fails, then pretend we aren't using GCC.
5401 ac_prog=ld
5402 ;;
5403 *)
5404 # If it is relative, then search for the first ld in PATH.
5405 with_gnu_ld=unknown
5406 ;;
5407 esac
5408 elif test yes = "$with_gnu_ld"; then
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5410 printf %s "checking for GNU ld... " >&6; }
5411 else
5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5413 printf %s "checking for non-GNU ld... " >&6; }
5414 fi
5415 if test ${lt_cv_path_LD+y}
5416 then :
5417 printf %s "(cached) " >&6
5418 else $as_nop
5419 if test -z "$LD"; then
5420 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5421 for ac_dir in $PATH; do
5422 IFS=$lt_save_ifs
5423 test -z "$ac_dir" && ac_dir=.
5424 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5425 lt_cv_path_LD=$ac_dir/$ac_prog
5426 # Check to see if the program is GNU ld. I'd rather use --version,
5427 # but apparently some variants of GNU ld only accept -v.
5428 # Break only if it was the GNU/non-GNU ld that we prefer.
5429 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5430 *GNU* | *'with BFD'*)
5431 test no != "$with_gnu_ld" && break
5432 ;;
5433 *)
5434 test yes != "$with_gnu_ld" && break
5435 ;;
5436 esac
5437 fi
5438 done
5439 IFS=$lt_save_ifs
5440 else
5441 lt_cv_path_LD=$LD # Let the user override the test with a path.
5442 fi
5443 fi
5444
5445 LD=$lt_cv_path_LD
5446 if test -n "$LD"; then
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5448 printf "%s\n" "$LD" >&6; }
5449 else
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 printf "%s\n" "no" >&6; }
5452 fi
5453 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5455 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5456 if test ${lt_cv_prog_gnu_ld+y}
5457 then :
5458 printf %s "(cached) " >&6
5459 else $as_nop
5460 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5461 case `$LD -v 2>&1 </dev/null` in
5462 *GNU* | *'with BFD'*)
5463 lt_cv_prog_gnu_ld=yes
5464 ;;
5465 *)
5466 lt_cv_prog_gnu_ld=no
5467 ;;
5468 esac
5469 fi
5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5471 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5472 with_gnu_ld=$lt_cv_prog_gnu_ld
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5483 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5484 if test ${lt_cv_path_NM+y}
5485 then :
5486 printf %s "(cached) " >&6
5487 else $as_nop
5488 if test -n "$NM"; then
5489 # Let the user override the test.
5490 lt_cv_path_NM=$NM
5491 else
5492 lt_nm_to_check=${ac_tool_prefix}nm
5493 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5494 lt_nm_to_check="$lt_nm_to_check nm"
5495 fi
5496 for lt_tmp_nm in $lt_nm_to_check; do
5497 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5498 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5499 IFS=$lt_save_ifs
5500 test -z "$ac_dir" && ac_dir=.
5501 tmp_nm=$ac_dir/$lt_tmp_nm
5502 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5503 # Check to see if the nm accepts a BSD-compat flag.
5504 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5505 # nm: unknown option "B" ignored
5506 # Tru64's nm complains that /dev/null is an invalid object file
5507 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5508 case $build_os in
5509 mingw*) lt_bad_file=conftest.nm/nofile ;;
5510 *) lt_bad_file=/dev/null ;;
5511 esac
5512 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5513 *$lt_bad_file* | *'Invalid file or object type'*)
5514 lt_cv_path_NM="$tmp_nm -B"
5515 break 2
5516 ;;
5517 *)
5518 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5519 */dev/null*)
5520 lt_cv_path_NM="$tmp_nm -p"
5521 break 2
5522 ;;
5523 *)
5524 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5525 continue # so that we can try to find one that supports BSD flags
5526 ;;
5527 esac
5528 ;;
5529 esac
5530 fi
5531 done
5532 IFS=$lt_save_ifs
5533 done
5534 : ${lt_cv_path_NM=no}
5535 fi
5536 fi
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5538 printf "%s\n" "$lt_cv_path_NM" >&6; }
5539 if test no != "$lt_cv_path_NM"; then
5540 NM=$lt_cv_path_NM
5541 else
5542 # Didn't find any BSD compatible name lister, look for dumpbin.
5543 if test -n "$DUMPBIN"; then :
5544 # Let the user override the test.
5545 else
5546 if test -n "$ac_tool_prefix"; then
5547 for ac_prog in dumpbin "link -dump"
5548 do
5549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 printf %s "checking for $ac_word... " >&6; }
5553 if test ${ac_cv_prog_DUMPBIN+y}
5554 then :
5555 printf %s "(cached) " >&6
5556 else $as_nop
5557 if test -n "$DUMPBIN"; then
5558 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5559 else
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH
5562 do
5563 IFS=$as_save_IFS
5564 case $as_dir in #(((
5565 '') as_dir=./ ;;
5566 */) ;;
5567 *) as_dir=$as_dir/ ;;
5568 esac
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5571 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5573 break 2
5574 fi
5575 done
5576 done
5577 IFS=$as_save_IFS
5578
5579 fi
5580 fi
5581 DUMPBIN=$ac_cv_prog_DUMPBIN
5582 if test -n "$DUMPBIN"; then
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5584 printf "%s\n" "$DUMPBIN" >&6; }
5585 else
5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 printf "%s\n" "no" >&6; }
5588 fi
5589
5590
5591 test -n "$DUMPBIN" && break
5592 done
5593 fi
5594 if test -z "$DUMPBIN"; then
5595 ac_ct_DUMPBIN=$DUMPBIN
5596 for ac_prog in dumpbin "link -dump"
5597 do
5598 # Extract the first word of "$ac_prog", so it can be a program name with args.
5599 set dummy $ac_prog; ac_word=$2
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 printf %s "checking for $ac_word... " >&6; }
5602 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5603 then :
5604 printf %s "(cached) " >&6
5605 else $as_nop
5606 if test -n "$ac_ct_DUMPBIN"; then
5607 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612 IFS=$as_save_IFS
5613 case $as_dir in #(((
5614 '') as_dir=./ ;;
5615 */) ;;
5616 *) as_dir=$as_dir/ ;;
5617 esac
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5620 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5622 break 2
5623 fi
5624 done
5625 done
5626 IFS=$as_save_IFS
5627
5628 fi
5629 fi
5630 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5631 if test -n "$ac_ct_DUMPBIN"; then
5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5633 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5634 else
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 printf "%s\n" "no" >&6; }
5637 fi
5638
5639
5640 test -n "$ac_ct_DUMPBIN" && break
5641 done
5642
5643 if test "x$ac_ct_DUMPBIN" = x; then
5644 DUMPBIN=":"
5645 else
5646 case $cross_compiling:$ac_tool_warned in
5647 yes:)
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5649 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5650 ac_tool_warned=yes ;;
5651 esac
5652 DUMPBIN=$ac_ct_DUMPBIN
5653 fi
5654 fi
5655
5656 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5657 *COFF*)
5658 DUMPBIN="$DUMPBIN -symbols -headers"
5659 ;;
5660 *)
5661 DUMPBIN=:
5662 ;;
5663 esac
5664 fi
5665
5666 if test : != "$DUMPBIN"; then
5667 NM=$DUMPBIN
5668 fi
5669 fi
5670 test -z "$NM" && NM=nm
5671
5672
5673
5674
5675
5676
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5678 printf %s "checking the name lister ($NM) interface... " >&6; }
5679 if test ${lt_cv_nm_interface+y}
5680 then :
5681 printf %s "(cached) " >&6
5682 else $as_nop
5683 lt_cv_nm_interface="BSD nm"
5684 echo "int some_variable = 0;" > conftest.$ac_ext
5685 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5686 (eval "$ac_compile" 2>conftest.err)
5687 cat conftest.err >&5
5688 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5689 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5690 cat conftest.err >&5
5691 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5692 cat conftest.out >&5
5693 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5694 lt_cv_nm_interface="MS dumpbin"
5695 fi
5696 rm -f conftest*
5697 fi
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5699 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5700
5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5702 printf %s "checking whether ln -s works... " >&6; }
5703 LN_S=$as_ln_s
5704 if test "$LN_S" = "ln -s"; then
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5706 printf "%s\n" "yes" >&6; }
5707 else
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5709 printf "%s\n" "no, using $LN_S" >&6; }
5710 fi
5711
5712 # find the maximum length of command line arguments
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5714 printf %s "checking the maximum length of command line arguments... " >&6; }
5715 if test ${lt_cv_sys_max_cmd_len+y}
5716 then :
5717 printf %s "(cached) " >&6
5718 else $as_nop
5719 i=0
5720 teststring=ABCD
5721
5722 case $build_os in
5723 msdosdjgpp*)
5724 # On DJGPP, this test can blow up pretty badly due to problems in libc
5725 # (any single argument exceeding 2000 bytes causes a buffer overrun
5726 # during glob expansion). Even if it were fixed, the result of this
5727 # check would be larger than it should be.
5728 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5729 ;;
5730
5731 gnu*)
5732 # Under GNU Hurd, this test is not required because there is
5733 # no limit to the length of command line arguments.
5734 # Libtool will interpret -1 as no limit whatsoever
5735 lt_cv_sys_max_cmd_len=-1;
5736 ;;
5737
5738 cygwin* | mingw* | cegcc*)
5739 # On Win9x/ME, this test blows up -- it succeeds, but takes
5740 # about 5 minutes as the teststring grows exponentially.
5741 # Worse, since 9x/ME are not pre-emptively multitasking,
5742 # you end up with a "frozen" computer, even though with patience
5743 # the test eventually succeeds (with a max line length of 256k).
5744 # Instead, let's just punt: use the minimum linelength reported by
5745 # all of the supported platforms: 8192 (on NT/2K/XP).
5746 lt_cv_sys_max_cmd_len=8192;
5747 ;;
5748
5749 mint*)
5750 # On MiNT this can take a long time and run out of memory.
5751 lt_cv_sys_max_cmd_len=8192;
5752 ;;
5753
5754 amigaos*)
5755 # On AmigaOS with pdksh, this test takes hours, literally.
5756 # So we just punt and use a minimum line length of 8192.
5757 lt_cv_sys_max_cmd_len=8192;
5758 ;;
5759
5760 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5761 # This has been around since 386BSD, at least. Likely further.
5762 if test -x /sbin/sysctl; then
5763 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5764 elif test -x /usr/sbin/sysctl; then
5765 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5766 else
5767 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5768 fi
5769 # And add a safety zone
5770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5772 ;;
5773
5774 interix*)
5775 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5776 lt_cv_sys_max_cmd_len=196608
5777 ;;
5778
5779 os2*)
5780 # The test takes a long time on OS/2.
5781 lt_cv_sys_max_cmd_len=8192
5782 ;;
5783
5784 osf*)
5785 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5786 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5787 # nice to cause kernel panics so lets avoid the loop below.
5788 # First set a reasonable default.
5789 lt_cv_sys_max_cmd_len=16384
5790 #
5791 if test -x /sbin/sysconfig; then
5792 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5793 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5794 esac
5795 fi
5796 ;;
5797 sco3.2v5*)
5798 lt_cv_sys_max_cmd_len=102400
5799 ;;
5800 sysv5* | sco5v6* | sysv4.2uw2*)
5801 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5802 if test -n "$kargmax"; then
5803 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5804 else
5805 lt_cv_sys_max_cmd_len=32768
5806 fi
5807 ;;
5808 *)
5809 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5810 if test -n "$lt_cv_sys_max_cmd_len" && \
5811 test undefined != "$lt_cv_sys_max_cmd_len"; then
5812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5814 else
5815 # Make teststring a little bigger before we do anything with it.
5816 # a 1K string should be a reasonable start.
5817 for i in 1 2 3 4 5 6 7 8; do
5818 teststring=$teststring$teststring
5819 done
5820 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5821 # If test is not a shell built-in, we'll probably end up computing a
5822 # maximum length that is only half of the actual maximum length, but
5823 # we can't tell.
5824 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5825 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5826 test 17 != "$i" # 1/2 MB should be enough
5827 do
5828 i=`expr $i + 1`
5829 teststring=$teststring$teststring
5830 done
5831 # Only check the string length outside the loop.
5832 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5833 teststring=
5834 # Add a significant safety factor because C++ compilers can tack on
5835 # massive amounts of additional arguments before passing them to the
5836 # linker. It appears as though 1/2 is a usable value.
5837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5838 fi
5839 ;;
5840 esac
5841
5842 fi
5843
5844 if test -n "$lt_cv_sys_max_cmd_len"; then
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5846 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5847 else
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5849 printf "%s\n" "none" >&6; }
5850 fi
5851 max_cmd_len=$lt_cv_sys_max_cmd_len
5852
5853
5854
5855
5856
5857
5858 : ${CP="cp -f"}
5859 : ${MV="mv -f"}
5860 : ${RM="rm -f"}
5861
5862 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5863 lt_unset=unset
5864 else
5865 lt_unset=false
5866 fi
5867
5868
5869
5870
5871
5872 # test EBCDIC or ASCII
5873 case `echo X|tr X '\101'` in
5874 A) # ASCII based system
5875 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5876 lt_SP2NL='tr \040 \012'
5877 lt_NL2SP='tr \015\012 \040\040'
5878 ;;
5879 *) # EBCDIC based system
5880 lt_SP2NL='tr \100 \n'
5881 lt_NL2SP='tr \r\n \100\100'
5882 ;;
5883 esac
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5894 printf %s "checking how to convert $build file names to $host format... " >&6; }
5895 if test ${lt_cv_to_host_file_cmd+y}
5896 then :
5897 printf %s "(cached) " >&6
5898 else $as_nop
5899 case $host in
5900 *-*-mingw* )
5901 case $build in
5902 *-*-mingw* ) # actually msys
5903 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5904 ;;
5905 *-*-cygwin* )
5906 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5907 ;;
5908 * ) # otherwise, assume *nix
5909 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5910 ;;
5911 esac
5912 ;;
5913 *-*-cygwin* )
5914 case $build in
5915 *-*-mingw* ) # actually msys
5916 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5917 ;;
5918 *-*-cygwin* )
5919 lt_cv_to_host_file_cmd=func_convert_file_noop
5920 ;;
5921 * ) # otherwise, assume *nix
5922 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5923 ;;
5924 esac
5925 ;;
5926 * ) # unhandled hosts (and "normal" native builds)
5927 lt_cv_to_host_file_cmd=func_convert_file_noop
5928 ;;
5929 esac
5930
5931 fi
5932
5933 to_host_file_cmd=$lt_cv_to_host_file_cmd
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5935 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5936
5937
5938
5939
5940
5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5942 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5943 if test ${lt_cv_to_tool_file_cmd+y}
5944 then :
5945 printf %s "(cached) " >&6
5946 else $as_nop
5947 #assume ordinary cross tools, or native build.
5948 lt_cv_to_tool_file_cmd=func_convert_file_noop
5949 case $host in
5950 *-*-mingw* )
5951 case $build in
5952 *-*-mingw* ) # actually msys
5953 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5954 ;;
5955 esac
5956 ;;
5957 esac
5958
5959 fi
5960
5961 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5963 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5964
5965
5966
5967
5968
5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5970 printf %s "checking for $LD option to reload object files... " >&6; }
5971 if test ${lt_cv_ld_reload_flag+y}
5972 then :
5973 printf %s "(cached) " >&6
5974 else $as_nop
5975 lt_cv_ld_reload_flag='-r'
5976 fi
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5978 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5979 reload_flag=$lt_cv_ld_reload_flag
5980 case $reload_flag in
5981 "" | " "*) ;;
5982 *) reload_flag=" $reload_flag" ;;
5983 esac
5984 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5985 case $host_os in
5986 cygwin* | mingw* | pw32* | cegcc*)
5987 if test yes != "$GCC"; then
5988 reload_cmds=false
5989 fi
5990 ;;
5991 darwin*)
5992 if test yes = "$GCC"; then
5993 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5994 else
5995 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5996 fi
5997 ;;
5998 esac
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008 if test -n "$ac_tool_prefix"; then
6009 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}file; ac_word=$2
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 printf %s "checking for $ac_word... " >&6; }
6013 if test ${ac_cv_prog_FILECMD+y}
6014 then :
6015 printf %s "(cached) " >&6
6016 else $as_nop
6017 if test -n "$FILECMD"; then
6018 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6022 do
6023 IFS=$as_save_IFS
6024 case $as_dir in #(((
6025 '') as_dir=./ ;;
6026 */) ;;
6027 *) as_dir=$as_dir/ ;;
6028 esac
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 FILECMD=$ac_cv_prog_FILECMD
6042 if test -n "$FILECMD"; then
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6044 printf "%s\n" "$FILECMD" >&6; }
6045 else
6046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 printf "%s\n" "no" >&6; }
6048 fi
6049
6050
6051 fi
6052 if test -z "$ac_cv_prog_FILECMD"; then
6053 ac_ct_FILECMD=$FILECMD
6054 # Extract the first word of "file", so it can be a program name with args.
6055 set dummy file; ac_word=$2
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057 printf %s "checking for $ac_word... " >&6; }
6058 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6059 then :
6060 printf %s "(cached) " >&6
6061 else $as_nop
6062 if test -n "$ac_ct_FILECMD"; then
6063 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068 IFS=$as_save_IFS
6069 case $as_dir in #(((
6070 '') as_dir=./ ;;
6071 */) ;;
6072 *) as_dir=$as_dir/ ;;
6073 esac
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6076 ac_cv_prog_ac_ct_FILECMD="file"
6077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6078 break 2
6079 fi
6080 done
6081 done
6082 IFS=$as_save_IFS
6083
6084 fi
6085 fi
6086 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6087 if test -n "$ac_ct_FILECMD"; then
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6089 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6090 else
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092 printf "%s\n" "no" >&6; }
6093 fi
6094
6095 if test "x$ac_ct_FILECMD" = x; then
6096 FILECMD=":"
6097 else
6098 case $cross_compiling:$ac_tool_warned in
6099 yes:)
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6102 ac_tool_warned=yes ;;
6103 esac
6104 FILECMD=$ac_ct_FILECMD
6105 fi
6106 else
6107 FILECMD="$ac_cv_prog_FILECMD"
6108 fi
6109
6110
6111
6112
6113
6114
6115
6116 if test -n "$ac_tool_prefix"; then
6117 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6118 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 printf %s "checking for $ac_word... " >&6; }
6121 if test ${ac_cv_prog_OBJDUMP+y}
6122 then :
6123 printf %s "(cached) " >&6
6124 else $as_nop
6125 if test -n "$OBJDUMP"; then
6126 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131 IFS=$as_save_IFS
6132 case $as_dir in #(((
6133 '') as_dir=./ ;;
6134 */) ;;
6135 *) as_dir=$as_dir/ ;;
6136 esac
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6139 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6141 break 2
6142 fi
6143 done
6144 done
6145 IFS=$as_save_IFS
6146
6147 fi
6148 fi
6149 OBJDUMP=$ac_cv_prog_OBJDUMP
6150 if test -n "$OBJDUMP"; then
6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6152 printf "%s\n" "$OBJDUMP" >&6; }
6153 else
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 printf "%s\n" "no" >&6; }
6156 fi
6157
6158
6159 fi
6160 if test -z "$ac_cv_prog_OBJDUMP"; then
6161 ac_ct_OBJDUMP=$OBJDUMP
6162 # Extract the first word of "objdump", so it can be a program name with args.
6163 set dummy objdump; ac_word=$2
6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 printf %s "checking for $ac_word... " >&6; }
6166 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6167 then :
6168 printf %s "(cached) " >&6
6169 else $as_nop
6170 if test -n "$ac_ct_OBJDUMP"; then
6171 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176 IFS=$as_save_IFS
6177 case $as_dir in #(((
6178 '') as_dir=./ ;;
6179 */) ;;
6180 *) as_dir=$as_dir/ ;;
6181 esac
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6184 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6186 break 2
6187 fi
6188 done
6189 done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6195 if test -n "$ac_ct_OBJDUMP"; then
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6197 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6198 else
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 printf "%s\n" "no" >&6; }
6201 fi
6202
6203 if test "x$ac_ct_OBJDUMP" = x; then
6204 OBJDUMP="false"
6205 else
6206 case $cross_compiling:$ac_tool_warned in
6207 yes:)
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6209 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6211 esac
6212 OBJDUMP=$ac_ct_OBJDUMP
6213 fi
6214 else
6215 OBJDUMP="$ac_cv_prog_OBJDUMP"
6216 fi
6217
6218 test -z "$OBJDUMP" && OBJDUMP=objdump
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6229 printf %s "checking how to recognize dependent libraries... " >&6; }
6230 if test ${lt_cv_deplibs_check_method+y}
6231 then :
6232 printf %s "(cached) " >&6
6233 else $as_nop
6234 lt_cv_file_magic_cmd='$MAGIC_CMD'
6235 lt_cv_file_magic_test_file=
6236 lt_cv_deplibs_check_method='unknown'
6237 # Need to set the preceding variable on all platforms that support
6238 # interlibrary dependencies.
6239 # 'none' -- dependencies not supported.
6240 # 'unknown' -- same as none, but documents that we really don't know.
6241 # 'pass_all' -- all dependencies passed with no checks.
6242 # 'test_compile' -- check by making test program.
6243 # 'file_magic [[regex]]' -- check by looking for files in library path
6244 # that responds to the $file_magic_cmd with a given extended regex.
6245 # If you have 'file' or equivalent on your system and you're not sure
6246 # whether 'pass_all' will *always* work, you probably want this one.
6247
6248 case $host_os in
6249 aix[4-9]*)
6250 lt_cv_deplibs_check_method=pass_all
6251 ;;
6252
6253 beos*)
6254 lt_cv_deplibs_check_method=pass_all
6255 ;;
6256
6257 bsdi[45]*)
6258 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6259 lt_cv_file_magic_cmd='$FILECMD -L'
6260 lt_cv_file_magic_test_file=/shlib/libc.so
6261 ;;
6262
6263 cygwin*)
6264 # func_win32_libid is a shell function defined in ltmain.sh
6265 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6266 lt_cv_file_magic_cmd='func_win32_libid'
6267 ;;
6268
6269 mingw* | pw32*)
6270 # Base MSYS/MinGW do not provide the 'file' command needed by
6271 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6272 # unless we find 'file', for example because we are cross-compiling.
6273 if ( file / ) >/dev/null 2>&1; then
6274 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6275 lt_cv_file_magic_cmd='func_win32_libid'
6276 else
6277 # Keep this pattern in sync with the one in func_win32_libid.
6278 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6279 lt_cv_file_magic_cmd='$OBJDUMP -f'
6280 fi
6281 ;;
6282
6283 cegcc*)
6284 # use the weaker test based on 'objdump'. See mingw*.
6285 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6286 lt_cv_file_magic_cmd='$OBJDUMP -f'
6287 ;;
6288
6289 darwin* | rhapsody*)
6290 lt_cv_deplibs_check_method=pass_all
6291 ;;
6292
6293 freebsd* | dragonfly* | midnightbsd*)
6294 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6295 case $host_cpu in
6296 i*86 )
6297 # Not sure whether the presence of OpenBSD here was a mistake.
6298 # Let's accept both of them until this is cleared up.
6299 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6300 lt_cv_file_magic_cmd=$FILECMD
6301 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6302 ;;
6303 esac
6304 else
6305 lt_cv_deplibs_check_method=pass_all
6306 fi
6307 ;;
6308
6309 haiku*)
6310 lt_cv_deplibs_check_method=pass_all
6311 ;;
6312
6313 hpux10.20* | hpux11*)
6314 lt_cv_file_magic_cmd=$FILECMD
6315 case $host_cpu in
6316 ia64*)
6317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6318 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6319 ;;
6320 hppa*64*)
6321 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]'
6322 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6323 ;;
6324 *)
6325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6326 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6327 ;;
6328 esac
6329 ;;
6330
6331 interix[3-9]*)
6332 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6334 ;;
6335
6336 irix5* | irix6* | nonstopux*)
6337 case $LD in
6338 *-32|*"-32 ") libmagic=32-bit;;
6339 *-n32|*"-n32 ") libmagic=N32;;
6340 *-64|*"-64 ") libmagic=64-bit;;
6341 *) libmagic=never-match;;
6342 esac
6343 lt_cv_deplibs_check_method=pass_all
6344 ;;
6345
6346 # This must be glibc/ELF.
6347 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6348 lt_cv_deplibs_check_method=pass_all
6349 ;;
6350
6351 netbsd* | netbsdelf*-gnu)
6352 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6354 else
6355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6356 fi
6357 ;;
6358
6359 newos6*)
6360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6361 lt_cv_file_magic_cmd=$FILECMD
6362 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6363 ;;
6364
6365 *nto* | *qnx*)
6366 lt_cv_deplibs_check_method=pass_all
6367 ;;
6368
6369 openbsd* | bitrig*)
6370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6372 else
6373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6374 fi
6375 ;;
6376
6377 osf3* | osf4* | osf5*)
6378 lt_cv_deplibs_check_method=pass_all
6379 ;;
6380
6381 rdos*)
6382 lt_cv_deplibs_check_method=pass_all
6383 ;;
6384
6385 solaris*)
6386 lt_cv_deplibs_check_method=pass_all
6387 ;;
6388
6389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6390 lt_cv_deplibs_check_method=pass_all
6391 ;;
6392
6393 sysv4 | sysv4.3*)
6394 case $host_vendor in
6395 motorola)
6396 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]'
6397 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6398 ;;
6399 ncr)
6400 lt_cv_deplibs_check_method=pass_all
6401 ;;
6402 sequent)
6403 lt_cv_file_magic_cmd='/bin/file'
6404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6405 ;;
6406 sni)
6407 lt_cv_file_magic_cmd='/bin/file'
6408 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6409 lt_cv_file_magic_test_file=/lib/libc.so
6410 ;;
6411 siemens)
6412 lt_cv_deplibs_check_method=pass_all
6413 ;;
6414 pc)
6415 lt_cv_deplibs_check_method=pass_all
6416 ;;
6417 esac
6418 ;;
6419
6420 tpf*)
6421 lt_cv_deplibs_check_method=pass_all
6422 ;;
6423 os2*)
6424 lt_cv_deplibs_check_method=pass_all
6425 ;;
6426 esac
6427
6428 fi
6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6430 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6431
6432 file_magic_glob=
6433 want_nocaseglob=no
6434 if test "$build" = "$host"; then
6435 case $host_os in
6436 mingw* | pw32*)
6437 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6438 want_nocaseglob=yes
6439 else
6440 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6441 fi
6442 ;;
6443 esac
6444 fi
6445
6446 file_magic_cmd=$lt_cv_file_magic_cmd
6447 deplibs_check_method=$lt_cv_deplibs_check_method
6448 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471 if test -n "$ac_tool_prefix"; then
6472 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6473 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 printf %s "checking for $ac_word... " >&6; }
6476 if test ${ac_cv_prog_DLLTOOL+y}
6477 then :
6478 printf %s "(cached) " >&6
6479 else $as_nop
6480 if test -n "$DLLTOOL"; then
6481 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486 IFS=$as_save_IFS
6487 case $as_dir in #(((
6488 '') as_dir=./ ;;
6489 */) ;;
6490 *) as_dir=$as_dir/ ;;
6491 esac
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6494 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502 fi
6503 fi
6504 DLLTOOL=$ac_cv_prog_DLLTOOL
6505 if test -n "$DLLTOOL"; then
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6507 printf "%s\n" "$DLLTOOL" >&6; }
6508 else
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 printf "%s\n" "no" >&6; }
6511 fi
6512
6513
6514 fi
6515 if test -z "$ac_cv_prog_DLLTOOL"; then
6516 ac_ct_DLLTOOL=$DLLTOOL
6517 # Extract the first word of "dlltool", so it can be a program name with args.
6518 set dummy dlltool; ac_word=$2
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 printf %s "checking for $ac_word... " >&6; }
6521 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6522 then :
6523 printf %s "(cached) " >&6
6524 else $as_nop
6525 if test -n "$ac_ct_DLLTOOL"; then
6526 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531 IFS=$as_save_IFS
6532 case $as_dir in #(((
6533 '') as_dir=./ ;;
6534 */) ;;
6535 *) as_dir=$as_dir/ ;;
6536 esac
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6539 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543 done
6544 done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6550 if test -n "$ac_ct_DLLTOOL"; then
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6552 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6553 else
6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 printf "%s\n" "no" >&6; }
6556 fi
6557
6558 if test "x$ac_ct_DLLTOOL" = x; then
6559 DLLTOOL="false"
6560 else
6561 case $cross_compiling:$ac_tool_warned in
6562 yes:)
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6564 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565 ac_tool_warned=yes ;;
6566 esac
6567 DLLTOOL=$ac_ct_DLLTOOL
6568 fi
6569 else
6570 DLLTOOL="$ac_cv_prog_DLLTOOL"
6571 fi
6572
6573 test -z "$DLLTOOL" && DLLTOOL=dlltool
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6585 printf %s "checking how to associate runtime and link libraries... " >&6; }
6586 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6587 then :
6588 printf %s "(cached) " >&6
6589 else $as_nop
6590 lt_cv_sharedlib_from_linklib_cmd='unknown'
6591
6592 case $host_os in
6593 cygwin* | mingw* | pw32* | cegcc*)
6594 # two different shell functions defined in ltmain.sh;
6595 # decide which one to use based on capabilities of $DLLTOOL
6596 case `$DLLTOOL --help 2>&1` in
6597 *--identify-strict*)
6598 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6599 ;;
6600 *)
6601 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6602 ;;
6603 esac
6604 ;;
6605 *)
6606 # fallback: assume linklib IS sharedlib
6607 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6608 ;;
6609 esac
6610
6611 fi
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6613 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6614 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6615 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6616
6617
6618
6619
6620
6621
6622
6623
6624 if test -n "$ac_tool_prefix"; then
6625 for ac_prog in ar
6626 do
6627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 printf %s "checking for $ac_word... " >&6; }
6631 if test ${ac_cv_prog_AR+y}
6632 then :
6633 printf %s "(cached) " >&6
6634 else $as_nop
6635 if test -n "$AR"; then
6636 ac_cv_prog_AR="$AR" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641 IFS=$as_save_IFS
6642 case $as_dir in #(((
6643 '') as_dir=./ ;;
6644 */) ;;
6645 *) as_dir=$as_dir/ ;;
6646 esac
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6651 break 2
6652 fi
6653 done
6654 done
6655 IFS=$as_save_IFS
6656
6657 fi
6658 fi
6659 AR=$ac_cv_prog_AR
6660 if test -n "$AR"; then
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6662 printf "%s\n" "$AR" >&6; }
6663 else
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 printf "%s\n" "no" >&6; }
6666 fi
6667
6668
6669 test -n "$AR" && break
6670 done
6671 fi
6672 if test -z "$AR"; then
6673 ac_ct_AR=$AR
6674 for ac_prog in ar
6675 do
6676 # Extract the first word of "$ac_prog", so it can be a program name with args.
6677 set dummy $ac_prog; ac_word=$2
6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 printf %s "checking for $ac_word... " >&6; }
6680 if test ${ac_cv_prog_ac_ct_AR+y}
6681 then :
6682 printf %s "(cached) " >&6
6683 else $as_nop
6684 if test -n "$ac_ct_AR"; then
6685 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690 IFS=$as_save_IFS
6691 case $as_dir in #(((
6692 '') as_dir=./ ;;
6693 */) ;;
6694 *) as_dir=$as_dir/ ;;
6695 esac
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6698 ac_cv_prog_ac_ct_AR="$ac_prog"
6699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6700 break 2
6701 fi
6702 done
6703 done
6704 IFS=$as_save_IFS
6705
6706 fi
6707 fi
6708 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6709 if test -n "$ac_ct_AR"; then
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6711 printf "%s\n" "$ac_ct_AR" >&6; }
6712 else
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 printf "%s\n" "no" >&6; }
6715 fi
6716
6717
6718 test -n "$ac_ct_AR" && break
6719 done
6720
6721 if test "x$ac_ct_AR" = x; then
6722 AR="false"
6723 else
6724 case $cross_compiling:$ac_tool_warned in
6725 yes:)
6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6727 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6728 ac_tool_warned=yes ;;
6729 esac
6730 AR=$ac_ct_AR
6731 fi
6732 fi
6733
6734 : ${AR=ar}
6735
6736
6737
6738
6739
6740
6741 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6742 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6743 # higher priority because thats what people were doing historically (setting
6744 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6745 # variable obsoleted/removed.
6746
6747 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6748 lt_ar_flags=$AR_FLAGS
6749
6750
6751
6752
6753
6754
6755 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6756 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6757
6758
6759
6760
6761
6762
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6764 printf %s "checking for archiver @FILE support... " >&6; }
6765 if test ${lt_cv_ar_at_file+y}
6766 then :
6767 printf %s "(cached) " >&6
6768 else $as_nop
6769 lt_cv_ar_at_file=no
6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h. */
6772
6773 int
6774 main (void)
6775 {
6776
6777 ;
6778 return 0;
6779 }
6780 _ACEOF
6781 if ac_fn_c_try_compile "$LINENO"
6782 then :
6783 echo conftest.$ac_objext > conftest.lst
6784 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6786 (eval $lt_ar_try) 2>&5
6787 ac_status=$?
6788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6789 test $ac_status = 0; }
6790 if test 0 -eq "$ac_status"; then
6791 # Ensure the archiver fails upon bogus file names.
6792 rm -f conftest.$ac_objext libconftest.a
6793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6794 (eval $lt_ar_try) 2>&5
6795 ac_status=$?
6796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797 test $ac_status = 0; }
6798 if test 0 -ne "$ac_status"; then
6799 lt_cv_ar_at_file=@
6800 fi
6801 fi
6802 rm -f conftest.* libconftest.a
6803
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6806
6807 fi
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6809 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6810
6811 if test no = "$lt_cv_ar_at_file"; then
6812 archiver_list_spec=
6813 else
6814 archiver_list_spec=$lt_cv_ar_at_file
6815 fi
6816
6817
6818
6819
6820
6821
6822
6823 if test -n "$ac_tool_prefix"; then
6824 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6825 set dummy ${ac_tool_prefix}strip; ac_word=$2
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 printf %s "checking for $ac_word... " >&6; }
6828 if test ${ac_cv_prog_STRIP+y}
6829 then :
6830 printf %s "(cached) " >&6
6831 else $as_nop
6832 if test -n "$STRIP"; then
6833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838 IFS=$as_save_IFS
6839 case $as_dir in #(((
6840 '') as_dir=./ ;;
6841 */) ;;
6842 *) as_dir=$as_dir/ ;;
6843 esac
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6848 break 2
6849 fi
6850 done
6851 done
6852 IFS=$as_save_IFS
6853
6854 fi
6855 fi
6856 STRIP=$ac_cv_prog_STRIP
6857 if test -n "$STRIP"; then
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6859 printf "%s\n" "$STRIP" >&6; }
6860 else
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 printf "%s\n" "no" >&6; }
6863 fi
6864
6865
6866 fi
6867 if test -z "$ac_cv_prog_STRIP"; then
6868 ac_ct_STRIP=$STRIP
6869 # Extract the first word of "strip", so it can be a program name with args.
6870 set dummy strip; ac_word=$2
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 printf %s "checking for $ac_word... " >&6; }
6873 if test ${ac_cv_prog_ac_ct_STRIP+y}
6874 then :
6875 printf %s "(cached) " >&6
6876 else $as_nop
6877 if test -n "$ac_ct_STRIP"; then
6878 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883 IFS=$as_save_IFS
6884 case $as_dir in #(((
6885 '') as_dir=./ ;;
6886 */) ;;
6887 *) as_dir=$as_dir/ ;;
6888 esac
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_ac_ct_STRIP="strip"
6892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899 fi
6900 fi
6901 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6902 if test -n "$ac_ct_STRIP"; then
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6904 printf "%s\n" "$ac_ct_STRIP" >&6; }
6905 else
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 printf "%s\n" "no" >&6; }
6908 fi
6909
6910 if test "x$ac_ct_STRIP" = x; then
6911 STRIP=":"
6912 else
6913 case $cross_compiling:$ac_tool_warned in
6914 yes:)
6915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917 ac_tool_warned=yes ;;
6918 esac
6919 STRIP=$ac_ct_STRIP
6920 fi
6921 else
6922 STRIP="$ac_cv_prog_STRIP"
6923 fi
6924
6925 test -z "$STRIP" && STRIP=:
6926
6927
6928
6929
6930
6931
6932 if test -n "$ac_tool_prefix"; then
6933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 printf %s "checking for $ac_word... " >&6; }
6937 if test ${ac_cv_prog_RANLIB+y}
6938 then :
6939 printf %s "(cached) " >&6
6940 else $as_nop
6941 if test -n "$RANLIB"; then
6942 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6943 else
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6946 do
6947 IFS=$as_save_IFS
6948 case $as_dir in #(((
6949 '') as_dir=./ ;;
6950 */) ;;
6951 *) as_dir=$as_dir/ ;;
6952 esac
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 RANLIB=$ac_cv_prog_RANLIB
6966 if test -n "$RANLIB"; then
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6968 printf "%s\n" "$RANLIB" >&6; }
6969 else
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 printf "%s\n" "no" >&6; }
6972 fi
6973
6974
6975 fi
6976 if test -z "$ac_cv_prog_RANLIB"; then
6977 ac_ct_RANLIB=$RANLIB
6978 # Extract the first word of "ranlib", so it can be a program name with args.
6979 set dummy ranlib; ac_word=$2
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 printf %s "checking for $ac_word... " >&6; }
6982 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6983 then :
6984 printf %s "(cached) " >&6
6985 else $as_nop
6986 if test -n "$ac_ct_RANLIB"; then
6987 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992 IFS=$as_save_IFS
6993 case $as_dir in #(((
6994 '') as_dir=./ ;;
6995 */) ;;
6996 *) as_dir=$as_dir/ ;;
6997 esac
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7000 ac_cv_prog_ac_ct_RANLIB="ranlib"
7001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008 fi
7009 fi
7010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7011 if test -n "$ac_ct_RANLIB"; then
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7013 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7014 else
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 printf "%s\n" "no" >&6; }
7017 fi
7018
7019 if test "x$ac_ct_RANLIB" = x; then
7020 RANLIB=":"
7021 else
7022 case $cross_compiling:$ac_tool_warned in
7023 yes:)
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7025 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7026 ac_tool_warned=yes ;;
7027 esac
7028 RANLIB=$ac_ct_RANLIB
7029 fi
7030 else
7031 RANLIB="$ac_cv_prog_RANLIB"
7032 fi
7033
7034 test -z "$RANLIB" && RANLIB=:
7035
7036
7037
7038
7039
7040
7041 # Determine commands to create old-style static archives.
7042 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7043 old_postinstall_cmds='chmod 644 $oldlib'
7044 old_postuninstall_cmds=
7045
7046 if test -n "$RANLIB"; then
7047 case $host_os in
7048 bitrig* | openbsd*)
7049 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7050 ;;
7051 *)
7052 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7053 ;;
7054 esac
7055 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7056 fi
7057
7058 case $host_os in
7059 darwin*)
7060 lock_old_archive_extraction=yes ;;
7061 *)
7062 lock_old_archive_extraction=no ;;
7063 esac
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103 # If no C compiler was specified, use CC.
7104 LTCC=${LTCC-"$CC"}
7105
7106 # If no C compiler flags were specified, use CFLAGS.
7107 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7108
7109 # Allow CC to be a program name with arguments.
7110 compiler=$CC
7111
7112
7113 # Check for command to grab the raw symbol name followed by C symbol from nm.
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7115 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7116 if test ${lt_cv_sys_global_symbol_pipe+y}
7117 then :
7118 printf %s "(cached) " >&6
7119 else $as_nop
7120
7121 # These are sane defaults that work on at least a few old systems.
7122 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7123
7124 # Character class describing NM global symbol codes.
7125 symcode='[BCDEGRST]'
7126
7127 # Regexp to match symbols that can be accessed directly from C.
7128 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7129
7130 # Define system-specific variables.
7131 case $host_os in
7132 aix*)
7133 symcode='[BCDT]'
7134 ;;
7135 cygwin* | mingw* | pw32* | cegcc*)
7136 symcode='[ABCDGISTW]'
7137 ;;
7138 hpux*)
7139 if test ia64 = "$host_cpu"; then
7140 symcode='[ABCDEGRST]'
7141 fi
7142 ;;
7143 irix* | nonstopux*)
7144 symcode='[BCDEGRST]'
7145 ;;
7146 osf*)
7147 symcode='[BCDEGQRST]'
7148 ;;
7149 solaris*)
7150 symcode='[BDRT]'
7151 ;;
7152 sco3.2v5*)
7153 symcode='[DT]'
7154 ;;
7155 sysv4.2uw2*)
7156 symcode='[DT]'
7157 ;;
7158 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7159 symcode='[ABDT]'
7160 ;;
7161 sysv4)
7162 symcode='[DFNSTU]'
7163 ;;
7164 esac
7165
7166 # If we're using GNU nm, then use its standard symbol codes.
7167 case `$NM -V 2>&1` in
7168 *GNU* | *'with BFD'*)
7169 symcode='[ABCDGIRSTW]' ;;
7170 esac
7171
7172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7173 # Gets list of data symbols to import.
7174 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7175 # Adjust the below global symbol transforms to fixup imported variables.
7176 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7177 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7178 lt_c_name_lib_hook="\
7179 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7180 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7181 else
7182 # Disable hooks by default.
7183 lt_cv_sys_global_symbol_to_import=
7184 lt_cdecl_hook=
7185 lt_c_name_hook=
7186 lt_c_name_lib_hook=
7187 fi
7188
7189 # Transform an extracted symbol line into a proper C declaration.
7190 # Some systems (esp. on ia64) link data and code symbols differently,
7191 # so use this general approach.
7192 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7193 $lt_cdecl_hook\
7194 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7195 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7196
7197 # Transform an extracted symbol line into symbol name and symbol address
7198 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7199 $lt_c_name_hook\
7200 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7201 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7202
7203 # Transform an extracted symbol line into symbol name with lib prefix and
7204 # symbol address.
7205 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7206 $lt_c_name_lib_hook\
7207 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7208 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7209 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7210
7211 # Handle CRLF in mingw tool chain
7212 opt_cr=
7213 case $build_os in
7214 mingw*)
7215 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7216 ;;
7217 esac
7218
7219 # Try without a prefix underscore, then with it.
7220 for ac_symprfx in "" "_"; do
7221
7222 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7223 symxfrm="\\1 $ac_symprfx\\2 \\2"
7224
7225 # Write the raw and C identifiers.
7226 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7227 # Fake it for dumpbin and say T for any non-static function,
7228 # D for any global variable and I for any imported variable.
7229 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7230 # which start with @ or ?.
7231 lt_cv_sys_global_symbol_pipe="$AWK '"\
7232 " {last_section=section; section=\$ 3};"\
7233 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7234 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7235 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7236 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7237 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7238 " \$ 0!~/External *\|/{next};"\
7239 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7240 " {if(hide[section]) next};"\
7241 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7242 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7243 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7244 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7245 " ' prfx=^$ac_symprfx"
7246 else
7247 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7248 fi
7249 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7250
7251 # Check to see that the pipe works correctly.
7252 pipe_works=no
7253
7254 rm -f conftest*
7255 cat > conftest.$ac_ext <<_LT_EOF
7256 #ifdef __cplusplus
7257 extern "C" {
7258 #endif
7259 char nm_test_var;
7260 void nm_test_func(void);
7261 void nm_test_func(void){}
7262 #ifdef __cplusplus
7263 }
7264 #endif
7265 int main(){nm_test_var='a';nm_test_func();return(0);}
7266 _LT_EOF
7267
7268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7269 (eval $ac_compile) 2>&5
7270 ac_status=$?
7271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272 test $ac_status = 0; }; then
7273 # Now try to grab the symbols.
7274 nlist=conftest.nm
7275 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7276 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7277 # Try sorting and uniquifying the output.
7278 if sort "$nlist" | uniq > "$nlist"T; then
7279 mv -f "$nlist"T "$nlist"
7280 else
7281 rm -f "$nlist"T
7282 fi
7283
7284 # Make sure that we snagged all the symbols we need.
7285 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7286 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7287 cat <<_LT_EOF > conftest.$ac_ext
7288 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7289 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7290 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7291 relocations are performed -- see ld's documentation on pseudo-relocs. */
7292 # define LT_DLSYM_CONST
7293 #elif defined __osf__
7294 /* This system does not cope well with relocations in const data. */
7295 # define LT_DLSYM_CONST
7296 #else
7297 # define LT_DLSYM_CONST const
7298 #endif
7299
7300 #ifdef __cplusplus
7301 extern "C" {
7302 #endif
7303
7304 _LT_EOF
7305 # Now generate the symbol file.
7306 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7307
7308 cat <<_LT_EOF >> conftest.$ac_ext
7309
7310 /* The mapping between symbol names and symbols. */
7311 LT_DLSYM_CONST struct {
7312 const char *name;
7313 void *address;
7314 }
7315 lt__PROGRAM__LTX_preloaded_symbols[] =
7316 {
7317 { "@PROGRAM@", (void *) 0 },
7318 _LT_EOF
7319 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7320 cat <<\_LT_EOF >> conftest.$ac_ext
7321 {0, (void *) 0}
7322 };
7323
7324 /* This works around a problem in FreeBSD linker */
7325 #ifdef FREEBSD_WORKAROUND
7326 static const void *lt_preloaded_setup() {
7327 return lt__PROGRAM__LTX_preloaded_symbols;
7328 }
7329 #endif
7330
7331 #ifdef __cplusplus
7332 }
7333 #endif
7334 _LT_EOF
7335 # Now try linking the two files.
7336 mv conftest.$ac_objext conftstm.$ac_objext
7337 lt_globsym_save_LIBS=$LIBS
7338 lt_globsym_save_CFLAGS=$CFLAGS
7339 LIBS=conftstm.$ac_objext
7340 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7342 (eval $ac_link) 2>&5
7343 ac_status=$?
7344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7345 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7346 pipe_works=yes
7347 fi
7348 LIBS=$lt_globsym_save_LIBS
7349 CFLAGS=$lt_globsym_save_CFLAGS
7350 else
7351 echo "cannot find nm_test_func in $nlist" >&5
7352 fi
7353 else
7354 echo "cannot find nm_test_var in $nlist" >&5
7355 fi
7356 else
7357 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7358 fi
7359 else
7360 echo "$progname: failed program was:" >&5
7361 cat conftest.$ac_ext >&5
7362 fi
7363 rm -rf conftest* conftst*
7364
7365 # Do not use the global_symbol_pipe unless it works.
7366 if test yes = "$pipe_works"; then
7367 break
7368 else
7369 lt_cv_sys_global_symbol_pipe=
7370 fi
7371 done
7372
7373 fi
7374
7375 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7376 lt_cv_sys_global_symbol_to_cdecl=
7377 fi
7378 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7380 printf "%s\n" "failed" >&6; }
7381 else
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7383 printf "%s\n" "ok" >&6; }
7384 fi
7385
7386 # Response file support.
7387 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7388 nm_file_list_spec='@'
7389 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7390 nm_file_list_spec='@'
7391 fi
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7430 printf %s "checking for sysroot... " >&6; }
7431
7432 # Check whether --with-sysroot was given.
7433 if test ${with_sysroot+y}
7434 then :
7435 withval=$with_sysroot;
7436 else $as_nop
7437 with_sysroot=no
7438 fi
7439
7440
7441 lt_sysroot=
7442 case $with_sysroot in #(
7443 yes)
7444 if test yes = "$GCC"; then
7445 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7446 fi
7447 ;; #(
7448 /*)
7449 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7450 ;; #(
7451 no|'')
7452 ;; #(
7453 *)
7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7455 printf "%s\n" "$with_sysroot" >&6; }
7456 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7457 ;;
7458 esac
7459
7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7461 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7462
7463
7464
7465
7466
7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7468 printf %s "checking for a working dd... " >&6; }
7469 if test ${ac_cv_path_lt_DD+y}
7470 then :
7471 printf %s "(cached) " >&6
7472 else $as_nop
7473 printf 0123456789abcdef0123456789abcdef >conftest.i
7474 cat conftest.i conftest.i >conftest2.i
7475 : ${lt_DD:=$DD}
7476 if test -z "$lt_DD"; then
7477 ac_path_lt_DD_found=false
7478 # Loop through the user's path and test for each of PROGNAME-LIST
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482 IFS=$as_save_IFS
7483 case $as_dir in #(((
7484 '') as_dir=./ ;;
7485 */) ;;
7486 *) as_dir=$as_dir/ ;;
7487 esac
7488 for ac_prog in dd
7489 do
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7492 as_fn_executable_p "$ac_path_lt_DD" || continue
7493 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7494 cmp -s conftest.i conftest.out \
7495 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7496 fi
7497 $ac_path_lt_DD_found && break 3
7498 done
7499 done
7500 done
7501 IFS=$as_save_IFS
7502 if test -z "$ac_cv_path_lt_DD"; then
7503 :
7504 fi
7505 else
7506 ac_cv_path_lt_DD=$lt_DD
7507 fi
7508
7509 rm -f conftest.i conftest2.i conftest.out
7510 fi
7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7512 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7513
7514
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7516 printf %s "checking how to truncate binary pipes... " >&6; }
7517 if test ${lt_cv_truncate_bin+y}
7518 then :
7519 printf %s "(cached) " >&6
7520 else $as_nop
7521 printf 0123456789abcdef0123456789abcdef >conftest.i
7522 cat conftest.i conftest.i >conftest2.i
7523 lt_cv_truncate_bin=
7524 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7525 cmp -s conftest.i conftest.out \
7526 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7527 fi
7528 rm -f conftest.i conftest2.i conftest.out
7529 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7530 fi
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7532 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7533
7534
7535
7536
7537
7538
7539
7540 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7541 func_cc_basename ()
7542 {
7543 for cc_temp in $*""; do
7544 case $cc_temp in
7545 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7546 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7547 \-*) ;;
7548 *) break;;
7549 esac
7550 done
7551 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7552 }
7553
7554 # Check whether --enable-libtool-lock was given.
7555 if test ${enable_libtool_lock+y}
7556 then :
7557 enableval=$enable_libtool_lock;
7558 fi
7559
7560 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7561
7562 # Some flags need to be propagated to the compiler or linker for good
7563 # libtool support.
7564 case $host in
7565 ia64-*-hpux*)
7566 # Find out what ABI is being produced by ac_compile, and set mode
7567 # options accordingly.
7568 echo 'int i;' > conftest.$ac_ext
7569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7570 (eval $ac_compile) 2>&5
7571 ac_status=$?
7572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7573 test $ac_status = 0; }; then
7574 case `$FILECMD conftest.$ac_objext` in
7575 *ELF-32*)
7576 HPUX_IA64_MODE=32
7577 ;;
7578 *ELF-64*)
7579 HPUX_IA64_MODE=64
7580 ;;
7581 esac
7582 fi
7583 rm -rf conftest*
7584 ;;
7585 *-*-irix6*)
7586 # Find out what ABI is being produced by ac_compile, and set linker
7587 # options accordingly.
7588 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7590 (eval $ac_compile) 2>&5
7591 ac_status=$?
7592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593 test $ac_status = 0; }; then
7594 if test yes = "$lt_cv_prog_gnu_ld"; then
7595 case `$FILECMD conftest.$ac_objext` in
7596 *32-bit*)
7597 LD="${LD-ld} -melf32bsmip"
7598 ;;
7599 *N32*)
7600 LD="${LD-ld} -melf32bmipn32"
7601 ;;
7602 *64-bit*)
7603 LD="${LD-ld} -melf64bmip"
7604 ;;
7605 esac
7606 else
7607 case `$FILECMD conftest.$ac_objext` in
7608 *32-bit*)
7609 LD="${LD-ld} -32"
7610 ;;
7611 *N32*)
7612 LD="${LD-ld} -n32"
7613 ;;
7614 *64-bit*)
7615 LD="${LD-ld} -64"
7616 ;;
7617 esac
7618 fi
7619 fi
7620 rm -rf conftest*
7621 ;;
7622
7623 mips64*-*linux*)
7624 # Find out what ABI is being produced by ac_compile, and set linker
7625 # options accordingly.
7626 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7628 (eval $ac_compile) 2>&5
7629 ac_status=$?
7630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7631 test $ac_status = 0; }; then
7632 emul=elf
7633 case `$FILECMD conftest.$ac_objext` in
7634 *32-bit*)
7635 emul="${emul}32"
7636 ;;
7637 *64-bit*)
7638 emul="${emul}64"
7639 ;;
7640 esac
7641 case `$FILECMD conftest.$ac_objext` in
7642 *MSB*)
7643 emul="${emul}btsmip"
7644 ;;
7645 *LSB*)
7646 emul="${emul}ltsmip"
7647 ;;
7648 esac
7649 case `$FILECMD conftest.$ac_objext` in
7650 *N32*)
7651 emul="${emul}n32"
7652 ;;
7653 esac
7654 LD="${LD-ld} -m $emul"
7655 fi
7656 rm -rf conftest*
7657 ;;
7658
7659 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7660 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7661 # Find out what ABI is being produced by ac_compile, and set linker
7662 # options accordingly. Note that the listed cases only cover the
7663 # situations where additional linker options are needed (such as when
7664 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7665 # vice versa); the common cases where no linker options are needed do
7666 # not appear in the list.
7667 echo 'int i;' > conftest.$ac_ext
7668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7669 (eval $ac_compile) 2>&5
7670 ac_status=$?
7671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7672 test $ac_status = 0; }; then
7673 case `$FILECMD conftest.o` in
7674 *32-bit*)
7675 case $host in
7676 x86_64-*kfreebsd*-gnu)
7677 LD="${LD-ld} -m elf_i386_fbsd"
7678 ;;
7679 x86_64-*linux*)
7680 case `$FILECMD conftest.o` in
7681 *x86-64*)
7682 LD="${LD-ld} -m elf32_x86_64"
7683 ;;
7684 *)
7685 LD="${LD-ld} -m elf_i386"
7686 ;;
7687 esac
7688 ;;
7689 powerpc64le-*linux*)
7690 LD="${LD-ld} -m elf32lppclinux"
7691 ;;
7692 powerpc64-*linux*)
7693 LD="${LD-ld} -m elf32ppclinux"
7694 ;;
7695 s390x-*linux*)
7696 LD="${LD-ld} -m elf_s390"
7697 ;;
7698 sparc64-*linux*)
7699 LD="${LD-ld} -m elf32_sparc"
7700 ;;
7701 esac
7702 ;;
7703 *64-bit*)
7704 case $host in
7705 x86_64-*kfreebsd*-gnu)
7706 LD="${LD-ld} -m elf_x86_64_fbsd"
7707 ;;
7708 x86_64-*linux*)
7709 LD="${LD-ld} -m elf_x86_64"
7710 ;;
7711 powerpcle-*linux*)
7712 LD="${LD-ld} -m elf64lppc"
7713 ;;
7714 powerpc-*linux*)
7715 LD="${LD-ld} -m elf64ppc"
7716 ;;
7717 s390*-*linux*|s390*-*tpf*)
7718 LD="${LD-ld} -m elf64_s390"
7719 ;;
7720 sparc*-*linux*)
7721 LD="${LD-ld} -m elf64_sparc"
7722 ;;
7723 esac
7724 ;;
7725 esac
7726 fi
7727 rm -rf conftest*
7728 ;;
7729
7730 *-*-sco3.2v5*)
7731 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7732 SAVE_CFLAGS=$CFLAGS
7733 CFLAGS="$CFLAGS -belf"
7734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7735 printf %s "checking whether the C compiler needs -belf... " >&6; }
7736 if test ${lt_cv_cc_needs_belf+y}
7737 then :
7738 printf %s "(cached) " >&6
7739 else $as_nop
7740 ac_ext=c
7741 ac_cpp='$CPP $CPPFLAGS'
7742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7745
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748
7749 int
7750 main (void)
7751 {
7752
7753 ;
7754 return 0;
7755 }
7756 _ACEOF
7757 if ac_fn_c_try_link "$LINENO"
7758 then :
7759 lt_cv_cc_needs_belf=yes
7760 else $as_nop
7761 lt_cv_cc_needs_belf=no
7762 fi
7763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7764 conftest$ac_exeext conftest.$ac_ext
7765 ac_ext=c
7766 ac_cpp='$CPP $CPPFLAGS'
7767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7770
7771 fi
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7773 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7774 if test yes != "$lt_cv_cc_needs_belf"; then
7775 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7776 CFLAGS=$SAVE_CFLAGS
7777 fi
7778 ;;
7779 *-*solaris*)
7780 # Find out what ABI is being produced by ac_compile, and set linker
7781 # options accordingly.
7782 echo 'int i;' > conftest.$ac_ext
7783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7784 (eval $ac_compile) 2>&5
7785 ac_status=$?
7786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7787 test $ac_status = 0; }; then
7788 case `$FILECMD conftest.o` in
7789 *64-bit*)
7790 case $lt_cv_prog_gnu_ld in
7791 yes*)
7792 case $host in
7793 i?86-*-solaris*|x86_64-*-solaris*)
7794 LD="${LD-ld} -m elf_x86_64"
7795 ;;
7796 sparc*-*-solaris*)
7797 LD="${LD-ld} -m elf64_sparc"
7798 ;;
7799 esac
7800 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7801 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7802 LD=${LD-ld}_sol2
7803 fi
7804 ;;
7805 *)
7806 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7807 LD="${LD-ld} -64"
7808 fi
7809 ;;
7810 esac
7811 ;;
7812 esac
7813 fi
7814 rm -rf conftest*
7815 ;;
7816 esac
7817
7818 need_locks=$enable_libtool_lock
7819
7820 if test -n "$ac_tool_prefix"; then
7821 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7822 set dummy ${ac_tool_prefix}mt; ac_word=$2
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824 printf %s "checking for $ac_word... " >&6; }
7825 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7826 then :
7827 printf %s "(cached) " >&6
7828 else $as_nop
7829 if test -n "$MANIFEST_TOOL"; then
7830 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7831 else
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7834 do
7835 IFS=$as_save_IFS
7836 case $as_dir in #(((
7837 '') as_dir=./ ;;
7838 */) ;;
7839 *) as_dir=$as_dir/ ;;
7840 esac
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7843 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7845 break 2
7846 fi
7847 done
7848 done
7849 IFS=$as_save_IFS
7850
7851 fi
7852 fi
7853 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7854 if test -n "$MANIFEST_TOOL"; then
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7856 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7857 else
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 printf "%s\n" "no" >&6; }
7860 fi
7861
7862
7863 fi
7864 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7865 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7866 # Extract the first word of "mt", so it can be a program name with args.
7867 set dummy mt; ac_word=$2
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 printf %s "checking for $ac_word... " >&6; }
7870 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7871 then :
7872 printf %s "(cached) " >&6
7873 else $as_nop
7874 if test -n "$ac_ct_MANIFEST_TOOL"; then
7875 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7879 do
7880 IFS=$as_save_IFS
7881 case $as_dir in #(((
7882 '') as_dir=./ ;;
7883 */) ;;
7884 *) as_dir=$as_dir/ ;;
7885 esac
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7888 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7890 break 2
7891 fi
7892 done
7893 done
7894 IFS=$as_save_IFS
7895
7896 fi
7897 fi
7898 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7899 if test -n "$ac_ct_MANIFEST_TOOL"; then
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7901 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7902 else
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 printf "%s\n" "no" >&6; }
7905 fi
7906
7907 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7908 MANIFEST_TOOL=":"
7909 else
7910 case $cross_compiling:$ac_tool_warned in
7911 yes:)
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7913 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7914 ac_tool_warned=yes ;;
7915 esac
7916 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7917 fi
7918 else
7919 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7920 fi
7921
7922 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7924 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7925 if test ${lt_cv_path_mainfest_tool+y}
7926 then :
7927 printf %s "(cached) " >&6
7928 else $as_nop
7929 lt_cv_path_mainfest_tool=no
7930 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7931 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7932 cat conftest.err >&5
7933 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7934 lt_cv_path_mainfest_tool=yes
7935 fi
7936 rm -f conftest*
7937 fi
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7939 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7940 if test yes != "$lt_cv_path_mainfest_tool"; then
7941 MANIFEST_TOOL=:
7942 fi
7943
7944
7945
7946
7947
7948
7949 case $host_os in
7950 rhapsody* | darwin*)
7951 if test -n "$ac_tool_prefix"; then
7952 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7953 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 printf %s "checking for $ac_word... " >&6; }
7956 if test ${ac_cv_prog_DSYMUTIL+y}
7957 then :
7958 printf %s "(cached) " >&6
7959 else $as_nop
7960 if test -n "$DSYMUTIL"; then
7961 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7962 else
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7965 do
7966 IFS=$as_save_IFS
7967 case $as_dir in #(((
7968 '') as_dir=./ ;;
7969 */) ;;
7970 *) as_dir=$as_dir/ ;;
7971 esac
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7974 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7976 break 2
7977 fi
7978 done
7979 done
7980 IFS=$as_save_IFS
7981
7982 fi
7983 fi
7984 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7985 if test -n "$DSYMUTIL"; then
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7987 printf "%s\n" "$DSYMUTIL" >&6; }
7988 else
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 printf "%s\n" "no" >&6; }
7991 fi
7992
7993
7994 fi
7995 if test -z "$ac_cv_prog_DSYMUTIL"; then
7996 ac_ct_DSYMUTIL=$DSYMUTIL
7997 # Extract the first word of "dsymutil", so it can be a program name with args.
7998 set dummy dsymutil; ac_word=$2
7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8000 printf %s "checking for $ac_word... " >&6; }
8001 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8002 then :
8003 printf %s "(cached) " >&6
8004 else $as_nop
8005 if test -n "$ac_ct_DSYMUTIL"; then
8006 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8010 do
8011 IFS=$as_save_IFS
8012 case $as_dir in #(((
8013 '') as_dir=./ ;;
8014 */) ;;
8015 *) as_dir=$as_dir/ ;;
8016 esac
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8019 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8021 break 2
8022 fi
8023 done
8024 done
8025 IFS=$as_save_IFS
8026
8027 fi
8028 fi
8029 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8030 if test -n "$ac_ct_DSYMUTIL"; then
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8032 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8033 else
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 printf "%s\n" "no" >&6; }
8036 fi
8037
8038 if test "x$ac_ct_DSYMUTIL" = x; then
8039 DSYMUTIL=":"
8040 else
8041 case $cross_compiling:$ac_tool_warned in
8042 yes:)
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8044 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8045 ac_tool_warned=yes ;;
8046 esac
8047 DSYMUTIL=$ac_ct_DSYMUTIL
8048 fi
8049 else
8050 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8051 fi
8052
8053 if test -n "$ac_tool_prefix"; then
8054 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8055 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 printf %s "checking for $ac_word... " >&6; }
8058 if test ${ac_cv_prog_NMEDIT+y}
8059 then :
8060 printf %s "(cached) " >&6
8061 else $as_nop
8062 if test -n "$NMEDIT"; then
8063 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8064 else
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH
8067 do
8068 IFS=$as_save_IFS
8069 case $as_dir in #(((
8070 '') as_dir=./ ;;
8071 */) ;;
8072 *) as_dir=$as_dir/ ;;
8073 esac
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8078 break 2
8079 fi
8080 done
8081 done
8082 IFS=$as_save_IFS
8083
8084 fi
8085 fi
8086 NMEDIT=$ac_cv_prog_NMEDIT
8087 if test -n "$NMEDIT"; then
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8089 printf "%s\n" "$NMEDIT" >&6; }
8090 else
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 printf "%s\n" "no" >&6; }
8093 fi
8094
8095
8096 fi
8097 if test -z "$ac_cv_prog_NMEDIT"; then
8098 ac_ct_NMEDIT=$NMEDIT
8099 # Extract the first word of "nmedit", so it can be a program name with args.
8100 set dummy nmedit; ac_word=$2
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102 printf %s "checking for $ac_word... " >&6; }
8103 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8104 then :
8105 printf %s "(cached) " >&6
8106 else $as_nop
8107 if test -n "$ac_ct_NMEDIT"; then
8108 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8112 do
8113 IFS=$as_save_IFS
8114 case $as_dir in #(((
8115 '') as_dir=./ ;;
8116 */) ;;
8117 *) as_dir=$as_dir/ ;;
8118 esac
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8121 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8123 break 2
8124 fi
8125 done
8126 done
8127 IFS=$as_save_IFS
8128
8129 fi
8130 fi
8131 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8132 if test -n "$ac_ct_NMEDIT"; then
8133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8134 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8135 else
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 printf "%s\n" "no" >&6; }
8138 fi
8139
8140 if test "x$ac_ct_NMEDIT" = x; then
8141 NMEDIT=":"
8142 else
8143 case $cross_compiling:$ac_tool_warned in
8144 yes:)
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8146 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8147 ac_tool_warned=yes ;;
8148 esac
8149 NMEDIT=$ac_ct_NMEDIT
8150 fi
8151 else
8152 NMEDIT="$ac_cv_prog_NMEDIT"
8153 fi
8154
8155 if test -n "$ac_tool_prefix"; then
8156 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8157 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159 printf %s "checking for $ac_word... " >&6; }
8160 if test ${ac_cv_prog_LIPO+y}
8161 then :
8162 printf %s "(cached) " >&6
8163 else $as_nop
8164 if test -n "$LIPO"; then
8165 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170 IFS=$as_save_IFS
8171 case $as_dir in #(((
8172 '') as_dir=./ ;;
8173 */) ;;
8174 *) as_dir=$as_dir/ ;;
8175 esac
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182 done
8183 done
8184 IFS=$as_save_IFS
8185
8186 fi
8187 fi
8188 LIPO=$ac_cv_prog_LIPO
8189 if test -n "$LIPO"; then
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8191 printf "%s\n" "$LIPO" >&6; }
8192 else
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 printf "%s\n" "no" >&6; }
8195 fi
8196
8197
8198 fi
8199 if test -z "$ac_cv_prog_LIPO"; then
8200 ac_ct_LIPO=$LIPO
8201 # Extract the first word of "lipo", so it can be a program name with args.
8202 set dummy lipo; ac_word=$2
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 printf %s "checking for $ac_word... " >&6; }
8205 if test ${ac_cv_prog_ac_ct_LIPO+y}
8206 then :
8207 printf %s "(cached) " >&6
8208 else $as_nop
8209 if test -n "$ac_ct_LIPO"; then
8210 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8211 else
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8214 do
8215 IFS=$as_save_IFS
8216 case $as_dir in #(((
8217 '') as_dir=./ ;;
8218 */) ;;
8219 *) as_dir=$as_dir/ ;;
8220 esac
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8223 ac_cv_prog_ac_ct_LIPO="lipo"
8224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8225 break 2
8226 fi
8227 done
8228 done
8229 IFS=$as_save_IFS
8230
8231 fi
8232 fi
8233 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8234 if test -n "$ac_ct_LIPO"; then
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8236 printf "%s\n" "$ac_ct_LIPO" >&6; }
8237 else
8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 printf "%s\n" "no" >&6; }
8240 fi
8241
8242 if test "x$ac_ct_LIPO" = x; then
8243 LIPO=":"
8244 else
8245 case $cross_compiling:$ac_tool_warned in
8246 yes:)
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8248 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8249 ac_tool_warned=yes ;;
8250 esac
8251 LIPO=$ac_ct_LIPO
8252 fi
8253 else
8254 LIPO="$ac_cv_prog_LIPO"
8255 fi
8256
8257 if test -n "$ac_tool_prefix"; then
8258 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8259 set dummy ${ac_tool_prefix}otool; ac_word=$2
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 printf %s "checking for $ac_word... " >&6; }
8262 if test ${ac_cv_prog_OTOOL+y}
8263 then :
8264 printf %s "(cached) " >&6
8265 else $as_nop
8266 if test -n "$OTOOL"; then
8267 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8268 else
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8271 do
8272 IFS=$as_save_IFS
8273 case $as_dir in #(((
8274 '') as_dir=./ ;;
8275 */) ;;
8276 *) as_dir=$as_dir/ ;;
8277 esac
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8280 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284 done
8285 done
8286 IFS=$as_save_IFS
8287
8288 fi
8289 fi
8290 OTOOL=$ac_cv_prog_OTOOL
8291 if test -n "$OTOOL"; then
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8293 printf "%s\n" "$OTOOL" >&6; }
8294 else
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 printf "%s\n" "no" >&6; }
8297 fi
8298
8299
8300 fi
8301 if test -z "$ac_cv_prog_OTOOL"; then
8302 ac_ct_OTOOL=$OTOOL
8303 # Extract the first word of "otool", so it can be a program name with args.
8304 set dummy otool; ac_word=$2
8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306 printf %s "checking for $ac_word... " >&6; }
8307 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8308 then :
8309 printf %s "(cached) " >&6
8310 else $as_nop
8311 if test -n "$ac_ct_OTOOL"; then
8312 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8313 else
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 for as_dir in $PATH
8316 do
8317 IFS=$as_save_IFS
8318 case $as_dir in #(((
8319 '') as_dir=./ ;;
8320 */) ;;
8321 *) as_dir=$as_dir/ ;;
8322 esac
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8325 ac_cv_prog_ac_ct_OTOOL="otool"
8326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8327 break 2
8328 fi
8329 done
8330 done
8331 IFS=$as_save_IFS
8332
8333 fi
8334 fi
8335 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8336 if test -n "$ac_ct_OTOOL"; then
8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8338 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8339 else
8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 printf "%s\n" "no" >&6; }
8342 fi
8343
8344 if test "x$ac_ct_OTOOL" = x; then
8345 OTOOL=":"
8346 else
8347 case $cross_compiling:$ac_tool_warned in
8348 yes:)
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8350 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8351 ac_tool_warned=yes ;;
8352 esac
8353 OTOOL=$ac_ct_OTOOL
8354 fi
8355 else
8356 OTOOL="$ac_cv_prog_OTOOL"
8357 fi
8358
8359 if test -n "$ac_tool_prefix"; then
8360 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8361 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 printf %s "checking for $ac_word... " >&6; }
8364 if test ${ac_cv_prog_OTOOL64+y}
8365 then :
8366 printf %s "(cached) " >&6
8367 else $as_nop
8368 if test -n "$OTOOL64"; then
8369 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374 IFS=$as_save_IFS
8375 case $as_dir in #(((
8376 '') as_dir=./ ;;
8377 */) ;;
8378 *) as_dir=$as_dir/ ;;
8379 esac
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8382 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8384 break 2
8385 fi
8386 done
8387 done
8388 IFS=$as_save_IFS
8389
8390 fi
8391 fi
8392 OTOOL64=$ac_cv_prog_OTOOL64
8393 if test -n "$OTOOL64"; then
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8395 printf "%s\n" "$OTOOL64" >&6; }
8396 else
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 printf "%s\n" "no" >&6; }
8399 fi
8400
8401
8402 fi
8403 if test -z "$ac_cv_prog_OTOOL64"; then
8404 ac_ct_OTOOL64=$OTOOL64
8405 # Extract the first word of "otool64", so it can be a program name with args.
8406 set dummy otool64; ac_word=$2
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 printf %s "checking for $ac_word... " >&6; }
8409 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8410 then :
8411 printf %s "(cached) " >&6
8412 else $as_nop
8413 if test -n "$ac_ct_OTOOL64"; then
8414 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8415 else
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8418 do
8419 IFS=$as_save_IFS
8420 case $as_dir in #(((
8421 '') as_dir=./ ;;
8422 */) ;;
8423 *) as_dir=$as_dir/ ;;
8424 esac
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8427 ac_cv_prog_ac_ct_OTOOL64="otool64"
8428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8429 break 2
8430 fi
8431 done
8432 done
8433 IFS=$as_save_IFS
8434
8435 fi
8436 fi
8437 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8438 if test -n "$ac_ct_OTOOL64"; then
8439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8440 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8441 else
8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 printf "%s\n" "no" >&6; }
8444 fi
8445
8446 if test "x$ac_ct_OTOOL64" = x; then
8447 OTOOL64=":"
8448 else
8449 case $cross_compiling:$ac_tool_warned in
8450 yes:)
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8452 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8453 ac_tool_warned=yes ;;
8454 esac
8455 OTOOL64=$ac_ct_OTOOL64
8456 fi
8457 else
8458 OTOOL64="$ac_cv_prog_OTOOL64"
8459 fi
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8488 printf %s "checking for -single_module linker flag... " >&6; }
8489 if test ${lt_cv_apple_cc_single_mod+y}
8490 then :
8491 printf %s "(cached) " >&6
8492 else $as_nop
8493 lt_cv_apple_cc_single_mod=no
8494 if test -z "$LT_MULTI_MODULE"; then
8495 # By default we will add the -single_module flag. You can override
8496 # by either setting the environment variable LT_MULTI_MODULE
8497 # non-empty at configure time, or by adding -multi_module to the
8498 # link flags.
8499 rm -rf libconftest.dylib*
8500 echo "int foo(void){return 1;}" > conftest.c
8501 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8502 -dynamiclib -Wl,-single_module conftest.c" >&5
8503 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8504 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8505 _lt_result=$?
8506 # If there is a non-empty error log, and "single_module"
8507 # appears in it, assume the flag caused a linker warning
8508 if test -s conftest.err && $GREP single_module conftest.err; then
8509 cat conftest.err >&5
8510 # Otherwise, if the output was created with a 0 exit code from
8511 # the compiler, it worked.
8512 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8513 lt_cv_apple_cc_single_mod=yes
8514 else
8515 cat conftest.err >&5
8516 fi
8517 rm -rf libconftest.dylib*
8518 rm -f conftest.*
8519 fi
8520 fi
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8522 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8523
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8525 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8526 if test ${lt_cv_ld_exported_symbols_list+y}
8527 then :
8528 printf %s "(cached) " >&6
8529 else $as_nop
8530 lt_cv_ld_exported_symbols_list=no
8531 save_LDFLAGS=$LDFLAGS
8532 echo "_main" > conftest.sym
8533 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8536
8537 int
8538 main (void)
8539 {
8540
8541 ;
8542 return 0;
8543 }
8544 _ACEOF
8545 if ac_fn_c_try_link "$LINENO"
8546 then :
8547 lt_cv_ld_exported_symbols_list=yes
8548 else $as_nop
8549 lt_cv_ld_exported_symbols_list=no
8550 fi
8551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8552 conftest$ac_exeext conftest.$ac_ext
8553 LDFLAGS=$save_LDFLAGS
8554
8555 fi
8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8557 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8558
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8560 printf %s "checking for -force_load linker flag... " >&6; }
8561 if test ${lt_cv_ld_force_load+y}
8562 then :
8563 printf %s "(cached) " >&6
8564 else $as_nop
8565 lt_cv_ld_force_load=no
8566 cat > conftest.c << _LT_EOF
8567 int forced_loaded() { return 2;}
8568 _LT_EOF
8569 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8570 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8571 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8572 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8573 echo "$RANLIB libconftest.a" >&5
8574 $RANLIB libconftest.a 2>&5
8575 cat > conftest.c << _LT_EOF
8576 int main() { return 0;}
8577 _LT_EOF
8578 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8579 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8580 _lt_result=$?
8581 if test -s conftest.err && $GREP force_load conftest.err; then
8582 cat conftest.err >&5
8583 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8584 lt_cv_ld_force_load=yes
8585 else
8586 cat conftest.err >&5
8587 fi
8588 rm -f conftest.err libconftest.a conftest conftest.c
8589 rm -rf conftest.dSYM
8590
8591 fi
8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8593 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8594 case $host_os in
8595 rhapsody* | darwin1.[012])
8596 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8597 darwin1.*)
8598 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8599 darwin*)
8600 case $MACOSX_DEPLOYMENT_TARGET,$host in
8601 10.[012],*|,*powerpc*-darwin[5-8]*)
8602 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8603 *)
8604 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8605 esac
8606 ;;
8607 esac
8608 if test yes = "$lt_cv_apple_cc_single_mod"; then
8609 _lt_dar_single_mod='$single_module'
8610 fi
8611 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8612 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8613 else
8614 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8615 fi
8616 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8617 _lt_dsymutil='~$DSYMUTIL $lib || :'
8618 else
8619 _lt_dsymutil=
8620 fi
8621 ;;
8622 esac
8623
8624 # func_munge_path_list VARIABLE PATH
8625 # -----------------------------------
8626 # VARIABLE is name of variable containing _space_ separated list of
8627 # directories to be munged by the contents of PATH, which is string
8628 # having a format:
8629 # "DIR[:DIR]:"
8630 # string "DIR[ DIR]" will be prepended to VARIABLE
8631 # ":DIR[:DIR]"
8632 # string "DIR[ DIR]" will be appended to VARIABLE
8633 # "DIRP[:DIRP]::[DIRA:]DIRA"
8634 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8635 # "DIRA[ DIRA]" will be appended to VARIABLE
8636 # "DIR[:DIR]"
8637 # VARIABLE will be replaced by "DIR[ DIR]"
8638 func_munge_path_list ()
8639 {
8640 case x$2 in
8641 x)
8642 ;;
8643 *:)
8644 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8645 ;;
8646 x:*)
8647 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8648 ;;
8649 *::*)
8650 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8651 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8652 ;;
8653 *)
8654 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8655 ;;
8656 esac
8657 }
8658
8659 ac_header= ac_cache=
8660 for ac_item in $ac_header_c_list
8661 do
8662 if test $ac_cache; then
8663 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8664 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8665 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8666 fi
8667 ac_header= ac_cache=
8668 elif test $ac_header; then
8669 ac_cache=$ac_item
8670 else
8671 ac_header=$ac_item
8672 fi
8673 done
8674
8675
8676
8677
8678
8679
8680
8681
8682 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8683 then :
8684
8685 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8686
8687 fi
8688 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8689 "
8690 if test "x$ac_cv_header_dlfcn_h" = xyes
8691 then :
8692 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8693
8694 fi
8695
8696
8697
8698
8699
8700 # Set options
8701
8702
8703
8704 enable_dlopen=no
8705
8706
8707 enable_win32_dll=no
8708
8709
8710 # Check whether --enable-shared was given.
8711 if test ${enable_shared+y}
8712 then :
8713 enableval=$enable_shared; p=${PACKAGE-default}
8714 case $enableval in
8715 yes) enable_shared=yes ;;
8716 no) enable_shared=no ;;
8717 *)
8718 enable_shared=no
8719 # Look at the argument we got. We use all the common list separators.
8720 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8721 for pkg in $enableval; do
8722 IFS=$lt_save_ifs
8723 if test "X$pkg" = "X$p"; then
8724 enable_shared=yes
8725 fi
8726 done
8727 IFS=$lt_save_ifs
8728 ;;
8729 esac
8730 else $as_nop
8731 enable_shared=yes
8732 fi
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742 # Check whether --enable-static was given.
8743 if test ${enable_static+y}
8744 then :
8745 enableval=$enable_static; p=${PACKAGE-default}
8746 case $enableval in
8747 yes) enable_static=yes ;;
8748 no) enable_static=no ;;
8749 *)
8750 enable_static=no
8751 # Look at the argument we got. We use all the common list separators.
8752 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8753 for pkg in $enableval; do
8754 IFS=$lt_save_ifs
8755 if test "X$pkg" = "X$p"; then
8756 enable_static=yes
8757 fi
8758 done
8759 IFS=$lt_save_ifs
8760 ;;
8761 esac
8762 else $as_nop
8763 enable_static=yes
8764 fi
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775 # Check whether --with-pic was given.
8776 if test ${with_pic+y}
8777 then :
8778 withval=$with_pic; lt_p=${PACKAGE-default}
8779 case $withval in
8780 yes|no) pic_mode=$withval ;;
8781 *)
8782 pic_mode=default
8783 # Look at the argument we got. We use all the common list separators.
8784 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8785 for lt_pkg in $withval; do
8786 IFS=$lt_save_ifs
8787 if test "X$lt_pkg" = "X$lt_p"; then
8788 pic_mode=yes
8789 fi
8790 done
8791 IFS=$lt_save_ifs
8792 ;;
8793 esac
8794 else $as_nop
8795 pic_mode=default
8796 fi
8797
8798
8799
8800
8801
8802
8803
8804
8805 # Check whether --enable-fast-install was given.
8806 if test ${enable_fast_install+y}
8807 then :
8808 enableval=$enable_fast_install; p=${PACKAGE-default}
8809 case $enableval in
8810 yes) enable_fast_install=yes ;;
8811 no) enable_fast_install=no ;;
8812 *)
8813 enable_fast_install=no
8814 # Look at the argument we got. We use all the common list separators.
8815 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8816 for pkg in $enableval; do
8817 IFS=$lt_save_ifs
8818 if test "X$pkg" = "X$p"; then
8819 enable_fast_install=yes
8820 fi
8821 done
8822 IFS=$lt_save_ifs
8823 ;;
8824 esac
8825 else $as_nop
8826 enable_fast_install=yes
8827 fi
8828
8829
8830
8831
8832
8833
8834
8835
8836 shared_archive_member_spec=
8837 case $host,$enable_shared in
8838 power*-*-aix[5-9]*,yes)
8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8840 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8841
8842 # Check whether --with-aix-soname was given.
8843 if test ${with_aix_soname+y}
8844 then :
8845 withval=$with_aix_soname; case $withval in
8846 aix|svr4|both)
8847 ;;
8848 *)
8849 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8850 ;;
8851 esac
8852 lt_cv_with_aix_soname=$with_aix_soname
8853 else $as_nop
8854 if test ${lt_cv_with_aix_soname+y}
8855 then :
8856 printf %s "(cached) " >&6
8857 else $as_nop
8858 lt_cv_with_aix_soname=aix
8859 fi
8860
8861 with_aix_soname=$lt_cv_with_aix_soname
8862 fi
8863
8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8865 printf "%s\n" "$with_aix_soname" >&6; }
8866 if test aix != "$with_aix_soname"; then
8867 # For the AIX way of multilib, we name the shared archive member
8868 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8869 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8870 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8871 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8872 if test 64 = "${OBJECT_MODE-32}"; then
8873 shared_archive_member_spec=shr_64
8874 else
8875 shared_archive_member_spec=shr
8876 fi
8877 fi
8878 ;;
8879 *)
8880 with_aix_soname=aix
8881 ;;
8882 esac
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893 # This can be used to rebuild libtool when needed
8894 LIBTOOL_DEPS=$ltmain
8895
8896 # Always use our own libtool.
8897 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928 test -z "$LN_S" && LN_S="ln -s"
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943 if test -n "${ZSH_VERSION+set}"; then
8944 setopt NO_GLOB_SUBST
8945 fi
8946
8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8948 printf %s "checking for objdir... " >&6; }
8949 if test ${lt_cv_objdir+y}
8950 then :
8951 printf %s "(cached) " >&6
8952 else $as_nop
8953 rm -f .libs 2>/dev/null
8954 mkdir .libs 2>/dev/null
8955 if test -d .libs; then
8956 lt_cv_objdir=.libs
8957 else
8958 # MS-DOS does not allow filenames that begin with a dot.
8959 lt_cv_objdir=_libs
8960 fi
8961 rmdir .libs 2>/dev/null
8962 fi
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8964 printf "%s\n" "$lt_cv_objdir" >&6; }
8965 objdir=$lt_cv_objdir
8966
8967
8968
8969
8970
8971 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8972
8973
8974
8975
8976 case $host_os in
8977 aix3*)
8978 # AIX sometimes has problems with the GCC collect2 program. For some
8979 # reason, if we set the COLLECT_NAMES environment variable, the problems
8980 # vanish in a puff of smoke.
8981 if test set != "${COLLECT_NAMES+set}"; then
8982 COLLECT_NAMES=
8983 export COLLECT_NAMES
8984 fi
8985 ;;
8986 esac
8987
8988 # Global variables:
8989 ofile=libtool
8990 can_build_shared=yes
8991
8992 # All known linkers require a '.a' archive for static linking (except MSVC and
8993 # ICC, which need '.lib').
8994 libext=a
8995
8996 with_gnu_ld=$lt_cv_prog_gnu_ld
8997
8998 old_CC=$CC
8999 old_CFLAGS=$CFLAGS
9000
9001 # Set sane defaults for various variables
9002 test -z "$CC" && CC=cc
9003 test -z "$LTCC" && LTCC=$CC
9004 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9005 test -z "$LD" && LD=ld
9006 test -z "$ac_objext" && ac_objext=o
9007
9008 func_cc_basename $compiler
9009 cc_basename=$func_cc_basename_result
9010
9011
9012 # Only perform the check for file, if the check method requires it
9013 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9014 case $deplibs_check_method in
9015 file_magic*)
9016 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9018 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9019 if test ${lt_cv_path_MAGIC_CMD+y}
9020 then :
9021 printf %s "(cached) " >&6
9022 else $as_nop
9023 case $MAGIC_CMD in
9024 [\\/*] | ?:[\\/]*)
9025 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9026 ;;
9027 *)
9028 lt_save_MAGIC_CMD=$MAGIC_CMD
9029 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9030 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9031 for ac_dir in $ac_dummy; do
9032 IFS=$lt_save_ifs
9033 test -z "$ac_dir" && ac_dir=.
9034 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9035 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9036 if test -n "$file_magic_test_file"; then
9037 case $deplibs_check_method in
9038 "file_magic "*)
9039 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9040 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9041 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9042 $EGREP "$file_magic_regex" > /dev/null; then
9043 :
9044 else
9045 cat <<_LT_EOF 1>&2
9046
9047 *** Warning: the command libtool uses to detect shared libraries,
9048 *** $file_magic_cmd, produces output that libtool cannot recognize.
9049 *** The result is that libtool may fail to recognize shared libraries
9050 *** as such. This will affect the creation of libtool libraries that
9051 *** depend on shared libraries, but programs linked with such libtool
9052 *** libraries will work regardless of this problem. Nevertheless, you
9053 *** may want to report the problem to your system manager and/or to
9054 *** [email protected]
9055
9056 _LT_EOF
9057 fi ;;
9058 esac
9059 fi
9060 break
9061 fi
9062 done
9063 IFS=$lt_save_ifs
9064 MAGIC_CMD=$lt_save_MAGIC_CMD
9065 ;;
9066 esac
9067 fi
9068
9069 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9070 if test -n "$MAGIC_CMD"; then
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9072 printf "%s\n" "$MAGIC_CMD" >&6; }
9073 else
9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 printf "%s\n" "no" >&6; }
9076 fi
9077
9078
9079
9080
9081
9082 if test -z "$lt_cv_path_MAGIC_CMD"; then
9083 if test -n "$ac_tool_prefix"; then
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9085 printf %s "checking for file... " >&6; }
9086 if test ${lt_cv_path_MAGIC_CMD+y}
9087 then :
9088 printf %s "(cached) " >&6
9089 else $as_nop
9090 case $MAGIC_CMD in
9091 [\\/*] | ?:[\\/]*)
9092 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9093 ;;
9094 *)
9095 lt_save_MAGIC_CMD=$MAGIC_CMD
9096 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9097 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9098 for ac_dir in $ac_dummy; do
9099 IFS=$lt_save_ifs
9100 test -z "$ac_dir" && ac_dir=.
9101 if test -f "$ac_dir/file"; then
9102 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9103 if test -n "$file_magic_test_file"; then
9104 case $deplibs_check_method in
9105 "file_magic "*)
9106 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9107 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9108 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9109 $EGREP "$file_magic_regex" > /dev/null; then
9110 :
9111 else
9112 cat <<_LT_EOF 1>&2
9113
9114 *** Warning: the command libtool uses to detect shared libraries,
9115 *** $file_magic_cmd, produces output that libtool cannot recognize.
9116 *** The result is that libtool may fail to recognize shared libraries
9117 *** as such. This will affect the creation of libtool libraries that
9118 *** depend on shared libraries, but programs linked with such libtool
9119 *** libraries will work regardless of this problem. Nevertheless, you
9120 *** may want to report the problem to your system manager and/or to
9121 *** [email protected]
9122
9123 _LT_EOF
9124 fi ;;
9125 esac
9126 fi
9127 break
9128 fi
9129 done
9130 IFS=$lt_save_ifs
9131 MAGIC_CMD=$lt_save_MAGIC_CMD
9132 ;;
9133 esac
9134 fi
9135
9136 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9137 if test -n "$MAGIC_CMD"; then
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9139 printf "%s\n" "$MAGIC_CMD" >&6; }
9140 else
9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 printf "%s\n" "no" >&6; }
9143 fi
9144
9145
9146 else
9147 MAGIC_CMD=:
9148 fi
9149 fi
9150
9151 fi
9152 ;;
9153 esac
9154
9155 # Use C for the default configuration in the libtool script
9156
9157 lt_save_CC=$CC
9158 ac_ext=c
9159 ac_cpp='$CPP $CPPFLAGS'
9160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9163
9164
9165 # Source file extension for C test sources.
9166 ac_ext=c
9167
9168 # Object file extension for compiled C test sources.
9169 objext=o
9170 objext=$objext
9171
9172 # Code to be used in simple compile tests
9173 lt_simple_compile_test_code="int some_variable = 0;"
9174
9175 # Code to be used in simple link tests
9176 lt_simple_link_test_code='int main(){return(0);}'
9177
9178
9179
9180
9181
9182
9183
9184 # If no C compiler was specified, use CC.
9185 LTCC=${LTCC-"$CC"}
9186
9187 # If no C compiler flags were specified, use CFLAGS.
9188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9189
9190 # Allow CC to be a program name with arguments.
9191 compiler=$CC
9192
9193 # Save the default compiler, since it gets overwritten when the other
9194 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9195 compiler_DEFAULT=$CC
9196
9197 # save warnings/boilerplate of simple test code
9198 ac_outfile=conftest.$ac_objext
9199 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9200 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9201 _lt_compiler_boilerplate=`cat conftest.err`
9202 $RM conftest*
9203
9204 ac_outfile=conftest.$ac_objext
9205 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9206 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9207 _lt_linker_boilerplate=`cat conftest.err`
9208 $RM -r conftest*
9209
9210
9211 ## CAVEAT EMPTOR:
9212 ## There is no encapsulation within the following macros, do not change
9213 ## the running order or otherwise move them around unless you know exactly
9214 ## what you are doing...
9215 if test -n "$compiler"; then
9216
9217 lt_prog_compiler_no_builtin_flag=
9218
9219 if test yes = "$GCC"; then
9220 case $cc_basename in
9221 nvcc*)
9222 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9223 *)
9224 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9225 esac
9226
9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9228 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9229 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9230 then :
9231 printf %s "(cached) " >&6
9232 else $as_nop
9233 lt_cv_prog_compiler_rtti_exceptions=no
9234 ac_outfile=conftest.$ac_objext
9235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9236 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9237 # Insert the option either (1) after the last *FLAGS variable, or
9238 # (2) before a word containing "conftest.", or (3) at the end.
9239 # Note that $ac_compile itself does not contain backslashes and begins
9240 # with a dollar sign (not a hyphen), so the echo should work correctly.
9241 # The option is referenced via a variable to avoid confusing sed.
9242 lt_compile=`echo "$ac_compile" | $SED \
9243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9245 -e 's:$: $lt_compiler_flag:'`
9246 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9247 (eval "$lt_compile" 2>conftest.err)
9248 ac_status=$?
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 if (exit $ac_status) && test -s "$ac_outfile"; then
9252 # The compiler can only warn and ignore the option if not recognized
9253 # So say no if there are warnings other than the usual output.
9254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9256 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9257 lt_cv_prog_compiler_rtti_exceptions=yes
9258 fi
9259 fi
9260 $RM conftest*
9261
9262 fi
9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9264 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9265
9266 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9267 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9268 else
9269 :
9270 fi
9271
9272 fi
9273
9274
9275
9276
9277
9278
9279 lt_prog_compiler_wl=
9280 lt_prog_compiler_pic=
9281 lt_prog_compiler_static=
9282
9283
9284 if test yes = "$GCC"; then
9285 lt_prog_compiler_wl='-Wl,'
9286 lt_prog_compiler_static='-static'
9287
9288 case $host_os in
9289 aix*)
9290 # All AIX code is PIC.
9291 if test ia64 = "$host_cpu"; then
9292 # AIX 5 now supports IA64 processor
9293 lt_prog_compiler_static='-Bstatic'
9294 fi
9295 lt_prog_compiler_pic='-fPIC'
9296 ;;
9297
9298 amigaos*)
9299 case $host_cpu in
9300 powerpc)
9301 # see comment about AmigaOS4 .so support
9302 lt_prog_compiler_pic='-fPIC'
9303 ;;
9304 m68k)
9305 # FIXME: we need at least 68020 code to build shared libraries, but
9306 # adding the '-m68020' flag to GCC prevents building anything better,
9307 # like '-m68040'.
9308 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9309 ;;
9310 esac
9311 ;;
9312
9313 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9314 # PIC is the default for these OSes.
9315 ;;
9316
9317 mingw* | cygwin* | pw32* | os2* | cegcc*)
9318 # This hack is so that the source file can tell whether it is being
9319 # built for inclusion in a dll (and should export symbols for example).
9320 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9321 # (--disable-auto-import) libraries
9322 lt_prog_compiler_pic='-DDLL_EXPORT'
9323 case $host_os in
9324 os2*)
9325 lt_prog_compiler_static='$wl-static'
9326 ;;
9327 esac
9328 ;;
9329
9330 darwin* | rhapsody*)
9331 # PIC is the default on this platform
9332 # Common symbols not allowed in MH_DYLIB files
9333 lt_prog_compiler_pic='-fno-common'
9334 ;;
9335
9336 haiku*)
9337 # PIC is the default for Haiku.
9338 # The "-static" flag exists, but is broken.
9339 lt_prog_compiler_static=
9340 ;;
9341
9342 hpux*)
9343 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9344 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9345 # sets the default TLS model and affects inlining.
9346 case $host_cpu in
9347 hppa*64*)
9348 # +Z the default
9349 ;;
9350 *)
9351 lt_prog_compiler_pic='-fPIC'
9352 ;;
9353 esac
9354 ;;
9355
9356 interix[3-9]*)
9357 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9358 # Instead, we relocate shared libraries at runtime.
9359 ;;
9360
9361 msdosdjgpp*)
9362 # Just because we use GCC doesn't mean we suddenly get shared libraries
9363 # on systems that don't support them.
9364 lt_prog_compiler_can_build_shared=no
9365 enable_shared=no
9366 ;;
9367
9368 *nto* | *qnx*)
9369 # QNX uses GNU C++, but need to define -shared option too, otherwise
9370 # it will coredump.
9371 lt_prog_compiler_pic='-fPIC -shared'
9372 ;;
9373
9374 sysv4*MP*)
9375 if test -d /usr/nec; then
9376 lt_prog_compiler_pic=-Kconform_pic
9377 fi
9378 ;;
9379
9380 *)
9381 lt_prog_compiler_pic='-fPIC'
9382 ;;
9383 esac
9384
9385 case $cc_basename in
9386 nvcc*) # Cuda Compiler Driver 2.2
9387 lt_prog_compiler_wl='-Xlinker '
9388 if test -n "$lt_prog_compiler_pic"; then
9389 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9390 fi
9391 ;;
9392 esac
9393 else
9394 # PORTME Check for flag to pass linker flags through the system compiler.
9395 case $host_os in
9396 aix*)
9397 lt_prog_compiler_wl='-Wl,'
9398 if test ia64 = "$host_cpu"; then
9399 # AIX 5 now supports IA64 processor
9400 lt_prog_compiler_static='-Bstatic'
9401 else
9402 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9403 fi
9404 ;;
9405
9406 darwin* | rhapsody*)
9407 # PIC is the default on this platform
9408 # Common symbols not allowed in MH_DYLIB files
9409 lt_prog_compiler_pic='-fno-common'
9410 case $cc_basename in
9411 nagfor*)
9412 # NAG Fortran compiler
9413 lt_prog_compiler_wl='-Wl,-Wl,,'
9414 lt_prog_compiler_pic='-PIC'
9415 lt_prog_compiler_static='-Bstatic'
9416 ;;
9417 esac
9418 ;;
9419
9420 mingw* | cygwin* | pw32* | os2* | cegcc*)
9421 # This hack is so that the source file can tell whether it is being
9422 # built for inclusion in a dll (and should export symbols for example).
9423 lt_prog_compiler_pic='-DDLL_EXPORT'
9424 case $host_os in
9425 os2*)
9426 lt_prog_compiler_static='$wl-static'
9427 ;;
9428 esac
9429 ;;
9430
9431 hpux9* | hpux10* | hpux11*)
9432 lt_prog_compiler_wl='-Wl,'
9433 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9434 # not for PA HP-UX.
9435 case $host_cpu in
9436 hppa*64*|ia64*)
9437 # +Z the default
9438 ;;
9439 *)
9440 lt_prog_compiler_pic='+Z'
9441 ;;
9442 esac
9443 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9444 lt_prog_compiler_static='$wl-a ${wl}archive'
9445 ;;
9446
9447 irix5* | irix6* | nonstopux*)
9448 lt_prog_compiler_wl='-Wl,'
9449 # PIC (with -KPIC) is the default.
9450 lt_prog_compiler_static='-non_shared'
9451 ;;
9452
9453 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9454 case $cc_basename in
9455 # old Intel for x86_64, which still supported -KPIC.
9456 ecc*)
9457 lt_prog_compiler_wl='-Wl,'
9458 lt_prog_compiler_pic='-KPIC'
9459 lt_prog_compiler_static='-static'
9460 ;;
9461 # flang / f18. f95 an alias for gfortran or flang on Debian
9462 flang* | f18* | f95*)
9463 lt_prog_compiler_wl='-Wl,'
9464 lt_prog_compiler_pic='-fPIC'
9465 lt_prog_compiler_static='-static'
9466 ;;
9467 # icc used to be incompatible with GCC.
9468 # ICC 10 doesn't accept -KPIC any more.
9469 icc* | ifort*)
9470 lt_prog_compiler_wl='-Wl,'
9471 lt_prog_compiler_pic='-fPIC'
9472 lt_prog_compiler_static='-static'
9473 ;;
9474 # Lahey Fortran 8.1.
9475 lf95*)
9476 lt_prog_compiler_wl='-Wl,'
9477 lt_prog_compiler_pic='--shared'
9478 lt_prog_compiler_static='--static'
9479 ;;
9480 nagfor*)
9481 # NAG Fortran compiler
9482 lt_prog_compiler_wl='-Wl,-Wl,,'
9483 lt_prog_compiler_pic='-PIC'
9484 lt_prog_compiler_static='-Bstatic'
9485 ;;
9486 tcc*)
9487 # Fabrice Bellard et al's Tiny C Compiler
9488 lt_prog_compiler_wl='-Wl,'
9489 lt_prog_compiler_pic='-fPIC'
9490 lt_prog_compiler_static='-static'
9491 ;;
9492 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9493 # Portland Group compilers (*not* the Pentium gcc compiler,
9494 # which looks to be a dead project)
9495 lt_prog_compiler_wl='-Wl,'
9496 lt_prog_compiler_pic='-fpic'
9497 lt_prog_compiler_static='-Bstatic'
9498 ;;
9499 ccc*)
9500 lt_prog_compiler_wl='-Wl,'
9501 # All Alpha code is PIC.
9502 lt_prog_compiler_static='-non_shared'
9503 ;;
9504 xl* | bgxl* | bgf* | mpixl*)
9505 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9506 lt_prog_compiler_wl='-Wl,'
9507 lt_prog_compiler_pic='-qpic'
9508 lt_prog_compiler_static='-qstaticlink'
9509 ;;
9510 *)
9511 case `$CC -V 2>&1 | $SED 5q` in
9512 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9513 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9514 lt_prog_compiler_pic='-KPIC'
9515 lt_prog_compiler_static='-Bstatic'
9516 lt_prog_compiler_wl=''
9517 ;;
9518 *Sun\ F* | *Sun*Fortran*)
9519 lt_prog_compiler_pic='-KPIC'
9520 lt_prog_compiler_static='-Bstatic'
9521 lt_prog_compiler_wl='-Qoption ld '
9522 ;;
9523 *Sun\ C*)
9524 # Sun C 5.9
9525 lt_prog_compiler_pic='-KPIC'
9526 lt_prog_compiler_static='-Bstatic'
9527 lt_prog_compiler_wl='-Wl,'
9528 ;;
9529 *Intel*\ [CF]*Compiler*)
9530 lt_prog_compiler_wl='-Wl,'
9531 lt_prog_compiler_pic='-fPIC'
9532 lt_prog_compiler_static='-static'
9533 ;;
9534 *Portland\ Group*)
9535 lt_prog_compiler_wl='-Wl,'
9536 lt_prog_compiler_pic='-fpic'
9537 lt_prog_compiler_static='-Bstatic'
9538 ;;
9539 esac
9540 ;;
9541 esac
9542 ;;
9543
9544 newsos6)
9545 lt_prog_compiler_pic='-KPIC'
9546 lt_prog_compiler_static='-Bstatic'
9547 ;;
9548
9549 *nto* | *qnx*)
9550 # QNX uses GNU C++, but need to define -shared option too, otherwise
9551 # it will coredump.
9552 lt_prog_compiler_pic='-fPIC -shared'
9553 ;;
9554
9555 osf3* | osf4* | osf5*)
9556 lt_prog_compiler_wl='-Wl,'
9557 # All OSF/1 code is PIC.
9558 lt_prog_compiler_static='-non_shared'
9559 ;;
9560
9561 rdos*)
9562 lt_prog_compiler_static='-non_shared'
9563 ;;
9564
9565 solaris*)
9566 lt_prog_compiler_pic='-KPIC'
9567 lt_prog_compiler_static='-Bstatic'
9568 case $cc_basename in
9569 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9570 lt_prog_compiler_wl='-Qoption ld ';;
9571 *)
9572 lt_prog_compiler_wl='-Wl,';;
9573 esac
9574 ;;
9575
9576 sunos4*)
9577 lt_prog_compiler_wl='-Qoption ld '
9578 lt_prog_compiler_pic='-PIC'
9579 lt_prog_compiler_static='-Bstatic'
9580 ;;
9581
9582 sysv4 | sysv4.2uw2* | sysv4.3*)
9583 lt_prog_compiler_wl='-Wl,'
9584 lt_prog_compiler_pic='-KPIC'
9585 lt_prog_compiler_static='-Bstatic'
9586 ;;
9587
9588 sysv4*MP*)
9589 if test -d /usr/nec; then
9590 lt_prog_compiler_pic='-Kconform_pic'
9591 lt_prog_compiler_static='-Bstatic'
9592 fi
9593 ;;
9594
9595 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9596 lt_prog_compiler_wl='-Wl,'
9597 lt_prog_compiler_pic='-KPIC'
9598 lt_prog_compiler_static='-Bstatic'
9599 ;;
9600
9601 unicos*)
9602 lt_prog_compiler_wl='-Wl,'
9603 lt_prog_compiler_can_build_shared=no
9604 ;;
9605
9606 uts4*)
9607 lt_prog_compiler_pic='-pic'
9608 lt_prog_compiler_static='-Bstatic'
9609 ;;
9610
9611 *)
9612 lt_prog_compiler_can_build_shared=no
9613 ;;
9614 esac
9615 fi
9616
9617 case $host_os in
9618 # For platforms that do not support PIC, -DPIC is meaningless:
9619 *djgpp*)
9620 lt_prog_compiler_pic=
9621 ;;
9622 *)
9623 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9624 ;;
9625 esac
9626
9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9628 printf %s "checking for $compiler option to produce PIC... " >&6; }
9629 if test ${lt_cv_prog_compiler_pic+y}
9630 then :
9631 printf %s "(cached) " >&6
9632 else $as_nop
9633 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9634 fi
9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9636 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9637 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9638
9639 #
9640 # Check to make sure the PIC flag actually works.
9641 #
9642 if test -n "$lt_prog_compiler_pic"; then
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9644 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9645 if test ${lt_cv_prog_compiler_pic_works+y}
9646 then :
9647 printf %s "(cached) " >&6
9648 else $as_nop
9649 lt_cv_prog_compiler_pic_works=no
9650 ac_outfile=conftest.$ac_objext
9651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9652 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9653 # Insert the option either (1) after the last *FLAGS variable, or
9654 # (2) before a word containing "conftest.", or (3) at the end.
9655 # Note that $ac_compile itself does not contain backslashes and begins
9656 # with a dollar sign (not a hyphen), so the echo should work correctly.
9657 # The option is referenced via a variable to avoid confusing sed.
9658 lt_compile=`echo "$ac_compile" | $SED \
9659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9661 -e 's:$: $lt_compiler_flag:'`
9662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9663 (eval "$lt_compile" 2>conftest.err)
9664 ac_status=$?
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 if (exit $ac_status) && test -s "$ac_outfile"; then
9668 # The compiler can only warn and ignore the option if not recognized
9669 # So say no if there are warnings other than the usual output.
9670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9673 lt_cv_prog_compiler_pic_works=yes
9674 fi
9675 fi
9676 $RM conftest*
9677
9678 fi
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9680 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9681
9682 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9683 case $lt_prog_compiler_pic in
9684 "" | " "*) ;;
9685 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9686 esac
9687 else
9688 lt_prog_compiler_pic=
9689 lt_prog_compiler_can_build_shared=no
9690 fi
9691
9692 fi
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704 #
9705 # Check to make sure the static flag actually works.
9706 #
9707 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9709 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9710 if test ${lt_cv_prog_compiler_static_works+y}
9711 then :
9712 printf %s "(cached) " >&6
9713 else $as_nop
9714 lt_cv_prog_compiler_static_works=no
9715 save_LDFLAGS=$LDFLAGS
9716 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9717 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9719 # The linker can only warn and ignore the option if not recognized
9720 # So say no if there are warnings
9721 if test -s conftest.err; then
9722 # Append any errors to the config.log.
9723 cat conftest.err 1>&5
9724 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9726 if diff conftest.exp conftest.er2 >/dev/null; then
9727 lt_cv_prog_compiler_static_works=yes
9728 fi
9729 else
9730 lt_cv_prog_compiler_static_works=yes
9731 fi
9732 fi
9733 $RM -r conftest*
9734 LDFLAGS=$save_LDFLAGS
9735
9736 fi
9737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9738 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9739
9740 if test yes = "$lt_cv_prog_compiler_static_works"; then
9741 :
9742 else
9743 lt_prog_compiler_static=
9744 fi
9745
9746
9747
9748
9749
9750
9751
9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9753 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9754 if test ${lt_cv_prog_compiler_c_o+y}
9755 then :
9756 printf %s "(cached) " >&6
9757 else $as_nop
9758 lt_cv_prog_compiler_c_o=no
9759 $RM -r conftest 2>/dev/null
9760 mkdir conftest
9761 cd conftest
9762 mkdir out
9763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9764
9765 lt_compiler_flag="-o out/conftest2.$ac_objext"
9766 # Insert the option either (1) after the last *FLAGS variable, or
9767 # (2) before a word containing "conftest.", or (3) at the end.
9768 # Note that $ac_compile itself does not contain backslashes and begins
9769 # with a dollar sign (not a hyphen), so the echo should work correctly.
9770 lt_compile=`echo "$ac_compile" | $SED \
9771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9773 -e 's:$: $lt_compiler_flag:'`
9774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9775 (eval "$lt_compile" 2>out/conftest.err)
9776 ac_status=$?
9777 cat out/conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9780 then
9781 # The compiler can only warn and ignore the option if not recognized
9782 # So say no if there are warnings
9783 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9784 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9785 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9786 lt_cv_prog_compiler_c_o=yes
9787 fi
9788 fi
9789 chmod u+w . 2>&5
9790 $RM conftest*
9791 # SGI C++ compiler will create directory out/ii_files/ for
9792 # template instantiation
9793 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9794 $RM out/* && rmdir out
9795 cd ..
9796 $RM -r conftest
9797 $RM conftest*
9798
9799 fi
9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9801 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9802
9803
9804
9805
9806
9807
9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9809 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9810 if test ${lt_cv_prog_compiler_c_o+y}
9811 then :
9812 printf %s "(cached) " >&6
9813 else $as_nop
9814 lt_cv_prog_compiler_c_o=no
9815 $RM -r conftest 2>/dev/null
9816 mkdir conftest
9817 cd conftest
9818 mkdir out
9819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9820
9821 lt_compiler_flag="-o out/conftest2.$ac_objext"
9822 # Insert the option either (1) after the last *FLAGS variable, or
9823 # (2) before a word containing "conftest.", or (3) at the end.
9824 # Note that $ac_compile itself does not contain backslashes and begins
9825 # with a dollar sign (not a hyphen), so the echo should work correctly.
9826 lt_compile=`echo "$ac_compile" | $SED \
9827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9829 -e 's:$: $lt_compiler_flag:'`
9830 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9831 (eval "$lt_compile" 2>out/conftest.err)
9832 ac_status=$?
9833 cat out/conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9836 then
9837 # The compiler can only warn and ignore the option if not recognized
9838 # So say no if there are warnings
9839 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9840 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9841 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9842 lt_cv_prog_compiler_c_o=yes
9843 fi
9844 fi
9845 chmod u+w . 2>&5
9846 $RM conftest*
9847 # SGI C++ compiler will create directory out/ii_files/ for
9848 # template instantiation
9849 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9850 $RM out/* && rmdir out
9851 cd ..
9852 $RM -r conftest
9853 $RM conftest*
9854
9855 fi
9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9857 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9858
9859
9860
9861
9862 hard_links=nottested
9863 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9864 # do not overwrite the value of need_locks provided by the user
9865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9866 printf %s "checking if we can lock with hard links... " >&6; }
9867 hard_links=yes
9868 $RM conftest*
9869 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9870 touch conftest.a
9871 ln conftest.a conftest.b 2>&5 || hard_links=no
9872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9874 printf "%s\n" "$hard_links" >&6; }
9875 if test no = "$hard_links"; then
9876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9877 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9878 need_locks=warn
9879 fi
9880 else
9881 need_locks=no
9882 fi
9883
9884
9885
9886
9887
9888
9889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9890 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9891
9892 runpath_var=
9893 allow_undefined_flag=
9894 always_export_symbols=no
9895 archive_cmds=
9896 archive_expsym_cmds=
9897 compiler_needs_object=no
9898 enable_shared_with_static_runtimes=no
9899 export_dynamic_flag_spec=
9900 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9901 hardcode_automatic=no
9902 hardcode_direct=no
9903 hardcode_direct_absolute=no
9904 hardcode_libdir_flag_spec=
9905 hardcode_libdir_separator=
9906 hardcode_minus_L=no
9907 hardcode_shlibpath_var=unsupported
9908 inherit_rpath=no
9909 link_all_deplibs=unknown
9910 module_cmds=
9911 module_expsym_cmds=
9912 old_archive_from_new_cmds=
9913 old_archive_from_expsyms_cmds=
9914 thread_safe_flag_spec=
9915 whole_archive_flag_spec=
9916 # include_expsyms should be a list of space-separated symbols to be *always*
9917 # included in the symbol list
9918 include_expsyms=
9919 # exclude_expsyms can be an extended regexp of symbols to exclude
9920 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9921 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9922 # as well as any symbol that contains 'd'.
9923 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9924 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9925 # platforms (ab)use it in PIC code, but their linkers get confused if
9926 # the symbol is explicitly referenced. Since portable code cannot
9927 # rely on this symbol name, it's probably fine to never include it in
9928 # preloaded symbol tables.
9929 # Exclude shared library initialization/finalization symbols.
9930 extract_expsyms_cmds=
9931
9932 case $host_os in
9933 cygwin* | mingw* | pw32* | cegcc*)
9934 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9935 # When not using gcc, we currently assume that we are using
9936 # Microsoft Visual C++ or Intel C++ Compiler.
9937 if test yes != "$GCC"; then
9938 with_gnu_ld=no
9939 fi
9940 ;;
9941 interix*)
9942 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9943 with_gnu_ld=yes
9944 ;;
9945 openbsd* | bitrig*)
9946 with_gnu_ld=no
9947 ;;
9948 linux* | k*bsd*-gnu | gnu*)
9949 link_all_deplibs=no
9950 ;;
9951 esac
9952
9953 ld_shlibs=yes
9954
9955 # On some targets, GNU ld is compatible enough with the native linker
9956 # that we're better off using the native interface for both.
9957 lt_use_gnu_ld_interface=no
9958 if test yes = "$with_gnu_ld"; then
9959 case $host_os in
9960 aix*)
9961 # The AIX port of GNU ld has always aspired to compatibility
9962 # with the native linker. However, as the warning in the GNU ld
9963 # block says, versions before 2.19.5* couldn't really create working
9964 # shared libraries, regardless of the interface used.
9965 case `$LD -v 2>&1` in
9966 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9967 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9968 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9969 *)
9970 lt_use_gnu_ld_interface=yes
9971 ;;
9972 esac
9973 ;;
9974 *)
9975 lt_use_gnu_ld_interface=yes
9976 ;;
9977 esac
9978 fi
9979
9980 if test yes = "$lt_use_gnu_ld_interface"; then
9981 # If archive_cmds runs LD, not CC, wlarc should be empty
9982 wlarc='$wl'
9983
9984 # Set some defaults for GNU ld with shared library support. These
9985 # are reset later if shared libraries are not supported. Putting them
9986 # here allows them to be overridden if necessary.
9987 runpath_var=LD_RUN_PATH
9988 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9989 export_dynamic_flag_spec='$wl--export-dynamic'
9990 # ancient GNU ld didn't support --whole-archive et. al.
9991 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9992 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9993 else
9994 whole_archive_flag_spec=
9995 fi
9996 supports_anon_versioning=no
9997 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9998 *GNU\ gold*) supports_anon_versioning=yes ;;
9999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10002 *\ 2.11.*) ;; # other 2.11 versions
10003 *) supports_anon_versioning=yes ;;
10004 esac
10005
10006 # See if GNU ld supports shared libraries.
10007 case $host_os in
10008 aix[3-9]*)
10009 # On AIX/PPC, the GNU linker is very broken
10010 if test ia64 != "$host_cpu"; then
10011 ld_shlibs=no
10012 cat <<_LT_EOF 1>&2
10013
10014 *** Warning: the GNU linker, at least up to release 2.19, is reported
10015 *** to be unable to reliably create shared libraries on AIX.
10016 *** Therefore, libtool is disabling shared libraries support. If you
10017 *** really care for shared libraries, you may want to install binutils
10018 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10019 *** You will then need to restart the configuration process.
10020
10021 _LT_EOF
10022 fi
10023 ;;
10024
10025 amigaos*)
10026 case $host_cpu in
10027 powerpc)
10028 # see comment about AmigaOS4 .so support
10029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10030 archive_expsym_cmds=''
10031 ;;
10032 m68k)
10033 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)'
10034 hardcode_libdir_flag_spec='-L$libdir'
10035 hardcode_minus_L=yes
10036 ;;
10037 esac
10038 ;;
10039
10040 beos*)
10041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10042 allow_undefined_flag=unsupported
10043 # Joseph Beckenbach <[email protected]> says some releases of gcc
10044 # support --undefined. This deserves some investigation. FIXME
10045 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10046 else
10047 ld_shlibs=no
10048 fi
10049 ;;
10050
10051 cygwin* | mingw* | pw32* | cegcc*)
10052 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10053 # as there is no search path for DLLs.
10054 hardcode_libdir_flag_spec='-L$libdir'
10055 export_dynamic_flag_spec='$wl--export-all-symbols'
10056 allow_undefined_flag=unsupported
10057 always_export_symbols=no
10058 enable_shared_with_static_runtimes=yes
10059 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'
10060 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10061
10062 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10064 # If the export-symbols file already is a .def file, use it as
10065 # is; otherwise, prepend EXPORTS...
10066 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10067 cp $export_symbols $output_objdir/$soname.def;
10068 else
10069 echo EXPORTS > $output_objdir/$soname.def;
10070 cat $export_symbols >> $output_objdir/$soname.def;
10071 fi~
10072 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10073 else
10074 ld_shlibs=no
10075 fi
10076 ;;
10077
10078 haiku*)
10079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10080 link_all_deplibs=yes
10081 ;;
10082
10083 os2*)
10084 hardcode_libdir_flag_spec='-L$libdir'
10085 hardcode_minus_L=yes
10086 allow_undefined_flag=unsupported
10087 shrext_cmds=.dll
10088 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10089 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10090 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10091 $ECHO EXPORTS >> $output_objdir/$libname.def~
10092 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10093 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10094 emximp -o $lib $output_objdir/$libname.def'
10095 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10096 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10097 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10098 $ECHO EXPORTS >> $output_objdir/$libname.def~
10099 prefix_cmds="$SED"~
10100 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10101 prefix_cmds="$prefix_cmds -e 1d";
10102 fi~
10103 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10104 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10105 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10106 emximp -o $lib $output_objdir/$libname.def'
10107 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10108 enable_shared_with_static_runtimes=yes
10109 file_list_spec='@'
10110 ;;
10111
10112 interix[3-9]*)
10113 hardcode_direct=no
10114 hardcode_shlibpath_var=no
10115 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10116 export_dynamic_flag_spec='$wl-E'
10117 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10118 # Instead, shared libraries are loaded at an image base (0x10000000 by
10119 # default) and relocated if they conflict, which is a slow very memory
10120 # consuming and fragmenting process. To avoid this, we pick a random,
10121 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10122 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10123 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10124 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'
10125 ;;
10126
10127 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10128 tmp_diet=no
10129 if test linux-dietlibc = "$host_os"; then
10130 case $cc_basename in
10131 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10132 esac
10133 fi
10134 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10135 && test no = "$tmp_diet"
10136 then
10137 tmp_addflag=' $pic_flag'
10138 tmp_sharedflag='-shared'
10139 case $cc_basename,$host_cpu in
10140 pgcc*) # Portland Group C compiler
10141 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'
10142 tmp_addflag=' $pic_flag'
10143 ;;
10144 pgf77* | pgf90* | pgf95* | pgfortran*)
10145 # Portland Group f77 and f90 compilers
10146 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'
10147 tmp_addflag=' $pic_flag -Mnomain' ;;
10148 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10149 tmp_addflag=' -i_dynamic' ;;
10150 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10151 tmp_addflag=' -i_dynamic -nofor_main' ;;
10152 ifc* | ifort*) # Intel Fortran compiler
10153 tmp_addflag=' -nofor_main' ;;
10154 lf95*) # Lahey Fortran 8.1
10155 whole_archive_flag_spec=
10156 tmp_sharedflag='--shared' ;;
10157 nagfor*) # NAGFOR 5.3
10158 tmp_sharedflag='-Wl,-shared' ;;
10159 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10160 tmp_sharedflag='-qmkshrobj'
10161 tmp_addflag= ;;
10162 nvcc*) # Cuda Compiler Driver 2.2
10163 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'
10164 compiler_needs_object=yes
10165 ;;
10166 esac
10167 case `$CC -V 2>&1 | $SED 5q` in
10168 *Sun\ C*) # Sun C 5.9
10169 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'
10170 compiler_needs_object=yes
10171 tmp_sharedflag='-G' ;;
10172 *Sun\ F*) # Sun Fortran 8.3
10173 tmp_sharedflag='-G' ;;
10174 esac
10175 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10176
10177 if test yes = "$supports_anon_versioning"; then
10178 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10179 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10180 echo "local: *; };" >> $output_objdir/$libname.ver~
10181 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10182 fi
10183
10184 case $cc_basename in
10185 tcc*)
10186 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10187 export_dynamic_flag_spec='-rdynamic'
10188 ;;
10189 xlf* | bgf* | bgxlf* | mpixlf*)
10190 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10191 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10192 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10193 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10194 if test yes = "$supports_anon_versioning"; then
10195 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10196 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10197 echo "local: *; };" >> $output_objdir/$libname.ver~
10198 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10199 fi
10200 ;;
10201 esac
10202 else
10203 ld_shlibs=no
10204 fi
10205 ;;
10206
10207 netbsd* | netbsdelf*-gnu)
10208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10209 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10210 wlarc=
10211 else
10212 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10213 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10214 fi
10215 ;;
10216
10217 solaris*)
10218 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10219 ld_shlibs=no
10220 cat <<_LT_EOF 1>&2
10221
10222 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10223 *** create shared libraries on Solaris systems. Therefore, libtool
10224 *** is disabling shared libraries support. We urge you to upgrade GNU
10225 *** binutils to release 2.9.1 or newer. Another option is to modify
10226 *** your PATH or compiler configuration so that the native linker is
10227 *** used, and then restart.
10228
10229 _LT_EOF
10230 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10231 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10232 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10233 else
10234 ld_shlibs=no
10235 fi
10236 ;;
10237
10238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10239 case `$LD -v 2>&1` in
10240 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10241 ld_shlibs=no
10242 cat <<_LT_EOF 1>&2
10243
10244 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10245 *** reliably create shared libraries on SCO systems. Therefore, libtool
10246 *** is disabling shared libraries support. We urge you to upgrade GNU
10247 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10248 *** your PATH or compiler configuration so that the native linker is
10249 *** used, and then restart.
10250
10251 _LT_EOF
10252 ;;
10253 *)
10254 # For security reasons, it is highly recommended that you always
10255 # use absolute paths for naming shared libraries, and exclude the
10256 # DT_RUNPATH tag from executables and libraries. But doing so
10257 # requires that you compile everything twice, which is a pain.
10258 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10259 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10262 else
10263 ld_shlibs=no
10264 fi
10265 ;;
10266 esac
10267 ;;
10268
10269 sunos4*)
10270 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10271 wlarc=
10272 hardcode_direct=yes
10273 hardcode_shlibpath_var=no
10274 ;;
10275
10276 *)
10277 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10278 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10279 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10280 else
10281 ld_shlibs=no
10282 fi
10283 ;;
10284 esac
10285
10286 if test no = "$ld_shlibs"; then
10287 runpath_var=
10288 hardcode_libdir_flag_spec=
10289 export_dynamic_flag_spec=
10290 whole_archive_flag_spec=
10291 fi
10292 else
10293 # PORTME fill in a description of your system's linker (not GNU ld)
10294 case $host_os in
10295 aix3*)
10296 allow_undefined_flag=unsupported
10297 always_export_symbols=yes
10298 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'
10299 # Note: this linker hardcodes the directories in LIBPATH if there
10300 # are no directories specified by -L.
10301 hardcode_minus_L=yes
10302 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10303 # Neither direct hardcoding nor static linking is supported with a
10304 # broken collect2.
10305 hardcode_direct=unsupported
10306 fi
10307 ;;
10308
10309 aix[4-9]*)
10310 if test ia64 = "$host_cpu"; then
10311 # On IA64, the linker does run time linking by default, so we don't
10312 # have to do anything special.
10313 aix_use_runtimelinking=no
10314 exp_sym_flag='-Bexport'
10315 no_entry_flag=
10316 else
10317 # If we're using GNU nm, then we don't want the "-C" option.
10318 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10319 # Without the "-l" option, or with the "-B" option, AIX nm treats
10320 # weak defined symbols like other global defined symbols, whereas
10321 # GNU nm marks them as "W".
10322 # While the 'weak' keyword is ignored in the Export File, we need
10323 # it in the Import File for the 'aix-soname' feature, so we have
10324 # to replace the "-B" option with "-P" for AIX nm.
10325 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10326 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'
10327 else
10328 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10329 fi
10330 aix_use_runtimelinking=no
10331
10332 # Test if we are trying to use run time linking or normal
10333 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10334 # have runtime linking enabled, and use it for executables.
10335 # For shared libraries, we enable/disable runtime linking
10336 # depending on the kind of the shared library created -
10337 # when "with_aix_soname,aix_use_runtimelinking" is:
10338 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10339 # "aix,yes" lib.so shared, rtl:yes, for executables
10340 # lib.a static archive
10341 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10342 # lib.a(lib.so.V) shared, rtl:no, for executables
10343 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10344 # lib.a(lib.so.V) shared, rtl:no
10345 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10346 # lib.a static archive
10347 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10348 for ld_flag in $LDFLAGS; do
10349 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10350 aix_use_runtimelinking=yes
10351 break
10352 fi
10353 done
10354 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10355 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10356 # so we don't have lib.a shared libs to link our executables.
10357 # We have to force runtime linking in this case.
10358 aix_use_runtimelinking=yes
10359 LDFLAGS="$LDFLAGS -Wl,-brtl"
10360 fi
10361 ;;
10362 esac
10363
10364 exp_sym_flag='-bexport'
10365 no_entry_flag='-bnoentry'
10366 fi
10367
10368 # When large executables or shared objects are built, AIX ld can
10369 # have problems creating the table of contents. If linking a library
10370 # or program results in "error TOC overflow" add -mminimal-toc to
10371 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10372 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10373
10374 archive_cmds=''
10375 hardcode_direct=yes
10376 hardcode_direct_absolute=yes
10377 hardcode_libdir_separator=':'
10378 link_all_deplibs=yes
10379 file_list_spec='$wl-f,'
10380 case $with_aix_soname,$aix_use_runtimelinking in
10381 aix,*) ;; # traditional, no import file
10382 svr4,* | *,yes) # use import file
10383 # The Import File defines what to hardcode.
10384 hardcode_direct=no
10385 hardcode_direct_absolute=no
10386 ;;
10387 esac
10388
10389 if test yes = "$GCC"; then
10390 case $host_os in aix4.[012]|aix4.[012].*)
10391 # We only want to do this on AIX 4.2 and lower, the check
10392 # below for broken collect2 doesn't work under 4.3+
10393 collect2name=`$CC -print-prog-name=collect2`
10394 if test -f "$collect2name" &&
10395 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10396 then
10397 # We have reworked collect2
10398 :
10399 else
10400 # We have old collect2
10401 hardcode_direct=unsupported
10402 # It fails to find uninstalled libraries when the uninstalled
10403 # path is not listed in the libpath. Setting hardcode_minus_L
10404 # to unsupported forces relinking
10405 hardcode_minus_L=yes
10406 hardcode_libdir_flag_spec='-L$libdir'
10407 hardcode_libdir_separator=
10408 fi
10409 ;;
10410 esac
10411 shared_flag='-shared'
10412 if test yes = "$aix_use_runtimelinking"; then
10413 shared_flag="$shared_flag "'$wl-G'
10414 fi
10415 # Need to ensure runtime linking is disabled for the traditional
10416 # shared library, or the linker may eventually find shared libraries
10417 # /with/ Import File - we do not want to mix them.
10418 shared_flag_aix='-shared'
10419 shared_flag_svr4='-shared $wl-G'
10420 else
10421 # not using gcc
10422 if test ia64 = "$host_cpu"; then
10423 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10424 # chokes on -Wl,-G. The following line is correct:
10425 shared_flag='-G'
10426 else
10427 if test yes = "$aix_use_runtimelinking"; then
10428 shared_flag='$wl-G'
10429 else
10430 shared_flag='$wl-bM:SRE'
10431 fi
10432 shared_flag_aix='$wl-bM:SRE'
10433 shared_flag_svr4='$wl-G'
10434 fi
10435 fi
10436
10437 export_dynamic_flag_spec='$wl-bexpall'
10438 # It seems that -bexpall does not export symbols beginning with
10439 # underscore (_), so it is better to generate a list of symbols to export.
10440 always_export_symbols=yes
10441 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10442 # Warning - without using the other runtime loading flags (-brtl),
10443 # -berok will link without error, but may produce a broken library.
10444 allow_undefined_flag='-berok'
10445 # Determine the default libpath from the value encoded in an
10446 # empty executable.
10447 if test set = "${lt_cv_aix_libpath+set}"; then
10448 aix_libpath=$lt_cv_aix_libpath
10449 else
10450 if test ${lt_cv_aix_libpath_+y}
10451 then :
10452 printf %s "(cached) " >&6
10453 else $as_nop
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10456
10457 int
10458 main (void)
10459 {
10460
10461 ;
10462 return 0;
10463 }
10464 _ACEOF
10465 if ac_fn_c_try_link "$LINENO"
10466 then :
10467
10468 lt_aix_libpath_sed='
10469 /Import File Strings/,/^$/ {
10470 /^0/ {
10471 s/^0 *\([^ ]*\) *$/\1/
10472 p
10473 }
10474 }'
10475 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10476 # Check for a 64-bit object if we didn't find anything.
10477 if test -z "$lt_cv_aix_libpath_"; then
10478 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10479 fi
10480 fi
10481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10482 conftest$ac_exeext conftest.$ac_ext
10483 if test -z "$lt_cv_aix_libpath_"; then
10484 lt_cv_aix_libpath_=/usr/lib:/lib
10485 fi
10486
10487 fi
10488
10489 aix_libpath=$lt_cv_aix_libpath_
10490 fi
10491
10492 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10493 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
10494 else
10495 if test ia64 = "$host_cpu"; then
10496 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10497 allow_undefined_flag="-z nodefs"
10498 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"
10499 else
10500 # Determine the default libpath from the value encoded in an
10501 # empty executable.
10502 if test set = "${lt_cv_aix_libpath+set}"; then
10503 aix_libpath=$lt_cv_aix_libpath
10504 else
10505 if test ${lt_cv_aix_libpath_+y}
10506 then :
10507 printf %s "(cached) " >&6
10508 else $as_nop
10509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10510 /* end confdefs.h. */
10511
10512 int
10513 main (void)
10514 {
10515
10516 ;
10517 return 0;
10518 }
10519 _ACEOF
10520 if ac_fn_c_try_link "$LINENO"
10521 then :
10522
10523 lt_aix_libpath_sed='
10524 /Import File Strings/,/^$/ {
10525 /^0/ {
10526 s/^0 *\([^ ]*\) *$/\1/
10527 p
10528 }
10529 }'
10530 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10531 # Check for a 64-bit object if we didn't find anything.
10532 if test -z "$lt_cv_aix_libpath_"; then
10533 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10534 fi
10535 fi
10536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10537 conftest$ac_exeext conftest.$ac_ext
10538 if test -z "$lt_cv_aix_libpath_"; then
10539 lt_cv_aix_libpath_=/usr/lib:/lib
10540 fi
10541
10542 fi
10543
10544 aix_libpath=$lt_cv_aix_libpath_
10545 fi
10546
10547 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10548 # Warning - without using the other run time loading flags,
10549 # -berok will link without error, but may produce a broken library.
10550 no_undefined_flag=' $wl-bernotok'
10551 allow_undefined_flag=' $wl-berok'
10552 if test yes = "$with_gnu_ld"; then
10553 # We only use this code for GNU lds that support --whole-archive.
10554 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10555 else
10556 # Exported symbols can be pulled into shared objects from archives
10557 whole_archive_flag_spec='$convenience'
10558 fi
10559 archive_cmds_need_lc=yes
10560 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10561 # -brtl affects multiple linker settings, -berok does not and is overridden later
10562 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10563 if test svr4 != "$with_aix_soname"; then
10564 # This is similar to how AIX traditionally builds its shared libraries.
10565 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'
10566 fi
10567 if test aix != "$with_aix_soname"; then
10568 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'
10569 else
10570 # used by -dlpreopen to get the symbols
10571 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10572 fi
10573 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10574 fi
10575 fi
10576 ;;
10577
10578 amigaos*)
10579 case $host_cpu in
10580 powerpc)
10581 # see comment about AmigaOS4 .so support
10582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10583 archive_expsym_cmds=''
10584 ;;
10585 m68k)
10586 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)'
10587 hardcode_libdir_flag_spec='-L$libdir'
10588 hardcode_minus_L=yes
10589 ;;
10590 esac
10591 ;;
10592
10593 bsdi[45]*)
10594 export_dynamic_flag_spec=-rdynamic
10595 ;;
10596
10597 cygwin* | mingw* | pw32* | cegcc*)
10598 # When not using gcc, we currently assume that we are using
10599 # Microsoft Visual C++ or Intel C++ Compiler.
10600 # hardcode_libdir_flag_spec is actually meaningless, as there is
10601 # no search path for DLLs.
10602 case $cc_basename in
10603 cl* | icl*)
10604 # Native MSVC or ICC
10605 hardcode_libdir_flag_spec=' '
10606 allow_undefined_flag=unsupported
10607 always_export_symbols=yes
10608 file_list_spec='@'
10609 # Tell ltmain to make .lib files, not .a files.
10610 libext=lib
10611 # Tell ltmain to make .dll files, not .so files.
10612 shrext_cmds=.dll
10613 # FIXME: Setting linknames here is a bad hack.
10614 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10615 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10616 cp "$export_symbols" "$output_objdir/$soname.def";
10617 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10618 else
10619 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10620 fi~
10621 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10622 linknames='
10623 # The linker will not automatically build a static lib if we build a DLL.
10624 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10625 enable_shared_with_static_runtimes=yes
10626 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10627 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10628 # Don't use ranlib
10629 old_postinstall_cmds='chmod 644 $oldlib'
10630 postlink_cmds='lt_outputfile="@OUTPUT@"~
10631 lt_tool_outputfile="@TOOL_OUTPUT@"~
10632 case $lt_outputfile in
10633 *.exe|*.EXE) ;;
10634 *)
10635 lt_outputfile=$lt_outputfile.exe
10636 lt_tool_outputfile=$lt_tool_outputfile.exe
10637 ;;
10638 esac~
10639 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10640 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10641 $RM "$lt_outputfile.manifest";
10642 fi'
10643 ;;
10644 *)
10645 # Assume MSVC and ICC wrapper
10646 hardcode_libdir_flag_spec=' '
10647 allow_undefined_flag=unsupported
10648 # Tell ltmain to make .lib files, not .a files.
10649 libext=lib
10650 # Tell ltmain to make .dll files, not .so files.
10651 shrext_cmds=.dll
10652 # FIXME: Setting linknames here is a bad hack.
10653 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10654 # The linker will automatically build a .lib file if we build a DLL.
10655 old_archive_from_new_cmds='true'
10656 # FIXME: Should let the user specify the lib program.
10657 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10658 enable_shared_with_static_runtimes=yes
10659 ;;
10660 esac
10661 ;;
10662
10663 darwin* | rhapsody*)
10664
10665
10666 archive_cmds_need_lc=no
10667 hardcode_direct=no
10668 hardcode_automatic=yes
10669 hardcode_shlibpath_var=unsupported
10670 if test yes = "$lt_cv_ld_force_load"; then
10671 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\"`'
10672
10673 else
10674 whole_archive_flag_spec=''
10675 fi
10676 link_all_deplibs=yes
10677 allow_undefined_flag=$_lt_dar_allow_undefined
10678 case $cc_basename in
10679 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10680 *) _lt_dar_can_shared=$GCC ;;
10681 esac
10682 if test yes = "$_lt_dar_can_shared"; then
10683 output_verbose_link_cmd=func_echo_all
10684 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10685 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10686 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"
10687 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"
10688
10689 else
10690 ld_shlibs=no
10691 fi
10692
10693 ;;
10694
10695 dgux*)
10696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10697 hardcode_libdir_flag_spec='-L$libdir'
10698 hardcode_shlibpath_var=no
10699 ;;
10700
10701 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10702 # support. Future versions do this automatically, but an explicit c++rt0.o
10703 # does not break anything, and helps significantly (at the cost of a little
10704 # extra space).
10705 freebsd2.2*)
10706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10707 hardcode_libdir_flag_spec='-R$libdir'
10708 hardcode_direct=yes
10709 hardcode_shlibpath_var=no
10710 ;;
10711
10712 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10713 freebsd2.*)
10714 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10715 hardcode_direct=yes
10716 hardcode_minus_L=yes
10717 hardcode_shlibpath_var=no
10718 ;;
10719
10720 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10721 freebsd* | dragonfly* | midnightbsd*)
10722 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10723 hardcode_libdir_flag_spec='-R$libdir'
10724 hardcode_direct=yes
10725 hardcode_shlibpath_var=no
10726 ;;
10727
10728 hpux9*)
10729 if test yes = "$GCC"; then
10730 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'
10731 else
10732 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'
10733 fi
10734 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10735 hardcode_libdir_separator=:
10736 hardcode_direct=yes
10737
10738 # hardcode_minus_L: Not really in the search PATH,
10739 # but as the default location of the library.
10740 hardcode_minus_L=yes
10741 export_dynamic_flag_spec='$wl-E'
10742 ;;
10743
10744 hpux10*)
10745 if test yes,no = "$GCC,$with_gnu_ld"; then
10746 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10747 else
10748 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10749 fi
10750 if test no = "$with_gnu_ld"; then
10751 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10752 hardcode_libdir_separator=:
10753 hardcode_direct=yes
10754 hardcode_direct_absolute=yes
10755 export_dynamic_flag_spec='$wl-E'
10756 # hardcode_minus_L: Not really in the search PATH,
10757 # but as the default location of the library.
10758 hardcode_minus_L=yes
10759 fi
10760 ;;
10761
10762 hpux11*)
10763 if test yes,no = "$GCC,$with_gnu_ld"; then
10764 case $host_cpu in
10765 hppa*64*)
10766 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10767 ;;
10768 ia64*)
10769 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10770 ;;
10771 *)
10772 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10773 ;;
10774 esac
10775 else
10776 case $host_cpu in
10777 hppa*64*)
10778 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10779 ;;
10780 ia64*)
10781 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10782 ;;
10783 *)
10784
10785 # Older versions of the 11.00 compiler do not understand -b yet
10786 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10788 printf %s "checking if $CC understands -b... " >&6; }
10789 if test ${lt_cv_prog_compiler__b+y}
10790 then :
10791 printf %s "(cached) " >&6
10792 else $as_nop
10793 lt_cv_prog_compiler__b=no
10794 save_LDFLAGS=$LDFLAGS
10795 LDFLAGS="$LDFLAGS -b"
10796 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10797 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10798 # The linker can only warn and ignore the option if not recognized
10799 # So say no if there are warnings
10800 if test -s conftest.err; then
10801 # Append any errors to the config.log.
10802 cat conftest.err 1>&5
10803 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10805 if diff conftest.exp conftest.er2 >/dev/null; then
10806 lt_cv_prog_compiler__b=yes
10807 fi
10808 else
10809 lt_cv_prog_compiler__b=yes
10810 fi
10811 fi
10812 $RM -r conftest*
10813 LDFLAGS=$save_LDFLAGS
10814
10815 fi
10816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10817 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10818
10819 if test yes = "$lt_cv_prog_compiler__b"; then
10820 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10821 else
10822 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10823 fi
10824
10825 ;;
10826 esac
10827 fi
10828 if test no = "$with_gnu_ld"; then
10829 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10830 hardcode_libdir_separator=:
10831
10832 case $host_cpu in
10833 hppa*64*|ia64*)
10834 hardcode_direct=no
10835 hardcode_shlibpath_var=no
10836 ;;
10837 *)
10838 hardcode_direct=yes
10839 hardcode_direct_absolute=yes
10840 export_dynamic_flag_spec='$wl-E'
10841
10842 # hardcode_minus_L: Not really in the search PATH,
10843 # but as the default location of the library.
10844 hardcode_minus_L=yes
10845 ;;
10846 esac
10847 fi
10848 ;;
10849
10850 irix5* | irix6* | nonstopux*)
10851 if test yes = "$GCC"; then
10852 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'
10853 # Try to use the -exported_symbol ld option, if it does not
10854 # work, assume that -exports_file does not work either and
10855 # implicitly export all symbols.
10856 # This should be the same for all languages, so no per-tag cache variable.
10857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10858 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10859 if test ${lt_cv_irix_exported_symbol+y}
10860 then :
10861 printf %s "(cached) " >&6
10862 else $as_nop
10863 save_LDFLAGS=$LDFLAGS
10864 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h. */
10867 int foo (void) { return 0; }
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"
10870 then :
10871 lt_cv_irix_exported_symbol=yes
10872 else $as_nop
10873 lt_cv_irix_exported_symbol=no
10874 fi
10875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10876 conftest$ac_exeext conftest.$ac_ext
10877 LDFLAGS=$save_LDFLAGS
10878 fi
10879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10880 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10881 if test yes = "$lt_cv_irix_exported_symbol"; then
10882 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'
10883 fi
10884 link_all_deplibs=no
10885 else
10886 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'
10887 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'
10888 fi
10889 archive_cmds_need_lc='no'
10890 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10891 hardcode_libdir_separator=:
10892 inherit_rpath=yes
10893 link_all_deplibs=yes
10894 ;;
10895
10896 linux*)
10897 case $cc_basename in
10898 tcc*)
10899 # Fabrice Bellard et al's Tiny C Compiler
10900 ld_shlibs=yes
10901 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10902 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10903 ;;
10904 esac
10905 ;;
10906
10907 netbsd* | netbsdelf*-gnu)
10908 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10910 else
10911 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10912 fi
10913 hardcode_libdir_flag_spec='-R$libdir'
10914 hardcode_direct=yes
10915 hardcode_shlibpath_var=no
10916 ;;
10917
10918 newsos6)
10919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10920 hardcode_direct=yes
10921 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10922 hardcode_libdir_separator=:
10923 hardcode_shlibpath_var=no
10924 ;;
10925
10926 *nto* | *qnx*)
10927 ;;
10928
10929 openbsd* | bitrig*)
10930 if test -f /usr/libexec/ld.so; then
10931 hardcode_direct=yes
10932 hardcode_shlibpath_var=no
10933 hardcode_direct_absolute=yes
10934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10935 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10936 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10937 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10938 export_dynamic_flag_spec='$wl-E'
10939 else
10940 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10941 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10942 fi
10943 else
10944 ld_shlibs=no
10945 fi
10946 ;;
10947
10948 os2*)
10949 hardcode_libdir_flag_spec='-L$libdir'
10950 hardcode_minus_L=yes
10951 allow_undefined_flag=unsupported
10952 shrext_cmds=.dll
10953 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10954 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10955 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10956 $ECHO EXPORTS >> $output_objdir/$libname.def~
10957 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10958 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10959 emximp -o $lib $output_objdir/$libname.def'
10960 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10961 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10962 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10963 $ECHO EXPORTS >> $output_objdir/$libname.def~
10964 prefix_cmds="$SED"~
10965 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10966 prefix_cmds="$prefix_cmds -e 1d";
10967 fi~
10968 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10969 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10970 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10971 emximp -o $lib $output_objdir/$libname.def'
10972 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10973 enable_shared_with_static_runtimes=yes
10974 file_list_spec='@'
10975 ;;
10976
10977 osf3*)
10978 if test yes = "$GCC"; then
10979 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10980 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'
10981 else
10982 allow_undefined_flag=' -expect_unresolved \*'
10983 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'
10984 fi
10985 archive_cmds_need_lc='no'
10986 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10987 hardcode_libdir_separator=:
10988 ;;
10989
10990 osf4* | osf5*) # as osf3* with the addition of -msym flag
10991 if test yes = "$GCC"; then
10992 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10993 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'
10994 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10995 else
10996 allow_undefined_flag=' -expect_unresolved \*'
10997 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'
10998 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~
10999 $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'
11000
11001 # Both c and cxx compiler support -rpath directly
11002 hardcode_libdir_flag_spec='-rpath $libdir'
11003 fi
11004 archive_cmds_need_lc='no'
11005 hardcode_libdir_separator=:
11006 ;;
11007
11008 solaris*)
11009 no_undefined_flag=' -z defs'
11010 if test yes = "$GCC"; then
11011 wlarc='$wl'
11012 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11013 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11014 $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'
11015 else
11016 case `$CC -V 2>&1` in
11017 *"Compilers 5.0"*)
11018 wlarc=''
11019 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11020 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11021 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11022 ;;
11023 *)
11024 wlarc='$wl'
11025 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11026 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11027 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11028 ;;
11029 esac
11030 fi
11031 hardcode_libdir_flag_spec='-R$libdir'
11032 hardcode_shlibpath_var=no
11033 case $host_os in
11034 solaris2.[0-5] | solaris2.[0-5].*) ;;
11035 *)
11036 # The compiler driver will combine and reorder linker options,
11037 # but understands '-z linker_flag'. GCC discards it without '$wl',
11038 # but is careful enough not to reorder.
11039 # Supported since Solaris 2.6 (maybe 2.5.1?)
11040 if test yes = "$GCC"; then
11041 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11042 else
11043 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11044 fi
11045 ;;
11046 esac
11047 link_all_deplibs=yes
11048 ;;
11049
11050 sunos4*)
11051 if test sequent = "$host_vendor"; then
11052 # Use $CC to link under sequent, because it throws in some extra .o
11053 # files that make .init and .fini sections work.
11054 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11055 else
11056 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11057 fi
11058 hardcode_libdir_flag_spec='-L$libdir'
11059 hardcode_direct=yes
11060 hardcode_minus_L=yes
11061 hardcode_shlibpath_var=no
11062 ;;
11063
11064 sysv4)
11065 case $host_vendor in
11066 sni)
11067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11068 hardcode_direct=yes # is this really true???
11069 ;;
11070 siemens)
11071 ## LD is ld it makes a PLAMLIB
11072 ## CC just makes a GrossModule.
11073 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11074 reload_cmds='$CC -r -o $output$reload_objs'
11075 hardcode_direct=no
11076 ;;
11077 motorola)
11078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11079 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11080 ;;
11081 esac
11082 runpath_var='LD_RUN_PATH'
11083 hardcode_shlibpath_var=no
11084 ;;
11085
11086 sysv4.3*)
11087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11088 hardcode_shlibpath_var=no
11089 export_dynamic_flag_spec='-Bexport'
11090 ;;
11091
11092 sysv4*MP*)
11093 if test -d /usr/nec; then
11094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11095 hardcode_shlibpath_var=no
11096 runpath_var=LD_RUN_PATH
11097 hardcode_runpath_var=yes
11098 ld_shlibs=yes
11099 fi
11100 ;;
11101
11102 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11103 no_undefined_flag='$wl-z,text'
11104 archive_cmds_need_lc=no
11105 hardcode_shlibpath_var=no
11106 runpath_var='LD_RUN_PATH'
11107
11108 if test yes = "$GCC"; then
11109 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11110 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11111 else
11112 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11113 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11114 fi
11115 ;;
11116
11117 sysv5* | sco3.2v5* | sco5v6*)
11118 # Note: We CANNOT use -z defs as we might desire, because we do not
11119 # link with -lc, and that would cause any symbols used from libc to
11120 # always be unresolved, which means just about no library would
11121 # ever link correctly. If we're not using GNU ld we use -z text
11122 # though, which does catch some bad symbols but isn't as heavy-handed
11123 # as -z defs.
11124 no_undefined_flag='$wl-z,text'
11125 allow_undefined_flag='$wl-z,nodefs'
11126 archive_cmds_need_lc=no
11127 hardcode_shlibpath_var=no
11128 hardcode_libdir_flag_spec='$wl-R,$libdir'
11129 hardcode_libdir_separator=':'
11130 link_all_deplibs=yes
11131 export_dynamic_flag_spec='$wl-Bexport'
11132 runpath_var='LD_RUN_PATH'
11133
11134 if test yes = "$GCC"; then
11135 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11136 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11137 else
11138 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11139 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11140 fi
11141 ;;
11142
11143 uts4*)
11144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11145 hardcode_libdir_flag_spec='-L$libdir'
11146 hardcode_shlibpath_var=no
11147 ;;
11148
11149 *)
11150 ld_shlibs=no
11151 ;;
11152 esac
11153
11154 if test sni = "$host_vendor"; then
11155 case $host in
11156 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11157 export_dynamic_flag_spec='$wl-Blargedynsym'
11158 ;;
11159 esac
11160 fi
11161 fi
11162
11163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11164 printf "%s\n" "$ld_shlibs" >&6; }
11165 test no = "$ld_shlibs" && can_build_shared=no
11166
11167 with_gnu_ld=$with_gnu_ld
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183 #
11184 # Do we need to explicitly link libc?
11185 #
11186 case "x$archive_cmds_need_lc" in
11187 x|xyes)
11188 # Assume -lc should be added
11189 archive_cmds_need_lc=yes
11190
11191 if test yes,yes = "$GCC,$enable_shared"; then
11192 case $archive_cmds in
11193 *'~'*)
11194 # FIXME: we may have to deal with multi-command sequences.
11195 ;;
11196 '$CC '*)
11197 # Test whether the compiler implicitly links with -lc since on some
11198 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11199 # to ld, don't add -lc before -lgcc.
11200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11201 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11202 if test ${lt_cv_archive_cmds_need_lc+y}
11203 then :
11204 printf %s "(cached) " >&6
11205 else $as_nop
11206 $RM conftest*
11207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11208
11209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11210 (eval $ac_compile) 2>&5
11211 ac_status=$?
11212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11213 test $ac_status = 0; } 2>conftest.err; then
11214 soname=conftest
11215 lib=conftest
11216 libobjs=conftest.$ac_objext
11217 deplibs=
11218 wl=$lt_prog_compiler_wl
11219 pic_flag=$lt_prog_compiler_pic
11220 compiler_flags=-v
11221 linker_flags=-v
11222 verstring=
11223 output_objdir=.
11224 libname=conftest
11225 lt_save_allow_undefined_flag=$allow_undefined_flag
11226 allow_undefined_flag=
11227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11228 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11229 ac_status=$?
11230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11231 test $ac_status = 0; }
11232 then
11233 lt_cv_archive_cmds_need_lc=no
11234 else
11235 lt_cv_archive_cmds_need_lc=yes
11236 fi
11237 allow_undefined_flag=$lt_save_allow_undefined_flag
11238 else
11239 cat conftest.err 1>&5
11240 fi
11241 $RM conftest*
11242
11243 fi
11244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11245 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11246 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11247 ;;
11248 esac
11249 fi
11250 ;;
11251 esac
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
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
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11405 printf %s "checking dynamic linker characteristics... " >&6; }
11406
11407 if test yes = "$GCC"; then
11408 case $host_os in
11409 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11410 *) lt_awk_arg='/^libraries:/' ;;
11411 esac
11412 case $host_os in
11413 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11414 *) lt_sed_strip_eq='s|=/|/|g' ;;
11415 esac
11416 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11417 case $lt_search_path_spec in
11418 *\;*)
11419 # if the path contains ";" then we assume it to be the separator
11420 # otherwise default to the standard path separator (i.e. ":") - it is
11421 # assumed that no part of a normal pathname contains ";" but that should
11422 # okay in the real world where ";" in dirpaths is itself problematic.
11423 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11424 ;;
11425 *)
11426 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11427 ;;
11428 esac
11429 # Ok, now we have the path, separated by spaces, we can step through it
11430 # and add multilib dir if necessary...
11431 lt_tmp_lt_search_path_spec=
11432 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11433 # ...but if some path component already ends with the multilib dir we assume
11434 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11435 case "$lt_multi_os_dir; $lt_search_path_spec " in
11436 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11437 lt_multi_os_dir=
11438 ;;
11439 esac
11440 for lt_sys_path in $lt_search_path_spec; do
11441 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11442 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11443 elif test -n "$lt_multi_os_dir"; then
11444 test -d "$lt_sys_path" && \
11445 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11446 fi
11447 done
11448 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11449 BEGIN {RS = " "; FS = "/|\n";} {
11450 lt_foo = "";
11451 lt_count = 0;
11452 for (lt_i = NF; lt_i > 0; lt_i--) {
11453 if ($lt_i != "" && $lt_i != ".") {
11454 if ($lt_i == "..") {
11455 lt_count++;
11456 } else {
11457 if (lt_count == 0) {
11458 lt_foo = "/" $lt_i lt_foo;
11459 } else {
11460 lt_count--;
11461 }
11462 }
11463 }
11464 }
11465 if (lt_foo != "") { lt_freq[lt_foo]++; }
11466 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11467 }'`
11468 # AWK program above erroneously prepends '/' to C:/dos/paths
11469 # for these hosts.
11470 case $host_os in
11471 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11472 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11473 esac
11474 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11475 else
11476 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11477 fi
11478 library_names_spec=
11479 libname_spec='lib$name'
11480 soname_spec=
11481 shrext_cmds=.so
11482 postinstall_cmds=
11483 postuninstall_cmds=
11484 finish_cmds=
11485 finish_eval=
11486 shlibpath_var=
11487 shlibpath_overrides_runpath=unknown
11488 version_type=none
11489 dynamic_linker="$host_os ld.so"
11490 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11491 need_lib_prefix=unknown
11492 hardcode_into_libs=no
11493
11494 # when you set need_version to no, make sure it does not cause -set_version
11495 # flags to be left without arguments
11496 need_version=unknown
11497
11498
11499
11500 case $host_os in
11501 aix3*)
11502 version_type=linux # correct to gnu/linux during the next big refactor
11503 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11504 shlibpath_var=LIBPATH
11505
11506 # AIX 3 has no versioning support, so we append a major version to the name.
11507 soname_spec='$libname$release$shared_ext$major'
11508 ;;
11509
11510 aix[4-9]*)
11511 version_type=linux # correct to gnu/linux during the next big refactor
11512 need_lib_prefix=no
11513 need_version=no
11514 hardcode_into_libs=yes
11515 if test ia64 = "$host_cpu"; then
11516 # AIX 5 supports IA64
11517 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 else
11520 # With GCC up to 2.95.x, collect2 would create an import file
11521 # for dependence libraries. The import file would start with
11522 # the line '#! .'. This would cause the generated library to
11523 # depend on '.', always an invalid library. This was fixed in
11524 # development snapshots of GCC prior to 3.0.
11525 case $host_os in
11526 aix4 | aix4.[01] | aix4.[01].*)
11527 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11528 echo ' yes '
11529 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11530 :
11531 else
11532 can_build_shared=no
11533 fi
11534 ;;
11535 esac
11536 # Using Import Files as archive members, it is possible to support
11537 # filename-based versioning of shared library archives on AIX. While
11538 # this would work for both with and without runtime linking, it will
11539 # prevent static linking of such archives. So we do filename-based
11540 # shared library versioning with .so extension only, which is used
11541 # when both runtime linking and shared linking is enabled.
11542 # Unfortunately, runtime linking may impact performance, so we do
11543 # not want this to be the default eventually. Also, we use the
11544 # versioned .so libs for executables only if there is the -brtl
11545 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11546 # To allow for filename-based versioning support, we need to create
11547 # libNAME.so.V as an archive file, containing:
11548 # *) an Import File, referring to the versioned filename of the
11549 # archive as well as the shared archive member, telling the
11550 # bitwidth (32 or 64) of that shared object, and providing the
11551 # list of exported symbols of that shared object, eventually
11552 # decorated with the 'weak' keyword
11553 # *) the shared object with the F_LOADONLY flag set, to really avoid
11554 # it being seen by the linker.
11555 # At run time we better use the real file rather than another symlink,
11556 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11557
11558 case $with_aix_soname,$aix_use_runtimelinking in
11559 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11560 # soname into executable. Probably we can add versioning support to
11561 # collect2, so additional links can be useful in future.
11562 aix,yes) # traditional libtool
11563 dynamic_linker='AIX unversionable lib.so'
11564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11565 # instead of lib<name>.a to let people know that these are not
11566 # typical AIX shared libraries.
11567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11568 ;;
11569 aix,no) # traditional AIX only
11570 dynamic_linker='AIX lib.a(lib.so.V)'
11571 # We preserve .a as extension for shared libraries through AIX4.2
11572 # and later when we are not doing run time linking.
11573 library_names_spec='$libname$release.a $libname.a'
11574 soname_spec='$libname$release$shared_ext$major'
11575 ;;
11576 svr4,*) # full svr4 only
11577 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11578 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11579 # We do not specify a path in Import Files, so LIBPATH fires.
11580 shlibpath_overrides_runpath=yes
11581 ;;
11582 *,yes) # both, prefer svr4
11583 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11584 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11585 # unpreferred sharedlib libNAME.a needs extra handling
11586 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"'
11587 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"'
11588 # We do not specify a path in Import Files, so LIBPATH fires.
11589 shlibpath_overrides_runpath=yes
11590 ;;
11591 *,no) # both, prefer aix
11592 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11593 library_names_spec='$libname$release.a $libname.a'
11594 soname_spec='$libname$release$shared_ext$major'
11595 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11596 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)'
11597 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"'
11598 ;;
11599 esac
11600 shlibpath_var=LIBPATH
11601 fi
11602 ;;
11603
11604 amigaos*)
11605 case $host_cpu in
11606 powerpc)
11607 # Since July 2007 AmigaOS4 officially supports .so libraries.
11608 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11610 ;;
11611 m68k)
11612 library_names_spec='$libname.ixlibrary $libname.a'
11613 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11614 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'
11615 ;;
11616 esac
11617 ;;
11618
11619 beos*)
11620 library_names_spec='$libname$shared_ext'
11621 dynamic_linker="$host_os ld.so"
11622 shlibpath_var=LIBRARY_PATH
11623 ;;
11624
11625 bsdi[45]*)
11626 version_type=linux # correct to gnu/linux during the next big refactor
11627 need_version=no
11628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11629 soname_spec='$libname$release$shared_ext$major'
11630 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11631 shlibpath_var=LD_LIBRARY_PATH
11632 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11633 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11634 # the default ld.so.conf also contains /usr/contrib/lib and
11635 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11636 # libtool to hard-code these into programs
11637 ;;
11638
11639 cygwin* | mingw* | pw32* | cegcc*)
11640 version_type=windows
11641 shrext_cmds=.dll
11642 need_version=no
11643 need_lib_prefix=no
11644
11645 case $GCC,$cc_basename in
11646 yes,*)
11647 # gcc
11648 library_names_spec='$libname.dll.a'
11649 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11650 postinstall_cmds='base_file=`basename \$file`~
11651 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11652 dldir=$destdir/`dirname \$dlpath`~
11653 test -d \$dldir || mkdir -p \$dldir~
11654 $install_prog $dir/$dlname \$dldir/$dlname~
11655 chmod a+x \$dldir/$dlname~
11656 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11657 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11658 fi'
11659 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11660 dlpath=$dir/\$dldll~
11661 $RM \$dlpath'
11662 shlibpath_overrides_runpath=yes
11663
11664 case $host_os in
11665 cygwin*)
11666 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11667 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11668
11669 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11670 ;;
11671 mingw* | cegcc*)
11672 # MinGW DLLs use traditional 'lib' prefix
11673 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11674 ;;
11675 pw32*)
11676 # pw32 DLLs use 'pw' prefix rather than 'lib'
11677 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11678 ;;
11679 esac
11680 dynamic_linker='Win32 ld.exe'
11681 ;;
11682
11683 *,cl* | *,icl*)
11684 # Native MSVC or ICC
11685 libname_spec='$name'
11686 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11687 library_names_spec='$libname.dll.lib'
11688
11689 case $build_os in
11690 mingw*)
11691 sys_lib_search_path_spec=
11692 lt_save_ifs=$IFS
11693 IFS=';'
11694 for lt_path in $LIB
11695 do
11696 IFS=$lt_save_ifs
11697 # Let DOS variable expansion print the short 8.3 style file name.
11698 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11699 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11700 done
11701 IFS=$lt_save_ifs
11702 # Convert to MSYS style.
11703 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11704 ;;
11705 cygwin*)
11706 # Convert to unix form, then to dos form, then back to unix form
11707 # but this time dos style (no spaces!) so that the unix form looks
11708 # like /cygdrive/c/PROGRA~1:/cygdr...
11709 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11710 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11711 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11712 ;;
11713 *)
11714 sys_lib_search_path_spec=$LIB
11715 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11716 # It is most probably a Windows format PATH.
11717 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11718 else
11719 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11720 fi
11721 # FIXME: find the short name or the path components, as spaces are
11722 # common. (e.g. "Program Files" -> "PROGRA~1")
11723 ;;
11724 esac
11725
11726 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11727 postinstall_cmds='base_file=`basename \$file`~
11728 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11729 dldir=$destdir/`dirname \$dlpath`~
11730 test -d \$dldir || mkdir -p \$dldir~
11731 $install_prog $dir/$dlname \$dldir/$dlname'
11732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11733 dlpath=$dir/\$dldll~
11734 $RM \$dlpath'
11735 shlibpath_overrides_runpath=yes
11736 dynamic_linker='Win32 link.exe'
11737 ;;
11738
11739 *)
11740 # Assume MSVC and ICC wrapper
11741 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11742 dynamic_linker='Win32 ld.exe'
11743 ;;
11744 esac
11745 # FIXME: first we should search . and the directory the executable is in
11746 shlibpath_var=PATH
11747 ;;
11748
11749 darwin* | rhapsody*)
11750 dynamic_linker="$host_os dyld"
11751 version_type=darwin
11752 need_lib_prefix=no
11753 need_version=no
11754 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11755 soname_spec='$libname$release$major$shared_ext'
11756 shlibpath_overrides_runpath=yes
11757 shlibpath_var=DYLD_LIBRARY_PATH
11758 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11759
11760 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11761 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11762 ;;
11763
11764 dgux*)
11765 version_type=linux # correct to gnu/linux during the next big refactor
11766 need_lib_prefix=no
11767 need_version=no
11768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11769 soname_spec='$libname$release$shared_ext$major'
11770 shlibpath_var=LD_LIBRARY_PATH
11771 ;;
11772
11773 freebsd* | dragonfly* | midnightbsd*)
11774 # DragonFly does not have aout. When/if they implement a new
11775 # versioning mechanism, adjust this.
11776 if test -x /usr/bin/objformat; then
11777 objformat=`/usr/bin/objformat`
11778 else
11779 case $host_os in
11780 freebsd[23].*) objformat=aout ;;
11781 *) objformat=elf ;;
11782 esac
11783 fi
11784 version_type=freebsd-$objformat
11785 case $version_type in
11786 freebsd-elf*)
11787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11788 soname_spec='$libname$release$shared_ext$major'
11789 need_version=no
11790 need_lib_prefix=no
11791 ;;
11792 freebsd-*)
11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11794 need_version=yes
11795 ;;
11796 esac
11797 shlibpath_var=LD_LIBRARY_PATH
11798 case $host_os in
11799 freebsd2.*)
11800 shlibpath_overrides_runpath=yes
11801 ;;
11802 freebsd3.[01]* | freebsdelf3.[01]*)
11803 shlibpath_overrides_runpath=yes
11804 hardcode_into_libs=yes
11805 ;;
11806 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11807 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11808 shlibpath_overrides_runpath=no
11809 hardcode_into_libs=yes
11810 ;;
11811 *) # from 4.6 on, and DragonFly
11812 shlibpath_overrides_runpath=yes
11813 hardcode_into_libs=yes
11814 ;;
11815 esac
11816 ;;
11817
11818 haiku*)
11819 version_type=linux # correct to gnu/linux during the next big refactor
11820 need_lib_prefix=no
11821 need_version=no
11822 dynamic_linker="$host_os runtime_loader"
11823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11824 soname_spec='$libname$release$shared_ext$major'
11825 shlibpath_var=LIBRARY_PATH
11826 shlibpath_overrides_runpath=no
11827 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11828 hardcode_into_libs=yes
11829 ;;
11830
11831 hpux9* | hpux10* | hpux11*)
11832 # Give a soname corresponding to the major version so that dld.sl refuses to
11833 # link against other versions.
11834 version_type=sunos
11835 need_lib_prefix=no
11836 need_version=no
11837 case $host_cpu in
11838 ia64*)
11839 shrext_cmds='.so'
11840 hardcode_into_libs=yes
11841 dynamic_linker="$host_os dld.so"
11842 shlibpath_var=LD_LIBRARY_PATH
11843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11845 soname_spec='$libname$release$shared_ext$major'
11846 if test 32 = "$HPUX_IA64_MODE"; then
11847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11848 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11849 else
11850 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11851 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11852 fi
11853 ;;
11854 hppa*64*)
11855 shrext_cmds='.sl'
11856 hardcode_into_libs=yes
11857 dynamic_linker="$host_os dld.sl"
11858 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11861 soname_spec='$libname$release$shared_ext$major'
11862 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11864 ;;
11865 *)
11866 shrext_cmds='.sl'
11867 dynamic_linker="$host_os dld.sl"
11868 shlibpath_var=SHLIB_PATH
11869 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11871 soname_spec='$libname$release$shared_ext$major'
11872 ;;
11873 esac
11874 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11875 postinstall_cmds='chmod 555 $lib'
11876 # or fails outright, so override atomically:
11877 install_override_mode=555
11878 ;;
11879
11880 interix[3-9]*)
11881 version_type=linux # correct to gnu/linux during the next big refactor
11882 need_lib_prefix=no
11883 need_version=no
11884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11885 soname_spec='$libname$release$shared_ext$major'
11886 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 shlibpath_overrides_runpath=no
11889 hardcode_into_libs=yes
11890 ;;
11891
11892 irix5* | irix6* | nonstopux*)
11893 case $host_os in
11894 nonstopux*) version_type=nonstopux ;;
11895 *)
11896 if test yes = "$lt_cv_prog_gnu_ld"; then
11897 version_type=linux # correct to gnu/linux during the next big refactor
11898 else
11899 version_type=irix
11900 fi ;;
11901 esac
11902 need_lib_prefix=no
11903 need_version=no
11904 soname_spec='$libname$release$shared_ext$major'
11905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11906 case $host_os in
11907 irix5* | nonstopux*)
11908 libsuff= shlibsuff=
11909 ;;
11910 *)
11911 case $LD in # libtool.m4 will add one of these switches to LD
11912 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11913 libsuff= shlibsuff= libmagic=32-bit;;
11914 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11915 libsuff=32 shlibsuff=N32 libmagic=N32;;
11916 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11917 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11918 *) libsuff= shlibsuff= libmagic=never-match;;
11919 esac
11920 ;;
11921 esac
11922 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11923 shlibpath_overrides_runpath=no
11924 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11925 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11926 hardcode_into_libs=yes
11927 ;;
11928
11929 # No shared lib support for Linux oldld, aout, or coff.
11930 linux*oldld* | linux*aout* | linux*coff*)
11931 dynamic_linker=no
11932 ;;
11933
11934 linux*android*)
11935 version_type=none # Android doesn't support versioned libraries.
11936 need_lib_prefix=no
11937 need_version=no
11938 library_names_spec='$libname$release$shared_ext'
11939 soname_spec='$libname$release$shared_ext'
11940 finish_cmds=
11941 shlibpath_var=LD_LIBRARY_PATH
11942 shlibpath_overrides_runpath=yes
11943
11944 # This implies no fast_install, which is unacceptable.
11945 # Some rework will be needed to allow for fast_install
11946 # before this can be enabled.
11947 hardcode_into_libs=yes
11948
11949 dynamic_linker='Android linker'
11950 # Don't embed -rpath directories since the linker doesn't support them.
11951 hardcode_libdir_flag_spec='-L$libdir'
11952 ;;
11953
11954 # This must be glibc/ELF.
11955 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11956 version_type=linux # correct to gnu/linux during the next big refactor
11957 need_lib_prefix=no
11958 need_version=no
11959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11960 soname_spec='$libname$release$shared_ext$major'
11961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 shlibpath_overrides_runpath=no
11964
11965 # Some binutils ld are patched to set DT_RUNPATH
11966 if test ${lt_cv_shlibpath_overrides_runpath+y}
11967 then :
11968 printf %s "(cached) " >&6
11969 else $as_nop
11970 lt_cv_shlibpath_overrides_runpath=no
11971 save_LDFLAGS=$LDFLAGS
11972 save_libdir=$libdir
11973 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11974 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11976 /* end confdefs.h. */
11977
11978 int
11979 main (void)
11980 {
11981
11982 ;
11983 return 0;
11984 }
11985 _ACEOF
11986 if ac_fn_c_try_link "$LINENO"
11987 then :
11988 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11989 then :
11990 lt_cv_shlibpath_overrides_runpath=yes
11991 fi
11992 fi
11993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11994 conftest$ac_exeext conftest.$ac_ext
11995 LDFLAGS=$save_LDFLAGS
11996 libdir=$save_libdir
11997
11998 fi
11999
12000 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12001
12002 # This implies no fast_install, which is unacceptable.
12003 # Some rework will be needed to allow for fast_install
12004 # before this can be enabled.
12005 hardcode_into_libs=yes
12006
12007 # Ideally, we could use ldconfig to report *all* directores which are
12008 # searched for libraries, however this is still not possible. Aside from not
12009 # being certain /sbin/ldconfig is available, command
12010 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12011 # even though it is searched at run-time. Try to do the best guess by
12012 # appending ld.so.conf contents (and includes) to the search path.
12013 if test -f /etc/ld.so.conf; then
12014 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' ' '`
12015 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12016 fi
12017
12018 # We used to test for /lib/ld.so.1 and disable shared libraries on
12019 # powerpc, because MkLinux only supported shared libraries with the
12020 # GNU dynamic linker. Since this was broken with cross compilers,
12021 # most powerpc-linux boxes support dynamic linking these days and
12022 # people can always --disable-shared, the test was removed, and we
12023 # assume the GNU/Linux dynamic linker is in use.
12024 dynamic_linker='GNU/Linux ld.so'
12025 ;;
12026
12027 netbsdelf*-gnu)
12028 version_type=linux
12029 need_lib_prefix=no
12030 need_version=no
12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12032 soname_spec='${libname}${release}${shared_ext}$major'
12033 shlibpath_var=LD_LIBRARY_PATH
12034 shlibpath_overrides_runpath=no
12035 hardcode_into_libs=yes
12036 dynamic_linker='NetBSD ld.elf_so'
12037 ;;
12038
12039 netbsd*)
12040 version_type=sunos
12041 need_lib_prefix=no
12042 need_version=no
12043 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12044 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12046 dynamic_linker='NetBSD (a.out) ld.so'
12047 else
12048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12049 soname_spec='$libname$release$shared_ext$major'
12050 dynamic_linker='NetBSD ld.elf_so'
12051 fi
12052 shlibpath_var=LD_LIBRARY_PATH
12053 shlibpath_overrides_runpath=yes
12054 hardcode_into_libs=yes
12055 ;;
12056
12057 newsos6)
12058 version_type=linux # correct to gnu/linux during the next big refactor
12059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12060 shlibpath_var=LD_LIBRARY_PATH
12061 shlibpath_overrides_runpath=yes
12062 ;;
12063
12064 *nto* | *qnx*)
12065 version_type=qnx
12066 need_lib_prefix=no
12067 need_version=no
12068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12069 soname_spec='$libname$release$shared_ext$major'
12070 shlibpath_var=LD_LIBRARY_PATH
12071 shlibpath_overrides_runpath=no
12072 hardcode_into_libs=yes
12073 dynamic_linker='ldqnx.so'
12074 ;;
12075
12076 openbsd* | bitrig*)
12077 version_type=sunos
12078 sys_lib_dlsearch_path_spec=/usr/lib
12079 need_lib_prefix=no
12080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12081 need_version=no
12082 else
12083 need_version=yes
12084 fi
12085 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12087 shlibpath_var=LD_LIBRARY_PATH
12088 shlibpath_overrides_runpath=yes
12089 ;;
12090
12091 os2*)
12092 libname_spec='$name'
12093 version_type=windows
12094 shrext_cmds=.dll
12095 need_version=no
12096 need_lib_prefix=no
12097 # OS/2 can only load a DLL with a base name of 8 characters or less.
12098 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12099 v=$($ECHO $release$versuffix | tr -d .-);
12100 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12101 $ECHO $n$v`$shared_ext'
12102 library_names_spec='${libname}_dll.$libext'
12103 dynamic_linker='OS/2 ld.exe'
12104 shlibpath_var=BEGINLIBPATH
12105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12107 postinstall_cmds='base_file=`basename \$file`~
12108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12109 dldir=$destdir/`dirname \$dlpath`~
12110 test -d \$dldir || mkdir -p \$dldir~
12111 $install_prog $dir/$dlname \$dldir/$dlname~
12112 chmod a+x \$dldir/$dlname~
12113 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12114 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12115 fi'
12116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12117 dlpath=$dir/\$dldll~
12118 $RM \$dlpath'
12119 ;;
12120
12121 osf3* | osf4* | osf5*)
12122 version_type=osf
12123 need_lib_prefix=no
12124 need_version=no
12125 soname_spec='$libname$release$shared_ext$major'
12126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12127 shlibpath_var=LD_LIBRARY_PATH
12128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12130 ;;
12131
12132 rdos*)
12133 dynamic_linker=no
12134 ;;
12135
12136 solaris*)
12137 version_type=linux # correct to gnu/linux during the next big refactor
12138 need_lib_prefix=no
12139 need_version=no
12140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12141 soname_spec='$libname$release$shared_ext$major'
12142 shlibpath_var=LD_LIBRARY_PATH
12143 shlibpath_overrides_runpath=yes
12144 hardcode_into_libs=yes
12145 # ldd complains unless libraries are executable
12146 postinstall_cmds='chmod +x $lib'
12147 ;;
12148
12149 sunos4*)
12150 version_type=sunos
12151 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12153 shlibpath_var=LD_LIBRARY_PATH
12154 shlibpath_overrides_runpath=yes
12155 if test yes = "$with_gnu_ld"; then
12156 need_lib_prefix=no
12157 fi
12158 need_version=yes
12159 ;;
12160
12161 sysv4 | sysv4.3*)
12162 version_type=linux # correct to gnu/linux during the next big refactor
12163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12164 soname_spec='$libname$release$shared_ext$major'
12165 shlibpath_var=LD_LIBRARY_PATH
12166 case $host_vendor in
12167 sni)
12168 shlibpath_overrides_runpath=no
12169 need_lib_prefix=no
12170 runpath_var=LD_RUN_PATH
12171 ;;
12172 siemens)
12173 need_lib_prefix=no
12174 ;;
12175 motorola)
12176 need_lib_prefix=no
12177 need_version=no
12178 shlibpath_overrides_runpath=no
12179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12180 ;;
12181 esac
12182 ;;
12183
12184 sysv4*MP*)
12185 if test -d /usr/nec; then
12186 version_type=linux # correct to gnu/linux during the next big refactor
12187 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12188 soname_spec='$libname$shared_ext.$major'
12189 shlibpath_var=LD_LIBRARY_PATH
12190 fi
12191 ;;
12192
12193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12194 version_type=sco
12195 need_lib_prefix=no
12196 need_version=no
12197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12198 soname_spec='$libname$release$shared_ext$major'
12199 shlibpath_var=LD_LIBRARY_PATH
12200 shlibpath_overrides_runpath=yes
12201 hardcode_into_libs=yes
12202 if test yes = "$with_gnu_ld"; then
12203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12204 else
12205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12206 case $host_os in
12207 sco3.2v5*)
12208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12209 ;;
12210 esac
12211 fi
12212 sys_lib_dlsearch_path_spec='/usr/lib'
12213 ;;
12214
12215 tpf*)
12216 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12217 version_type=linux # correct to gnu/linux during the next big refactor
12218 need_lib_prefix=no
12219 need_version=no
12220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12221 shlibpath_var=LD_LIBRARY_PATH
12222 shlibpath_overrides_runpath=no
12223 hardcode_into_libs=yes
12224 ;;
12225
12226 uts4*)
12227 version_type=linux # correct to gnu/linux during the next big refactor
12228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12229 soname_spec='$libname$release$shared_ext$major'
12230 shlibpath_var=LD_LIBRARY_PATH
12231 ;;
12232
12233 *)
12234 dynamic_linker=no
12235 ;;
12236 esac
12237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12238 printf "%s\n" "$dynamic_linker" >&6; }
12239 test no = "$dynamic_linker" && can_build_shared=no
12240
12241 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12242 if test yes = "$GCC"; then
12243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12244 fi
12245
12246 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12247 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12248 fi
12249
12250 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12251 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12252 fi
12253
12254 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12255 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12256
12257 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12258 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12259
12260 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12261 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12360 printf %s "checking how to hardcode library paths into programs... " >&6; }
12361 hardcode_action=
12362 if test -n "$hardcode_libdir_flag_spec" ||
12363 test -n "$runpath_var" ||
12364 test yes = "$hardcode_automatic"; then
12365
12366 # We can hardcode non-existent directories.
12367 if test no != "$hardcode_direct" &&
12368 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12369 # have to relink, otherwise we might link with an installed library
12370 # when we should be linking with a yet-to-be-installed one
12371 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12372 test no != "$hardcode_minus_L"; then
12373 # Linking always hardcodes the temporary library directory.
12374 hardcode_action=relink
12375 else
12376 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12377 hardcode_action=immediate
12378 fi
12379 else
12380 # We cannot hardcode anything, or else we can only hardcode existing
12381 # directories.
12382 hardcode_action=unsupported
12383 fi
12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12385 printf "%s\n" "$hardcode_action" >&6; }
12386
12387 if test relink = "$hardcode_action" ||
12388 test yes = "$inherit_rpath"; then
12389 # Fast installation is not supported
12390 enable_fast_install=no
12391 elif test yes = "$shlibpath_overrides_runpath" ||
12392 test no = "$enable_shared"; then
12393 # Fast installation is not necessary
12394 enable_fast_install=needless
12395 fi
12396
12397
12398
12399
12400
12401
12402 if test yes != "$enable_dlopen"; then
12403 enable_dlopen=unknown
12404 enable_dlopen_self=unknown
12405 enable_dlopen_self_static=unknown
12406 else
12407 lt_cv_dlopen=no
12408 lt_cv_dlopen_libs=
12409
12410 case $host_os in
12411 beos*)
12412 lt_cv_dlopen=load_add_on
12413 lt_cv_dlopen_libs=
12414 lt_cv_dlopen_self=yes
12415 ;;
12416
12417 mingw* | pw32* | cegcc*)
12418 lt_cv_dlopen=LoadLibrary
12419 lt_cv_dlopen_libs=
12420 ;;
12421
12422 cygwin*)
12423 lt_cv_dlopen=dlopen
12424 lt_cv_dlopen_libs=
12425 ;;
12426
12427 darwin*)
12428 # if libdl is installed we need to link against it
12429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12430 printf %s "checking for dlopen in -ldl... " >&6; }
12431 if test ${ac_cv_lib_dl_dlopen+y}
12432 then :
12433 printf %s "(cached) " >&6
12434 else $as_nop
12435 ac_check_lib_save_LIBS=$LIBS
12436 LIBS="-ldl $LIBS"
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12439
12440 /* Override any GCC internal prototype to avoid an error.
12441 Use char because int might match the return type of a GCC
12442 builtin and then its argument prototype would still apply. */
12443 char dlopen ();
12444 int
12445 main (void)
12446 {
12447 return dlopen ();
12448 ;
12449 return 0;
12450 }
12451 _ACEOF
12452 if ac_fn_c_try_link "$LINENO"
12453 then :
12454 ac_cv_lib_dl_dlopen=yes
12455 else $as_nop
12456 ac_cv_lib_dl_dlopen=no
12457 fi
12458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12459 conftest$ac_exeext conftest.$ac_ext
12460 LIBS=$ac_check_lib_save_LIBS
12461 fi
12462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12463 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12464 if test "x$ac_cv_lib_dl_dlopen" = xyes
12465 then :
12466 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12467 else $as_nop
12468
12469 lt_cv_dlopen=dyld
12470 lt_cv_dlopen_libs=
12471 lt_cv_dlopen_self=yes
12472
12473 fi
12474
12475 ;;
12476
12477 tpf*)
12478 # Don't try to run any link tests for TPF. We know it's impossible
12479 # because TPF is a cross-compiler, and we know how we open DSOs.
12480 lt_cv_dlopen=dlopen
12481 lt_cv_dlopen_libs=
12482 lt_cv_dlopen_self=no
12483 ;;
12484
12485 *)
12486 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12487 if test "x$ac_cv_func_shl_load" = xyes
12488 then :
12489 lt_cv_dlopen=shl_load
12490 else $as_nop
12491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12492 printf %s "checking for shl_load in -ldld... " >&6; }
12493 if test ${ac_cv_lib_dld_shl_load+y}
12494 then :
12495 printf %s "(cached) " >&6
12496 else $as_nop
12497 ac_check_lib_save_LIBS=$LIBS
12498 LIBS="-ldld $LIBS"
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501
12502 /* Override any GCC internal prototype to avoid an error.
12503 Use char because int might match the return type of a GCC
12504 builtin and then its argument prototype would still apply. */
12505 char shl_load ();
12506 int
12507 main (void)
12508 {
12509 return shl_load ();
12510 ;
12511 return 0;
12512 }
12513 _ACEOF
12514 if ac_fn_c_try_link "$LINENO"
12515 then :
12516 ac_cv_lib_dld_shl_load=yes
12517 else $as_nop
12518 ac_cv_lib_dld_shl_load=no
12519 fi
12520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12521 conftest$ac_exeext conftest.$ac_ext
12522 LIBS=$ac_check_lib_save_LIBS
12523 fi
12524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12525 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12526 if test "x$ac_cv_lib_dld_shl_load" = xyes
12527 then :
12528 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12529 else $as_nop
12530 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12531 if test "x$ac_cv_func_dlopen" = xyes
12532 then :
12533 lt_cv_dlopen=dlopen
12534 else $as_nop
12535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12536 printf %s "checking for dlopen in -ldl... " >&6; }
12537 if test ${ac_cv_lib_dl_dlopen+y}
12538 then :
12539 printf %s "(cached) " >&6
12540 else $as_nop
12541 ac_check_lib_save_LIBS=$LIBS
12542 LIBS="-ldl $LIBS"
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12545
12546 /* Override any GCC internal prototype to avoid an error.
12547 Use char because int might match the return type of a GCC
12548 builtin and then its argument prototype would still apply. */
12549 char dlopen ();
12550 int
12551 main (void)
12552 {
12553 return dlopen ();
12554 ;
12555 return 0;
12556 }
12557 _ACEOF
12558 if ac_fn_c_try_link "$LINENO"
12559 then :
12560 ac_cv_lib_dl_dlopen=yes
12561 else $as_nop
12562 ac_cv_lib_dl_dlopen=no
12563 fi
12564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12565 conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12567 fi
12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12569 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12570 if test "x$ac_cv_lib_dl_dlopen" = xyes
12571 then :
12572 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12573 else $as_nop
12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12575 printf %s "checking for dlopen in -lsvld... " >&6; }
12576 if test ${ac_cv_lib_svld_dlopen+y}
12577 then :
12578 printf %s "(cached) " >&6
12579 else $as_nop
12580 ac_check_lib_save_LIBS=$LIBS
12581 LIBS="-lsvld $LIBS"
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12584
12585 /* Override any GCC internal prototype to avoid an error.
12586 Use char because int might match the return type of a GCC
12587 builtin and then its argument prototype would still apply. */
12588 char dlopen ();
12589 int
12590 main (void)
12591 {
12592 return dlopen ();
12593 ;
12594 return 0;
12595 }
12596 _ACEOF
12597 if ac_fn_c_try_link "$LINENO"
12598 then :
12599 ac_cv_lib_svld_dlopen=yes
12600 else $as_nop
12601 ac_cv_lib_svld_dlopen=no
12602 fi
12603 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12604 conftest$ac_exeext conftest.$ac_ext
12605 LIBS=$ac_check_lib_save_LIBS
12606 fi
12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12608 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12609 if test "x$ac_cv_lib_svld_dlopen" = xyes
12610 then :
12611 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12612 else $as_nop
12613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12614 printf %s "checking for dld_link in -ldld... " >&6; }
12615 if test ${ac_cv_lib_dld_dld_link+y}
12616 then :
12617 printf %s "(cached) " >&6
12618 else $as_nop
12619 ac_check_lib_save_LIBS=$LIBS
12620 LIBS="-ldld $LIBS"
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12623
12624 /* Override any GCC internal prototype to avoid an error.
12625 Use char because int might match the return type of a GCC
12626 builtin and then its argument prototype would still apply. */
12627 char dld_link ();
12628 int
12629 main (void)
12630 {
12631 return dld_link ();
12632 ;
12633 return 0;
12634 }
12635 _ACEOF
12636 if ac_fn_c_try_link "$LINENO"
12637 then :
12638 ac_cv_lib_dld_dld_link=yes
12639 else $as_nop
12640 ac_cv_lib_dld_dld_link=no
12641 fi
12642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12643 conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12645 fi
12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12647 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12648 if test "x$ac_cv_lib_dld_dld_link" = xyes
12649 then :
12650 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12651 fi
12652
12653
12654 fi
12655
12656
12657 fi
12658
12659
12660 fi
12661
12662
12663 fi
12664
12665
12666 fi
12667
12668 ;;
12669 esac
12670
12671 if test no = "$lt_cv_dlopen"; then
12672 enable_dlopen=no
12673 else
12674 enable_dlopen=yes
12675 fi
12676
12677 case $lt_cv_dlopen in
12678 dlopen)
12679 save_CPPFLAGS=$CPPFLAGS
12680 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12681
12682 save_LDFLAGS=$LDFLAGS
12683 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12684
12685 save_LIBS=$LIBS
12686 LIBS="$lt_cv_dlopen_libs $LIBS"
12687
12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12689 printf %s "checking whether a program can dlopen itself... " >&6; }
12690 if test ${lt_cv_dlopen_self+y}
12691 then :
12692 printf %s "(cached) " >&6
12693 else $as_nop
12694 if test yes = "$cross_compiling"; then :
12695 lt_cv_dlopen_self=cross
12696 else
12697 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12698 lt_status=$lt_dlunknown
12699 cat > conftest.$ac_ext <<_LT_EOF
12700 #line $LINENO "configure"
12701 #include "confdefs.h"
12702
12703 #if HAVE_DLFCN_H
12704 #include <dlfcn.h>
12705 #endif
12706
12707 #include <stdio.h>
12708
12709 #ifdef RTLD_GLOBAL
12710 # define LT_DLGLOBAL RTLD_GLOBAL
12711 #else
12712 # ifdef DL_GLOBAL
12713 # define LT_DLGLOBAL DL_GLOBAL
12714 # else
12715 # define LT_DLGLOBAL 0
12716 # endif
12717 #endif
12718
12719 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12720 find out it does not work in some platform. */
12721 #ifndef LT_DLLAZY_OR_NOW
12722 # ifdef RTLD_LAZY
12723 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12724 # else
12725 # ifdef DL_LAZY
12726 # define LT_DLLAZY_OR_NOW DL_LAZY
12727 # else
12728 # ifdef RTLD_NOW
12729 # define LT_DLLAZY_OR_NOW RTLD_NOW
12730 # else
12731 # ifdef DL_NOW
12732 # define LT_DLLAZY_OR_NOW DL_NOW
12733 # else
12734 # define LT_DLLAZY_OR_NOW 0
12735 # endif
12736 # endif
12737 # endif
12738 # endif
12739 #endif
12740
12741 /* When -fvisibility=hidden is used, assume the code has been annotated
12742 correspondingly for the symbols needed. */
12743 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12744 int fnord () __attribute__((visibility("default")));
12745 #endif
12746
12747 int fnord () { return 42; }
12748 int main ()
12749 {
12750 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12751 int status = $lt_dlunknown;
12752
12753 if (self)
12754 {
12755 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12756 else
12757 {
12758 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12759 else puts (dlerror ());
12760 }
12761 /* dlclose (self); */
12762 }
12763 else
12764 puts (dlerror ());
12765
12766 return status;
12767 }
12768 _LT_EOF
12769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12770 (eval $ac_link) 2>&5
12771 ac_status=$?
12772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12773 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12774 (./conftest; exit; ) >&5 2>/dev/null
12775 lt_status=$?
12776 case x$lt_status in
12777 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12778 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12779 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12780 esac
12781 else :
12782 # compilation failed
12783 lt_cv_dlopen_self=no
12784 fi
12785 fi
12786 rm -fr conftest*
12787
12788
12789 fi
12790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12791 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12792
12793 if test yes = "$lt_cv_dlopen_self"; then
12794 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12796 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12797 if test ${lt_cv_dlopen_self_static+y}
12798 then :
12799 printf %s "(cached) " >&6
12800 else $as_nop
12801 if test yes = "$cross_compiling"; then :
12802 lt_cv_dlopen_self_static=cross
12803 else
12804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12805 lt_status=$lt_dlunknown
12806 cat > conftest.$ac_ext <<_LT_EOF
12807 #line $LINENO "configure"
12808 #include "confdefs.h"
12809
12810 #if HAVE_DLFCN_H
12811 #include <dlfcn.h>
12812 #endif
12813
12814 #include <stdio.h>
12815
12816 #ifdef RTLD_GLOBAL
12817 # define LT_DLGLOBAL RTLD_GLOBAL
12818 #else
12819 # ifdef DL_GLOBAL
12820 # define LT_DLGLOBAL DL_GLOBAL
12821 # else
12822 # define LT_DLGLOBAL 0
12823 # endif
12824 #endif
12825
12826 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12827 find out it does not work in some platform. */
12828 #ifndef LT_DLLAZY_OR_NOW
12829 # ifdef RTLD_LAZY
12830 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12831 # else
12832 # ifdef DL_LAZY
12833 # define LT_DLLAZY_OR_NOW DL_LAZY
12834 # else
12835 # ifdef RTLD_NOW
12836 # define LT_DLLAZY_OR_NOW RTLD_NOW
12837 # else
12838 # ifdef DL_NOW
12839 # define LT_DLLAZY_OR_NOW DL_NOW
12840 # else
12841 # define LT_DLLAZY_OR_NOW 0
12842 # endif
12843 # endif
12844 # endif
12845 # endif
12846 #endif
12847
12848 /* When -fvisibility=hidden is used, assume the code has been annotated
12849 correspondingly for the symbols needed. */
12850 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12851 int fnord () __attribute__((visibility("default")));
12852 #endif
12853
12854 int fnord () { return 42; }
12855 int main ()
12856 {
12857 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12858 int status = $lt_dlunknown;
12859
12860 if (self)
12861 {
12862 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12863 else
12864 {
12865 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12866 else puts (dlerror ());
12867 }
12868 /* dlclose (self); */
12869 }
12870 else
12871 puts (dlerror ());
12872
12873 return status;
12874 }
12875 _LT_EOF
12876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12877 (eval $ac_link) 2>&5
12878 ac_status=$?
12879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12880 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12881 (./conftest; exit; ) >&5 2>/dev/null
12882 lt_status=$?
12883 case x$lt_status in
12884 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12885 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12886 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12887 esac
12888 else :
12889 # compilation failed
12890 lt_cv_dlopen_self_static=no
12891 fi
12892 fi
12893 rm -fr conftest*
12894
12895
12896 fi
12897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12898 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12899 fi
12900
12901 CPPFLAGS=$save_CPPFLAGS
12902 LDFLAGS=$save_LDFLAGS
12903 LIBS=$save_LIBS
12904 ;;
12905 esac
12906
12907 case $lt_cv_dlopen_self in
12908 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12909 *) enable_dlopen_self=unknown ;;
12910 esac
12911
12912 case $lt_cv_dlopen_self_static in
12913 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12914 *) enable_dlopen_self_static=unknown ;;
12915 esac
12916 fi
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934 striplib=
12935 old_striplib=
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12937 printf %s "checking whether stripping libraries is possible... " >&6; }
12938 if test -z "$STRIP"; then
12939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940 printf "%s\n" "no" >&6; }
12941 else
12942 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12943 old_striplib="$STRIP --strip-debug"
12944 striplib="$STRIP --strip-unneeded"
12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12946 printf "%s\n" "yes" >&6; }
12947 else
12948 case $host_os in
12949 darwin*)
12950 # FIXME - insert some real tests, host_os isn't really good enough
12951 striplib="$STRIP -x"
12952 old_striplib="$STRIP -S"
12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12954 printf "%s\n" "yes" >&6; }
12955 ;;
12956 freebsd*)
12957 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12958 old_striplib="$STRIP --strip-debug"
12959 striplib="$STRIP --strip-unneeded"
12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12961 printf "%s\n" "yes" >&6; }
12962 else
12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12964 printf "%s\n" "no" >&6; }
12965 fi
12966 ;;
12967 *)
12968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 printf "%s\n" "no" >&6; }
12970 ;;
12971 esac
12972 fi
12973 fi
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986 # Report what library types will actually be built
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12988 printf %s "checking if libtool supports shared libraries... " >&6; }
12989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12990 printf "%s\n" "$can_build_shared" >&6; }
12991
12992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12993 printf %s "checking whether to build shared libraries... " >&6; }
12994 test no = "$can_build_shared" && enable_shared=no
12995
12996 # On AIX, shared libraries and static libraries use the same namespace, and
12997 # are all built from PIC.
12998 case $host_os in
12999 aix3*)
13000 test yes = "$enable_shared" && enable_static=no
13001 if test -n "$RANLIB"; then
13002 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13003 postinstall_cmds='$RANLIB $lib'
13004 fi
13005 ;;
13006
13007 aix[4-9]*)
13008 if test ia64 != "$host_cpu"; then
13009 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13010 yes,aix,yes) ;; # shared object as lib.so file only
13011 yes,svr4,*) ;; # shared object as lib.so archive member only
13012 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13013 esac
13014 fi
13015 ;;
13016 esac
13017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13018 printf "%s\n" "$enable_shared" >&6; }
13019
13020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13021 printf %s "checking whether to build static libraries... " >&6; }
13022 # Make sure either enable_shared or enable_static is yes.
13023 test yes = "$enable_shared" || enable_static=yes
13024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13025 printf "%s\n" "$enable_static" >&6; }
13026
13027
13028
13029
13030 fi
13031 ac_ext=c
13032 ac_cpp='$CPP $CPPFLAGS'
13033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13036
13037 CC=$lt_save_CC
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053 ac_config_commands="$ac_config_commands libtool"
13054
13055
13056
13057
13058 # Only expand once:
13059
13060
13061
13062 # Checks for programs.
13063
13064
13065
13066
13067
13068
13069
13070
13071 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13072 if test -n "$ac_tool_prefix"; then
13073 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13074 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13076 printf %s "checking for $ac_word... " >&6; }
13077 if test ${ac_cv_path_PKG_CONFIG+y}
13078 then :
13079 printf %s "(cached) " >&6
13080 else $as_nop
13081 case $PKG_CONFIG in
13082 [\\/]* | ?:[\\/]*)
13083 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13084 ;;
13085 *)
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089 IFS=$as_save_IFS
13090 case $as_dir in #(((
13091 '') as_dir=./ ;;
13092 */) ;;
13093 *) as_dir=$as_dir/ ;;
13094 esac
13095 for ac_exec_ext in '' $ac_executable_extensions; do
13096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13097 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13099 break 2
13100 fi
13101 done
13102 done
13103 IFS=$as_save_IFS
13104
13105 ;;
13106 esac
13107 fi
13108 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13109 if test -n "$PKG_CONFIG"; then
13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13111 printf "%s\n" "$PKG_CONFIG" >&6; }
13112 else
13113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 printf "%s\n" "no" >&6; }
13115 fi
13116
13117
13118 fi
13119 if test -z "$ac_cv_path_PKG_CONFIG"; then
13120 ac_pt_PKG_CONFIG=$PKG_CONFIG
13121 # Extract the first word of "pkg-config", so it can be a program name with args.
13122 set dummy pkg-config; ac_word=$2
13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124 printf %s "checking for $ac_word... " >&6; }
13125 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13126 then :
13127 printf %s "(cached) " >&6
13128 else $as_nop
13129 case $ac_pt_PKG_CONFIG in
13130 [\\/]* | ?:[\\/]*)
13131 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13132 ;;
13133 *)
13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $PATH
13136 do
13137 IFS=$as_save_IFS
13138 case $as_dir in #(((
13139 '') as_dir=./ ;;
13140 */) ;;
13141 *) as_dir=$as_dir/ ;;
13142 esac
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13145 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13147 break 2
13148 fi
13149 done
13150 done
13151 IFS=$as_save_IFS
13152
13153 ;;
13154 esac
13155 fi
13156 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13157 if test -n "$ac_pt_PKG_CONFIG"; then
13158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13159 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13160 else
13161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 printf "%s\n" "no" >&6; }
13163 fi
13164
13165 if test "x$ac_pt_PKG_CONFIG" = x; then
13166 PKG_CONFIG=""
13167 else
13168 case $cross_compiling:$ac_tool_warned in
13169 yes:)
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13172 ac_tool_warned=yes ;;
13173 esac
13174 PKG_CONFIG=$ac_pt_PKG_CONFIG
13175 fi
13176 else
13177 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13178 fi
13179
13180 fi
13181 if test -n "$PKG_CONFIG"; then
13182 _pkg_min_version=0.9.0
13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13184 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13185 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13187 printf "%s\n" "yes" >&6; }
13188 else
13189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 printf "%s\n" "no" >&6; }
13191 PKG_CONFIG=""
13192 fi
13193 fi
13194 if test "x$PKG_CONFIG" == "x"
13195 then :
13196 as_fn_error $? "Please install pkg-config" "$LINENO" 5
13197 fi
13198
13199
13200 # Checks for libraries.
13201
13202 # Checks for header files.
13203
13204 # Checks for typedefs, structures, and compiler characteristics.
13205 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13206 if test "x$ac_cv_type_size_t" = xyes
13207 then :
13208
13209 else $as_nop
13210
13211 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
13212
13213 fi
13214
13215
13216 # Checks for library functions.
13217 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
13218 if test "x$ac_cv_func_pow" = xyes
13219 then :
13220 printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
13221
13222 fi
13223 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
13224 if test "x$ac_cv_func_sqrt" = xyes
13225 then :
13226 printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
13227
13228 fi
13229
13230
13231 # Guess *LD_LIBRARY_PATH variable for make check
13232
13233 SYS=other
13234 DYLIB_VAR=LD_LIBRARY_PATH
13235 case "x$target_os" in
13236 xdarwin*|xmacos)
13237 DYLIB_VAR=DYLD_LIBRARY_PATH
13238 SYS=Darwin
13239 ;;
13240 *) ;;
13241 esac
13242 plugin_sfx=so
13243
13244 # Used in yorick/stdplug/Makefile
13245
13246
13247
13248 # Read Gyoto's pkg-config file (gyoto.pc)
13249
13250 pkg_failed=no
13251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Gyoto" >&5
13252 printf %s "checking for Gyoto... " >&6; }
13253
13254 if test -n "$Gyoto_CFLAGS"; then
13255 pkg_cv_Gyoto_CFLAGS="$Gyoto_CFLAGS"
13256 elif test -n "$PKG_CONFIG"; then
13257 if test -n "$PKG_CONFIG" && \
13258 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gyoto\""; } >&5
13259 ($PKG_CONFIG --exists --print-errors "gyoto") 2>&5
13260 ac_status=$?
13261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13262 test $ac_status = 0; }; then
13263 pkg_cv_Gyoto_CFLAGS=`$PKG_CONFIG --cflags "gyoto" 2>/dev/null`
13264 test "x$?" != "x0" && pkg_failed=yes
13265 else
13266 pkg_failed=yes
13267 fi
13268 else
13269 pkg_failed=untried
13270 fi
13271 if test -n "$Gyoto_LIBS"; then
13272 pkg_cv_Gyoto_LIBS="$Gyoto_LIBS"
13273 elif test -n "$PKG_CONFIG"; then
13274 if test -n "$PKG_CONFIG" && \
13275 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gyoto\""; } >&5
13276 ($PKG_CONFIG --exists --print-errors "gyoto") 2>&5
13277 ac_status=$?
13278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13279 test $ac_status = 0; }; then
13280 pkg_cv_Gyoto_LIBS=`$PKG_CONFIG --libs "gyoto" 2>/dev/null`
13281 test "x$?" != "x0" && pkg_failed=yes
13282 else
13283 pkg_failed=yes
13284 fi
13285 else
13286 pkg_failed=untried
13287 fi
13288
13289
13290
13291 if test $pkg_failed = yes; then
13292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13293 printf "%s\n" "no" >&6; }
13294
13295 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13296 _pkg_short_errors_supported=yes
13297 else
13298 _pkg_short_errors_supported=no
13299 fi
13300 if test $_pkg_short_errors_supported = yes; then
13301 Gyoto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gyoto" 2>&1`
13302 else
13303 Gyoto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gyoto" 2>&1`
13304 fi
13305 # Put the nasty error message in config.log where it belongs
13306 echo "$Gyoto_PKG_ERRORS" >&5
13307
13308 as_fn_error $? "gyoto.pc not found or not functional!
13309 Possible culprits:
13310 is PKG_CONFIG_PATH correct?
13311 are all the dependencies specified in gyoto.pc installed?
13312 Else call the guru." "$LINENO" 5
13313
13314 elif test $pkg_failed = untried; then
13315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13316 printf "%s\n" "no" >&6; }
13317 as_fn_error $? "gyoto.pc not found or not functional!
13318 Possible culprits:
13319 is PKG_CONFIG_PATH correct?
13320 are all the dependencies specified in gyoto.pc installed?
13321 Else call the guru." "$LINENO" 5
13322
13323 else
13324 Gyoto_CFLAGS=$pkg_cv_Gyoto_CFLAGS
13325 Gyoto_LIBS=$pkg_cv_Gyoto_LIBS
13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13327 printf "%s\n" "yes" >&6; }
13328 YORICK=`$PKG_CONFIG --variable=YORICK gyoto`
13329
13330 PYTHON=`$PKG_CONFIG --variable=PYTHON gyoto`
13331
13332 SWIG=`$PKG_CONFIG --variable=SWIG gyoto`
13333
13334 HOME_LORENE=`$PKG_CONFIG --variable=HOME_LORENE gyoto`
13335
13336 LORENECPPFLAGS=`$PKG_CONFIG --variable=LORENECPPFLAGS gyoto`
13337
13338 LORENELDFLAGS=`$PKG_CONFIG --variable=LORENELDFLAGS gyoto`
13339
13340 GYOTO=`$PKG_CONFIG --variable=GYOTO gyoto`
13341
13342 GYOTO_PREFIX=`$PKG_CONFIG --variable=prefix gyoto`
13343
13344 GYOTO_EPREFIX=`$PKG_CONFIG --variable=exec_prefix gyoto`
13345
13346 Y_INST_HOME=`$PKG_CONFIG --variable=Y_INST_HOME gyoto`
13347
13348 Y_INST_SITE=`$PKG_CONFIG --variable=Y_INST_SITE gyoto`
13349
13350
13351 # all about the install directories
13352 GYOTO_PLUGDIR=` $PKG_CONFIG --variable=GYOTO_PLUGDIR gyoto`
13353 GYOTO_SOVERS=` $PKG_CONFIG --variable=GYOTO_SOVERS gyoto`
13354 localpkglibdir=`$PKG_CONFIG --variable=localpkglibdir gyoto`
13355
13356 # all about the C++ compilers
13357 gyoto_MPICXX=`$PKG_CONFIG --variable=MPICXX gyoto`
13358 gyoto_CXX=`$PKG_CONFIG --variable=CXX gyoto`
13359
13360 fi
13361
13362
13363 ## Where shall we install the plug-in?
13364 # If the user passes the option --enable-globalinstall,
13365 # then install in the same place as the standard plug-ins.
13366 #
13367 # Else, if gyoto.pc specifies a local install directory, use it (it
13368 # will typically be /usr/local/lib/gyoto/SOVERS).
13369 #
13370 # Else, default to LIBDIR (as can be customized with --libdir).
13371 # Check whether --enable-globalinstall was given.
13372 if test ${enable_globalinstall+y}
13373 then :
13374 enableval=$enable_globalinstall;
13375 fi
13376
13377 if test "x$enable_globalinstall" == xyes
13378 then :
13379 soverdir=${GYOTO_PLUGDIR}
13380 else $as_nop
13381 if test "x$localpkglibdir" == x
13382 then :
13383 soverdir=${libdir}
13384 else $as_nop
13385 soverdir=${localpkglibdir}/${GYOTO_SOVERS}
13386 fi
13387 fi
13388
13389 # For picky users, allow setting soverdir explicitely, overriding the above:
13390
13391 # Check whether --with-soverdir was given.
13392 if test ${with_soverdir+y}
13393 then :
13394 withval=$with_soverdir; if test "x$with_soverdir" != xno
13395 then :
13396 soverdir=$with_soverdir
13397 fi
13398 fi
13399
13400
13401 # Finally propagate this variable to the Makefiles:
13402
13403
13404 ## Which C++ compiler should we use?
13405 # gyoto.pc should specify MPICXX and/or CXX. Try them first.
13406
13407
13408
13409
13410
13411
13412 ac_ext=cpp
13413 ac_cpp='$CXXCPP $CPPFLAGS'
13414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13417 if test -z "$CXX"; then
13418 if test -n "$CCC"; then
13419 CXX=$CCC
13420 else
13421 if test -n "$ac_tool_prefix"; then
13422 for ac_prog in "$gyoto_MPICXX" "$gyoto_CXX" g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13423 do
13424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427 printf %s "checking for $ac_word... " >&6; }
13428 if test ${ac_cv_prog_CXX+y}
13429 then :
13430 printf %s "(cached) " >&6
13431 else $as_nop
13432 if test -n "$CXX"; then
13433 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13434 else
13435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436 for as_dir in $PATH
13437 do
13438 IFS=$as_save_IFS
13439 case $as_dir in #(((
13440 '') as_dir=./ ;;
13441 */) ;;
13442 *) as_dir=$as_dir/ ;;
13443 esac
13444 for ac_exec_ext in '' $ac_executable_extensions; do
13445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13446 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13448 break 2
13449 fi
13450 done
13451 done
13452 IFS=$as_save_IFS
13453
13454 fi
13455 fi
13456 CXX=$ac_cv_prog_CXX
13457 if test -n "$CXX"; then
13458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13459 printf "%s\n" "$CXX" >&6; }
13460 else
13461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462 printf "%s\n" "no" >&6; }
13463 fi
13464
13465
13466 test -n "$CXX" && break
13467 done
13468 fi
13469 if test -z "$CXX"; then
13470 ac_ct_CXX=$CXX
13471 for ac_prog in "$gyoto_MPICXX" "$gyoto_CXX" g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13472 do
13473 # Extract the first word of "$ac_prog", so it can be a program name with args.
13474 set dummy $ac_prog; ac_word=$2
13475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13476 printf %s "checking for $ac_word... " >&6; }
13477 if test ${ac_cv_prog_ac_ct_CXX+y}
13478 then :
13479 printf %s "(cached) " >&6
13480 else $as_nop
13481 if test -n "$ac_ct_CXX"; then
13482 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13483 else
13484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13485 for as_dir in $PATH
13486 do
13487 IFS=$as_save_IFS
13488 case $as_dir in #(((
13489 '') as_dir=./ ;;
13490 */) ;;
13491 *) as_dir=$as_dir/ ;;
13492 esac
13493 for ac_exec_ext in '' $ac_executable_extensions; do
13494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13495 ac_cv_prog_ac_ct_CXX="$ac_prog"
13496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13497 break 2
13498 fi
13499 done
13500 done
13501 IFS=$as_save_IFS
13502
13503 fi
13504 fi
13505 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13506 if test -n "$ac_ct_CXX"; then
13507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13508 printf "%s\n" "$ac_ct_CXX" >&6; }
13509 else
13510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 printf "%s\n" "no" >&6; }
13512 fi
13513
13514
13515 test -n "$ac_ct_CXX" && break
13516 done
13517
13518 if test "x$ac_ct_CXX" = x; then
13519 CXX="g++"
13520 else
13521 case $cross_compiling:$ac_tool_warned in
13522 yes:)
13523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13524 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13525 ac_tool_warned=yes ;;
13526 esac
13527 CXX=$ac_ct_CXX
13528 fi
13529 fi
13530
13531 fi
13532 fi
13533 # Provide some information about the compiler.
13534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13535 set X $ac_compile
13536 ac_compiler=$2
13537 for ac_option in --version -v -V -qversion; do
13538 { { ac_try="$ac_compiler $ac_option >&5"
13539 case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542 esac
13543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13544 printf "%s\n" "$ac_try_echo"; } >&5
13545 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13546 ac_status=$?
13547 if test -s conftest.err; then
13548 sed '10a\
13549 ... rest of stderr output deleted ...
13550 10q' conftest.err >conftest.er1
13551 cat conftest.er1 >&5
13552 fi
13553 rm -f conftest.er1 conftest.err
13554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13555 test $ac_status = 0; }
13556 done
13557
13558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
13559 printf %s "checking whether the compiler supports GNU C++... " >&6; }
13560 if test ${ac_cv_cxx_compiler_gnu+y}
13561 then :
13562 printf %s "(cached) " >&6
13563 else $as_nop
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13566
13567 int
13568 main (void)
13569 {
13570 #ifndef __GNUC__
13571 choke me
13572 #endif
13573
13574 ;
13575 return 0;
13576 }
13577 _ACEOF
13578 if ac_fn_cxx_try_compile "$LINENO"
13579 then :
13580 ac_compiler_gnu=yes
13581 else $as_nop
13582 ac_compiler_gnu=no
13583 fi
13584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13585 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13586
13587 fi
13588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13589 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
13590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13591
13592 if test $ac_compiler_gnu = yes; then
13593 GXX=yes
13594 else
13595 GXX=
13596 fi
13597 ac_test_CXXFLAGS=${CXXFLAGS+y}
13598 ac_save_CXXFLAGS=$CXXFLAGS
13599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13600 printf %s "checking whether $CXX accepts -g... " >&6; }
13601 if test ${ac_cv_prog_cxx_g+y}
13602 then :
13603 printf %s "(cached) " >&6
13604 else $as_nop
13605 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13606 ac_cxx_werror_flag=yes
13607 ac_cv_prog_cxx_g=no
13608 CXXFLAGS="-g"
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13611
13612 int
13613 main (void)
13614 {
13615
13616 ;
13617 return 0;
13618 }
13619 _ACEOF
13620 if ac_fn_cxx_try_compile "$LINENO"
13621 then :
13622 ac_cv_prog_cxx_g=yes
13623 else $as_nop
13624 CXXFLAGS=""
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13627
13628 int
13629 main (void)
13630 {
13631
13632 ;
13633 return 0;
13634 }
13635 _ACEOF
13636 if ac_fn_cxx_try_compile "$LINENO"
13637 then :
13638
13639 else $as_nop
13640 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13641 CXXFLAGS="-g"
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13644
13645 int
13646 main (void)
13647 {
13648
13649 ;
13650 return 0;
13651 }
13652 _ACEOF
13653 if ac_fn_cxx_try_compile "$LINENO"
13654 then :
13655 ac_cv_prog_cxx_g=yes
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13658 fi
13659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13660 fi
13661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13662 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13663 fi
13664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13665 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
13666 if test $ac_test_CXXFLAGS; then
13667 CXXFLAGS=$ac_save_CXXFLAGS
13668 elif test $ac_cv_prog_cxx_g = yes; then
13669 if test "$GXX" = yes; then
13670 CXXFLAGS="-g -O2"
13671 else
13672 CXXFLAGS="-g"
13673 fi
13674 else
13675 if test "$GXX" = yes; then
13676 CXXFLAGS="-O2"
13677 else
13678 CXXFLAGS=
13679 fi
13680 fi
13681 ac_prog_cxx_stdcxx=no
13682 if test x$ac_prog_cxx_stdcxx = xno
13683 then :
13684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
13685 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
13686 if test ${ac_cv_prog_cxx_cxx11+y}
13687 then :
13688 printf %s "(cached) " >&6
13689 else $as_nop
13690 ac_cv_prog_cxx_cxx11=no
13691 ac_save_CXX=$CXX
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694 $ac_cxx_conftest_cxx11_program
13695 _ACEOF
13696 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
13697 do
13698 CXX="$ac_save_CXX $ac_arg"
13699 if ac_fn_cxx_try_compile "$LINENO"
13700 then :
13701 ac_cv_prog_cxx_cxx11=$ac_arg
13702 fi
13703 rm -f core conftest.err conftest.$ac_objext conftest.beam
13704 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
13705 done
13706 rm -f conftest.$ac_ext
13707 CXX=$ac_save_CXX
13708 fi
13709
13710 if test "x$ac_cv_prog_cxx_cxx11" = xno
13711 then :
13712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13713 printf "%s\n" "unsupported" >&6; }
13714 else $as_nop
13715 if test "x$ac_cv_prog_cxx_cxx11" = x
13716 then :
13717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13718 printf "%s\n" "none needed" >&6; }
13719 else $as_nop
13720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
13721 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
13722 CXX="$CXX $ac_cv_prog_cxx_cxx11"
13723 fi
13724 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
13725 ac_prog_cxx_stdcxx=cxx11
13726 fi
13727 fi
13728 if test x$ac_prog_cxx_stdcxx = xno
13729 then :
13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
13731 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
13732 if test ${ac_cv_prog_cxx_cxx98+y}
13733 then :
13734 printf %s "(cached) " >&6
13735 else $as_nop
13736 ac_cv_prog_cxx_cxx98=no
13737 ac_save_CXX=$CXX
13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13740 $ac_cxx_conftest_cxx98_program
13741 _ACEOF
13742 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
13743 do
13744 CXX="$ac_save_CXX $ac_arg"
13745 if ac_fn_cxx_try_compile "$LINENO"
13746 then :
13747 ac_cv_prog_cxx_cxx98=$ac_arg
13748 fi
13749 rm -f core conftest.err conftest.$ac_objext conftest.beam
13750 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
13751 done
13752 rm -f conftest.$ac_ext
13753 CXX=$ac_save_CXX
13754 fi
13755
13756 if test "x$ac_cv_prog_cxx_cxx98" = xno
13757 then :
13758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13759 printf "%s\n" "unsupported" >&6; }
13760 else $as_nop
13761 if test "x$ac_cv_prog_cxx_cxx98" = x
13762 then :
13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13764 printf "%s\n" "none needed" >&6; }
13765 else $as_nop
13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
13767 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
13768 CXX="$CXX $ac_cv_prog_cxx_cxx98"
13769 fi
13770 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
13771 ac_prog_cxx_stdcxx=cxx98
13772 fi
13773 fi
13774
13775 ac_ext=c
13776 ac_cpp='$CPP $CPPFLAGS'
13777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13780
13781 depcc="$CXX" am_compiler_list=
13782
13783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13784 printf %s "checking dependency style of $depcc... " >&6; }
13785 if test ${am_cv_CXX_dependencies_compiler_type+y}
13786 then :
13787 printf %s "(cached) " >&6
13788 else $as_nop
13789 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13790 # We make a subdir and do the tests there. Otherwise we can end up
13791 # making bogus files that we don't know about and never remove. For
13792 # instance it was reported that on HP-UX the gcc test will end up
13793 # making a dummy file named 'D' -- because '-MD' means "put the output
13794 # in D".
13795 rm -rf conftest.dir
13796 mkdir conftest.dir
13797 # Copy depcomp to subdir because otherwise we won't find it if we're
13798 # using a relative directory.
13799 cp "$am_depcomp" conftest.dir
13800 cd conftest.dir
13801 # We will build objects and dependencies in a subdirectory because
13802 # it helps to detect inapplicable dependency modes. For instance
13803 # both Tru64's cc and ICC support -MD to output dependencies as a
13804 # side effect of compilation, but ICC will put the dependencies in
13805 # the current directory while Tru64 will put them in the object
13806 # directory.
13807 mkdir sub
13808
13809 am_cv_CXX_dependencies_compiler_type=none
13810 if test "$am_compiler_list" = ""; then
13811 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13812 fi
13813 am__universal=false
13814 case " $depcc " in #(
13815 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13816 esac
13817
13818 for depmode in $am_compiler_list; do
13819 # Setup a source with many dependencies, because some compilers
13820 # like to wrap large dependency lists on column 80 (with \), and
13821 # we should not choose a depcomp mode which is confused by this.
13822 #
13823 # We need to recreate these files for each test, as the compiler may
13824 # overwrite some of them when testing with obscure command lines.
13825 # This happens at least with the AIX C compiler.
13826 : > sub/conftest.c
13827 for i in 1 2 3 4 5 6; do
13828 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13829 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13830 # Solaris 10 /bin/sh.
13831 echo '/* dummy */' > sub/conftst$i.h
13832 done
13833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13834
13835 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13836 # mode. It turns out that the SunPro C++ compiler does not properly
13837 # handle '-M -o', and we need to detect this. Also, some Intel
13838 # versions had trouble with output in subdirs.
13839 am__obj=sub/conftest.${OBJEXT-o}
13840 am__minus_obj="-o $am__obj"
13841 case $depmode in
13842 gcc)
13843 # This depmode causes a compiler race in universal mode.
13844 test "$am__universal" = false || continue
13845 ;;
13846 nosideeffect)
13847 # After this tag, mechanisms are not by side-effect, so they'll
13848 # only be used when explicitly requested.
13849 if test "x$enable_dependency_tracking" = xyes; then
13850 continue
13851 else
13852 break
13853 fi
13854 ;;
13855 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13856 # This compiler won't grok '-c -o', but also, the minuso test has
13857 # not run yet. These depmodes are late enough in the game, and
13858 # so weak that their functioning should not be impacted.
13859 am__obj=conftest.${OBJEXT-o}
13860 am__minus_obj=
13861 ;;
13862 none) break ;;
13863 esac
13864 if depmode=$depmode \
13865 source=sub/conftest.c object=$am__obj \
13866 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13867 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13868 >/dev/null 2>conftest.err &&
13869 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13870 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13871 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13872 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13873 # icc doesn't choke on unknown options, it will just issue warnings
13874 # or remarks (even with -Werror). So we grep stderr for any message
13875 # that says an option was ignored or not supported.
13876 # When given -MP, icc 7.0 and 7.1 complain thusly:
13877 # icc: Command line warning: ignoring option '-M'; no argument required
13878 # The diagnosis changed in icc 8.0:
13879 # icc: Command line remark: option '-MP' not supported
13880 if (grep 'ignoring option' conftest.err ||
13881 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13882 am_cv_CXX_dependencies_compiler_type=$depmode
13883 break
13884 fi
13885 fi
13886 done
13887
13888 cd ..
13889 rm -rf conftest.dir
13890 else
13891 am_cv_CXX_dependencies_compiler_type=none
13892 fi
13893
13894 fi
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13896 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
13897 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13898
13899 if
13900 test "x$enable_dependency_tracking" != xno \
13901 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13902 am__fastdepCXX_TRUE=
13903 am__fastdepCXX_FALSE='#'
13904 else
13905 am__fastdepCXX_TRUE='#'
13906 am__fastdepCXX_FALSE=
13907 fi
13908
13909
13910
13911
13912 func_stripname_cnf ()
13913 {
13914 case $2 in
13915 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13916 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13917 esac
13918 } # func_stripname_cnf
13919
13920 if test -n "$CXX" && ( test no != "$CXX" &&
13921 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13922 (test g++ != "$CXX"))); then
13923 ac_ext=cpp
13924 ac_cpp='$CXXCPP $CPPFLAGS'
13925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13929 printf %s "checking how to run the C++ preprocessor... " >&6; }
13930 if test -z "$CXXCPP"; then
13931 if test ${ac_cv_prog_CXXCPP+y}
13932 then :
13933 printf %s "(cached) " >&6
13934 else $as_nop
13935 # Double quotes because $CXX needs to be expanded
13936 for CXXCPP in "$CXX -E" cpp /lib/cpp
13937 do
13938 ac_preproc_ok=false
13939 for ac_cxx_preproc_warn_flag in '' yes
13940 do
13941 # Use a header file that comes with gcc, so configuring glibc
13942 # with a fresh cross-compiler works.
13943 # On the NeXT, cc -E runs the code through the compiler's parser,
13944 # not just through cpp. "Syntax error" is here to catch this case.
13945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13946 /* end confdefs.h. */
13947 #include <limits.h>
13948 Syntax error
13949 _ACEOF
13950 if ac_fn_cxx_try_cpp "$LINENO"
13951 then :
13952
13953 else $as_nop
13954 # Broken: fails on valid input.
13955 continue
13956 fi
13957 rm -f conftest.err conftest.i conftest.$ac_ext
13958
13959 # OK, works on sane cases. Now check whether nonexistent headers
13960 # can be detected and how.
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13963 #include <ac_nonexistent.h>
13964 _ACEOF
13965 if ac_fn_cxx_try_cpp "$LINENO"
13966 then :
13967 # Broken: success on invalid input.
13968 continue
13969 else $as_nop
13970 # Passes both tests.
13971 ac_preproc_ok=:
13972 break
13973 fi
13974 rm -f conftest.err conftest.i conftest.$ac_ext
13975
13976 done
13977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13978 rm -f conftest.i conftest.err conftest.$ac_ext
13979 if $ac_preproc_ok
13980 then :
13981 break
13982 fi
13983
13984 done
13985 ac_cv_prog_CXXCPP=$CXXCPP
13986
13987 fi
13988 CXXCPP=$ac_cv_prog_CXXCPP
13989 else
13990 ac_cv_prog_CXXCPP=$CXXCPP
13991 fi
13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13993 printf "%s\n" "$CXXCPP" >&6; }
13994 ac_preproc_ok=false
13995 for ac_cxx_preproc_warn_flag in '' yes
13996 do
13997 # Use a header file that comes with gcc, so configuring glibc
13998 # with a fresh cross-compiler works.
13999 # On the NeXT, cc -E runs the code through the compiler's parser,
14000 # not just through cpp. "Syntax error" is here to catch this case.
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14003 #include <limits.h>
14004 Syntax error
14005 _ACEOF
14006 if ac_fn_cxx_try_cpp "$LINENO"
14007 then :
14008
14009 else $as_nop
14010 # Broken: fails on valid input.
14011 continue
14012 fi
14013 rm -f conftest.err conftest.i conftest.$ac_ext
14014
14015 # OK, works on sane cases. Now check whether nonexistent headers
14016 # can be detected and how.
14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h. */
14019 #include <ac_nonexistent.h>
14020 _ACEOF
14021 if ac_fn_cxx_try_cpp "$LINENO"
14022 then :
14023 # Broken: success on invalid input.
14024 continue
14025 else $as_nop
14026 # Passes both tests.
14027 ac_preproc_ok=:
14028 break
14029 fi
14030 rm -f conftest.err conftest.i conftest.$ac_ext
14031
14032 done
14033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14034 rm -f conftest.i conftest.err conftest.$ac_ext
14035 if $ac_preproc_ok
14036 then :
14037
14038 else $as_nop
14039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14040 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14041 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14042 See \`config.log' for more details" "$LINENO" 5; }
14043 fi
14044
14045 ac_ext=c
14046 ac_cpp='$CPP $CPPFLAGS'
14047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14050
14051 else
14052 _lt_caught_CXX_error=yes
14053 fi
14054
14055 ac_ext=cpp
14056 ac_cpp='$CXXCPP $CPPFLAGS'
14057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14060
14061 archive_cmds_need_lc_CXX=no
14062 allow_undefined_flag_CXX=
14063 always_export_symbols_CXX=no
14064 archive_expsym_cmds_CXX=
14065 compiler_needs_object_CXX=no
14066 export_dynamic_flag_spec_CXX=
14067 hardcode_direct_CXX=no
14068 hardcode_direct_absolute_CXX=no
14069 hardcode_libdir_flag_spec_CXX=
14070 hardcode_libdir_separator_CXX=
14071 hardcode_minus_L_CXX=no
14072 hardcode_shlibpath_var_CXX=unsupported
14073 hardcode_automatic_CXX=no
14074 inherit_rpath_CXX=no
14075 module_cmds_CXX=
14076 module_expsym_cmds_CXX=
14077 link_all_deplibs_CXX=unknown
14078 old_archive_cmds_CXX=$old_archive_cmds
14079 reload_flag_CXX=$reload_flag
14080 reload_cmds_CXX=$reload_cmds
14081 no_undefined_flag_CXX=
14082 whole_archive_flag_spec_CXX=
14083 enable_shared_with_static_runtimes_CXX=no
14084
14085 # Source file extension for C++ test sources.
14086 ac_ext=cpp
14087
14088 # Object file extension for compiled C++ test sources.
14089 objext=o
14090 objext_CXX=$objext
14091
14092 # No sense in running all these tests if we already determined that
14093 # the CXX compiler isn't working. Some variables (like enable_shared)
14094 # are currently assumed to apply to all compilers on this platform,
14095 # and will be corrupted by setting them based on a non-working compiler.
14096 if test yes != "$_lt_caught_CXX_error"; then
14097 # Code to be used in simple compile tests
14098 lt_simple_compile_test_code="int some_variable = 0;"
14099
14100 # Code to be used in simple link tests
14101 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14102
14103 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14104
14105
14106
14107
14108
14109
14110 # If no C compiler was specified, use CC.
14111 LTCC=${LTCC-"$CC"}
14112
14113 # If no C compiler flags were specified, use CFLAGS.
14114 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14115
14116 # Allow CC to be a program name with arguments.
14117 compiler=$CC
14118
14119
14120 # save warnings/boilerplate of simple test code
14121 ac_outfile=conftest.$ac_objext
14122 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14123 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14124 _lt_compiler_boilerplate=`cat conftest.err`
14125 $RM conftest*
14126
14127 ac_outfile=conftest.$ac_objext
14128 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14129 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14130 _lt_linker_boilerplate=`cat conftest.err`
14131 $RM -r conftest*
14132
14133
14134 # Allow CC to be a program name with arguments.
14135 lt_save_CC=$CC
14136 lt_save_CFLAGS=$CFLAGS
14137 lt_save_LD=$LD
14138 lt_save_GCC=$GCC
14139 GCC=$GXX
14140 lt_save_with_gnu_ld=$with_gnu_ld
14141 lt_save_path_LD=$lt_cv_path_LD
14142 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14143 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14144 else
14145 $as_unset lt_cv_prog_gnu_ld
14146 fi
14147 if test -n "${lt_cv_path_LDCXX+set}"; then
14148 lt_cv_path_LD=$lt_cv_path_LDCXX
14149 else
14150 $as_unset lt_cv_path_LD
14151 fi
14152 test -z "${LDCXX+set}" || LD=$LDCXX
14153 CC=${CXX-"c++"}
14154 CFLAGS=$CXXFLAGS
14155 compiler=$CC
14156 compiler_CXX=$CC
14157 func_cc_basename $compiler
14158 cc_basename=$func_cc_basename_result
14159
14160
14161 if test -n "$compiler"; then
14162 # We don't want -fno-exception when compiling C++ code, so set the
14163 # no_builtin_flag separately
14164 if test yes = "$GXX"; then
14165 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14166 else
14167 lt_prog_compiler_no_builtin_flag_CXX=
14168 fi
14169
14170 if test yes = "$GXX"; then
14171 # Set up default GNU C++ configuration
14172
14173
14174
14175 # Check whether --with-gnu-ld was given.
14176 if test ${with_gnu_ld+y}
14177 then :
14178 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14179 else $as_nop
14180 with_gnu_ld=no
14181 fi
14182
14183 ac_prog=ld
14184 if test yes = "$GCC"; then
14185 # Check if gcc -print-prog-name=ld gives a path.
14186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14187 printf %s "checking for ld used by $CC... " >&6; }
14188 case $host in
14189 *-*-mingw*)
14190 # gcc leaves a trailing carriage return, which upsets mingw
14191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14192 *)
14193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14194 esac
14195 case $ac_prog in
14196 # Accept absolute paths.
14197 [\\/]* | ?:[\\/]*)
14198 re_direlt='/[^/][^/]*/\.\./'
14199 # Canonicalize the pathname of ld
14200 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14201 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14202 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14203 done
14204 test -z "$LD" && LD=$ac_prog
14205 ;;
14206 "")
14207 # If it fails, then pretend we aren't using GCC.
14208 ac_prog=ld
14209 ;;
14210 *)
14211 # If it is relative, then search for the first ld in PATH.
14212 with_gnu_ld=unknown
14213 ;;
14214 esac
14215 elif test yes = "$with_gnu_ld"; then
14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14217 printf %s "checking for GNU ld... " >&6; }
14218 else
14219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14220 printf %s "checking for non-GNU ld... " >&6; }
14221 fi
14222 if test ${lt_cv_path_LD+y}
14223 then :
14224 printf %s "(cached) " >&6
14225 else $as_nop
14226 if test -z "$LD"; then
14227 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14228 for ac_dir in $PATH; do
14229 IFS=$lt_save_ifs
14230 test -z "$ac_dir" && ac_dir=.
14231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14232 lt_cv_path_LD=$ac_dir/$ac_prog
14233 # Check to see if the program is GNU ld. I'd rather use --version,
14234 # but apparently some variants of GNU ld only accept -v.
14235 # Break only if it was the GNU/non-GNU ld that we prefer.
14236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14237 *GNU* | *'with BFD'*)
14238 test no != "$with_gnu_ld" && break
14239 ;;
14240 *)
14241 test yes != "$with_gnu_ld" && break
14242 ;;
14243 esac
14244 fi
14245 done
14246 IFS=$lt_save_ifs
14247 else
14248 lt_cv_path_LD=$LD # Let the user override the test with a path.
14249 fi
14250 fi
14251
14252 LD=$lt_cv_path_LD
14253 if test -n "$LD"; then
14254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14255 printf "%s\n" "$LD" >&6; }
14256 else
14257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258 printf "%s\n" "no" >&6; }
14259 fi
14260 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14262 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14263 if test ${lt_cv_prog_gnu_ld+y}
14264 then :
14265 printf %s "(cached) " >&6
14266 else $as_nop
14267 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14268 case `$LD -v 2>&1 </dev/null` in
14269 *GNU* | *'with BFD'*)
14270 lt_cv_prog_gnu_ld=yes
14271 ;;
14272 *)
14273 lt_cv_prog_gnu_ld=no
14274 ;;
14275 esac
14276 fi
14277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14278 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14279 with_gnu_ld=$lt_cv_prog_gnu_ld
14280
14281
14282
14283
14284
14285
14286
14287 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14288 # archiving commands below assume that GNU ld is being used.
14289 if test yes = "$with_gnu_ld"; then
14290 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14291 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'
14292
14293 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14294 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14295
14296 # If archive_cmds runs LD, not CC, wlarc should be empty
14297 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14298 # investigate it a little bit more. (MM)
14299 wlarc='$wl'
14300
14301 # ancient GNU ld didn't support --whole-archive et. al.
14302 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14303 $GREP 'no-whole-archive' > /dev/null; then
14304 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14305 else
14306 whole_archive_flag_spec_CXX=
14307 fi
14308 else
14309 with_gnu_ld=no
14310 wlarc=
14311
14312 # A generic and very simple default shared library creation
14313 # command for GNU C++ for the case where it uses the native
14314 # linker, instead of GNU ld. If possible, this setting should
14315 # overridden to take advantage of the native linker features on
14316 # the platform it is being used on.
14317 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14318 fi
14319
14320 # Commands to make compiler produce verbose output that lists
14321 # what "hidden" libraries, object files and flags are used when
14322 # linking a shared library.
14323 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14324
14325 else
14326 GXX=no
14327 with_gnu_ld=no
14328 wlarc=
14329 fi
14330
14331 # PORTME: fill in a description of your system's C++ link characteristics
14332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14333 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14334 ld_shlibs_CXX=yes
14335 case $host_os in
14336 aix3*)
14337 # FIXME: insert proper C++ library support
14338 ld_shlibs_CXX=no
14339 ;;
14340 aix[4-9]*)
14341 if test ia64 = "$host_cpu"; then
14342 # On IA64, the linker does run time linking by default, so we don't
14343 # have to do anything special.
14344 aix_use_runtimelinking=no
14345 exp_sym_flag='-Bexport'
14346 no_entry_flag=
14347 else
14348 aix_use_runtimelinking=no
14349
14350 # Test if we are trying to use run time linking or normal
14351 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14352 # have runtime linking enabled, and use it for executables.
14353 # For shared libraries, we enable/disable runtime linking
14354 # depending on the kind of the shared library created -
14355 # when "with_aix_soname,aix_use_runtimelinking" is:
14356 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14357 # "aix,yes" lib.so shared, rtl:yes, for executables
14358 # lib.a static archive
14359 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14360 # lib.a(lib.so.V) shared, rtl:no, for executables
14361 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14362 # lib.a(lib.so.V) shared, rtl:no
14363 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14364 # lib.a static archive
14365 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14366 for ld_flag in $LDFLAGS; do
14367 case $ld_flag in
14368 *-brtl*)
14369 aix_use_runtimelinking=yes
14370 break
14371 ;;
14372 esac
14373 done
14374 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14375 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14376 # so we don't have lib.a shared libs to link our executables.
14377 # We have to force runtime linking in this case.
14378 aix_use_runtimelinking=yes
14379 LDFLAGS="$LDFLAGS -Wl,-brtl"
14380 fi
14381 ;;
14382 esac
14383
14384 exp_sym_flag='-bexport'
14385 no_entry_flag='-bnoentry'
14386 fi
14387
14388 # When large executables or shared objects are built, AIX ld can
14389 # have problems creating the table of contents. If linking a library
14390 # or program results in "error TOC overflow" add -mminimal-toc to
14391 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14392 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14393
14394 archive_cmds_CXX=''
14395 hardcode_direct_CXX=yes
14396 hardcode_direct_absolute_CXX=yes
14397 hardcode_libdir_separator_CXX=':'
14398 link_all_deplibs_CXX=yes
14399 file_list_spec_CXX='$wl-f,'
14400 case $with_aix_soname,$aix_use_runtimelinking in
14401 aix,*) ;; # no import file
14402 svr4,* | *,yes) # use import file
14403 # The Import File defines what to hardcode.
14404 hardcode_direct_CXX=no
14405 hardcode_direct_absolute_CXX=no
14406 ;;
14407 esac
14408
14409 if test yes = "$GXX"; then
14410 case $host_os in aix4.[012]|aix4.[012].*)
14411 # We only want to do this on AIX 4.2 and lower, the check
14412 # below for broken collect2 doesn't work under 4.3+
14413 collect2name=`$CC -print-prog-name=collect2`
14414 if test -f "$collect2name" &&
14415 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14416 then
14417 # We have reworked collect2
14418 :
14419 else
14420 # We have old collect2
14421 hardcode_direct_CXX=unsupported
14422 # It fails to find uninstalled libraries when the uninstalled
14423 # path is not listed in the libpath. Setting hardcode_minus_L
14424 # to unsupported forces relinking
14425 hardcode_minus_L_CXX=yes
14426 hardcode_libdir_flag_spec_CXX='-L$libdir'
14427 hardcode_libdir_separator_CXX=
14428 fi
14429 esac
14430 shared_flag='-shared'
14431 if test yes = "$aix_use_runtimelinking"; then
14432 shared_flag=$shared_flag' $wl-G'
14433 fi
14434 # Need to ensure runtime linking is disabled for the traditional
14435 # shared library, or the linker may eventually find shared libraries
14436 # /with/ Import File - we do not want to mix them.
14437 shared_flag_aix='-shared'
14438 shared_flag_svr4='-shared $wl-G'
14439 else
14440 # not using gcc
14441 if test ia64 = "$host_cpu"; then
14442 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14443 # chokes on -Wl,-G. The following line is correct:
14444 shared_flag='-G'
14445 else
14446 if test yes = "$aix_use_runtimelinking"; then
14447 shared_flag='$wl-G'
14448 else
14449 shared_flag='$wl-bM:SRE'
14450 fi
14451 shared_flag_aix='$wl-bM:SRE'
14452 shared_flag_svr4='$wl-G'
14453 fi
14454 fi
14455
14456 export_dynamic_flag_spec_CXX='$wl-bexpall'
14457 # It seems that -bexpall does not export symbols beginning with
14458 # underscore (_), so it is better to generate a list of symbols to
14459 # export.
14460 always_export_symbols_CXX=yes
14461 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14462 # Warning - without using the other runtime loading flags (-brtl),
14463 # -berok will link without error, but may produce a broken library.
14464 # The "-G" linker flag allows undefined symbols.
14465 no_undefined_flag_CXX='-bernotok'
14466 # Determine the default libpath from the value encoded in an empty
14467 # executable.
14468 if test set = "${lt_cv_aix_libpath+set}"; then
14469 aix_libpath=$lt_cv_aix_libpath
14470 else
14471 if test ${lt_cv_aix_libpath__CXX+y}
14472 then :
14473 printf %s "(cached) " >&6
14474 else $as_nop
14475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476 /* end confdefs.h. */
14477
14478 int
14479 main (void)
14480 {
14481
14482 ;
14483 return 0;
14484 }
14485 _ACEOF
14486 if ac_fn_cxx_try_link "$LINENO"
14487 then :
14488
14489 lt_aix_libpath_sed='
14490 /Import File Strings/,/^$/ {
14491 /^0/ {
14492 s/^0 *\([^ ]*\) *$/\1/
14493 p
14494 }
14495 }'
14496 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14497 # Check for a 64-bit object if we didn't find anything.
14498 if test -z "$lt_cv_aix_libpath__CXX"; then
14499 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14500 fi
14501 fi
14502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14503 conftest$ac_exeext conftest.$ac_ext
14504 if test -z "$lt_cv_aix_libpath__CXX"; then
14505 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14506 fi
14507
14508 fi
14509
14510 aix_libpath=$lt_cv_aix_libpath__CXX
14511 fi
14512
14513 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14514
14515 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
14516 else
14517 if test ia64 = "$host_cpu"; then
14518 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14519 allow_undefined_flag_CXX="-z nodefs"
14520 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"
14521 else
14522 # Determine the default libpath from the value encoded in an
14523 # empty executable.
14524 if test set = "${lt_cv_aix_libpath+set}"; then
14525 aix_libpath=$lt_cv_aix_libpath
14526 else
14527 if test ${lt_cv_aix_libpath__CXX+y}
14528 then :
14529 printf %s "(cached) " >&6
14530 else $as_nop
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14533
14534 int
14535 main (void)
14536 {
14537
14538 ;
14539 return 0;
14540 }
14541 _ACEOF
14542 if ac_fn_cxx_try_link "$LINENO"
14543 then :
14544
14545 lt_aix_libpath_sed='
14546 /Import File Strings/,/^$/ {
14547 /^0/ {
14548 s/^0 *\([^ ]*\) *$/\1/
14549 p
14550 }
14551 }'
14552 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14553 # Check for a 64-bit object if we didn't find anything.
14554 if test -z "$lt_cv_aix_libpath__CXX"; then
14555 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14556 fi
14557 fi
14558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14559 conftest$ac_exeext conftest.$ac_ext
14560 if test -z "$lt_cv_aix_libpath__CXX"; then
14561 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14562 fi
14563
14564 fi
14565
14566 aix_libpath=$lt_cv_aix_libpath__CXX
14567 fi
14568
14569 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14570 # Warning - without using the other run time loading flags,
14571 # -berok will link without error, but may produce a broken library.
14572 no_undefined_flag_CXX=' $wl-bernotok'
14573 allow_undefined_flag_CXX=' $wl-berok'
14574 if test yes = "$with_gnu_ld"; then
14575 # We only use this code for GNU lds that support --whole-archive.
14576 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14577 else
14578 # Exported symbols can be pulled into shared objects from archives
14579 whole_archive_flag_spec_CXX='$convenience'
14580 fi
14581 archive_cmds_need_lc_CXX=yes
14582 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14583 # -brtl affects multiple linker settings, -berok does not and is overridden later
14584 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14585 if test svr4 != "$with_aix_soname"; then
14586 # This is similar to how AIX traditionally builds its shared
14587 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14588 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'
14589 fi
14590 if test aix != "$with_aix_soname"; then
14591 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'
14592 else
14593 # used by -dlpreopen to get the symbols
14594 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14595 fi
14596 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14597 fi
14598 fi
14599 ;;
14600
14601 beos*)
14602 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14603 allow_undefined_flag_CXX=unsupported
14604 # Joseph Beckenbach <[email protected]> says some releases of gcc
14605 # support --undefined. This deserves some investigation. FIXME
14606 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14607 else
14608 ld_shlibs_CXX=no
14609 fi
14610 ;;
14611
14612 chorus*)
14613 case $cc_basename in
14614 *)
14615 # FIXME: insert proper C++ library support
14616 ld_shlibs_CXX=no
14617 ;;
14618 esac
14619 ;;
14620
14621 cygwin* | mingw* | pw32* | cegcc*)
14622 case $GXX,$cc_basename in
14623 ,cl* | no,cl* | ,icl* | no,icl*)
14624 # Native MSVC or ICC
14625 # hardcode_libdir_flag_spec is actually meaningless, as there is
14626 # no search path for DLLs.
14627 hardcode_libdir_flag_spec_CXX=' '
14628 allow_undefined_flag_CXX=unsupported
14629 always_export_symbols_CXX=yes
14630 file_list_spec_CXX='@'
14631 # Tell ltmain to make .lib files, not .a files.
14632 libext=lib
14633 # Tell ltmain to make .dll files, not .so files.
14634 shrext_cmds=.dll
14635 # FIXME: Setting linknames here is a bad hack.
14636 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14637 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14638 cp "$export_symbols" "$output_objdir/$soname.def";
14639 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14640 else
14641 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14642 fi~
14643 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14644 linknames='
14645 # The linker will not automatically build a static lib if we build a DLL.
14646 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14647 enable_shared_with_static_runtimes_CXX=yes
14648 # Don't use ranlib
14649 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14650 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14651 lt_tool_outputfile="@TOOL_OUTPUT@"~
14652 case $lt_outputfile in
14653 *.exe|*.EXE) ;;
14654 *)
14655 lt_outputfile=$lt_outputfile.exe
14656 lt_tool_outputfile=$lt_tool_outputfile.exe
14657 ;;
14658 esac~
14659 func_to_tool_file "$lt_outputfile"~
14660 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14661 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14662 $RM "$lt_outputfile.manifest";
14663 fi'
14664 ;;
14665 *)
14666 # g++
14667 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14668 # as there is no search path for DLLs.
14669 hardcode_libdir_flag_spec_CXX='-L$libdir'
14670 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14671 allow_undefined_flag_CXX=unsupported
14672 always_export_symbols_CXX=no
14673 enable_shared_with_static_runtimes_CXX=yes
14674
14675 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14676 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'
14677 # If the export-symbols file already is a .def file, use it as
14678 # is; otherwise, prepend EXPORTS...
14679 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14680 cp $export_symbols $output_objdir/$soname.def;
14681 else
14682 echo EXPORTS > $output_objdir/$soname.def;
14683 cat $export_symbols >> $output_objdir/$soname.def;
14684 fi~
14685 $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'
14686 else
14687 ld_shlibs_CXX=no
14688 fi
14689 ;;
14690 esac
14691 ;;
14692 darwin* | rhapsody*)
14693
14694
14695 archive_cmds_need_lc_CXX=no
14696 hardcode_direct_CXX=no
14697 hardcode_automatic_CXX=yes
14698 hardcode_shlibpath_var_CXX=unsupported
14699 if test yes = "$lt_cv_ld_force_load"; then
14700 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\"`'
14701
14702 else
14703 whole_archive_flag_spec_CXX=''
14704 fi
14705 link_all_deplibs_CXX=yes
14706 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14707 case $cc_basename in
14708 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14709 *) _lt_dar_can_shared=$GCC ;;
14710 esac
14711 if test yes = "$_lt_dar_can_shared"; then
14712 output_verbose_link_cmd=func_echo_all
14713 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"
14714 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14715 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"
14716 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"
14717 if test yes != "$lt_cv_apple_cc_single_mod"; then
14718 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"
14719 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"
14720 fi
14721
14722 else
14723 ld_shlibs_CXX=no
14724 fi
14725
14726 ;;
14727
14728 os2*)
14729 hardcode_libdir_flag_spec_CXX='-L$libdir'
14730 hardcode_minus_L_CXX=yes
14731 allow_undefined_flag_CXX=unsupported
14732 shrext_cmds=.dll
14733 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14734 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14735 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14736 $ECHO EXPORTS >> $output_objdir/$libname.def~
14737 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14738 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14739 emximp -o $lib $output_objdir/$libname.def'
14740 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14741 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14742 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14743 $ECHO EXPORTS >> $output_objdir/$libname.def~
14744 prefix_cmds="$SED"~
14745 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14746 prefix_cmds="$prefix_cmds -e 1d";
14747 fi~
14748 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14749 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14750 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14751 emximp -o $lib $output_objdir/$libname.def'
14752 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14753 enable_shared_with_static_runtimes_CXX=yes
14754 file_list_spec_CXX='@'
14755 ;;
14756
14757 dgux*)
14758 case $cc_basename in
14759 ec++*)
14760 # FIXME: insert proper C++ library support
14761 ld_shlibs_CXX=no
14762 ;;
14763 ghcx*)
14764 # Green Hills C++ Compiler
14765 # FIXME: insert proper C++ library support
14766 ld_shlibs_CXX=no
14767 ;;
14768 *)
14769 # FIXME: insert proper C++ library support
14770 ld_shlibs_CXX=no
14771 ;;
14772 esac
14773 ;;
14774
14775 freebsd2.*)
14776 # C++ shared libraries reported to be fairly broken before
14777 # switch to ELF
14778 ld_shlibs_CXX=no
14779 ;;
14780
14781 freebsd-elf*)
14782 archive_cmds_need_lc_CXX=no
14783 ;;
14784
14785 freebsd* | dragonfly* | midnightbsd*)
14786 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14787 # conventions
14788 ld_shlibs_CXX=yes
14789 ;;
14790
14791 haiku*)
14792 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14793 link_all_deplibs_CXX=yes
14794 ;;
14795
14796 hpux9*)
14797 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14798 hardcode_libdir_separator_CXX=:
14799 export_dynamic_flag_spec_CXX='$wl-E'
14800 hardcode_direct_CXX=yes
14801 hardcode_minus_L_CXX=yes # Not in the search PATH,
14802 # but as the default
14803 # location of the library.
14804
14805 case $cc_basename in
14806 CC*)
14807 # FIXME: insert proper C++ library support
14808 ld_shlibs_CXX=no
14809 ;;
14810 aCC*)
14811 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'
14812 # Commands to make compiler produce verbose output that lists
14813 # what "hidden" libraries, object files and flags are used when
14814 # linking a shared library.
14815 #
14816 # There doesn't appear to be a way to prevent this compiler from
14817 # explicitly linking system object files so we need to strip them
14818 # from the output so that they don't get included in the library
14819 # dependencies.
14820 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"'
14821 ;;
14822 *)
14823 if test yes = "$GXX"; then
14824 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'
14825 else
14826 # FIXME: insert proper C++ library support
14827 ld_shlibs_CXX=no
14828 fi
14829 ;;
14830 esac
14831 ;;
14832
14833 hpux10*|hpux11*)
14834 if test no = "$with_gnu_ld"; then
14835 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14836 hardcode_libdir_separator_CXX=:
14837
14838 case $host_cpu in
14839 hppa*64*|ia64*)
14840 ;;
14841 *)
14842 export_dynamic_flag_spec_CXX='$wl-E'
14843 ;;
14844 esac
14845 fi
14846 case $host_cpu in
14847 hppa*64*|ia64*)
14848 hardcode_direct_CXX=no
14849 hardcode_shlibpath_var_CXX=no
14850 ;;
14851 *)
14852 hardcode_direct_CXX=yes
14853 hardcode_direct_absolute_CXX=yes
14854 hardcode_minus_L_CXX=yes # Not in the search PATH,
14855 # but as the default
14856 # location of the library.
14857 ;;
14858 esac
14859
14860 case $cc_basename in
14861 CC*)
14862 # FIXME: insert proper C++ library support
14863 ld_shlibs_CXX=no
14864 ;;
14865 aCC*)
14866 case $host_cpu in
14867 hppa*64*)
14868 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14869 ;;
14870 ia64*)
14871 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14872 ;;
14873 *)
14874 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14875 ;;
14876 esac
14877 # Commands to make compiler produce verbose output that lists
14878 # what "hidden" libraries, object files and flags are used when
14879 # linking a shared library.
14880 #
14881 # There doesn't appear to be a way to prevent this compiler from
14882 # explicitly linking system object files so we need to strip them
14883 # from the output so that they don't get included in the library
14884 # dependencies.
14885 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"'
14886 ;;
14887 *)
14888 if test yes = "$GXX"; then
14889 if test no = "$with_gnu_ld"; then
14890 case $host_cpu in
14891 hppa*64*)
14892 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14893 ;;
14894 ia64*)
14895 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14896 ;;
14897 *)
14898 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'
14899 ;;
14900 esac
14901 fi
14902 else
14903 # FIXME: insert proper C++ library support
14904 ld_shlibs_CXX=no
14905 fi
14906 ;;
14907 esac
14908 ;;
14909
14910 interix[3-9]*)
14911 hardcode_direct_CXX=no
14912 hardcode_shlibpath_var_CXX=no
14913 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14914 export_dynamic_flag_spec_CXX='$wl-E'
14915 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14916 # Instead, shared libraries are loaded at an image base (0x10000000 by
14917 # default) and relocated if they conflict, which is a slow very memory
14918 # consuming and fragmenting process. To avoid this, we pick a random,
14919 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14920 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14921 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'
14922 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'
14923 ;;
14924 irix5* | irix6*)
14925 case $cc_basename in
14926 CC*)
14927 # SGI C++
14928 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'
14929
14930 # Archives containing C++ object files must be created using
14931 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14932 # necessary to make sure instantiated templates are included
14933 # in the archive.
14934 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14935 ;;
14936 *)
14937 if test yes = "$GXX"; then
14938 if test no = "$with_gnu_ld"; then
14939 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'
14940 else
14941 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'
14942 fi
14943 fi
14944 link_all_deplibs_CXX=yes
14945 ;;
14946 esac
14947 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14948 hardcode_libdir_separator_CXX=:
14949 inherit_rpath_CXX=yes
14950 ;;
14951
14952 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14953 case $cc_basename in
14954 KCC*)
14955 # Kuck and Associates, Inc. (KAI) C++ Compiler
14956
14957 # KCC will only create a shared library if the output file
14958 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14959 # to its proper name (with version) after linking.
14960 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'
14961 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'
14962 # Commands to make compiler produce verbose output that lists
14963 # what "hidden" libraries, object files and flags are used when
14964 # linking a shared library.
14965 #
14966 # There doesn't appear to be a way to prevent this compiler from
14967 # explicitly linking system object files so we need to strip them
14968 # from the output so that they don't get included in the library
14969 # dependencies.
14970 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"'
14971
14972 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14973 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14974
14975 # Archives containing C++ object files must be created using
14976 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14977 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14978 ;;
14979 icpc* | ecpc* )
14980 # Intel C++
14981 with_gnu_ld=yes
14982 # version 8.0 and above of icpc choke on multiply defined symbols
14983 # if we add $predep_objects and $postdep_objects, however 7.1 and
14984 # earlier do not add the objects themselves.
14985 case `$CC -V 2>&1` in
14986 *"Version 7."*)
14987 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14988 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'
14989 ;;
14990 *) # Version 8.0 or newer
14991 tmp_idyn=
14992 case $host_cpu in
14993 ia64*) tmp_idyn=' -i_dynamic';;
14994 esac
14995 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14996 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'
14997 ;;
14998 esac
14999 archive_cmds_need_lc_CXX=no
15000 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15001 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15002 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15003 ;;
15004 pgCC* | pgcpp*)
15005 # Portland Group C++ compiler
15006 case `$CC -V` in
15007 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15008 prelink_cmds_CXX='tpldir=Template.dir~
15009 rm -rf $tpldir~
15010 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15011 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15012 old_archive_cmds_CXX='tpldir=Template.dir~
15013 rm -rf $tpldir~
15014 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15015 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15016 $RANLIB $oldlib'
15017 archive_cmds_CXX='tpldir=Template.dir~
15018 rm -rf $tpldir~
15019 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15020 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15021 archive_expsym_cmds_CXX='tpldir=Template.dir~
15022 rm -rf $tpldir~
15023 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15024 $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'
15025 ;;
15026 *) # Version 6 and above use weak symbols
15027 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15028 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'
15029 ;;
15030 esac
15031
15032 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15033 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15034 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'
15035 ;;
15036 cxx*)
15037 # Compaq C++
15038 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15039 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'
15040
15041 runpath_var=LD_RUN_PATH
15042 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15043 hardcode_libdir_separator_CXX=:
15044
15045 # Commands to make compiler produce verbose output that lists
15046 # what "hidden" libraries, object files and flags are used when
15047 # linking a shared library.
15048 #
15049 # There doesn't appear to be a way to prevent this compiler from
15050 # explicitly linking system object files so we need to strip them
15051 # from the output so that they don't get included in the library
15052 # dependencies.
15053 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'
15054 ;;
15055 xl* | mpixl* | bgxl*)
15056 # IBM XL 8.0 on PPC, with GNU ld
15057 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15058 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15059 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15060 if test yes = "$supports_anon_versioning"; then
15061 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15062 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15063 echo "local: *; };" >> $output_objdir/$libname.ver~
15064 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15065 fi
15066 ;;
15067 *)
15068 case `$CC -V 2>&1 | $SED 5q` in
15069 *Sun\ C*)
15070 # Sun C++ 5.9
15071 no_undefined_flag_CXX=' -zdefs'
15072 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15073 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'
15074 hardcode_libdir_flag_spec_CXX='-R$libdir'
15075 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'
15076 compiler_needs_object_CXX=yes
15077
15078 # Not sure whether something based on
15079 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15080 # would be better.
15081 output_verbose_link_cmd='func_echo_all'
15082
15083 # Archives containing C++ object files must be created using
15084 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15085 # necessary to make sure instantiated templates are included
15086 # in the archive.
15087 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15088 ;;
15089 esac
15090 ;;
15091 esac
15092 ;;
15093
15094 lynxos*)
15095 # FIXME: insert proper C++ library support
15096 ld_shlibs_CXX=no
15097 ;;
15098
15099 m88k*)
15100 # FIXME: insert proper C++ library support
15101 ld_shlibs_CXX=no
15102 ;;
15103
15104 mvs*)
15105 case $cc_basename in
15106 cxx*)
15107 # FIXME: insert proper C++ library support
15108 ld_shlibs_CXX=no
15109 ;;
15110 *)
15111 # FIXME: insert proper C++ library support
15112 ld_shlibs_CXX=no
15113 ;;
15114 esac
15115 ;;
15116
15117 netbsd*)
15118 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15119 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15120 wlarc=
15121 hardcode_libdir_flag_spec_CXX='-R$libdir'
15122 hardcode_direct_CXX=yes
15123 hardcode_shlibpath_var_CXX=no
15124 fi
15125 # Workaround some broken pre-1.5 toolchains
15126 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15127 ;;
15128
15129 *nto* | *qnx*)
15130 ld_shlibs_CXX=yes
15131 ;;
15132
15133 openbsd* | bitrig*)
15134 if test -f /usr/libexec/ld.so; then
15135 hardcode_direct_CXX=yes
15136 hardcode_shlibpath_var_CXX=no
15137 hardcode_direct_absolute_CXX=yes
15138 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15139 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15141 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15142 export_dynamic_flag_spec_CXX='$wl-E'
15143 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15144 fi
15145 output_verbose_link_cmd=func_echo_all
15146 else
15147 ld_shlibs_CXX=no
15148 fi
15149 ;;
15150
15151 osf3* | osf4* | osf5*)
15152 case $cc_basename in
15153 KCC*)
15154 # Kuck and Associates, Inc. (KAI) C++ Compiler
15155
15156 # KCC will only create a shared library if the output file
15157 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15158 # to its proper name (with version) after linking.
15159 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'
15160
15161 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15162 hardcode_libdir_separator_CXX=:
15163
15164 # Archives containing C++ object files must be created using
15165 # the KAI C++ compiler.
15166 case $host in
15167 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15168 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15169 esac
15170 ;;
15171 RCC*)
15172 # Rational C++ 2.4.1
15173 # FIXME: insert proper C++ library support
15174 ld_shlibs_CXX=no
15175 ;;
15176 cxx*)
15177 case $host in
15178 osf3*)
15179 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15180 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'
15181 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15182 ;;
15183 *)
15184 allow_undefined_flag_CXX=' -expect_unresolved \*'
15185 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'
15186 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15187 echo "-hidden">> $lib.exp~
15188 $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~
15189 $RM $lib.exp'
15190 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15191 ;;
15192 esac
15193
15194 hardcode_libdir_separator_CXX=:
15195
15196 # Commands to make compiler produce verbose output that lists
15197 # what "hidden" libraries, object files and flags are used when
15198 # linking a shared library.
15199 #
15200 # There doesn't appear to be a way to prevent this compiler from
15201 # explicitly linking system object files so we need to strip them
15202 # from the output so that they don't get included in the library
15203 # dependencies.
15204 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"'
15205 ;;
15206 *)
15207 if test yes,no = "$GXX,$with_gnu_ld"; then
15208 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15209 case $host in
15210 osf3*)
15211 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'
15212 ;;
15213 *)
15214 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'
15215 ;;
15216 esac
15217
15218 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15219 hardcode_libdir_separator_CXX=:
15220
15221 # Commands to make compiler produce verbose output that lists
15222 # what "hidden" libraries, object files and flags are used when
15223 # linking a shared library.
15224 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15225
15226 else
15227 # FIXME: insert proper C++ library support
15228 ld_shlibs_CXX=no
15229 fi
15230 ;;
15231 esac
15232 ;;
15233
15234 psos*)
15235 # FIXME: insert proper C++ library support
15236 ld_shlibs_CXX=no
15237 ;;
15238
15239 sunos4*)
15240 case $cc_basename in
15241 CC*)
15242 # Sun C++ 4.x
15243 # FIXME: insert proper C++ library support
15244 ld_shlibs_CXX=no
15245 ;;
15246 lcc*)
15247 # Lucid
15248 # FIXME: insert proper C++ library support
15249 ld_shlibs_CXX=no
15250 ;;
15251 *)
15252 # FIXME: insert proper C++ library support
15253 ld_shlibs_CXX=no
15254 ;;
15255 esac
15256 ;;
15257
15258 solaris*)
15259 case $cc_basename in
15260 CC* | sunCC*)
15261 # Sun C++ 4.2, 5.x and Centerline C++
15262 archive_cmds_need_lc_CXX=yes
15263 no_undefined_flag_CXX=' -zdefs'
15264 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15265 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15266 $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'
15267
15268 hardcode_libdir_flag_spec_CXX='-R$libdir'
15269 hardcode_shlibpath_var_CXX=no
15270 case $host_os in
15271 solaris2.[0-5] | solaris2.[0-5].*) ;;
15272 *)
15273 # The compiler driver will combine and reorder linker options,
15274 # but understands '-z linker_flag'.
15275 # Supported since Solaris 2.6 (maybe 2.5.1?)
15276 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15277 ;;
15278 esac
15279 link_all_deplibs_CXX=yes
15280
15281 output_verbose_link_cmd='func_echo_all'
15282
15283 # Archives containing C++ object files must be created using
15284 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15285 # necessary to make sure instantiated templates are included
15286 # in the archive.
15287 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15288 ;;
15289 gcx*)
15290 # Green Hills C++ Compiler
15291 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15292
15293 # The C++ compiler must be used to create the archive.
15294 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15295 ;;
15296 *)
15297 # GNU C++ compiler with Solaris linker
15298 if test yes,no = "$GXX,$with_gnu_ld"; then
15299 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15300 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15301 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15302 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15303 $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'
15304
15305 # Commands to make compiler produce verbose output that lists
15306 # what "hidden" libraries, object files and flags are used when
15307 # linking a shared library.
15308 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15309 else
15310 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15311 # platform.
15312 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15313 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15314 $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'
15315
15316 # Commands to make compiler produce verbose output that lists
15317 # what "hidden" libraries, object files and flags are used when
15318 # linking a shared library.
15319 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15320 fi
15321
15322 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15323 case $host_os in
15324 solaris2.[0-5] | solaris2.[0-5].*) ;;
15325 *)
15326 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15327 ;;
15328 esac
15329 fi
15330 ;;
15331 esac
15332 ;;
15333
15334 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15335 no_undefined_flag_CXX='$wl-z,text'
15336 archive_cmds_need_lc_CXX=no
15337 hardcode_shlibpath_var_CXX=no
15338 runpath_var='LD_RUN_PATH'
15339
15340 case $cc_basename in
15341 CC*)
15342 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15343 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15344 ;;
15345 *)
15346 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15347 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15348 ;;
15349 esac
15350 ;;
15351
15352 sysv5* | sco3.2v5* | sco5v6*)
15353 # Note: We CANNOT use -z defs as we might desire, because we do not
15354 # link with -lc, and that would cause any symbols used from libc to
15355 # always be unresolved, which means just about no library would
15356 # ever link correctly. If we're not using GNU ld we use -z text
15357 # though, which does catch some bad symbols but isn't as heavy-handed
15358 # as -z defs.
15359 no_undefined_flag_CXX='$wl-z,text'
15360 allow_undefined_flag_CXX='$wl-z,nodefs'
15361 archive_cmds_need_lc_CXX=no
15362 hardcode_shlibpath_var_CXX=no
15363 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15364 hardcode_libdir_separator_CXX=':'
15365 link_all_deplibs_CXX=yes
15366 export_dynamic_flag_spec_CXX='$wl-Bexport'
15367 runpath_var='LD_RUN_PATH'
15368
15369 case $cc_basename in
15370 CC*)
15371 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15372 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15373 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15374 '"$old_archive_cmds_CXX"
15375 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15376 '"$reload_cmds_CXX"
15377 ;;
15378 *)
15379 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15380 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15381 ;;
15382 esac
15383 ;;
15384
15385 tandem*)
15386 case $cc_basename in
15387 NCC*)
15388 # NonStop-UX NCC 3.20
15389 # FIXME: insert proper C++ library support
15390 ld_shlibs_CXX=no
15391 ;;
15392 *)
15393 # FIXME: insert proper C++ library support
15394 ld_shlibs_CXX=no
15395 ;;
15396 esac
15397 ;;
15398
15399 vxworks*)
15400 # FIXME: insert proper C++ library support
15401 ld_shlibs_CXX=no
15402 ;;
15403
15404 *)
15405 # FIXME: insert proper C++ library support
15406 ld_shlibs_CXX=no
15407 ;;
15408 esac
15409
15410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15411 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15412 test no = "$ld_shlibs_CXX" && can_build_shared=no
15413
15414 GCC_CXX=$GXX
15415 LD_CXX=$LD
15416
15417 ## CAVEAT EMPTOR:
15418 ## There is no encapsulation within the following macros, do not change
15419 ## the running order or otherwise move them around unless you know exactly
15420 ## what you are doing...
15421 # Dependencies to place before and after the object being linked:
15422 predep_objects_CXX=
15423 postdep_objects_CXX=
15424 predeps_CXX=
15425 postdeps_CXX=
15426 compiler_lib_search_path_CXX=
15427
15428 cat > conftest.$ac_ext <<_LT_EOF
15429 class Foo
15430 {
15431 public:
15432 Foo (void) { a = 0; }
15433 private:
15434 int a;
15435 };
15436 _LT_EOF
15437
15438
15439 _lt_libdeps_save_CFLAGS=$CFLAGS
15440 case "$CC $CFLAGS " in #(
15441 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15442 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15443 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15444 esac
15445
15446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15447 (eval $ac_compile) 2>&5
15448 ac_status=$?
15449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15450 test $ac_status = 0; }; then
15451 # Parse the compiler output and extract the necessary
15452 # objects, libraries and library flags.
15453
15454 # Sentinel used to keep track of whether or not we are before
15455 # the conftest object file.
15456 pre_test_object_deps_done=no
15457
15458 for p in `eval "$output_verbose_link_cmd"`; do
15459 case $prev$p in
15460
15461 -L* | -R* | -l*)
15462 # Some compilers place space between "-{L,R}" and the path.
15463 # Remove the space.
15464 if test x-L = "$p" ||
15465 test x-R = "$p"; then
15466 prev=$p
15467 continue
15468 fi
15469
15470 # Expand the sysroot to ease extracting the directories later.
15471 if test -z "$prev"; then
15472 case $p in
15473 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15474 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15475 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15476 esac
15477 fi
15478 case $p in
15479 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15480 esac
15481 if test no = "$pre_test_object_deps_done"; then
15482 case $prev in
15483 -L | -R)
15484 # Internal compiler library paths should come after those
15485 # provided the user. The postdeps already come after the
15486 # user supplied libs so there is no need to process them.
15487 if test -z "$compiler_lib_search_path_CXX"; then
15488 compiler_lib_search_path_CXX=$prev$p
15489 else
15490 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15491 fi
15492 ;;
15493 # The "-l" case would never come before the object being
15494 # linked, so don't bother handling this case.
15495 esac
15496 else
15497 if test -z "$postdeps_CXX"; then
15498 postdeps_CXX=$prev$p
15499 else
15500 postdeps_CXX="${postdeps_CXX} $prev$p"
15501 fi
15502 fi
15503 prev=
15504 ;;
15505
15506 *.lto.$objext) ;; # Ignore GCC LTO objects
15507 *.$objext)
15508 # This assumes that the test object file only shows up
15509 # once in the compiler output.
15510 if test "$p" = "conftest.$objext"; then
15511 pre_test_object_deps_done=yes
15512 continue
15513 fi
15514
15515 if test no = "$pre_test_object_deps_done"; then
15516 if test -z "$predep_objects_CXX"; then
15517 predep_objects_CXX=$p
15518 else
15519 predep_objects_CXX="$predep_objects_CXX $p"
15520 fi
15521 else
15522 if test -z "$postdep_objects_CXX"; then
15523 postdep_objects_CXX=$p
15524 else
15525 postdep_objects_CXX="$postdep_objects_CXX $p"
15526 fi
15527 fi
15528 ;;
15529
15530 *) ;; # Ignore the rest.
15531
15532 esac
15533 done
15534
15535 # Clean up.
15536 rm -f a.out a.exe
15537 else
15538 echo "libtool.m4: error: problem compiling CXX test program"
15539 fi
15540
15541 $RM -f confest.$objext
15542 CFLAGS=$_lt_libdeps_save_CFLAGS
15543
15544 # PORTME: override above test on systems where it is broken
15545 case $host_os in
15546 interix[3-9]*)
15547 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15548 # hack all around it, let's just trust "g++" to DTRT.
15549 predep_objects_CXX=
15550 postdep_objects_CXX=
15551 postdeps_CXX=
15552 ;;
15553 esac
15554
15555
15556 case " $postdeps_CXX " in
15557 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15558 esac
15559 compiler_lib_search_dirs_CXX=
15560 if test -n "${compiler_lib_search_path_CXX}"; then
15561 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15562 fi
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594 lt_prog_compiler_wl_CXX=
15595 lt_prog_compiler_pic_CXX=
15596 lt_prog_compiler_static_CXX=
15597
15598
15599 # C++ specific cases for pic, static, wl, etc.
15600 if test yes = "$GXX"; then
15601 lt_prog_compiler_wl_CXX='-Wl,'
15602 lt_prog_compiler_static_CXX='-static'
15603
15604 case $host_os in
15605 aix*)
15606 # All AIX code is PIC.
15607 if test ia64 = "$host_cpu"; then
15608 # AIX 5 now supports IA64 processor
15609 lt_prog_compiler_static_CXX='-Bstatic'
15610 fi
15611 lt_prog_compiler_pic_CXX='-fPIC'
15612 ;;
15613
15614 amigaos*)
15615 case $host_cpu in
15616 powerpc)
15617 # see comment about AmigaOS4 .so support
15618 lt_prog_compiler_pic_CXX='-fPIC'
15619 ;;
15620 m68k)
15621 # FIXME: we need at least 68020 code to build shared libraries, but
15622 # adding the '-m68020' flag to GCC prevents building anything better,
15623 # like '-m68040'.
15624 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15625 ;;
15626 esac
15627 ;;
15628
15629 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15630 # PIC is the default for these OSes.
15631 ;;
15632 mingw* | cygwin* | os2* | pw32* | cegcc*)
15633 # This hack is so that the source file can tell whether it is being
15634 # built for inclusion in a dll (and should export symbols for example).
15635 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15636 # (--disable-auto-import) libraries
15637 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15638 case $host_os in
15639 os2*)
15640 lt_prog_compiler_static_CXX='$wl-static'
15641 ;;
15642 esac
15643 ;;
15644 darwin* | rhapsody*)
15645 # PIC is the default on this platform
15646 # Common symbols not allowed in MH_DYLIB files
15647 lt_prog_compiler_pic_CXX='-fno-common'
15648 ;;
15649 *djgpp*)
15650 # DJGPP does not support shared libraries at all
15651 lt_prog_compiler_pic_CXX=
15652 ;;
15653 haiku*)
15654 # PIC is the default for Haiku.
15655 # The "-static" flag exists, but is broken.
15656 lt_prog_compiler_static_CXX=
15657 ;;
15658 interix[3-9]*)
15659 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15660 # Instead, we relocate shared libraries at runtime.
15661 ;;
15662 sysv4*MP*)
15663 if test -d /usr/nec; then
15664 lt_prog_compiler_pic_CXX=-Kconform_pic
15665 fi
15666 ;;
15667 hpux*)
15668 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15669 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15670 # sets the default TLS model and affects inlining.
15671 case $host_cpu in
15672 hppa*64*)
15673 ;;
15674 *)
15675 lt_prog_compiler_pic_CXX='-fPIC'
15676 ;;
15677 esac
15678 ;;
15679 *qnx* | *nto*)
15680 # QNX uses GNU C++, but need to define -shared option too, otherwise
15681 # it will coredump.
15682 lt_prog_compiler_pic_CXX='-fPIC -shared'
15683 ;;
15684 *)
15685 lt_prog_compiler_pic_CXX='-fPIC'
15686 ;;
15687 esac
15688 else
15689 case $host_os in
15690 aix[4-9]*)
15691 # All AIX code is PIC.
15692 if test ia64 = "$host_cpu"; then
15693 # AIX 5 now supports IA64 processor
15694 lt_prog_compiler_static_CXX='-Bstatic'
15695 else
15696 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15697 fi
15698 ;;
15699 chorus*)
15700 case $cc_basename in
15701 cxch68*)
15702 # Green Hills C++ Compiler
15703 # _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"
15704 ;;
15705 esac
15706 ;;
15707 mingw* | cygwin* | os2* | pw32* | cegcc*)
15708 # This hack is so that the source file can tell whether it is being
15709 # built for inclusion in a dll (and should export symbols for example).
15710 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15711 ;;
15712 dgux*)
15713 case $cc_basename in
15714 ec++*)
15715 lt_prog_compiler_pic_CXX='-KPIC'
15716 ;;
15717 ghcx*)
15718 # Green Hills C++ Compiler
15719 lt_prog_compiler_pic_CXX='-pic'
15720 ;;
15721 *)
15722 ;;
15723 esac
15724 ;;
15725 freebsd* | dragonfly* | midnightbsd*)
15726 # FreeBSD uses GNU C++
15727 ;;
15728 hpux9* | hpux10* | hpux11*)
15729 case $cc_basename in
15730 CC*)
15731 lt_prog_compiler_wl_CXX='-Wl,'
15732 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15733 if test ia64 != "$host_cpu"; then
15734 lt_prog_compiler_pic_CXX='+Z'
15735 fi
15736 ;;
15737 aCC*)
15738 lt_prog_compiler_wl_CXX='-Wl,'
15739 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15740 case $host_cpu in
15741 hppa*64*|ia64*)
15742 # +Z the default
15743 ;;
15744 *)
15745 lt_prog_compiler_pic_CXX='+Z'
15746 ;;
15747 esac
15748 ;;
15749 *)
15750 ;;
15751 esac
15752 ;;
15753 interix*)
15754 # This is c89, which is MS Visual C++ (no shared libs)
15755 # Anyone wants to do a port?
15756 ;;
15757 irix5* | irix6* | nonstopux*)
15758 case $cc_basename in
15759 CC*)
15760 lt_prog_compiler_wl_CXX='-Wl,'
15761 lt_prog_compiler_static_CXX='-non_shared'
15762 # CC pic flag -KPIC is the default.
15763 ;;
15764 *)
15765 ;;
15766 esac
15767 ;;
15768 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15769 case $cc_basename in
15770 KCC*)
15771 # KAI C++ Compiler
15772 lt_prog_compiler_wl_CXX='--backend -Wl,'
15773 lt_prog_compiler_pic_CXX='-fPIC'
15774 ;;
15775 ecpc* )
15776 # old Intel C++ for x86_64, which still supported -KPIC.
15777 lt_prog_compiler_wl_CXX='-Wl,'
15778 lt_prog_compiler_pic_CXX='-KPIC'
15779 lt_prog_compiler_static_CXX='-static'
15780 ;;
15781 icpc* )
15782 # Intel C++, used to be incompatible with GCC.
15783 # ICC 10 doesn't accept -KPIC any more.
15784 lt_prog_compiler_wl_CXX='-Wl,'
15785 lt_prog_compiler_pic_CXX='-fPIC'
15786 lt_prog_compiler_static_CXX='-static'
15787 ;;
15788 pgCC* | pgcpp*)
15789 # Portland Group C++ compiler
15790 lt_prog_compiler_wl_CXX='-Wl,'
15791 lt_prog_compiler_pic_CXX='-fpic'
15792 lt_prog_compiler_static_CXX='-Bstatic'
15793 ;;
15794 cxx*)
15795 # Compaq C++
15796 # Make sure the PIC flag is empty. It appears that all Alpha
15797 # Linux and Compaq Tru64 Unix objects are PIC.
15798 lt_prog_compiler_pic_CXX=
15799 lt_prog_compiler_static_CXX='-non_shared'
15800 ;;
15801 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15802 # IBM XL 8.0, 9.0 on PPC and BlueGene
15803 lt_prog_compiler_wl_CXX='-Wl,'
15804 lt_prog_compiler_pic_CXX='-qpic'
15805 lt_prog_compiler_static_CXX='-qstaticlink'
15806 ;;
15807 *)
15808 case `$CC -V 2>&1 | $SED 5q` in
15809 *Sun\ C*)
15810 # Sun C++ 5.9
15811 lt_prog_compiler_pic_CXX='-KPIC'
15812 lt_prog_compiler_static_CXX='-Bstatic'
15813 lt_prog_compiler_wl_CXX='-Qoption ld '
15814 ;;
15815 esac
15816 ;;
15817 esac
15818 ;;
15819 lynxos*)
15820 ;;
15821 m88k*)
15822 ;;
15823 mvs*)
15824 case $cc_basename in
15825 cxx*)
15826 lt_prog_compiler_pic_CXX='-W c,exportall'
15827 ;;
15828 *)
15829 ;;
15830 esac
15831 ;;
15832 netbsd* | netbsdelf*-gnu)
15833 ;;
15834 *qnx* | *nto*)
15835 # QNX uses GNU C++, but need to define -shared option too, otherwise
15836 # it will coredump.
15837 lt_prog_compiler_pic_CXX='-fPIC -shared'
15838 ;;
15839 osf3* | osf4* | osf5*)
15840 case $cc_basename in
15841 KCC*)
15842 lt_prog_compiler_wl_CXX='--backend -Wl,'
15843 ;;
15844 RCC*)
15845 # Rational C++ 2.4.1
15846 lt_prog_compiler_pic_CXX='-pic'
15847 ;;
15848 cxx*)
15849 # Digital/Compaq C++
15850 lt_prog_compiler_wl_CXX='-Wl,'
15851 # Make sure the PIC flag is empty. It appears that all Alpha
15852 # Linux and Compaq Tru64 Unix objects are PIC.
15853 lt_prog_compiler_pic_CXX=
15854 lt_prog_compiler_static_CXX='-non_shared'
15855 ;;
15856 *)
15857 ;;
15858 esac
15859 ;;
15860 psos*)
15861 ;;
15862 solaris*)
15863 case $cc_basename in
15864 CC* | sunCC*)
15865 # Sun C++ 4.2, 5.x and Centerline C++
15866 lt_prog_compiler_pic_CXX='-KPIC'
15867 lt_prog_compiler_static_CXX='-Bstatic'
15868 lt_prog_compiler_wl_CXX='-Qoption ld '
15869 ;;
15870 gcx*)
15871 # Green Hills C++ Compiler
15872 lt_prog_compiler_pic_CXX='-PIC'
15873 ;;
15874 *)
15875 ;;
15876 esac
15877 ;;
15878 sunos4*)
15879 case $cc_basename in
15880 CC*)
15881 # Sun C++ 4.x
15882 lt_prog_compiler_pic_CXX='-pic'
15883 lt_prog_compiler_static_CXX='-Bstatic'
15884 ;;
15885 lcc*)
15886 # Lucid
15887 lt_prog_compiler_pic_CXX='-pic'
15888 ;;
15889 *)
15890 ;;
15891 esac
15892 ;;
15893 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15894 case $cc_basename in
15895 CC*)
15896 lt_prog_compiler_wl_CXX='-Wl,'
15897 lt_prog_compiler_pic_CXX='-KPIC'
15898 lt_prog_compiler_static_CXX='-Bstatic'
15899 ;;
15900 esac
15901 ;;
15902 tandem*)
15903 case $cc_basename in
15904 NCC*)
15905 # NonStop-UX NCC 3.20
15906 lt_prog_compiler_pic_CXX='-KPIC'
15907 ;;
15908 *)
15909 ;;
15910 esac
15911 ;;
15912 vxworks*)
15913 ;;
15914 *)
15915 lt_prog_compiler_can_build_shared_CXX=no
15916 ;;
15917 esac
15918 fi
15919
15920 case $host_os in
15921 # For platforms that do not support PIC, -DPIC is meaningless:
15922 *djgpp*)
15923 lt_prog_compiler_pic_CXX=
15924 ;;
15925 *)
15926 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15927 ;;
15928 esac
15929
15930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15931 printf %s "checking for $compiler option to produce PIC... " >&6; }
15932 if test ${lt_cv_prog_compiler_pic_CXX+y}
15933 then :
15934 printf %s "(cached) " >&6
15935 else $as_nop
15936 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15937 fi
15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15939 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15940 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15941
15942 #
15943 # Check to make sure the PIC flag actually works.
15944 #
15945 if test -n "$lt_prog_compiler_pic_CXX"; then
15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15947 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15948 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15949 then :
15950 printf %s "(cached) " >&6
15951 else $as_nop
15952 lt_cv_prog_compiler_pic_works_CXX=no
15953 ac_outfile=conftest.$ac_objext
15954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15955 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15956 # Insert the option either (1) after the last *FLAGS variable, or
15957 # (2) before a word containing "conftest.", or (3) at the end.
15958 # Note that $ac_compile itself does not contain backslashes and begins
15959 # with a dollar sign (not a hyphen), so the echo should work correctly.
15960 # The option is referenced via a variable to avoid confusing sed.
15961 lt_compile=`echo "$ac_compile" | $SED \
15962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15964 -e 's:$: $lt_compiler_flag:'`
15965 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15966 (eval "$lt_compile" 2>conftest.err)
15967 ac_status=$?
15968 cat conftest.err >&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 if (exit $ac_status) && test -s "$ac_outfile"; then
15971 # The compiler can only warn and ignore the option if not recognized
15972 # So say no if there are warnings other than the usual output.
15973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15976 lt_cv_prog_compiler_pic_works_CXX=yes
15977 fi
15978 fi
15979 $RM conftest*
15980
15981 fi
15982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15983 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15984
15985 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15986 case $lt_prog_compiler_pic_CXX in
15987 "" | " "*) ;;
15988 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15989 esac
15990 else
15991 lt_prog_compiler_pic_CXX=
15992 lt_prog_compiler_can_build_shared_CXX=no
15993 fi
15994
15995 fi
15996
15997
15998
15999
16000
16001 #
16002 # Check to make sure the static flag actually works.
16003 #
16004 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16006 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16007 if test ${lt_cv_prog_compiler_static_works_CXX+y}
16008 then :
16009 printf %s "(cached) " >&6
16010 else $as_nop
16011 lt_cv_prog_compiler_static_works_CXX=no
16012 save_LDFLAGS=$LDFLAGS
16013 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16014 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16015 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16016 # The linker can only warn and ignore the option if not recognized
16017 # So say no if there are warnings
16018 if test -s conftest.err; then
16019 # Append any errors to the config.log.
16020 cat conftest.err 1>&5
16021 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16023 if diff conftest.exp conftest.er2 >/dev/null; then
16024 lt_cv_prog_compiler_static_works_CXX=yes
16025 fi
16026 else
16027 lt_cv_prog_compiler_static_works_CXX=yes
16028 fi
16029 fi
16030 $RM -r conftest*
16031 LDFLAGS=$save_LDFLAGS
16032
16033 fi
16034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16035 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16036
16037 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16038 :
16039 else
16040 lt_prog_compiler_static_CXX=
16041 fi
16042
16043
16044
16045
16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16047 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16048 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16049 then :
16050 printf %s "(cached) " >&6
16051 else $as_nop
16052 lt_cv_prog_compiler_c_o_CXX=no
16053 $RM -r conftest 2>/dev/null
16054 mkdir conftest
16055 cd conftest
16056 mkdir out
16057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16058
16059 lt_compiler_flag="-o out/conftest2.$ac_objext"
16060 # Insert the option either (1) after the last *FLAGS variable, or
16061 # (2) before a word containing "conftest.", or (3) at the end.
16062 # Note that $ac_compile itself does not contain backslashes and begins
16063 # with a dollar sign (not a hyphen), so the echo should work correctly.
16064 lt_compile=`echo "$ac_compile" | $SED \
16065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16067 -e 's:$: $lt_compiler_flag:'`
16068 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16069 (eval "$lt_compile" 2>out/conftest.err)
16070 ac_status=$?
16071 cat out/conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16074 then
16075 # The compiler can only warn and ignore the option if not recognized
16076 # So say no if there are warnings
16077 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16078 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16079 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16080 lt_cv_prog_compiler_c_o_CXX=yes
16081 fi
16082 fi
16083 chmod u+w . 2>&5
16084 $RM conftest*
16085 # SGI C++ compiler will create directory out/ii_files/ for
16086 # template instantiation
16087 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16088 $RM out/* && rmdir out
16089 cd ..
16090 $RM -r conftest
16091 $RM conftest*
16092
16093 fi
16094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16095 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16096
16097
16098
16099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16100 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16101 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16102 then :
16103 printf %s "(cached) " >&6
16104 else $as_nop
16105 lt_cv_prog_compiler_c_o_CXX=no
16106 $RM -r conftest 2>/dev/null
16107 mkdir conftest
16108 cd conftest
16109 mkdir out
16110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16111
16112 lt_compiler_flag="-o out/conftest2.$ac_objext"
16113 # Insert the option either (1) after the last *FLAGS variable, or
16114 # (2) before a word containing "conftest.", or (3) at the end.
16115 # Note that $ac_compile itself does not contain backslashes and begins
16116 # with a dollar sign (not a hyphen), so the echo should work correctly.
16117 lt_compile=`echo "$ac_compile" | $SED \
16118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16120 -e 's:$: $lt_compiler_flag:'`
16121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16122 (eval "$lt_compile" 2>out/conftest.err)
16123 ac_status=$?
16124 cat out/conftest.err >&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16127 then
16128 # The compiler can only warn and ignore the option if not recognized
16129 # So say no if there are warnings
16130 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16131 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16132 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16133 lt_cv_prog_compiler_c_o_CXX=yes
16134 fi
16135 fi
16136 chmod u+w . 2>&5
16137 $RM conftest*
16138 # SGI C++ compiler will create directory out/ii_files/ for
16139 # template instantiation
16140 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16141 $RM out/* && rmdir out
16142 cd ..
16143 $RM -r conftest
16144 $RM conftest*
16145
16146 fi
16147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16148 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16149
16150
16151
16152
16153 hard_links=nottested
16154 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16155 # do not overwrite the value of need_locks provided by the user
16156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16157 printf %s "checking if we can lock with hard links... " >&6; }
16158 hard_links=yes
16159 $RM conftest*
16160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16161 touch conftest.a
16162 ln conftest.a conftest.b 2>&5 || hard_links=no
16163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16165 printf "%s\n" "$hard_links" >&6; }
16166 if test no = "$hard_links"; then
16167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16168 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16169 need_locks=warn
16170 fi
16171 else
16172 need_locks=no
16173 fi
16174
16175
16176
16177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16178 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16179
16180 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16181 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16182 case $host_os in
16183 aix[4-9]*)
16184 # If we're using GNU nm, then we don't want the "-C" option.
16185 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16186 # Without the "-l" option, or with the "-B" option, AIX nm treats
16187 # weak defined symbols like other global defined symbols, whereas
16188 # GNU nm marks them as "W".
16189 # While the 'weak' keyword is ignored in the Export File, we need
16190 # it in the Import File for the 'aix-soname' feature, so we have
16191 # to replace the "-B" option with "-P" for AIX nm.
16192 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16193 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'
16194 else
16195 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16196 fi
16197 ;;
16198 pw32*)
16199 export_symbols_cmds_CXX=$ltdll_cmds
16200 ;;
16201 cygwin* | mingw* | cegcc*)
16202 case $cc_basename in
16203 cl* | icl*)
16204 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16205 ;;
16206 *)
16207 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'
16208 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16209 ;;
16210 esac
16211 ;;
16212 linux* | k*bsd*-gnu | gnu*)
16213 link_all_deplibs_CXX=no
16214 ;;
16215 *)
16216 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16217 ;;
16218 esac
16219
16220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16221 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16222 test no = "$ld_shlibs_CXX" && can_build_shared=no
16223
16224 with_gnu_ld_CXX=$with_gnu_ld
16225
16226
16227
16228
16229
16230
16231 #
16232 # Do we need to explicitly link libc?
16233 #
16234 case "x$archive_cmds_need_lc_CXX" in
16235 x|xyes)
16236 # Assume -lc should be added
16237 archive_cmds_need_lc_CXX=yes
16238
16239 if test yes,yes = "$GCC,$enable_shared"; then
16240 case $archive_cmds_CXX in
16241 *'~'*)
16242 # FIXME: we may have to deal with multi-command sequences.
16243 ;;
16244 '$CC '*)
16245 # Test whether the compiler implicitly links with -lc since on some
16246 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16247 # to ld, don't add -lc before -lgcc.
16248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16249 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16250 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16251 then :
16252 printf %s "(cached) " >&6
16253 else $as_nop
16254 $RM conftest*
16255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16256
16257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16258 (eval $ac_compile) 2>&5
16259 ac_status=$?
16260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16261 test $ac_status = 0; } 2>conftest.err; then
16262 soname=conftest
16263 lib=conftest
16264 libobjs=conftest.$ac_objext
16265 deplibs=
16266 wl=$lt_prog_compiler_wl_CXX
16267 pic_flag=$lt_prog_compiler_pic_CXX
16268 compiler_flags=-v
16269 linker_flags=-v
16270 verstring=
16271 output_objdir=.
16272 libname=conftest
16273 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16274 allow_undefined_flag_CXX=
16275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16276 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16277 ac_status=$?
16278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16279 test $ac_status = 0; }
16280 then
16281 lt_cv_archive_cmds_need_lc_CXX=no
16282 else
16283 lt_cv_archive_cmds_need_lc_CXX=yes
16284 fi
16285 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16286 else
16287 cat conftest.err 1>&5
16288 fi
16289 $RM conftest*
16290
16291 fi
16292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16293 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16294 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16295 ;;
16296 esac
16297 fi
16298 ;;
16299 esac
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16363 printf %s "checking dynamic linker characteristics... " >&6; }
16364
16365 library_names_spec=
16366 libname_spec='lib$name'
16367 soname_spec=
16368 shrext_cmds=.so
16369 postinstall_cmds=
16370 postuninstall_cmds=
16371 finish_cmds=
16372 finish_eval=
16373 shlibpath_var=
16374 shlibpath_overrides_runpath=unknown
16375 version_type=none
16376 dynamic_linker="$host_os ld.so"
16377 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16378 need_lib_prefix=unknown
16379 hardcode_into_libs=no
16380
16381 # when you set need_version to no, make sure it does not cause -set_version
16382 # flags to be left without arguments
16383 need_version=unknown
16384
16385
16386
16387 case $host_os in
16388 aix3*)
16389 version_type=linux # correct to gnu/linux during the next big refactor
16390 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16391 shlibpath_var=LIBPATH
16392
16393 # AIX 3 has no versioning support, so we append a major version to the name.
16394 soname_spec='$libname$release$shared_ext$major'
16395 ;;
16396
16397 aix[4-9]*)
16398 version_type=linux # correct to gnu/linux during the next big refactor
16399 need_lib_prefix=no
16400 need_version=no
16401 hardcode_into_libs=yes
16402 if test ia64 = "$host_cpu"; then
16403 # AIX 5 supports IA64
16404 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16405 shlibpath_var=LD_LIBRARY_PATH
16406 else
16407 # With GCC up to 2.95.x, collect2 would create an import file
16408 # for dependence libraries. The import file would start with
16409 # the line '#! .'. This would cause the generated library to
16410 # depend on '.', always an invalid library. This was fixed in
16411 # development snapshots of GCC prior to 3.0.
16412 case $host_os in
16413 aix4 | aix4.[01] | aix4.[01].*)
16414 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16415 echo ' yes '
16416 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16417 :
16418 else
16419 can_build_shared=no
16420 fi
16421 ;;
16422 esac
16423 # Using Import Files as archive members, it is possible to support
16424 # filename-based versioning of shared library archives on AIX. While
16425 # this would work for both with and without runtime linking, it will
16426 # prevent static linking of such archives. So we do filename-based
16427 # shared library versioning with .so extension only, which is used
16428 # when both runtime linking and shared linking is enabled.
16429 # Unfortunately, runtime linking may impact performance, so we do
16430 # not want this to be the default eventually. Also, we use the
16431 # versioned .so libs for executables only if there is the -brtl
16432 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16433 # To allow for filename-based versioning support, we need to create
16434 # libNAME.so.V as an archive file, containing:
16435 # *) an Import File, referring to the versioned filename of the
16436 # archive as well as the shared archive member, telling the
16437 # bitwidth (32 or 64) of that shared object, and providing the
16438 # list of exported symbols of that shared object, eventually
16439 # decorated with the 'weak' keyword
16440 # *) the shared object with the F_LOADONLY flag set, to really avoid
16441 # it being seen by the linker.
16442 # At run time we better use the real file rather than another symlink,
16443 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16444
16445 case $with_aix_soname,$aix_use_runtimelinking in
16446 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16447 # soname into executable. Probably we can add versioning support to
16448 # collect2, so additional links can be useful in future.
16449 aix,yes) # traditional libtool
16450 dynamic_linker='AIX unversionable lib.so'
16451 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16452 # instead of lib<name>.a to let people know that these are not
16453 # typical AIX shared libraries.
16454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16455 ;;
16456 aix,no) # traditional AIX only
16457 dynamic_linker='AIX lib.a(lib.so.V)'
16458 # We preserve .a as extension for shared libraries through AIX4.2
16459 # and later when we are not doing run time linking.
16460 library_names_spec='$libname$release.a $libname.a'
16461 soname_spec='$libname$release$shared_ext$major'
16462 ;;
16463 svr4,*) # full svr4 only
16464 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16465 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16466 # We do not specify a path in Import Files, so LIBPATH fires.
16467 shlibpath_overrides_runpath=yes
16468 ;;
16469 *,yes) # both, prefer svr4
16470 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16471 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16472 # unpreferred sharedlib libNAME.a needs extra handling
16473 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"'
16474 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"'
16475 # We do not specify a path in Import Files, so LIBPATH fires.
16476 shlibpath_overrides_runpath=yes
16477 ;;
16478 *,no) # both, prefer aix
16479 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16480 library_names_spec='$libname$release.a $libname.a'
16481 soname_spec='$libname$release$shared_ext$major'
16482 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16483 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)'
16484 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"'
16485 ;;
16486 esac
16487 shlibpath_var=LIBPATH
16488 fi
16489 ;;
16490
16491 amigaos*)
16492 case $host_cpu in
16493 powerpc)
16494 # Since July 2007 AmigaOS4 officially supports .so libraries.
16495 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16497 ;;
16498 m68k)
16499 library_names_spec='$libname.ixlibrary $libname.a'
16500 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16501 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'
16502 ;;
16503 esac
16504 ;;
16505
16506 beos*)
16507 library_names_spec='$libname$shared_ext'
16508 dynamic_linker="$host_os ld.so"
16509 shlibpath_var=LIBRARY_PATH
16510 ;;
16511
16512 bsdi[45]*)
16513 version_type=linux # correct to gnu/linux during the next big refactor
16514 need_version=no
16515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16516 soname_spec='$libname$release$shared_ext$major'
16517 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16518 shlibpath_var=LD_LIBRARY_PATH
16519 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16520 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16521 # the default ld.so.conf also contains /usr/contrib/lib and
16522 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16523 # libtool to hard-code these into programs
16524 ;;
16525
16526 cygwin* | mingw* | pw32* | cegcc*)
16527 version_type=windows
16528 shrext_cmds=.dll
16529 need_version=no
16530 need_lib_prefix=no
16531
16532 case $GCC,$cc_basename in
16533 yes,*)
16534 # gcc
16535 library_names_spec='$libname.dll.a'
16536 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16537 postinstall_cmds='base_file=`basename \$file`~
16538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16539 dldir=$destdir/`dirname \$dlpath`~
16540 test -d \$dldir || mkdir -p \$dldir~
16541 $install_prog $dir/$dlname \$dldir/$dlname~
16542 chmod a+x \$dldir/$dlname~
16543 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16544 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16545 fi'
16546 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16547 dlpath=$dir/\$dldll~
16548 $RM \$dlpath'
16549 shlibpath_overrides_runpath=yes
16550
16551 case $host_os in
16552 cygwin*)
16553 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16554 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16555
16556 ;;
16557 mingw* | cegcc*)
16558 # MinGW DLLs use traditional 'lib' prefix
16559 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16560 ;;
16561 pw32*)
16562 # pw32 DLLs use 'pw' prefix rather than 'lib'
16563 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16564 ;;
16565 esac
16566 dynamic_linker='Win32 ld.exe'
16567 ;;
16568
16569 *,cl* | *,icl*)
16570 # Native MSVC or ICC
16571 libname_spec='$name'
16572 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16573 library_names_spec='$libname.dll.lib'
16574
16575 case $build_os in
16576 mingw*)
16577 sys_lib_search_path_spec=
16578 lt_save_ifs=$IFS
16579 IFS=';'
16580 for lt_path in $LIB
16581 do
16582 IFS=$lt_save_ifs
16583 # Let DOS variable expansion print the short 8.3 style file name.
16584 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16585 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16586 done
16587 IFS=$lt_save_ifs
16588 # Convert to MSYS style.
16589 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16590 ;;
16591 cygwin*)
16592 # Convert to unix form, then to dos form, then back to unix form
16593 # but this time dos style (no spaces!) so that the unix form looks
16594 # like /cygdrive/c/PROGRA~1:/cygdr...
16595 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16596 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16597 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16598 ;;
16599 *)
16600 sys_lib_search_path_spec=$LIB
16601 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16602 # It is most probably a Windows format PATH.
16603 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16604 else
16605 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16606 fi
16607 # FIXME: find the short name or the path components, as spaces are
16608 # common. (e.g. "Program Files" -> "PROGRA~1")
16609 ;;
16610 esac
16611
16612 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16613 postinstall_cmds='base_file=`basename \$file`~
16614 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16615 dldir=$destdir/`dirname \$dlpath`~
16616 test -d \$dldir || mkdir -p \$dldir~
16617 $install_prog $dir/$dlname \$dldir/$dlname'
16618 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16619 dlpath=$dir/\$dldll~
16620 $RM \$dlpath'
16621 shlibpath_overrides_runpath=yes
16622 dynamic_linker='Win32 link.exe'
16623 ;;
16624
16625 *)
16626 # Assume MSVC and ICC wrapper
16627 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16628 dynamic_linker='Win32 ld.exe'
16629 ;;
16630 esac
16631 # FIXME: first we should search . and the directory the executable is in
16632 shlibpath_var=PATH
16633 ;;
16634
16635 darwin* | rhapsody*)
16636 dynamic_linker="$host_os dyld"
16637 version_type=darwin
16638 need_lib_prefix=no
16639 need_version=no
16640 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16641 soname_spec='$libname$release$major$shared_ext'
16642 shlibpath_overrides_runpath=yes
16643 shlibpath_var=DYLD_LIBRARY_PATH
16644 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16645
16646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16647 ;;
16648
16649 dgux*)
16650 version_type=linux # correct to gnu/linux during the next big refactor
16651 need_lib_prefix=no
16652 need_version=no
16653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16654 soname_spec='$libname$release$shared_ext$major'
16655 shlibpath_var=LD_LIBRARY_PATH
16656 ;;
16657
16658 freebsd* | dragonfly* | midnightbsd*)
16659 # DragonFly does not have aout. When/if they implement a new
16660 # versioning mechanism, adjust this.
16661 if test -x /usr/bin/objformat; then
16662 objformat=`/usr/bin/objformat`
16663 else
16664 case $host_os in
16665 freebsd[23].*) objformat=aout ;;
16666 *) objformat=elf ;;
16667 esac
16668 fi
16669 version_type=freebsd-$objformat
16670 case $version_type in
16671 freebsd-elf*)
16672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16673 soname_spec='$libname$release$shared_ext$major'
16674 need_version=no
16675 need_lib_prefix=no
16676 ;;
16677 freebsd-*)
16678 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16679 need_version=yes
16680 ;;
16681 esac
16682 shlibpath_var=LD_LIBRARY_PATH
16683 case $host_os in
16684 freebsd2.*)
16685 shlibpath_overrides_runpath=yes
16686 ;;
16687 freebsd3.[01]* | freebsdelf3.[01]*)
16688 shlibpath_overrides_runpath=yes
16689 hardcode_into_libs=yes
16690 ;;
16691 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16692 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16693 shlibpath_overrides_runpath=no
16694 hardcode_into_libs=yes
16695 ;;
16696 *) # from 4.6 on, and DragonFly
16697 shlibpath_overrides_runpath=yes
16698 hardcode_into_libs=yes
16699 ;;
16700 esac
16701 ;;
16702
16703 haiku*)
16704 version_type=linux # correct to gnu/linux during the next big refactor
16705 need_lib_prefix=no
16706 need_version=no
16707 dynamic_linker="$host_os runtime_loader"
16708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16709 soname_spec='$libname$release$shared_ext$major'
16710 shlibpath_var=LIBRARY_PATH
16711 shlibpath_overrides_runpath=no
16712 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16713 hardcode_into_libs=yes
16714 ;;
16715
16716 hpux9* | hpux10* | hpux11*)
16717 # Give a soname corresponding to the major version so that dld.sl refuses to
16718 # link against other versions.
16719 version_type=sunos
16720 need_lib_prefix=no
16721 need_version=no
16722 case $host_cpu in
16723 ia64*)
16724 shrext_cmds='.so'
16725 hardcode_into_libs=yes
16726 dynamic_linker="$host_os dld.so"
16727 shlibpath_var=LD_LIBRARY_PATH
16728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16730 soname_spec='$libname$release$shared_ext$major'
16731 if test 32 = "$HPUX_IA64_MODE"; then
16732 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16733 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16734 else
16735 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16736 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16737 fi
16738 ;;
16739 hppa*64*)
16740 shrext_cmds='.sl'
16741 hardcode_into_libs=yes
16742 dynamic_linker="$host_os dld.sl"
16743 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16746 soname_spec='$libname$release$shared_ext$major'
16747 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16749 ;;
16750 *)
16751 shrext_cmds='.sl'
16752 dynamic_linker="$host_os dld.sl"
16753 shlibpath_var=SHLIB_PATH
16754 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16756 soname_spec='$libname$release$shared_ext$major'
16757 ;;
16758 esac
16759 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16760 postinstall_cmds='chmod 555 $lib'
16761 # or fails outright, so override atomically:
16762 install_override_mode=555
16763 ;;
16764
16765 interix[3-9]*)
16766 version_type=linux # correct to gnu/linux during the next big refactor
16767 need_lib_prefix=no
16768 need_version=no
16769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16770 soname_spec='$libname$release$shared_ext$major'
16771 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16772 shlibpath_var=LD_LIBRARY_PATH
16773 shlibpath_overrides_runpath=no
16774 hardcode_into_libs=yes
16775 ;;
16776
16777 irix5* | irix6* | nonstopux*)
16778 case $host_os in
16779 nonstopux*) version_type=nonstopux ;;
16780 *)
16781 if test yes = "$lt_cv_prog_gnu_ld"; then
16782 version_type=linux # correct to gnu/linux during the next big refactor
16783 else
16784 version_type=irix
16785 fi ;;
16786 esac
16787 need_lib_prefix=no
16788 need_version=no
16789 soname_spec='$libname$release$shared_ext$major'
16790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16791 case $host_os in
16792 irix5* | nonstopux*)
16793 libsuff= shlibsuff=
16794 ;;
16795 *)
16796 case $LD in # libtool.m4 will add one of these switches to LD
16797 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16798 libsuff= shlibsuff= libmagic=32-bit;;
16799 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16800 libsuff=32 shlibsuff=N32 libmagic=N32;;
16801 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16802 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16803 *) libsuff= shlibsuff= libmagic=never-match;;
16804 esac
16805 ;;
16806 esac
16807 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16808 shlibpath_overrides_runpath=no
16809 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16810 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16811 hardcode_into_libs=yes
16812 ;;
16813
16814 # No shared lib support for Linux oldld, aout, or coff.
16815 linux*oldld* | linux*aout* | linux*coff*)
16816 dynamic_linker=no
16817 ;;
16818
16819 linux*android*)
16820 version_type=none # Android doesn't support versioned libraries.
16821 need_lib_prefix=no
16822 need_version=no
16823 library_names_spec='$libname$release$shared_ext'
16824 soname_spec='$libname$release$shared_ext'
16825 finish_cmds=
16826 shlibpath_var=LD_LIBRARY_PATH
16827 shlibpath_overrides_runpath=yes
16828
16829 # This implies no fast_install, which is unacceptable.
16830 # Some rework will be needed to allow for fast_install
16831 # before this can be enabled.
16832 hardcode_into_libs=yes
16833
16834 dynamic_linker='Android linker'
16835 # Don't embed -rpath directories since the linker doesn't support them.
16836 hardcode_libdir_flag_spec_CXX='-L$libdir'
16837 ;;
16838
16839 # This must be glibc/ELF.
16840 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16841 version_type=linux # correct to gnu/linux during the next big refactor
16842 need_lib_prefix=no
16843 need_version=no
16844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16845 soname_spec='$libname$release$shared_ext$major'
16846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16847 shlibpath_var=LD_LIBRARY_PATH
16848 shlibpath_overrides_runpath=no
16849
16850 # Some binutils ld are patched to set DT_RUNPATH
16851 if test ${lt_cv_shlibpath_overrides_runpath+y}
16852 then :
16853 printf %s "(cached) " >&6
16854 else $as_nop
16855 lt_cv_shlibpath_overrides_runpath=no
16856 save_LDFLAGS=$LDFLAGS
16857 save_libdir=$libdir
16858 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16859 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16862
16863 int
16864 main (void)
16865 {
16866
16867 ;
16868 return 0;
16869 }
16870 _ACEOF
16871 if ac_fn_cxx_try_link "$LINENO"
16872 then :
16873 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16874 then :
16875 lt_cv_shlibpath_overrides_runpath=yes
16876 fi
16877 fi
16878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16879 conftest$ac_exeext conftest.$ac_ext
16880 LDFLAGS=$save_LDFLAGS
16881 libdir=$save_libdir
16882
16883 fi
16884
16885 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16886
16887 # This implies no fast_install, which is unacceptable.
16888 # Some rework will be needed to allow for fast_install
16889 # before this can be enabled.
16890 hardcode_into_libs=yes
16891
16892 # Ideally, we could use ldconfig to report *all* directores which are
16893 # searched for libraries, however this is still not possible. Aside from not
16894 # being certain /sbin/ldconfig is available, command
16895 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16896 # even though it is searched at run-time. Try to do the best guess by
16897 # appending ld.so.conf contents (and includes) to the search path.
16898 if test -f /etc/ld.so.conf; then
16899 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' ' '`
16900 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16901 fi
16902
16903 # We used to test for /lib/ld.so.1 and disable shared libraries on
16904 # powerpc, because MkLinux only supported shared libraries with the
16905 # GNU dynamic linker. Since this was broken with cross compilers,
16906 # most powerpc-linux boxes support dynamic linking these days and
16907 # people can always --disable-shared, the test was removed, and we
16908 # assume the GNU/Linux dynamic linker is in use.
16909 dynamic_linker='GNU/Linux ld.so'
16910 ;;
16911
16912 netbsdelf*-gnu)
16913 version_type=linux
16914 need_lib_prefix=no
16915 need_version=no
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16917 soname_spec='${libname}${release}${shared_ext}$major'
16918 shlibpath_var=LD_LIBRARY_PATH
16919 shlibpath_overrides_runpath=no
16920 hardcode_into_libs=yes
16921 dynamic_linker='NetBSD ld.elf_so'
16922 ;;
16923
16924 netbsd*)
16925 version_type=sunos
16926 need_lib_prefix=no
16927 need_version=no
16928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16929 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16931 dynamic_linker='NetBSD (a.out) ld.so'
16932 else
16933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16934 soname_spec='$libname$release$shared_ext$major'
16935 dynamic_linker='NetBSD ld.elf_so'
16936 fi
16937 shlibpath_var=LD_LIBRARY_PATH
16938 shlibpath_overrides_runpath=yes
16939 hardcode_into_libs=yes
16940 ;;
16941
16942 newsos6)
16943 version_type=linux # correct to gnu/linux during the next big refactor
16944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16945 shlibpath_var=LD_LIBRARY_PATH
16946 shlibpath_overrides_runpath=yes
16947 ;;
16948
16949 *nto* | *qnx*)
16950 version_type=qnx
16951 need_lib_prefix=no
16952 need_version=no
16953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16954 soname_spec='$libname$release$shared_ext$major'
16955 shlibpath_var=LD_LIBRARY_PATH
16956 shlibpath_overrides_runpath=no
16957 hardcode_into_libs=yes
16958 dynamic_linker='ldqnx.so'
16959 ;;
16960
16961 openbsd* | bitrig*)
16962 version_type=sunos
16963 sys_lib_dlsearch_path_spec=/usr/lib
16964 need_lib_prefix=no
16965 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16966 need_version=no
16967 else
16968 need_version=yes
16969 fi
16970 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16972 shlibpath_var=LD_LIBRARY_PATH
16973 shlibpath_overrides_runpath=yes
16974 ;;
16975
16976 os2*)
16977 libname_spec='$name'
16978 version_type=windows
16979 shrext_cmds=.dll
16980 need_version=no
16981 need_lib_prefix=no
16982 # OS/2 can only load a DLL with a base name of 8 characters or less.
16983 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16984 v=$($ECHO $release$versuffix | tr -d .-);
16985 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16986 $ECHO $n$v`$shared_ext'
16987 library_names_spec='${libname}_dll.$libext'
16988 dynamic_linker='OS/2 ld.exe'
16989 shlibpath_var=BEGINLIBPATH
16990 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16992 postinstall_cmds='base_file=`basename \$file`~
16993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16994 dldir=$destdir/`dirname \$dlpath`~
16995 test -d \$dldir || mkdir -p \$dldir~
16996 $install_prog $dir/$dlname \$dldir/$dlname~
16997 chmod a+x \$dldir/$dlname~
16998 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16999 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17000 fi'
17001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17002 dlpath=$dir/\$dldll~
17003 $RM \$dlpath'
17004 ;;
17005
17006 osf3* | osf4* | osf5*)
17007 version_type=osf
17008 need_lib_prefix=no
17009 need_version=no
17010 soname_spec='$libname$release$shared_ext$major'
17011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17012 shlibpath_var=LD_LIBRARY_PATH
17013 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17015 ;;
17016
17017 rdos*)
17018 dynamic_linker=no
17019 ;;
17020
17021 solaris*)
17022 version_type=linux # correct to gnu/linux during the next big refactor
17023 need_lib_prefix=no
17024 need_version=no
17025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17026 soname_spec='$libname$release$shared_ext$major'
17027 shlibpath_var=LD_LIBRARY_PATH
17028 shlibpath_overrides_runpath=yes
17029 hardcode_into_libs=yes
17030 # ldd complains unless libraries are executable
17031 postinstall_cmds='chmod +x $lib'
17032 ;;
17033
17034 sunos4*)
17035 version_type=sunos
17036 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17037 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17038 shlibpath_var=LD_LIBRARY_PATH
17039 shlibpath_overrides_runpath=yes
17040 if test yes = "$with_gnu_ld"; then
17041 need_lib_prefix=no
17042 fi
17043 need_version=yes
17044 ;;
17045
17046 sysv4 | sysv4.3*)
17047 version_type=linux # correct to gnu/linux during the next big refactor
17048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17049 soname_spec='$libname$release$shared_ext$major'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 case $host_vendor in
17052 sni)
17053 shlibpath_overrides_runpath=no
17054 need_lib_prefix=no
17055 runpath_var=LD_RUN_PATH
17056 ;;
17057 siemens)
17058 need_lib_prefix=no
17059 ;;
17060 motorola)
17061 need_lib_prefix=no
17062 need_version=no
17063 shlibpath_overrides_runpath=no
17064 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17065 ;;
17066 esac
17067 ;;
17068
17069 sysv4*MP*)
17070 if test -d /usr/nec; then
17071 version_type=linux # correct to gnu/linux during the next big refactor
17072 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17073 soname_spec='$libname$shared_ext.$major'
17074 shlibpath_var=LD_LIBRARY_PATH
17075 fi
17076 ;;
17077
17078 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17079 version_type=sco
17080 need_lib_prefix=no
17081 need_version=no
17082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17083 soname_spec='$libname$release$shared_ext$major'
17084 shlibpath_var=LD_LIBRARY_PATH
17085 shlibpath_overrides_runpath=yes
17086 hardcode_into_libs=yes
17087 if test yes = "$with_gnu_ld"; then
17088 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17089 else
17090 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17091 case $host_os in
17092 sco3.2v5*)
17093 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17094 ;;
17095 esac
17096 fi
17097 sys_lib_dlsearch_path_spec='/usr/lib'
17098 ;;
17099
17100 tpf*)
17101 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17102 version_type=linux # correct to gnu/linux during the next big refactor
17103 need_lib_prefix=no
17104 need_version=no
17105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17106 shlibpath_var=LD_LIBRARY_PATH
17107 shlibpath_overrides_runpath=no
17108 hardcode_into_libs=yes
17109 ;;
17110
17111 uts4*)
17112 version_type=linux # correct to gnu/linux during the next big refactor
17113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17114 soname_spec='$libname$release$shared_ext$major'
17115 shlibpath_var=LD_LIBRARY_PATH
17116 ;;
17117
17118 *)
17119 dynamic_linker=no
17120 ;;
17121 esac
17122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17123 printf "%s\n" "$dynamic_linker" >&6; }
17124 test no = "$dynamic_linker" && can_build_shared=no
17125
17126 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17127 if test yes = "$GCC"; then
17128 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17129 fi
17130
17131 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17132 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17133 fi
17134
17135 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17136 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17137 fi
17138
17139 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17140 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17141
17142 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17143 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17144
17145 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17146 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17188 printf %s "checking how to hardcode library paths into programs... " >&6; }
17189 hardcode_action_CXX=
17190 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17191 test -n "$runpath_var_CXX" ||
17192 test yes = "$hardcode_automatic_CXX"; then
17193
17194 # We can hardcode non-existent directories.
17195 if test no != "$hardcode_direct_CXX" &&
17196 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17197 # have to relink, otherwise we might link with an installed library
17198 # when we should be linking with a yet-to-be-installed one
17199 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17200 test no != "$hardcode_minus_L_CXX"; then
17201 # Linking always hardcodes the temporary library directory.
17202 hardcode_action_CXX=relink
17203 else
17204 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17205 hardcode_action_CXX=immediate
17206 fi
17207 else
17208 # We cannot hardcode anything, or else we can only hardcode existing
17209 # directories.
17210 hardcode_action_CXX=unsupported
17211 fi
17212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17213 printf "%s\n" "$hardcode_action_CXX" >&6; }
17214
17215 if test relink = "$hardcode_action_CXX" ||
17216 test yes = "$inherit_rpath_CXX"; then
17217 # Fast installation is not supported
17218 enable_fast_install=no
17219 elif test yes = "$shlibpath_overrides_runpath" ||
17220 test no = "$enable_shared"; then
17221 # Fast installation is not necessary
17222 enable_fast_install=needless
17223 fi
17224
17225
17226
17227
17228
17229
17230
17231 fi # test -n "$compiler"
17232
17233 CC=$lt_save_CC
17234 CFLAGS=$lt_save_CFLAGS
17235 LDCXX=$LD
17236 LD=$lt_save_LD
17237 GCC=$lt_save_GCC
17238 with_gnu_ld=$lt_save_with_gnu_ld
17239 lt_cv_path_LDCXX=$lt_cv_path_LD
17240 lt_cv_path_LD=$lt_save_path_LD
17241 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17242 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17243 fi # test yes != "$_lt_caught_CXX_error"
17244
17245 ac_ext=c
17246 ac_cpp='$CPP $CPPFLAGS'
17247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17250
17251
17252
17253 mySUBDIRS="lib"
17254 ac_config_files="$ac_config_files Makefile lib/Makefile bin/gyoto"
17255
17256
17257 cat >confcache <<\_ACEOF
17258 # This file is a shell script that caches the results of configure
17259 # tests run on this system so they can be shared between configure
17260 # scripts and configure runs, see configure's option --config-cache.
17261 # It is not useful on other systems. If it contains results you don't
17262 # want to keep, you may remove or edit it.
17263 #
17264 # config.status only pays attention to the cache file if you give it
17265 # the --recheck option to rerun configure.
17266 #
17267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17269 # following values.
17270
17271 _ACEOF
17272
17273 # The following way of writing the cache mishandles newlines in values,
17274 # but we know of no workaround that is simple, portable, and efficient.
17275 # So, we kill variables containing newlines.
17276 # Ultrix sh set writes to stderr and can't be redirected directly,
17277 # and sets the high bit in the cache file unless we assign to the vars.
17278 (
17279 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17280 eval ac_val=\$$ac_var
17281 case $ac_val in #(
17282 *${as_nl}*)
17283 case $ac_var in #(
17284 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17285 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17286 esac
17287 case $ac_var in #(
17288 _ | IFS | as_nl) ;; #(
17289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17290 *) { eval $ac_var=; unset $ac_var;} ;;
17291 esac ;;
17292 esac
17293 done
17294
17295 (set) 2>&1 |
17296 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17297 *${as_nl}ac_space=\ *)
17298 # `set' does not quote correctly, so add quotes: double-quote
17299 # substitution turns \\\\ into \\, and sed turns \\ into \.
17300 sed -n \
17301 "s/'/'\\\\''/g;
17302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17303 ;; #(
17304 *)
17305 # `set' quotes correctly as required by POSIX, so do not add quotes.
17306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17307 ;;
17308 esac |
17309 sort
17310 ) |
17311 sed '
17312 /^ac_cv_env_/b end
17313 t clear
17314 :clear
17315 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17316 t end
17317 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17318 :end' >>confcache
17319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17320 if test -w "$cache_file"; then
17321 if test "x$cache_file" != "x/dev/null"; then
17322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17323 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17324 if test ! -f "$cache_file" || test -h "$cache_file"; then
17325 cat confcache >"$cache_file"
17326 else
17327 case $cache_file in #(
17328 */* | ?:*)
17329 mv -f confcache "$cache_file"$$ &&
17330 mv -f "$cache_file"$$ "$cache_file" ;; #(
17331 *)
17332 mv -f confcache "$cache_file" ;;
17333 esac
17334 fi
17335 fi
17336 else
17337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17338 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17339 fi
17340 fi
17341 rm -f confcache
17342
17343 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17344 # Let make expand exec_prefix.
17345 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17346
17347 # Transform confdefs.h into DEFS.
17348 # Protect against shell expansion while executing Makefile rules.
17349 # Protect against Makefile macro expansion.
17350 #
17351 # If the first sed substitution is executed (which looks for macros that
17352 # take arguments), then branch to the quote section. Otherwise,
17353 # look for a macro that doesn't take arguments.
17354 ac_script='
17355 :mline
17356 /\\$/{
17357 N
17358 s,\\\n,,
17359 b mline
17360 }
17361 t clear
17362 :clear
17363 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17364 t quote
17365 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17366 t quote
17367 b any
17368 :quote
17369 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17370 s/\[/\\&/g
17371 s/\]/\\&/g
17372 s/\$/$$/g
17373 H
17374 :any
17375 ${
17376 g
17377 s/^\n//
17378 s/\n/ /g
17379 p
17380 }
17381 '
17382 DEFS=`sed -n "$ac_script" confdefs.h`
17383
17384
17385 ac_libobjs=
17386 ac_ltlibobjs=
17387 U=
17388 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17389 # 1. Remove the extension, and $U if already installed.
17390 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17391 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17392 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17393 # will be set to the directory where LIBOBJS objects are built.
17394 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17395 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17396 done
17397 LIBOBJS=$ac_libobjs
17398
17399 LTLIBOBJS=$ac_ltlibobjs
17400
17401
17402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17403 printf %s "checking that generated files are newer than configure... " >&6; }
17404 if test -n "$am_sleep_pid"; then
17405 # Hide warnings about reused PIDs.
17406 wait $am_sleep_pid 2>/dev/null
17407 fi
17408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17409 printf "%s\n" "done" >&6; }
17410 if test -n "$EXEEXT"; then
17411 am__EXEEXT_TRUE=
17412 am__EXEEXT_FALSE='#'
17413 else
17414 am__EXEEXT_TRUE='#'
17415 am__EXEEXT_FALSE=
17416 fi
17417
17418 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17419 as_fn_error $? "conditional \"AMDEP\" was never defined.
17420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17421 fi
17422 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17423 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17425 fi
17426 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17427 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17429 fi
17430
17431 : "${CONFIG_STATUS=./config.status}"
17432 ac_write_fail=0
17433 ac_clean_files_save=$ac_clean_files
17434 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17436 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17437 as_write_fail=0
17438 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17439 #! $SHELL
17440 # Generated by $as_me.
17441 # Run this file to recreate the current configuration.
17442 # Compiler output produced by configure, useful for debugging
17443 # configure, is in config.log if it exists.
17444
17445 debug=false
17446 ac_cs_recheck=false
17447 ac_cs_silent=false
17448
17449 SHELL=\${CONFIG_SHELL-$SHELL}
17450 export SHELL
17451 _ASEOF
17452 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17453 ## -------------------- ##
17454 ## M4sh Initialization. ##
17455 ## -------------------- ##
17456
17457 # Be more Bourne compatible
17458 DUALCASE=1; export DUALCASE # for MKS sh
17459 as_nop=:
17460 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17461 then :
17462 emulate sh
17463 NULLCMD=:
17464 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17465 # is contrary to our usage. Disable this feature.
17466 alias -g '${1+"$@"}'='"$@"'
17467 setopt NO_GLOB_SUBST
17468 else $as_nop
17469 case `(set -o) 2>/dev/null` in #(
17470 *posix*) :
17471 set -o posix ;; #(
17472 *) :
17473 ;;
17474 esac
17475 fi
17476
17477
17478
17479 # Reset variables that may have inherited troublesome values from
17480 # the environment.
17481
17482 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17483 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17484 # side effect of setting IFS to empty, thus disabling word splitting.)
17485 # Quoting is to prevent editors from complaining about space-tab.
17486 as_nl='
17487 '
17488 export as_nl
17489 IFS=" "" $as_nl"
17490
17491 PS1='$ '
17492 PS2='> '
17493 PS4='+ '
17494
17495 # Ensure predictable behavior from utilities with locale-dependent output.
17496 LC_ALL=C
17497 export LC_ALL
17498 LANGUAGE=C
17499 export LANGUAGE
17500
17501 # We cannot yet rely on "unset" to work, but we need these variables
17502 # to be unset--not just set to an empty or harmless value--now, to
17503 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17504 # also avoids known problems related to "unset" and subshell syntax
17505 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17506 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17507 do eval test \${$as_var+y} \
17508 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17509 done
17510
17511 # Ensure that fds 0, 1, and 2 are open.
17512 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17513 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17514 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17515
17516 # The user is always right.
17517 if ${PATH_SEPARATOR+false} :; then
17518 PATH_SEPARATOR=:
17519 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17520 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17521 PATH_SEPARATOR=';'
17522 }
17523 fi
17524
17525
17526 # Find who we are. Look in the path if we contain no directory separator.
17527 as_myself=
17528 case $0 in #((
17529 *[\\/]* ) as_myself=$0 ;;
17530 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17531 for as_dir in $PATH
17532 do
17533 IFS=$as_save_IFS
17534 case $as_dir in #(((
17535 '') as_dir=./ ;;
17536 */) ;;
17537 *) as_dir=$as_dir/ ;;
17538 esac
17539 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17540 done
17541 IFS=$as_save_IFS
17542
17543 ;;
17544 esac
17545 # We did not find ourselves, most probably we were run as `sh COMMAND'
17546 # in which case we are not to be found in the path.
17547 if test "x$as_myself" = x; then
17548 as_myself=$0
17549 fi
17550 if test ! -f "$as_myself"; then
17551 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17552 exit 1
17553 fi
17554
17555
17556
17557 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17558 # ----------------------------------------
17559 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17560 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17561 # script with STATUS, using 1 if that was 0.
17562 as_fn_error ()
17563 {
17564 as_status=$1; test $as_status -eq 0 && as_status=1
17565 if test "$4"; then
17566 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17568 fi
17569 printf "%s\n" "$as_me: error: $2" >&2
17570 as_fn_exit $as_status
17571 } # as_fn_error
17572
17573
17574
17575 # as_fn_set_status STATUS
17576 # -----------------------
17577 # Set $? to STATUS, without forking.
17578 as_fn_set_status ()
17579 {
17580 return $1
17581 } # as_fn_set_status
17582
17583 # as_fn_exit STATUS
17584 # -----------------
17585 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17586 as_fn_exit ()
17587 {
17588 set +e
17589 as_fn_set_status $1
17590 exit $1
17591 } # as_fn_exit
17592
17593 # as_fn_unset VAR
17594 # ---------------
17595 # Portably unset VAR.
17596 as_fn_unset ()
17597 {
17598 { eval $1=; unset $1;}
17599 }
17600 as_unset=as_fn_unset
17601
17602 # as_fn_append VAR VALUE
17603 # ----------------------
17604 # Append the text in VALUE to the end of the definition contained in VAR. Take
17605 # advantage of any shell optimizations that allow amortized linear growth over
17606 # repeated appends, instead of the typical quadratic growth present in naive
17607 # implementations.
17608 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17609 then :
17610 eval 'as_fn_append ()
17611 {
17612 eval $1+=\$2
17613 }'
17614 else $as_nop
17615 as_fn_append ()
17616 {
17617 eval $1=\$$1\$2
17618 }
17619 fi # as_fn_append
17620
17621 # as_fn_arith ARG...
17622 # ------------------
17623 # Perform arithmetic evaluation on the ARGs, and store the result in the
17624 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17625 # must be portable across $(()) and expr.
17626 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17627 then :
17628 eval 'as_fn_arith ()
17629 {
17630 as_val=$(( $* ))
17631 }'
17632 else $as_nop
17633 as_fn_arith ()
17634 {
17635 as_val=`expr "$@" || test $? -eq 1`
17636 }
17637 fi # as_fn_arith
17638
17639
17640 if expr a : '\(a\)' >/dev/null 2>&1 &&
17641 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17642 as_expr=expr
17643 else
17644 as_expr=false
17645 fi
17646
17647 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17648 as_basename=basename
17649 else
17650 as_basename=false
17651 fi
17652
17653 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17654 as_dirname=dirname
17655 else
17656 as_dirname=false
17657 fi
17658
17659 as_me=`$as_basename -- "$0" ||
17660 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17661 X"$0" : 'X\(//\)$' \| \
17662 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17663 printf "%s\n" X/"$0" |
17664 sed '/^.*\/\([^/][^/]*\)\/*$/{
17665 s//\1/
17666 q
17667 }
17668 /^X\/\(\/\/\)$/{
17669 s//\1/
17670 q
17671 }
17672 /^X\/\(\/\).*/{
17673 s//\1/
17674 q
17675 }
17676 s/.*/./; q'`
17677
17678 # Avoid depending upon Character Ranges.
17679 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17680 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17681 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17682 as_cr_digits='0123456789'
17683 as_cr_alnum=$as_cr_Letters$as_cr_digits
17684
17685
17686 # Determine whether it's possible to make 'echo' print without a newline.
17687 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17688 # for compatibility with existing Makefiles.
17689 ECHO_C= ECHO_N= ECHO_T=
17690 case `echo -n x` in #(((((
17691 -n*)
17692 case `echo 'xy\c'` in
17693 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17694 xy) ECHO_C='\c';;
17695 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17696 ECHO_T=' ';;
17697 esac;;
17698 *)
17699 ECHO_N='-n';;
17700 esac
17701
17702 # For backward compatibility with old third-party macros, we provide
17703 # the shell variables $as_echo and $as_echo_n. New code should use
17704 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17705 as_echo='printf %s\n'
17706 as_echo_n='printf %s'
17707
17708 rm -f conf$$ conf$$.exe conf$$.file
17709 if test -d conf$$.dir; then
17710 rm -f conf$$.dir/conf$$.file
17711 else
17712 rm -f conf$$.dir
17713 mkdir conf$$.dir 2>/dev/null
17714 fi
17715 if (echo >conf$$.file) 2>/dev/null; then
17716 if ln -s conf$$.file conf$$ 2>/dev/null; then
17717 as_ln_s='ln -s'
17718 # ... but there are two gotchas:
17719 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17720 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17721 # In both cases, we have to default to `cp -pR'.
17722 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17723 as_ln_s='cp -pR'
17724 elif ln conf$$.file conf$$ 2>/dev/null; then
17725 as_ln_s=ln
17726 else
17727 as_ln_s='cp -pR'
17728 fi
17729 else
17730 as_ln_s='cp -pR'
17731 fi
17732 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17733 rmdir conf$$.dir 2>/dev/null
17734
17735
17736 # as_fn_mkdir_p
17737 # -------------
17738 # Create "$as_dir" as a directory, including parents if necessary.
17739 as_fn_mkdir_p ()
17740 {
17741
17742 case $as_dir in #(
17743 -*) as_dir=./$as_dir;;
17744 esac
17745 test -d "$as_dir" || eval $as_mkdir_p || {
17746 as_dirs=
17747 while :; do
17748 case $as_dir in #(
17749 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17750 *) as_qdir=$as_dir;;
17751 esac
17752 as_dirs="'$as_qdir' $as_dirs"
17753 as_dir=`$as_dirname -- "$as_dir" ||
17754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17755 X"$as_dir" : 'X\(//\)[^/]' \| \
17756 X"$as_dir" : 'X\(//\)$' \| \
17757 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17758 printf "%s\n" X"$as_dir" |
17759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17760 s//\1/
17761 q
17762 }
17763 /^X\(\/\/\)[^/].*/{
17764 s//\1/
17765 q
17766 }
17767 /^X\(\/\/\)$/{
17768 s//\1/
17769 q
17770 }
17771 /^X\(\/\).*/{
17772 s//\1/
17773 q
17774 }
17775 s/.*/./; q'`
17776 test -d "$as_dir" && break
17777 done
17778 test -z "$as_dirs" || eval "mkdir $as_dirs"
17779 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17780
17781
17782 } # as_fn_mkdir_p
17783 if mkdir -p . 2>/dev/null; then
17784 as_mkdir_p='mkdir -p "$as_dir"'
17785 else
17786 test -d ./-p && rmdir ./-p
17787 as_mkdir_p=false
17788 fi
17789
17790
17791 # as_fn_executable_p FILE
17792 # -----------------------
17793 # Test if FILE is an executable regular file.
17794 as_fn_executable_p ()
17795 {
17796 test -f "$1" && test -x "$1"
17797 } # as_fn_executable_p
17798 as_test_x='test -x'
17799 as_executable_p=as_fn_executable_p
17800
17801 # Sed expression to map a string onto a valid CPP name.
17802 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17803
17804 # Sed expression to map a string onto a valid variable name.
17805 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17806
17807
17808 exec 6>&1
17809 ## ----------------------------------- ##
17810 ## Main body of $CONFIG_STATUS script. ##
17811 ## ----------------------------------- ##
17812 _ASEOF
17813 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17814
17815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17816 # Save the log message, to keep $0 and so on meaningful, and to
17817 # report actual input values of CONFIG_FILES etc. instead of their
17818 # values after options handling.
17819 ac_log="
17820 This file was extended by gyoto-null $as_me 0.0.0, which was
17821 generated by GNU Autoconf 2.71. Invocation command line was
17822
17823 CONFIG_FILES = $CONFIG_FILES
17824 CONFIG_HEADERS = $CONFIG_HEADERS
17825 CONFIG_LINKS = $CONFIG_LINKS
17826 CONFIG_COMMANDS = $CONFIG_COMMANDS
17827 $ $0 $@
17828
17829 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17830 "
17831
17832 _ACEOF
17833
17834 case $ac_config_files in *"
17835 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17836 esac
17837
17838
17839
17840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17841 # Files that config.status was made for.
17842 config_files="$ac_config_files"
17843 config_commands="$ac_config_commands"
17844
17845 _ACEOF
17846
17847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17848 ac_cs_usage="\
17849 \`$as_me' instantiates files and other configuration actions
17850 from templates according to the current configuration. Unless the files
17851 and actions are specified as TAGs, all are instantiated by default.
17852
17853 Usage: $0 [OPTION]... [TAG]...
17854
17855 -h, --help print this help, then exit
17856 -V, --version print version number and configuration settings, then exit
17857 --config print configuration, then exit
17858 -q, --quiet, --silent
17859 do not print progress messages
17860 -d, --debug don't remove temporary files
17861 --recheck update $as_me by reconfiguring in the same conditions
17862 --file=FILE[:TEMPLATE]
17863 instantiate the configuration file FILE
17864
17865 Configuration files:
17866 $config_files
17867
17868 Configuration commands:
17869 $config_commands
17870
17871 Report bugs to <[email protected]>."
17872
17873 _ACEOF
17874 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17875 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17877 ac_cs_config='$ac_cs_config_escaped'
17878 ac_cs_version="\\
17879 gyoto-null config.status 0.0.0
17880 configured by $0, generated by GNU Autoconf 2.71,
17881 with options \\"\$ac_cs_config\\"
17882
17883 Copyright (C) 2021 Free Software Foundation, Inc.
17884 This config.status script is free software; the Free Software Foundation
17885 gives unlimited permission to copy, distribute and modify it."
17886
17887 ac_pwd='$ac_pwd'
17888 srcdir='$srcdir'
17889 INSTALL='$INSTALL'
17890 MKDIR_P='$MKDIR_P'
17891 AWK='$AWK'
17892 test -n "\$AWK" || AWK=awk
17893 _ACEOF
17894
17895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17896 # The default lists apply if the user does not specify any file.
17897 ac_need_defaults=:
17898 while test $# != 0
17899 do
17900 case $1 in
17901 --*=?*)
17902 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17903 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17904 ac_shift=:
17905 ;;
17906 --*=)
17907 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17908 ac_optarg=
17909 ac_shift=:
17910 ;;
17911 *)
17912 ac_option=$1
17913 ac_optarg=$2
17914 ac_shift=shift
17915 ;;
17916 esac
17917
17918 case $ac_option in
17919 # Handling of the options.
17920 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17921 ac_cs_recheck=: ;;
17922 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17923 printf "%s\n" "$ac_cs_version"; exit ;;
17924 --config | --confi | --conf | --con | --co | --c )
17925 printf "%s\n" "$ac_cs_config"; exit ;;
17926 --debug | --debu | --deb | --de | --d | -d )
17927 debug=: ;;
17928 --file | --fil | --fi | --f )
17929 $ac_shift
17930 case $ac_optarg in
17931 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17932 '') as_fn_error $? "missing file argument" ;;
17933 esac
17934 as_fn_append CONFIG_FILES " '$ac_optarg'"
17935 ac_need_defaults=false;;
17936 --he | --h | --help | --hel | -h )
17937 printf "%s\n" "$ac_cs_usage"; exit ;;
17938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17939 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17940 ac_cs_silent=: ;;
17941
17942 # This is an error.
17943 -*) as_fn_error $? "unrecognized option: \`$1'
17944 Try \`$0 --help' for more information." ;;
17945
17946 *) as_fn_append ac_config_targets " $1"
17947 ac_need_defaults=false ;;
17948
17949 esac
17950 shift
17951 done
17952
17953 ac_configure_extra_args=
17954
17955 if $ac_cs_silent; then
17956 exec 6>/dev/null
17957 ac_configure_extra_args="$ac_configure_extra_args --silent"
17958 fi
17959
17960 _ACEOF
17961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17962 if \$ac_cs_recheck; then
17963 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17964 shift
17965 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17966 CONFIG_SHELL='$SHELL'
17967 export CONFIG_SHELL
17968 exec "\$@"
17969 fi
17970
17971 _ACEOF
17972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17973 exec 5>>config.log
17974 {
17975 echo
17976 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17977 ## Running $as_me. ##
17978 _ASBOX
17979 printf "%s\n" "$ac_log"
17980 } >&5
17981
17982 _ACEOF
17983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17984 #
17985 # INIT-COMMANDS
17986 #
17987 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17988
17989
17990 # The HP-UX ksh and POSIX shell print the target directory to stdout
17991 # if CDPATH is set.
17992 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17993
17994 sed_quote_subst='$sed_quote_subst'
17995 double_quote_subst='$double_quote_subst'
17996 delay_variable_subst='$delay_variable_subst'
17997 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17998 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17999 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18000 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18001 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18002 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18003 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18004 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18005 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18006 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18007 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18008 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18009 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18010 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18011 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18012 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18013 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18014 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18015 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18016 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18017 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18018 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18019 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18020 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18021 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18022 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18023 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18024 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18025 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18026 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18027 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18028 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18029 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18030 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18031 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18032 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18033 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18034 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18035 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18036 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18037 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18038 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18039 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18040 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18041 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18042 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18043 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18044 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18045 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18046 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18047 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18048 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18049 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18050 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18051 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18052 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18053 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18054 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18055 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18056 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18057 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"`'
18058 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18059 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18060 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18061 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18062 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18063 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18064 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18065 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18066 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18067 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18068 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18069 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18070 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18071 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18072 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18073 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18074 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18075 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18076 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18077 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18078 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18079 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18080 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18081 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18082 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18083 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18084 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18085 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18086 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18087 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18088 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18089 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18090 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18091 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18092 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18093 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18094 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18095 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18096 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18097 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18098 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18099 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18100 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18101 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18102 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18103 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18104 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18105 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18106 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18107 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18108 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18109 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18110 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18111 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18112 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18113 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18114 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18115 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18116 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18117 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18118 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18119 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18120 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18121 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18122 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18123 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18124 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18125 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18126 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18127 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18128 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18129 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18130 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18131 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18132 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18133 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18134 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18135 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18136 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18137 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18138 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18139 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18140 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18141 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18142 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18143 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18144 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18145 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18146 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18147 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18148 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18149 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18150 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18151 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18152 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18153 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18154 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18155 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18156 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18157 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18158 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18159 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18160 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18161 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18162 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18163 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18164 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18165 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18166 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18167 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18168 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18169 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18170 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18171 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18172 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18173 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18174 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18175 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18176 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18177 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18178 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18179 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18180 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18181 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18182 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18183 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18184 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18185 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18186 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18187 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18188
18189 LTCC='$LTCC'
18190 LTCFLAGS='$LTCFLAGS'
18191 compiler='$compiler_DEFAULT'
18192
18193 # A function that is used when there is no print builtin or printf.
18194 func_fallback_echo ()
18195 {
18196 eval 'cat <<_LTECHO_EOF
18197 \$1
18198 _LTECHO_EOF'
18199 }
18200
18201 # Quote evaled strings.
18202 for var in SHELL \
18203 ECHO \
18204 PATH_SEPARATOR \
18205 SED \
18206 GREP \
18207 EGREP \
18208 FGREP \
18209 LD \
18210 NM \
18211 LN_S \
18212 lt_SP2NL \
18213 lt_NL2SP \
18214 reload_flag \
18215 FILECMD \
18216 OBJDUMP \
18217 deplibs_check_method \
18218 file_magic_cmd \
18219 file_magic_glob \
18220 want_nocaseglob \
18221 DLLTOOL \
18222 sharedlib_from_linklib_cmd \
18223 AR \
18224 archiver_list_spec \
18225 STRIP \
18226 RANLIB \
18227 CC \
18228 CFLAGS \
18229 compiler \
18230 lt_cv_sys_global_symbol_pipe \
18231 lt_cv_sys_global_symbol_to_cdecl \
18232 lt_cv_sys_global_symbol_to_import \
18233 lt_cv_sys_global_symbol_to_c_name_address \
18234 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18235 lt_cv_nm_interface \
18236 nm_file_list_spec \
18237 lt_cv_truncate_bin \
18238 lt_prog_compiler_no_builtin_flag \
18239 lt_prog_compiler_pic \
18240 lt_prog_compiler_wl \
18241 lt_prog_compiler_static \
18242 lt_cv_prog_compiler_c_o \
18243 need_locks \
18244 MANIFEST_TOOL \
18245 DSYMUTIL \
18246 NMEDIT \
18247 LIPO \
18248 OTOOL \
18249 OTOOL64 \
18250 shrext_cmds \
18251 export_dynamic_flag_spec \
18252 whole_archive_flag_spec \
18253 compiler_needs_object \
18254 with_gnu_ld \
18255 allow_undefined_flag \
18256 no_undefined_flag \
18257 hardcode_libdir_flag_spec \
18258 hardcode_libdir_separator \
18259 exclude_expsyms \
18260 include_expsyms \
18261 file_list_spec \
18262 variables_saved_for_relink \
18263 libname_spec \
18264 library_names_spec \
18265 soname_spec \
18266 install_override_mode \
18267 finish_eval \
18268 old_striplib \
18269 striplib \
18270 compiler_lib_search_dirs \
18271 predep_objects \
18272 postdep_objects \
18273 predeps \
18274 postdeps \
18275 compiler_lib_search_path \
18276 LD_CXX \
18277 reload_flag_CXX \
18278 compiler_CXX \
18279 lt_prog_compiler_no_builtin_flag_CXX \
18280 lt_prog_compiler_pic_CXX \
18281 lt_prog_compiler_wl_CXX \
18282 lt_prog_compiler_static_CXX \
18283 lt_cv_prog_compiler_c_o_CXX \
18284 export_dynamic_flag_spec_CXX \
18285 whole_archive_flag_spec_CXX \
18286 compiler_needs_object_CXX \
18287 with_gnu_ld_CXX \
18288 allow_undefined_flag_CXX \
18289 no_undefined_flag_CXX \
18290 hardcode_libdir_flag_spec_CXX \
18291 hardcode_libdir_separator_CXX \
18292 exclude_expsyms_CXX \
18293 include_expsyms_CXX \
18294 file_list_spec_CXX \
18295 compiler_lib_search_dirs_CXX \
18296 predep_objects_CXX \
18297 postdep_objects_CXX \
18298 predeps_CXX \
18299 postdeps_CXX \
18300 compiler_lib_search_path_CXX; do
18301 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18302 *[\\\\\\\`\\"\\\$]*)
18303 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18304 ;;
18305 *)
18306 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18307 ;;
18308 esac
18309 done
18310
18311 # Double-quote double-evaled strings.
18312 for var in reload_cmds \
18313 old_postinstall_cmds \
18314 old_postuninstall_cmds \
18315 old_archive_cmds \
18316 extract_expsyms_cmds \
18317 old_archive_from_new_cmds \
18318 old_archive_from_expsyms_cmds \
18319 archive_cmds \
18320 archive_expsym_cmds \
18321 module_cmds \
18322 module_expsym_cmds \
18323 export_symbols_cmds \
18324 prelink_cmds \
18325 postlink_cmds \
18326 postinstall_cmds \
18327 postuninstall_cmds \
18328 finish_cmds \
18329 sys_lib_search_path_spec \
18330 configure_time_dlsearch_path \
18331 configure_time_lt_sys_library_path \
18332 reload_cmds_CXX \
18333 old_archive_cmds_CXX \
18334 old_archive_from_new_cmds_CXX \
18335 old_archive_from_expsyms_cmds_CXX \
18336 archive_cmds_CXX \
18337 archive_expsym_cmds_CXX \
18338 module_cmds_CXX \
18339 module_expsym_cmds_CXX \
18340 export_symbols_cmds_CXX \
18341 prelink_cmds_CXX \
18342 postlink_cmds_CXX; do
18343 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18344 *[\\\\\\\`\\"\\\$]*)
18345 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18346 ;;
18347 *)
18348 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18349 ;;
18350 esac
18351 done
18352
18353 ac_aux_dir='$ac_aux_dir'
18354
18355 # See if we are running on zsh, and set the options that allow our
18356 # commands through without removal of \ escapes INIT.
18357 if test -n "\${ZSH_VERSION+set}"; then
18358 setopt NO_GLOB_SUBST
18359 fi
18360
18361
18362 PACKAGE='$PACKAGE'
18363 VERSION='$VERSION'
18364 RM='$RM'
18365 ofile='$ofile'
18366
18367
18368
18369
18370
18371
18372 _ACEOF
18373
18374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18375
18376 # Handling of arguments.
18377 for ac_config_target in $ac_config_targets
18378 do
18379 case $ac_config_target in
18380 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18381 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18382 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18383 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18384 "bin/gyoto") CONFIG_FILES="$CONFIG_FILES bin/gyoto" ;;
18385
18386 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18387 esac
18388 done
18389
18390
18391 # If the user did not use the arguments to specify the items to instantiate,
18392 # then the envvar interface is used. Set only those that are not.
18393 # We use the long form for the default assignment because of an extremely
18394 # bizarre bug on SunOS 4.1.3.
18395 if $ac_need_defaults; then
18396 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18397 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18398 fi
18399
18400 # Have a temporary directory for convenience. Make it in the build tree
18401 # simply because there is no reason against having it here, and in addition,
18402 # creating and moving files from /tmp can sometimes cause problems.
18403 # Hook for its removal unless debugging.
18404 # Note that there is a small window in which the directory will not be cleaned:
18405 # after its creation but before its name has been assigned to `$tmp'.
18406 $debug ||
18407 {
18408 tmp= ac_tmp=
18409 trap 'exit_status=$?
18410 : "${ac_tmp:=$tmp}"
18411 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18412 ' 0
18413 trap 'as_fn_exit 1' 1 2 13 15
18414 }
18415 # Create a (secure) tmp directory for tmp files.
18416
18417 {
18418 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18419 test -d "$tmp"
18420 } ||
18421 {
18422 tmp=./conf$$-$RANDOM
18423 (umask 077 && mkdir "$tmp")
18424 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18425 ac_tmp=$tmp
18426
18427 # Set up the scripts for CONFIG_FILES section.
18428 # No need to generate them if there are no CONFIG_FILES.
18429 # This happens for instance with `./config.status config.h'.
18430 if test -n "$CONFIG_FILES"; then
18431
18432
18433 ac_cr=`echo X | tr X '\015'`
18434 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18435 # But we know of no other shell where ac_cr would be empty at this
18436 # point, so we can use a bashism as a fallback.
18437 if test "x$ac_cr" = x; then
18438 eval ac_cr=\$\'\\r\'
18439 fi
18440 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18441 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18442 ac_cs_awk_cr='\\r'
18443 else
18444 ac_cs_awk_cr=$ac_cr
18445 fi
18446
18447 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18448 _ACEOF
18449
18450
18451 {
18452 echo "cat >conf$$subs.awk <<_ACEOF" &&
18453 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18454 echo "_ACEOF"
18455 } >conf$$subs.sh ||
18456 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18457 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18458 ac_delim='%!_!# '
18459 for ac_last_try in false false false false false :; do
18460 . ./conf$$subs.sh ||
18461 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18462
18463 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18464 if test $ac_delim_n = $ac_delim_num; then
18465 break
18466 elif $ac_last_try; then
18467 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18468 else
18469 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18470 fi
18471 done
18472 rm -f conf$$subs.sh
18473
18474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18475 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18476 _ACEOF
18477 sed -n '
18478 h
18479 s/^/S["/; s/!.*/"]=/
18480 p
18481 g
18482 s/^[^!]*!//
18483 :repl
18484 t repl
18485 s/'"$ac_delim"'$//
18486 t delim
18487 :nl
18488 h
18489 s/\(.\{148\}\)..*/\1/
18490 t more1
18491 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18492 p
18493 n
18494 b repl
18495 :more1
18496 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18497 p
18498 g
18499 s/.\{148\}//
18500 t nl
18501 :delim
18502 h
18503 s/\(.\{148\}\)..*/\1/
18504 t more2
18505 s/["\\]/\\&/g; s/^/"/; s/$/"/
18506 p
18507 b
18508 :more2
18509 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18510 p
18511 g
18512 s/.\{148\}//
18513 t delim
18514 ' <conf$$subs.awk | sed '
18515 /^[^""]/{
18516 N
18517 s/\n//
18518 }
18519 ' >>$CONFIG_STATUS || ac_write_fail=1
18520 rm -f conf$$subs.awk
18521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18522 _ACAWK
18523 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18524 for (key in S) S_is_set[key] = 1
18525 FS = ""
18526
18527 }
18528 {
18529 line = $ 0
18530 nfields = split(line, field, "@")
18531 substed = 0
18532 len = length(field[1])
18533 for (i = 2; i < nfields; i++) {
18534 key = field[i]
18535 keylen = length(key)
18536 if (S_is_set[key]) {
18537 value = S[key]
18538 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18539 len += length(value) + length(field[++i])
18540 substed = 1
18541 } else
18542 len += 1 + keylen
18543 }
18544
18545 print line
18546 }
18547
18548 _ACAWK
18549 _ACEOF
18550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18551 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18552 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18553 else
18554 cat
18555 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18556 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18557 _ACEOF
18558
18559 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18560 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18561 # trailing colons and then remove the whole line if VPATH becomes empty
18562 # (actually we leave an empty line to preserve line numbers).
18563 if test "x$srcdir" = x.; then
18564 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18565 h
18566 s///
18567 s/^/:/
18568 s/[ ]*$/:/
18569 s/:\$(srcdir):/:/g
18570 s/:\${srcdir}:/:/g
18571 s/:@srcdir@:/:/g
18572 s/^:*//
18573 s/:*$//
18574 x
18575 s/\(=[ ]*\).*/\1/
18576 G
18577 s/\n//
18578 s/^[^=]*=[ ]*$//
18579 }'
18580 fi
18581
18582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18583 fi # test -n "$CONFIG_FILES"
18584
18585
18586 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
18587 shift
18588 for ac_tag
18589 do
18590 case $ac_tag in
18591 :[FHLC]) ac_mode=$ac_tag; continue;;
18592 esac
18593 case $ac_mode$ac_tag in
18594 :[FHL]*:*);;
18595 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18596 :[FH]-) ac_tag=-:-;;
18597 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18598 esac
18599 ac_save_IFS=$IFS
18600 IFS=:
18601 set x $ac_tag
18602 IFS=$ac_save_IFS
18603 shift
18604 ac_file=$1
18605 shift
18606
18607 case $ac_mode in
18608 :L) ac_source=$1;;
18609 :[FH])
18610 ac_file_inputs=
18611 for ac_f
18612 do
18613 case $ac_f in
18614 -) ac_f="$ac_tmp/stdin";;
18615 *) # Look for the file first in the build tree, then in the source tree
18616 # (if the path is not absolute). The absolute path cannot be DOS-style,
18617 # because $ac_f cannot contain `:'.
18618 test -f "$ac_f" ||
18619 case $ac_f in
18620 [\\/$]*) false;;
18621 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18622 esac ||
18623 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18624 esac
18625 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18626 as_fn_append ac_file_inputs " '$ac_f'"
18627 done
18628
18629 # Let's still pretend it is `configure' which instantiates (i.e., don't
18630 # use $as_me), people would be surprised to read:
18631 # /* config.h. Generated by config.status. */
18632 configure_input='Generated from '`
18633 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18634 `' by configure.'
18635 if test x"$ac_file" != x-; then
18636 configure_input="$ac_file. $configure_input"
18637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18638 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18639 fi
18640 # Neutralize special characters interpreted by sed in replacement strings.
18641 case $configure_input in #(
18642 *\&* | *\|* | *\\* )
18643 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18644 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18645 *) ac_sed_conf_input=$configure_input;;
18646 esac
18647
18648 case $ac_tag in
18649 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18650 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18651 esac
18652 ;;
18653 esac
18654
18655 ac_dir=`$as_dirname -- "$ac_file" ||
18656 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18657 X"$ac_file" : 'X\(//\)[^/]' \| \
18658 X"$ac_file" : 'X\(//\)$' \| \
18659 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18660 printf "%s\n" X"$ac_file" |
18661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18662 s//\1/
18663 q
18664 }
18665 /^X\(\/\/\)[^/].*/{
18666 s//\1/
18667 q
18668 }
18669 /^X\(\/\/\)$/{
18670 s//\1/
18671 q
18672 }
18673 /^X\(\/\).*/{
18674 s//\1/
18675 q
18676 }
18677 s/.*/./; q'`
18678 as_dir="$ac_dir"; as_fn_mkdir_p
18679 ac_builddir=.
18680
18681 case "$ac_dir" in
18682 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18683 *)
18684 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18685 # A ".." for each directory in $ac_dir_suffix.
18686 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18687 case $ac_top_builddir_sub in
18688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18690 esac ;;
18691 esac
18692 ac_abs_top_builddir=$ac_pwd
18693 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18694 # for backward compatibility:
18695 ac_top_builddir=$ac_top_build_prefix
18696
18697 case $srcdir in
18698 .) # We are building in place.
18699 ac_srcdir=.
18700 ac_top_srcdir=$ac_top_builddir_sub
18701 ac_abs_top_srcdir=$ac_pwd ;;
18702 [\\/]* | ?:[\\/]* ) # Absolute name.
18703 ac_srcdir=$srcdir$ac_dir_suffix;
18704 ac_top_srcdir=$srcdir
18705 ac_abs_top_srcdir=$srcdir ;;
18706 *) # Relative name.
18707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18708 ac_top_srcdir=$ac_top_build_prefix$srcdir
18709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18710 esac
18711 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18712
18713
18714 case $ac_mode in
18715 :F)
18716 #
18717 # CONFIG_FILE
18718 #
18719
18720 case $INSTALL in
18721 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18722 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18723 esac
18724 ac_MKDIR_P=$MKDIR_P
18725 case $MKDIR_P in
18726 [\\/$]* | ?:[\\/]* ) ;;
18727 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18728 esac
18729 _ACEOF
18730
18731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18732 # If the template does not know about datarootdir, expand it.
18733 # FIXME: This hack should be removed a few years after 2.60.
18734 ac_datarootdir_hack=; ac_datarootdir_seen=
18735 ac_sed_dataroot='
18736 /datarootdir/ {
18737 p
18738 q
18739 }
18740 /@datadir@/p
18741 /@docdir@/p
18742 /@infodir@/p
18743 /@localedir@/p
18744 /@mandir@/p'
18745 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18746 *datarootdir*) ac_datarootdir_seen=yes;;
18747 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18749 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18750 _ACEOF
18751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18752 ac_datarootdir_hack='
18753 s&@datadir@&$datadir&g
18754 s&@docdir@&$docdir&g
18755 s&@infodir@&$infodir&g
18756 s&@localedir@&$localedir&g
18757 s&@mandir@&$mandir&g
18758 s&\\\${datarootdir}&$datarootdir&g' ;;
18759 esac
18760 _ACEOF
18761
18762 # Neutralize VPATH when `$srcdir' = `.'.
18763 # Shell code in configure.ac might set extrasub.
18764 # FIXME: do we really want to maintain this feature?
18765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18766 ac_sed_extra="$ac_vpsub
18767 $extrasub
18768 _ACEOF
18769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18770 :t
18771 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18772 s|@configure_input@|$ac_sed_conf_input|;t t
18773 s&@top_builddir@&$ac_top_builddir_sub&;t t
18774 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18775 s&@srcdir@&$ac_srcdir&;t t
18776 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18777 s&@top_srcdir@&$ac_top_srcdir&;t t
18778 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18779 s&@builddir@&$ac_builddir&;t t
18780 s&@abs_builddir@&$ac_abs_builddir&;t t
18781 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18782 s&@INSTALL@&$ac_INSTALL&;t t
18783 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18784 $ac_datarootdir_hack
18785 "
18786 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18787 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18788
18789 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18790 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18791 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18792 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18794 which seems to be undefined. Please make sure it is defined" >&5
18795 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18796 which seems to be undefined. Please make sure it is defined" >&2;}
18797
18798 rm -f "$ac_tmp/stdin"
18799 case $ac_file in
18800 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18801 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18802 esac \
18803 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18804 ;;
18805
18806
18807 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18808 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18809 ;;
18810 esac
18811
18812
18813 case $ac_file$ac_mode in
18814 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18815 # Older Autoconf quotes --file arguments for eval, but not when files
18816 # are listed without --file. Let's play safe and only enable the eval
18817 # if we detect the quoting.
18818 # TODO: see whether this extra hack can be removed once we start
18819 # requiring Autoconf 2.70 or later.
18820 case $CONFIG_FILES in #(
18821 *\'*) :
18822 eval set x "$CONFIG_FILES" ;; #(
18823 *) :
18824 set x $CONFIG_FILES ;; #(
18825 *) :
18826 ;;
18827 esac
18828 shift
18829 # Used to flag and report bootstrapping failures.
18830 am_rc=0
18831 for am_mf
18832 do
18833 # Strip MF so we end up with the name of the file.
18834 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18835 # Check whether this is an Automake generated Makefile which includes
18836 # dependency-tracking related rules and includes.
18837 # Grep'ing the whole file directly is not great: AIX grep has a line
18838 # limit of 2048, but all sed's we know have understand at least 4000.
18839 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18840 || continue
18841 am_dirpart=`$as_dirname -- "$am_mf" ||
18842 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18843 X"$am_mf" : 'X\(//\)[^/]' \| \
18844 X"$am_mf" : 'X\(//\)$' \| \
18845 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18846 printf "%s\n" X"$am_mf" |
18847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18848 s//\1/
18849 q
18850 }
18851 /^X\(\/\/\)[^/].*/{
18852 s//\1/
18853 q
18854 }
18855 /^X\(\/\/\)$/{
18856 s//\1/
18857 q
18858 }
18859 /^X\(\/\).*/{
18860 s//\1/
18861 q
18862 }
18863 s/.*/./; q'`
18864 am_filepart=`$as_basename -- "$am_mf" ||
18865 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18866 X"$am_mf" : 'X\(//\)$' \| \
18867 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18868 printf "%s\n" X/"$am_mf" |
18869 sed '/^.*\/\([^/][^/]*\)\/*$/{
18870 s//\1/
18871 q
18872 }
18873 /^X\/\(\/\/\)$/{
18874 s//\1/
18875 q
18876 }
18877 /^X\/\(\/\).*/{
18878 s//\1/
18879 q
18880 }
18881 s/.*/./; q'`
18882 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18883 && sed -e '/# am--include-marker/d' "$am_filepart" \
18884 | $MAKE -f - am--depfiles" >&5
18885 (cd "$am_dirpart" \
18886 && sed -e '/# am--include-marker/d' "$am_filepart" \
18887 | $MAKE -f - am--depfiles) >&5 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } || am_rc=$?
18891 done
18892 if test $am_rc -ne 0; then
18893 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18894 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18895 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18896 for automatic dependency tracking. If GNU make was not used, consider
18897 re-running the configure script with MAKE=\"gmake\" (or whatever is
18898 necessary). You can also try re-running configure with the
18899 '--disable-dependency-tracking' option to at least be able to build
18900 the package (albeit without support for automatic dependency tracking).
18901 See \`config.log' for more details" "$LINENO" 5; }
18902 fi
18903 { am_dirpart=; unset am_dirpart;}
18904 { am_filepart=; unset am_filepart;}
18905 { am_mf=; unset am_mf;}
18906 { am_rc=; unset am_rc;}
18907 rm -f conftest-deps.mk
18908 }
18909 ;;
18910 "libtool":C)
18911
18912 # See if we are running on zsh, and set the options that allow our
18913 # commands through without removal of \ escapes.
18914 if test -n "${ZSH_VERSION+set}"; then
18915 setopt NO_GLOB_SUBST
18916 fi
18917
18918 cfgfile=${ofile}T
18919 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18920 $RM "$cfgfile"
18921
18922 cat <<_LT_EOF >> "$cfgfile"
18923 #! $SHELL
18924 # Generated automatically by $as_me ($PACKAGE) $VERSION
18925 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18926
18927 # Provide generalized library-building support services.
18928 # Written by Gordon Matzigkeit, 1996
18929
18930 # Copyright (C) 2014 Free Software Foundation, Inc.
18931 # This is free software; see the source for copying conditions. There is NO
18932 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18933
18934 # GNU Libtool is free software; you can redistribute it and/or modify
18935 # it under the terms of the GNU General Public License as published by
18936 # the Free Software Foundation; either version 2 of of the License, or
18937 # (at your option) any later version.
18938 #
18939 # As a special exception to the GNU General Public License, if you
18940 # distribute this file as part of a program or library that is built
18941 # using GNU Libtool, you may include this file under the same
18942 # distribution terms that you use for the rest of that program.
18943 #
18944 # GNU Libtool is distributed in the hope that it will be useful, but
18945 # WITHOUT ANY WARRANTY; without even the implied warranty of
18946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18947 # GNU General Public License for more details.
18948 #
18949 # You should have received a copy of the GNU General Public License
18950 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18951
18952
18953 # The names of the tagged configurations supported by this script.
18954 available_tags='CXX '
18955
18956 # Configured defaults for sys_lib_dlsearch_path munging.
18957 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18958
18959 # ### BEGIN LIBTOOL CONFIG
18960
18961 # Which release of libtool.m4 was used?
18962 macro_version=$macro_version
18963 macro_revision=$macro_revision
18964
18965 # Whether or not to build shared libraries.
18966 build_libtool_libs=$enable_shared
18967
18968 # Whether or not to build static libraries.
18969 build_old_libs=$enable_static
18970
18971 # What type of objects to build.
18972 pic_mode=$pic_mode
18973
18974 # Whether or not to optimize for fast installation.
18975 fast_install=$enable_fast_install
18976
18977 # Shared archive member basename,for filename based shared library versioning on AIX.
18978 shared_archive_member_spec=$shared_archive_member_spec
18979
18980 # Shell to use when invoking shell scripts.
18981 SHELL=$lt_SHELL
18982
18983 # An echo program that protects backslashes.
18984 ECHO=$lt_ECHO
18985
18986 # The PATH separator for the build system.
18987 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18988
18989 # The host system.
18990 host_alias=$host_alias
18991 host=$host
18992 host_os=$host_os
18993
18994 # The build system.
18995 build_alias=$build_alias
18996 build=$build
18997 build_os=$build_os
18998
18999 # A sed program that does not truncate output.
19000 SED=$lt_SED
19001
19002 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19003 Xsed="\$SED -e 1s/^X//"
19004
19005 # A grep program that handles long lines.
19006 GREP=$lt_GREP
19007
19008 # An ERE matcher.
19009 EGREP=$lt_EGREP
19010
19011 # A literal string matcher.
19012 FGREP=$lt_FGREP
19013
19014 # A BSD- or MS-compatible name lister.
19015 NM=$lt_NM
19016
19017 # Whether we need soft or hard links.
19018 LN_S=$lt_LN_S
19019
19020 # What is the maximum length of a command?
19021 max_cmd_len=$max_cmd_len
19022
19023 # Object file suffix (normally "o").
19024 objext=$ac_objext
19025
19026 # Executable file suffix (normally "").
19027 exeext=$exeext
19028
19029 # whether the shell understands "unset".
19030 lt_unset=$lt_unset
19031
19032 # turn spaces into newlines.
19033 SP2NL=$lt_lt_SP2NL
19034
19035 # turn newlines into spaces.
19036 NL2SP=$lt_lt_NL2SP
19037
19038 # convert \$build file names to \$host format.
19039 to_host_file_cmd=$lt_cv_to_host_file_cmd
19040
19041 # convert \$build files to toolchain format.
19042 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19043
19044 # A file(cmd) program that detects file types.
19045 FILECMD=$lt_FILECMD
19046
19047 # An object symbol dumper.
19048 OBJDUMP=$lt_OBJDUMP
19049
19050 # Method to check whether dependent libraries are shared objects.
19051 deplibs_check_method=$lt_deplibs_check_method
19052
19053 # Command to use when deplibs_check_method = "file_magic".
19054 file_magic_cmd=$lt_file_magic_cmd
19055
19056 # How to find potential files when deplibs_check_method = "file_magic".
19057 file_magic_glob=$lt_file_magic_glob
19058
19059 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19060 want_nocaseglob=$lt_want_nocaseglob
19061
19062 # DLL creation program.
19063 DLLTOOL=$lt_DLLTOOL
19064
19065 # Command to associate shared and link libraries.
19066 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19067
19068 # The archiver.
19069 AR=$lt_AR
19070
19071 # Flags to create an archive (by configure).
19072 lt_ar_flags=$lt_ar_flags
19073
19074 # Flags to create an archive.
19075 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19076
19077 # How to feed a file listing to the archiver.
19078 archiver_list_spec=$lt_archiver_list_spec
19079
19080 # A symbol stripping program.
19081 STRIP=$lt_STRIP
19082
19083 # Commands used to install an old-style archive.
19084 RANLIB=$lt_RANLIB
19085 old_postinstall_cmds=$lt_old_postinstall_cmds
19086 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19087
19088 # Whether to use a lock for old archive extraction.
19089 lock_old_archive_extraction=$lock_old_archive_extraction
19090
19091 # A C compiler.
19092 LTCC=$lt_CC
19093
19094 # LTCC compiler flags.
19095 LTCFLAGS=$lt_CFLAGS
19096
19097 # Take the output of nm and produce a listing of raw symbols and C names.
19098 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19099
19100 # Transform the output of nm in a proper C declaration.
19101 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19102
19103 # Transform the output of nm into a list of symbols to manually relocate.
19104 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19105
19106 # Transform the output of nm in a C name address pair.
19107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19108
19109 # Transform the output of nm in a C name address pair when lib prefix is needed.
19110 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19111
19112 # The name lister interface.
19113 nm_interface=$lt_lt_cv_nm_interface
19114
19115 # Specify filename containing input files for \$NM.
19116 nm_file_list_spec=$lt_nm_file_list_spec
19117
19118 # The root where to search for dependent libraries,and where our libraries should be installed.
19119 lt_sysroot=$lt_sysroot
19120
19121 # Command to truncate a binary pipe.
19122 lt_truncate_bin=$lt_lt_cv_truncate_bin
19123
19124 # The name of the directory that contains temporary libtool files.
19125 objdir=$objdir
19126
19127 # Used to examine libraries when file_magic_cmd begins with "file".
19128 MAGIC_CMD=$MAGIC_CMD
19129
19130 # Must we lock files when doing compilation?
19131 need_locks=$lt_need_locks
19132
19133 # Manifest tool.
19134 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19135
19136 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19137 DSYMUTIL=$lt_DSYMUTIL
19138
19139 # Tool to change global to local symbols on Mac OS X.
19140 NMEDIT=$lt_NMEDIT
19141
19142 # Tool to manipulate fat objects and archives on Mac OS X.
19143 LIPO=$lt_LIPO
19144
19145 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19146 OTOOL=$lt_OTOOL
19147
19148 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19149 OTOOL64=$lt_OTOOL64
19150
19151 # Old archive suffix (normally "a").
19152 libext=$libext
19153
19154 # Shared library suffix (normally ".so").
19155 shrext_cmds=$lt_shrext_cmds
19156
19157 # The commands to extract the exported symbol list from a shared archive.
19158 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19159
19160 # Variables whose values should be saved in libtool wrapper scripts and
19161 # restored at link time.
19162 variables_saved_for_relink=$lt_variables_saved_for_relink
19163
19164 # Do we need the "lib" prefix for modules?
19165 need_lib_prefix=$need_lib_prefix
19166
19167 # Do we need a version for libraries?
19168 need_version=$need_version
19169
19170 # Library versioning type.
19171 version_type=$version_type
19172
19173 # Shared library runtime path variable.
19174 runpath_var=$runpath_var
19175
19176 # Shared library path variable.
19177 shlibpath_var=$shlibpath_var
19178
19179 # Is shlibpath searched before the hard-coded library search path?
19180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19181
19182 # Format of library name prefix.
19183 libname_spec=$lt_libname_spec
19184
19185 # List of archive names. First name is the real one, the rest are links.
19186 # The last name is the one that the linker finds with -lNAME
19187 library_names_spec=$lt_library_names_spec
19188
19189 # The coded name of the library, if different from the real name.
19190 soname_spec=$lt_soname_spec
19191
19192 # Permission mode override for installation of shared libraries.
19193 install_override_mode=$lt_install_override_mode
19194
19195 # Command to use after installation of a shared archive.
19196 postinstall_cmds=$lt_postinstall_cmds
19197
19198 # Command to use after uninstallation of a shared archive.
19199 postuninstall_cmds=$lt_postuninstall_cmds
19200
19201 # Commands used to finish a libtool library installation in a directory.
19202 finish_cmds=$lt_finish_cmds
19203
19204 # As "finish_cmds", except a single script fragment to be evaled but
19205 # not shown.
19206 finish_eval=$lt_finish_eval
19207
19208 # Whether we should hardcode library paths into libraries.
19209 hardcode_into_libs=$hardcode_into_libs
19210
19211 # Compile-time system search path for libraries.
19212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19213
19214 # Detected run-time system search path for libraries.
19215 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19216
19217 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19218 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19219
19220 # Whether dlopen is supported.
19221 dlopen_support=$enable_dlopen
19222
19223 # Whether dlopen of programs is supported.
19224 dlopen_self=$enable_dlopen_self
19225
19226 # Whether dlopen of statically linked programs is supported.
19227 dlopen_self_static=$enable_dlopen_self_static
19228
19229 # Commands to strip libraries.
19230 old_striplib=$lt_old_striplib
19231 striplib=$lt_striplib
19232
19233
19234 # The linker used to build libraries.
19235 LD=$lt_LD
19236
19237 # How to create reloadable object files.
19238 reload_flag=$lt_reload_flag
19239 reload_cmds=$lt_reload_cmds
19240
19241 # Commands used to build an old-style archive.
19242 old_archive_cmds=$lt_old_archive_cmds
19243
19244 # A language specific compiler.
19245 CC=$lt_compiler
19246
19247 # Is the compiler the GNU compiler?
19248 with_gcc=$GCC
19249
19250 # Compiler flag to turn off builtin functions.
19251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19252
19253 # Additional compiler flags for building library objects.
19254 pic_flag=$lt_lt_prog_compiler_pic
19255
19256 # How to pass a linker flag through the compiler.
19257 wl=$lt_lt_prog_compiler_wl
19258
19259 # Compiler flag to prevent dynamic linking.
19260 link_static_flag=$lt_lt_prog_compiler_static
19261
19262 # Does compiler simultaneously support -c and -o options?
19263 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19264
19265 # Whether or not to add -lc for building shared libraries.
19266 build_libtool_need_lc=$archive_cmds_need_lc
19267
19268 # Whether or not to disallow shared libs when runtime libs are static.
19269 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19270
19271 # Compiler flag to allow reflexive dlopens.
19272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19273
19274 # Compiler flag to generate shared objects directly from archives.
19275 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19276
19277 # Whether the compiler copes with passing no objects directly.
19278 compiler_needs_object=$lt_compiler_needs_object
19279
19280 # Create an old-style archive from a shared archive.
19281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19282
19283 # Create a temporary old-style archive to link instead of a shared archive.
19284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19285
19286 # Commands used to build a shared archive.
19287 archive_cmds=$lt_archive_cmds
19288 archive_expsym_cmds=$lt_archive_expsym_cmds
19289
19290 # Commands used to build a loadable module if different from building
19291 # a shared archive.
19292 module_cmds=$lt_module_cmds
19293 module_expsym_cmds=$lt_module_expsym_cmds
19294
19295 # Whether we are building with GNU ld or not.
19296 with_gnu_ld=$lt_with_gnu_ld
19297
19298 # Flag that allows shared libraries with undefined symbols to be built.
19299 allow_undefined_flag=$lt_allow_undefined_flag
19300
19301 # Flag that enforces no undefined symbols.
19302 no_undefined_flag=$lt_no_undefined_flag
19303
19304 # Flag to hardcode \$libdir into a binary during linking.
19305 # This must work even if \$libdir does not exist
19306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19307
19308 # Whether we need a single "-rpath" flag with a separated argument.
19309 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19310
19311 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19312 # DIR into the resulting binary.
19313 hardcode_direct=$hardcode_direct
19314
19315 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19316 # DIR into the resulting binary and the resulting library dependency is
19317 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19318 # library is relocated.
19319 hardcode_direct_absolute=$hardcode_direct_absolute
19320
19321 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19322 # into the resulting binary.
19323 hardcode_minus_L=$hardcode_minus_L
19324
19325 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19326 # into the resulting binary.
19327 hardcode_shlibpath_var=$hardcode_shlibpath_var
19328
19329 # Set to "yes" if building a shared library automatically hardcodes DIR
19330 # into the library and all subsequent libraries and executables linked
19331 # against it.
19332 hardcode_automatic=$hardcode_automatic
19333
19334 # Set to yes if linker adds runtime paths of dependent libraries
19335 # to runtime path list.
19336 inherit_rpath=$inherit_rpath
19337
19338 # Whether libtool must link a program against all its dependency libraries.
19339 link_all_deplibs=$link_all_deplibs
19340
19341 # Set to "yes" if exported symbols are required.
19342 always_export_symbols=$always_export_symbols
19343
19344 # The commands to list exported symbols.
19345 export_symbols_cmds=$lt_export_symbols_cmds
19346
19347 # Symbols that should not be listed in the preloaded symbols.
19348 exclude_expsyms=$lt_exclude_expsyms
19349
19350 # Symbols that must always be exported.
19351 include_expsyms=$lt_include_expsyms
19352
19353 # Commands necessary for linking programs (against libraries) with templates.
19354 prelink_cmds=$lt_prelink_cmds
19355
19356 # Commands necessary for finishing linking programs.
19357 postlink_cmds=$lt_postlink_cmds
19358
19359 # Specify filename containing input files.
19360 file_list_spec=$lt_file_list_spec
19361
19362 # How to hardcode a shared library path into an executable.
19363 hardcode_action=$hardcode_action
19364
19365 # The directories searched by this compiler when creating a shared library.
19366 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19367
19368 # Dependencies to place before and after the objects being linked to
19369 # create a shared library.
19370 predep_objects=$lt_predep_objects
19371 postdep_objects=$lt_postdep_objects
19372 predeps=$lt_predeps
19373 postdeps=$lt_postdeps
19374
19375 # The library search path used internally by the compiler when linking
19376 # a shared library.
19377 compiler_lib_search_path=$lt_compiler_lib_search_path
19378
19379 # ### END LIBTOOL CONFIG
19380
19381 _LT_EOF
19382
19383 cat <<'_LT_EOF' >> "$cfgfile"
19384
19385 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19386
19387 # func_munge_path_list VARIABLE PATH
19388 # -----------------------------------
19389 # VARIABLE is name of variable containing _space_ separated list of
19390 # directories to be munged by the contents of PATH, which is string
19391 # having a format:
19392 # "DIR[:DIR]:"
19393 # string "DIR[ DIR]" will be prepended to VARIABLE
19394 # ":DIR[:DIR]"
19395 # string "DIR[ DIR]" will be appended to VARIABLE
19396 # "DIRP[:DIRP]::[DIRA:]DIRA"
19397 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19398 # "DIRA[ DIRA]" will be appended to VARIABLE
19399 # "DIR[:DIR]"
19400 # VARIABLE will be replaced by "DIR[ DIR]"
19401 func_munge_path_list ()
19402 {
19403 case x$2 in
19404 x)
19405 ;;
19406 *:)
19407 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19408 ;;
19409 x:*)
19410 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19411 ;;
19412 *::*)
19413 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19414 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19415 ;;
19416 *)
19417 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19418 ;;
19419 esac
19420 }
19421
19422
19423 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19424 func_cc_basename ()
19425 {
19426 for cc_temp in $*""; do
19427 case $cc_temp in
19428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19430 \-*) ;;
19431 *) break;;
19432 esac
19433 done
19434 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19435 }
19436
19437
19438 # ### END FUNCTIONS SHARED WITH CONFIGURE
19439
19440 _LT_EOF
19441
19442 case $host_os in
19443 aix3*)
19444 cat <<\_LT_EOF >> "$cfgfile"
19445 # AIX sometimes has problems with the GCC collect2 program. For some
19446 # reason, if we set the COLLECT_NAMES environment variable, the problems
19447 # vanish in a puff of smoke.
19448 if test set != "${COLLECT_NAMES+set}"; then
19449 COLLECT_NAMES=
19450 export COLLECT_NAMES
19451 fi
19452 _LT_EOF
19453 ;;
19454 esac
19455
19456
19457
19458 ltmain=$ac_aux_dir/ltmain.sh
19459
19460
19461 # We use sed instead of cat because bash on DJGPP gets confused if
19462 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19463 # text mode, it properly converts lines to CR/LF. This bash problem
19464 # is reportedly fixed, but why not run on old versions too?
19465 $SED '$q' "$ltmain" >> "$cfgfile" \
19466 || (rm -f "$cfgfile"; exit 1)
19467
19468 mv -f "$cfgfile" "$ofile" ||
19469 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19470 chmod +x "$ofile"
19471
19472
19473 cat <<_LT_EOF >> "$ofile"
19474
19475 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19476
19477 # The linker used to build libraries.
19478 LD=$lt_LD_CXX
19479
19480 # How to create reloadable object files.
19481 reload_flag=$lt_reload_flag_CXX
19482 reload_cmds=$lt_reload_cmds_CXX
19483
19484 # Commands used to build an old-style archive.
19485 old_archive_cmds=$lt_old_archive_cmds_CXX
19486
19487 # A language specific compiler.
19488 CC=$lt_compiler_CXX
19489
19490 # Is the compiler the GNU compiler?
19491 with_gcc=$GCC_CXX
19492
19493 # Compiler flag to turn off builtin functions.
19494 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19495
19496 # Additional compiler flags for building library objects.
19497 pic_flag=$lt_lt_prog_compiler_pic_CXX
19498
19499 # How to pass a linker flag through the compiler.
19500 wl=$lt_lt_prog_compiler_wl_CXX
19501
19502 # Compiler flag to prevent dynamic linking.
19503 link_static_flag=$lt_lt_prog_compiler_static_CXX
19504
19505 # Does compiler simultaneously support -c and -o options?
19506 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19507
19508 # Whether or not to add -lc for building shared libraries.
19509 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19510
19511 # Whether or not to disallow shared libs when runtime libs are static.
19512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19513
19514 # Compiler flag to allow reflexive dlopens.
19515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19516
19517 # Compiler flag to generate shared objects directly from archives.
19518 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19519
19520 # Whether the compiler copes with passing no objects directly.
19521 compiler_needs_object=$lt_compiler_needs_object_CXX
19522
19523 # Create an old-style archive from a shared archive.
19524 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19525
19526 # Create a temporary old-style archive to link instead of a shared archive.
19527 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19528
19529 # Commands used to build a shared archive.
19530 archive_cmds=$lt_archive_cmds_CXX
19531 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19532
19533 # Commands used to build a loadable module if different from building
19534 # a shared archive.
19535 module_cmds=$lt_module_cmds_CXX
19536 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19537
19538 # Whether we are building with GNU ld or not.
19539 with_gnu_ld=$lt_with_gnu_ld_CXX
19540
19541 # Flag that allows shared libraries with undefined symbols to be built.
19542 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19543
19544 # Flag that enforces no undefined symbols.
19545 no_undefined_flag=$lt_no_undefined_flag_CXX
19546
19547 # Flag to hardcode \$libdir into a binary during linking.
19548 # This must work even if \$libdir does not exist
19549 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19550
19551 # Whether we need a single "-rpath" flag with a separated argument.
19552 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19553
19554 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19555 # DIR into the resulting binary.
19556 hardcode_direct=$hardcode_direct_CXX
19557
19558 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19559 # DIR into the resulting binary and the resulting library dependency is
19560 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19561 # library is relocated.
19562 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19563
19564 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19565 # into the resulting binary.
19566 hardcode_minus_L=$hardcode_minus_L_CXX
19567
19568 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19569 # into the resulting binary.
19570 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19571
19572 # Set to "yes" if building a shared library automatically hardcodes DIR
19573 # into the library and all subsequent libraries and executables linked
19574 # against it.
19575 hardcode_automatic=$hardcode_automatic_CXX
19576
19577 # Set to yes if linker adds runtime paths of dependent libraries
19578 # to runtime path list.
19579 inherit_rpath=$inherit_rpath_CXX
19580
19581 # Whether libtool must link a program against all its dependency libraries.
19582 link_all_deplibs=$link_all_deplibs_CXX
19583
19584 # Set to "yes" if exported symbols are required.
19585 always_export_symbols=$always_export_symbols_CXX
19586
19587 # The commands to list exported symbols.
19588 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19589
19590 # Symbols that should not be listed in the preloaded symbols.
19591 exclude_expsyms=$lt_exclude_expsyms_CXX
19592
19593 # Symbols that must always be exported.
19594 include_expsyms=$lt_include_expsyms_CXX
19595
19596 # Commands necessary for linking programs (against libraries) with templates.
19597 prelink_cmds=$lt_prelink_cmds_CXX
19598
19599 # Commands necessary for finishing linking programs.
19600 postlink_cmds=$lt_postlink_cmds_CXX
19601
19602 # Specify filename containing input files.
19603 file_list_spec=$lt_file_list_spec_CXX
19604
19605 # How to hardcode a shared library path into an executable.
19606 hardcode_action=$hardcode_action_CXX
19607
19608 # The directories searched by this compiler when creating a shared library.
19609 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19610
19611 # Dependencies to place before and after the objects being linked to
19612 # create a shared library.
19613 predep_objects=$lt_predep_objects_CXX
19614 postdep_objects=$lt_postdep_objects_CXX
19615 predeps=$lt_predeps_CXX
19616 postdeps=$lt_postdeps_CXX
19617
19618 # The library search path used internally by the compiler when linking
19619 # a shared library.
19620 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19621
19622 # ### END LIBTOOL TAG CONFIG: CXX
19623 _LT_EOF
19624
19625 ;;
19626 "Makefile":F) test -e bin/gyoto && chmod a+x bin/gyoto ;;
19627 "lib/Makefile":F) test -e bin/gyoto && chmod a+x bin/gyoto ;;
19628 "bin/gyoto":F) test -e bin/gyoto && chmod a+x bin/gyoto ;;
19629
19630 esac
19631 done # for ac_tag
19632
19633
19634 as_fn_exit 0
19635 _ACEOF
19636 ac_clean_files=$ac_clean_files_save
19637
19638 test $ac_write_fail = 0 ||
19639 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19640
19641
19642 # configure is writing to config.log, and then calls config.status.
19643 # config.status does its own redirection, appending to config.log.
19644 # Unfortunately, on DOS this fails, as config.log is still kept open
19645 # by configure, so config.status won't be able to write to it; its
19646 # output is simply discarded. So we exec the FD to /dev/null,
19647 # effectively closing config.log, so it can be properly (re)opened and
19648 # appended to by config.status. When coming back to configure, we
19649 # need to make the FD available again.
19650 if test "$no_create" != yes; then
19651 ac_cs_success=:
19652 ac_config_status_args=
19653 test "$silent" = yes &&
19654 ac_config_status_args="$ac_config_status_args --quiet"
19655 exec 5>/dev/null
19656 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19657 exec 5>>config.log
19658 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19659 # would make configure fail if this is the last instruction.
19660 $ac_cs_success || as_fn_exit 1
19661 fi
19662 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19664 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19665 fi
19666
19667