Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgdiplus 6.1.
4 #
5 # Report bugs to <https://github.com/mono/mono/issues/new>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: https://github.com/mono/mono/issues/new about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libgdiplus'
592 PACKAGE_TARNAME='libgdiplus'
593 PACKAGE_VERSION='6.1'
594 PACKAGE_STRING='libgdiplus 6.1'
595 PACKAGE_BUGREPORT='https://github.com/mono/mono/issues/new'
596 PACKAGE_URL=''
597
598 ac_unique_file="README.md"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 GDIPLUS_PKG_REQ
640 GDIPLUS_PKG_CFLAGS
641 GDIPLUS_PKG_LIBS
642 GDIPLUS_INCLUDES
643 GDIPLUS_CFLAGS
644 GDIPLUS_LIBS
645 HAVE_LIBEXIF_FALSE
646 HAVE_LIBEXIF_TRUE
647 LIBEXIF_LIBS
648 LIBEXIF_CFLAGS
649 HAVE_X11_FALSE
650 HAVE_X11_TRUE
651 HAVE_LIBTIFF_FALSE
652 HAVE_LIBTIFF_TRUE
653 HAVE_LIBJPEG_FALSE
654 HAVE_LIBJPEG_TRUE
655 FREETYPE_CONFIG
656 FREETYPE2_LIBS
657 FREETYPE2_CFLAGS
658 FONTCONFIG_CONFIG
659 FONTCONFIG_LIBS
660 FONTCONFIG_CFLAGS
661 USE_PANGO_RENDERING_FALSE
662 USE_PANGO_RENDERING_TRUE
663 PANGO_LIBS
664 PANGO_CFLAGS
665 CAIRO_LIBS
666 CAIRO_CFLAGS
667 HAVE_CMAKE_FALSE
668 HAVE_CMAKE_TRUE
669 CMAKE
670 BASE_DEPENDENCIES_LIBS
671 BASE_DEPENDENCIES_CFLAGS
672 PKG_CONFIG_LIBDIR
673 PKG_CONFIG_PATH
674 PKG_CONFIG
675 CXXCPP
676 CPP
677 LT_SYS_LIBRARY_PATH
678 OTOOL64
679 OTOOL
680 LIPO
681 NMEDIT
682 DSYMUTIL
683 MANIFEST_TOOL
684 RANLIB
685 ac_ct_AR
686 AR
687 DLLTOOL
688 OBJDUMP
689 LN_S
690 NM
691 ac_ct_DUMPBIN
692 DUMPBIN
693 LD
694 FGREP
695 EGREP
696 GREP
697 SED
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 ac_ct_CC
702 CFLAGS
703 CC
704 LIBTOOL
705 am__fastdepCXX_FALSE
706 am__fastdepCXX_TRUE
707 CXXDEPMODE
708 am__nodep
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__include
713 DEPDIR
714 OBJEXT
715 EXEEXT
716 ac_ct_CXX
717 CPPFLAGS
718 LDFLAGS
719 CXXFLAGS
720 CXX
721 MAINT
722 MAINTAINER_MODE_FALSE
723 MAINTAINER_MODE_TRUE
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
733 AWK
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_os
752 target_vendor
753 target_cpu
754 target
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 target_alias
764 host_alias
765 build_alias
766 LIBS
767 ECHO_T
768 ECHO_N
769 ECHO_C
770 DEFS
771 mandir
772 localedir
773 libdir
774 psdir
775 pdfdir
776 dvidir
777 htmldir
778 infodir
779 docdir
780 oldincludedir
781 includedir
782 runstatedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL
802 am__quote'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 enable_silent_rules
807 enable_maintainer_mode
808 enable_dependency_tracking
809 enable_shared
810 enable_static
811 with_pic
812 enable_fast_install
813 with_aix_soname
814 with_gnu_ld
815 with_sysroot
816 enable_libtool_lock
817 with_pango
818 enable_warnaserror
819 enable_asan
820 enable_coverage
821 with_libexif
822 with_libjpeg
823 with_libtiff
824 with_libgif
825 with_x11
826 '
827 ac_precious_vars='build_alias
828 host_alias
829 target_alias
830 CXX
831 CXXFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
835 CCC
836 CC
837 CFLAGS
838 LT_SYS_LIBRARY_PATH
839 CPP
840 CXXCPP
841 PKG_CONFIG
842 PKG_CONFIG_PATH
843 PKG_CONFIG_LIBDIR
844 BASE_DEPENDENCIES_CFLAGS
845 BASE_DEPENDENCIES_LIBS
846 CAIRO_CFLAGS
847 CAIRO_LIBS
848 PANGO_CFLAGS
849 PANGO_LIBS
850 FONTCONFIG_CFLAGS
851 FONTCONFIG_LIBS
852 FREETYPE2_CFLAGS
853 FREETYPE2_LIBS
854 LIBEXIF_CFLAGS
855 LIBEXIF_LIBS'
856
857
858 # Initialize some variables set by options.
859 ac_init_help=
860 ac_init_version=false
861 ac_unrecognized_opts=
862 ac_unrecognized_sep=
863 # The variables have the same names as the options, with
864 # dashes changed to underlines.
865 cache_file=/dev/null
866 exec_prefix=NONE
867 no_create=
868 no_recursion=
869 prefix=NONE
870 program_prefix=NONE
871 program_suffix=NONE
872 program_transform_name=s,x,x,
873 silent=
874 site=
875 srcdir=
876 verbose=
877 x_includes=NONE
878 x_libraries=NONE
879
880 # Installation directory options.
881 # These are left unexpanded so users can "make install exec_prefix=/foo"
882 # and all the variables that are supposed to be based on exec_prefix
883 # by default will actually change.
884 # Use braces instead of parens because sh, perl, etc. also accept them.
885 # (The list follows the same order as the GNU Coding Standards.)
886 bindir='${exec_prefix}/bin'
887 sbindir='${exec_prefix}/sbin'
888 libexecdir='${exec_prefix}/libexec'
889 datarootdir='${prefix}/share'
890 datadir='${datarootdir}'
891 sysconfdir='${prefix}/etc'
892 sharedstatedir='${prefix}/com'
893 localstatedir='${prefix}/var'
894 runstatedir='${localstatedir}/run'
895 includedir='${prefix}/include'
896 oldincludedir='/usr/include'
897 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898 infodir='${datarootdir}/info'
899 htmldir='${docdir}'
900 dvidir='${docdir}'
901 pdfdir='${docdir}'
902 psdir='${docdir}'
903 libdir='${exec_prefix}/lib'
904 localedir='${datarootdir}/locale'
905 mandir='${datarootdir}/man'
906
907 ac_prev=
908 ac_dashdash=
909 for ac_option
910 do
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
914 ac_prev=
915 continue
916 fi
917
918 case $ac_option in
919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 *=) ac_optarg= ;;
921 *) ac_optarg=yes ;;
922 esac
923
924 # Accept the important Cygnus configure options, so we can diagnose typos.
925
926 case $ac_dashdash$ac_option in
927 --)
928 ac_dashdash=yes ;;
929
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
931 ac_prev=bindir ;;
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933 bindir=$ac_optarg ;;
934
935 -build | --build | --buil | --bui | --bu)
936 ac_prev=build_alias ;;
937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938 build_alias=$ac_optarg ;;
939
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945 cache_file=$ac_optarg ;;
946
947 --config-cache | -C)
948 cache_file=config.cache ;;
949
950 -datadir | --datadir | --datadi | --datad)
951 ac_prev=datadir ;;
952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953 datadir=$ac_optarg ;;
954
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
961
962 -disable-* | --disable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=no ;;
977
978 -docdir | --docdir | --docdi | --doc | --do)
979 ac_prev=docdir ;;
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 docdir=$ac_optarg ;;
982
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984 ac_prev=dvidir ;;
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 dvidir=$ac_optarg ;;
987
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997 "enable_$ac_useropt"
998 "*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=\$ac_optarg ;;
1003
1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006 | --exec | --exe | --ex)
1007 ac_prev=exec_prefix ;;
1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010 | --exec=* | --exe=* | --ex=*)
1011 exec_prefix=$ac_optarg ;;
1012
1013 -gas | --gas | --ga | --g)
1014 # Obsolete; use --with-gas.
1015 with_gas=yes ;;
1016
1017 -help | --help | --hel | --he | -h)
1018 ac_init_help=long ;;
1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020 ac_init_help=recursive ;;
1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022 ac_init_help=short ;;
1023
1024 -host | --host | --hos | --ho)
1025 ac_prev=host_alias ;;
1026 -host=* | --host=* | --hos=* | --ho=*)
1027 host_alias=$ac_optarg ;;
1028
1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030 ac_prev=htmldir ;;
1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032 | --ht=*)
1033 htmldir=$ac_optarg ;;
1034
1035 -includedir | --includedir | --includedi | --included | --include \
1036 | --includ | --inclu | --incl | --inc)
1037 ac_prev=includedir ;;
1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039 | --includ=* | --inclu=* | --incl=* | --inc=*)
1040 includedir=$ac_optarg ;;
1041
1042 -infodir | --infodir | --infodi | --infod | --info | --inf)
1043 ac_prev=infodir ;;
1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045 infodir=$ac_optarg ;;
1046
1047 -libdir | --libdir | --libdi | --libd)
1048 ac_prev=libdir ;;
1049 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050 libdir=$ac_optarg ;;
1051
1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053 | --libexe | --libex | --libe)
1054 ac_prev=libexecdir ;;
1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056 | --libexe=* | --libex=* | --libe=*)
1057 libexecdir=$ac_optarg ;;
1058
1059 -localedir | --localedir | --localedi | --localed | --locale)
1060 ac_prev=localedir ;;
1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062 localedir=$ac_optarg ;;
1063
1064 -localstatedir | --localstatedir | --localstatedi | --localstated \
1065 | --localstate | --localstat | --localsta | --localst | --locals)
1066 ac_prev=localstatedir ;;
1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069 localstatedir=$ac_optarg ;;
1070
1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072 ac_prev=mandir ;;
1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074 mandir=$ac_optarg ;;
1075
1076 -nfp | --nfp | --nf)
1077 # Obsolete; use --without-fp.
1078 with_fp=no ;;
1079
1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081 | --no-cr | --no-c | -n)
1082 no_create=yes ;;
1083
1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 no_recursion=yes ;;
1087
1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090 | --oldin | --oldi | --old | --ol | --o)
1091 ac_prev=oldincludedir ;;
1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095 oldincludedir=$ac_optarg ;;
1096
1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098 ac_prev=prefix ;;
1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100 prefix=$ac_optarg ;;
1101
1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103 | --program-pre | --program-pr | --program-p)
1104 ac_prev=program_prefix ;;
1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107 program_prefix=$ac_optarg ;;
1108
1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110 | --program-suf | --program-su | --program-s)
1111 ac_prev=program_suffix ;;
1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114 program_suffix=$ac_optarg ;;
1115
1116 -program-transform-name | --program-transform-name \
1117 | --program-transform-nam | --program-transform-na \
1118 | --program-transform-n | --program-transform- \
1119 | --program-transform | --program-transfor \
1120 | --program-transfo | --program-transf \
1121 | --program-trans | --program-tran \
1122 | --progr-tra | --program-tr | --program-t)
1123 ac_prev=program_transform_name ;;
1124 -program-transform-name=* | --program-transform-name=* \
1125 | --program-transform-nam=* | --program-transform-na=* \
1126 | --program-transform-n=* | --program-transform-=* \
1127 | --program-transform=* | --program-transfor=* \
1128 | --program-transfo=* | --program-transf=* \
1129 | --program-trans=* | --program-tran=* \
1130 | --progr-tra=* | --program-tr=* | --program-t=*)
1131 program_transform_name=$ac_optarg ;;
1132
1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134 ac_prev=pdfdir ;;
1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136 pdfdir=$ac_optarg ;;
1137
1138 -psdir | --psdir | --psdi | --psd | --ps)
1139 ac_prev=psdir ;;
1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 psdir=$ac_optarg ;;
1142
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1145 silent=yes ;;
1146
1147 -runstatedir | --runstatedir | --runstatedi | --runstated \
1148 | --runstate | --runstat | --runsta | --runst | --runs \
1149 | --run | --ru | --r)
1150 ac_prev=runstatedir ;;
1151 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1152 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1153 | --run=* | --ru=* | --r=*)
1154 runstatedir=$ac_optarg ;;
1155
1156 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157 ac_prev=sbindir ;;
1158 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159 | --sbi=* | --sb=*)
1160 sbindir=$ac_optarg ;;
1161
1162 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1163 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1164 | --sharedst | --shareds | --shared | --share | --shar \
1165 | --sha | --sh)
1166 ac_prev=sharedstatedir ;;
1167 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1168 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1169 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170 | --sha=* | --sh=*)
1171 sharedstatedir=$ac_optarg ;;
1172
1173 -site | --site | --sit)
1174 ac_prev=site ;;
1175 -site=* | --site=* | --sit=*)
1176 site=$ac_optarg ;;
1177
1178 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179 ac_prev=srcdir ;;
1180 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1181 srcdir=$ac_optarg ;;
1182
1183 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1184 | --syscon | --sysco | --sysc | --sys | --sy)
1185 ac_prev=sysconfdir ;;
1186 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1187 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1188 sysconfdir=$ac_optarg ;;
1189
1190 -target | --target | --targe | --targ | --tar | --ta | --t)
1191 ac_prev=target_alias ;;
1192 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1193 target_alias=$ac_optarg ;;
1194
1195 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196 verbose=yes ;;
1197
1198 -version | --version | --versio | --versi | --vers | -V)
1199 ac_init_version=: ;;
1200
1201 -with-* | --with-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error $? "invalid package name: $ac_useropt"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=\$ac_optarg ;;
1216
1217 -without-* | --without-*)
1218 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 as_fn_error $? "invalid package name: $ac_useropt"
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1225 *"
1226 "with_$ac_useropt"
1227 "*) ;;
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1230 esac
1231 eval with_$ac_useropt=no ;;
1232
1233 --x)
1234 # Obsolete; use --with-x.
1235 with_x=yes ;;
1236
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1243
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1250
1251 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1252 Try \`$0 --help' for more information"
1253 ;;
1254
1255 *=*)
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 case $ac_envvar in #(
1259 '' | [0-9]* | *[!_$as_cr_alnum]* )
1260 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1261 esac
1262 eval $ac_envvar=\$ac_optarg
1263 export $ac_envvar ;;
1264
1265 *)
1266 # FIXME: should be removed in autoconf 3.0.
1267 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1271 ;;
1272
1273 esac
1274 done
1275
1276 if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 as_fn_error $? "missing argument to $ac_option"
1279 fi
1280
1281 if test -n "$ac_unrecognized_opts"; then
1282 case $enable_option_checking in
1283 no) ;;
1284 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286 esac
1287 fi
1288
1289 # Check all directory arguments for consistency.
1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir runstatedir
1294 do
1295 eval ac_val=\$$ac_var
1296 # Remove trailing slashes.
1297 case $ac_val in
1298 */ )
1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300 eval $ac_var=\$ac_val;;
1301 esac
1302 # Be sure to have absolute directory names.
1303 case $ac_val in
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306 esac
1307 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1308 done
1309
1310 # There might be people who depend on the old broken behavior: `$host'
1311 # used to hold the argument of --host etc.
1312 # FIXME: To remove some day.
1313 build=$build_alias
1314 host=$host_alias
1315 target=$target_alias
1316
1317 # FIXME: To remove some day.
1318 if test "x$host_alias" != x; then
1319 if test "x$build_alias" = x; then
1320 cross_compiling=maybe
1321 elif test "x$build_alias" != "x$host_alias"; then
1322 cross_compiling=yes
1323 fi
1324 fi
1325
1326 ac_tool_prefix=
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329 test "$silent" = yes && exec 6>/dev/null
1330
1331
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335 as_fn_error $? "working directory cannot be determined"
1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337 as_fn_error $? "pwd does not report name of working directory"
1338
1339
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342 ac_srcdir_defaulted=yes
1343 # Try the directory containing this script, then the parent directory.
1344 ac_confdir=`$as_dirname -- "$as_myself" ||
1345 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346 X"$as_myself" : 'X\(//\)[^/]' \| \
1347 X"$as_myself" : 'X\(//\)$' \| \
1348 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1349 $as_echo X"$as_myself" |
1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)[^/].*/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)$/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\).*/{
1363 s//\1/
1364 q
1365 }
1366 s/.*/./; q'`
1367 srcdir=$ac_confdir
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 srcdir=..
1370 fi
1371 else
1372 ac_srcdir_defaulted=no
1373 fi
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1377 fi
1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379 ac_abs_confdir=`(
1380 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1381 pwd)`
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 srcdir=.
1385 fi
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1389 case $srcdir in
1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 esac
1392 for ac_var in $ac_precious_vars; do
1393 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_${ac_var}_value=\$${ac_var}
1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 done
1398
1399 #
1400 # Report the --help message.
1401 #
1402 if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1405 cat <<_ACEOF
1406 \`configure' configures libgdiplus 6.1 to adapt to many kinds of systems.
1407
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE. See below for descriptions of some of the useful variables.
1412
1413 Defaults for the options are specified in brackets.
1414
1415 Configuration:
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking ...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425
1426 Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 [PREFIX]
1431
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1436
1437 For better control, use the options below.
1438
1439 Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1447 --libdir=DIR object code libraries [EPREFIX/lib]
1448 --includedir=DIR C header files [PREFIX/include]
1449 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1452 --infodir=DIR info documentation [DATAROOTDIR/info]
1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1454 --mandir=DIR man documentation [DATAROOTDIR/man]
1455 --docdir=DIR documentation root [DATAROOTDIR/doc/libgdiplus]
1456 --htmldir=DIR html documentation [DOCDIR]
1457 --dvidir=DIR dvi documentation [DOCDIR]
1458 --pdfdir=DIR pdf documentation [DOCDIR]
1459 --psdir=DIR ps documentation [DOCDIR]
1460 _ACEOF
1461
1462 cat <<\_ACEOF
1463
1464 Program names:
1465 --program-prefix=PREFIX prepend PREFIX to installed program names
1466 --program-suffix=SUFFIX append SUFFIX to installed program names
1467 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1468
1469 System types:
1470 --build=BUILD configure for building on BUILD [guessed]
1471 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 --target=TARGET configure for building compilers for TARGET [HOST]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of libgdiplus 6.1:";;
1479 esac
1480 cat <<\_ACEOF
1481
1482 Optional Features:
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --enable-silent-rules less verbose build output (undo: "make V=1")
1487 --disable-silent-rules verbose build output (undo: "make V=0")
1488 --enable-maintainer-mode
1489 enable make rules and dependencies not useful (and
1490 sometimes confusing) to the casual installer
1491 --enable-dependency-tracking
1492 do not reject slow dependency extractors
1493 --disable-dependency-tracking
1494 speeds up one-time build
1495 --enable-shared[=PKGS] build shared libraries [default=yes]
1496 --enable-static[=PKGS] build static libraries [default=yes]
1497 --enable-fast-install[=PKGS]
1498 optimize for fast installation [default=yes]
1499 --disable-libtool-lock avoid locking (might break parallel builds)
1500 --enable-warnaserror Enable treating warnings as errors.
1501 --enable-asan Enable address sanitizer.
1502 --enable-coverage Enable code coverage.
1503
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1508 both]
1509 --with-aix-soname=aix|svr4|both
1510 shared library versioning (aka "SONAME") variant to
1511 provide on AIX, [default=aix].
1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1513 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1514 compiler's sysroot if not specified).
1515 --with-pango use Pango to measure and draw text
1516 --without-libexif disable EXIF support
1517 --with-libjpeg=PREFIX Prefix where libjpeg is installed, or 'no' to
1518 disable
1519 --with-libtiff=PREFIX Prefix where libtiff is installed, or 'no' to
1520 disable
1521 --with-libgif=PREFIX Prefix where libgif is installed, or 'no' to disable
1522 --without-x11 Disable X11 support
1523
1524 Some influential environment variables:
1525 CXX C++ compiler command
1526 CXXFLAGS C++ compiler flags
1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1528 nonstandard directory <lib dir>
1529 LIBS libraries to pass to the linker, e.g. -l<library>
1530 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1531 you have headers in a nonstandard directory <include dir>
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LT_SYS_LIBRARY_PATH
1535 User-defined run-time library search path.
1536 CPP C preprocessor
1537 CXXCPP C++ preprocessor
1538 PKG_CONFIG path to pkg-config utility
1539 PKG_CONFIG_PATH
1540 directories to add to pkg-config's search path
1541 PKG_CONFIG_LIBDIR
1542 path overriding pkg-config's built-in search path
1543 BASE_DEPENDENCIES_CFLAGS
1544 C compiler flags for BASE_DEPENDENCIES, overriding pkg-config
1545 BASE_DEPENDENCIES_LIBS
1546 linker flags for BASE_DEPENDENCIES, overriding pkg-config
1547 CAIRO_CFLAGS
1548 C compiler flags for CAIRO, overriding pkg-config
1549 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1550 PANGO_CFLAGS
1551 C compiler flags for PANGO, overriding pkg-config
1552 PANGO_LIBS linker flags for PANGO, overriding pkg-config
1553 FONTCONFIG_CFLAGS
1554 C compiler flags for FONTCONFIG, overriding pkg-config
1555 FONTCONFIG_LIBS
1556 linker flags for FONTCONFIG, overriding pkg-config
1557 FREETYPE2_CFLAGS
1558 C compiler flags for FREETYPE2, overriding pkg-config
1559 FREETYPE2_LIBS
1560 linker flags for FREETYPE2, overriding pkg-config
1561 LIBEXIF_CFLAGS
1562 C compiler flags for LIBEXIF, overriding pkg-config
1563 LIBEXIF_LIBS
1564 linker flags for LIBEXIF, overriding pkg-config
1565
1566 Use these variables to override the choices made by `configure' or to help
1567 it to find libraries and programs with nonstandard names/locations.
1568
1569 Report bugs to <https://github.com/mono/mono/issues/new>.
1570 _ACEOF
1571 ac_status=$?
1572 fi
1573
1574 if test "$ac_init_help" = "recursive"; then
1575 # If there are subdirs, report their specific --help.
1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577 test -d "$ac_dir" ||
1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579 continue
1580 ac_builddir=.
1581
1582 case "$ac_dir" in
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *)
1585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 esac ;;
1592 esac
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1597
1598 case $srcdir in
1599 .) # We are building in place.
1600 ac_srcdir=.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1607 *) # Relative name.
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 esac
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1622 else
1623 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 fi || ac_status=$?
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1626 done
1627 fi
1628
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1631 cat <<\_ACEOF
1632 libgdiplus configure 6.1
1633 generated by GNU Autoconf 2.69
1634
1635 Copyright (C) 2012 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1638 _ACEOF
1639 exit
1640 fi
1641
1642 ## ------------------------ ##
1643 ## Autoconf initialization. ##
1644 ## ------------------------ ##
1645
1646 # ac_fn_cxx_try_compile LINENO
1647 # ----------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_cxx_try_compile ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext
1653 if { { ac_try="$ac_compile"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_compile") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_cxx_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest.$ac_objext; then :
1672 ac_retval=0
1673 else
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678 fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682 } # ac_fn_cxx_try_compile
1683
1684 # ac_fn_c_try_compile LINENO
1685 # --------------------------
1686 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_compile ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext
1691 if { { ac_try="$ac_compile"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_compile") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
1707 test -z "$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 } && test -s conftest.$ac_objext; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716 fi
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_compile
1721
1722 # ac_fn_c_try_link LINENO
1723 # -----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_link ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext conftest$ac_exeext
1729 if { { ac_try="$ac_link"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1742 fi
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest$ac_exeext && {
1748 test "$cross_compiling" = yes ||
1749 test -x conftest$ac_exeext
1750 }; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757 fi
1758 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1759 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1760 # interfere with the next link command; also delete a directory that is
1761 # left behind by Apple's compiler. We do this before executing the actions.
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1765
1766 } # ac_fn_c_try_link
1767
1768 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists and can be compiled using the include files in
1771 # INCLUDES, setting the cache variable VAR accordingly.
1772 ac_fn_c_check_header_compile ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 $4
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786 eval "$3=yes"
1787 else
1788 eval "$3=no"
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797 } # ac_fn_c_check_header_compile
1798
1799 # ac_fn_c_try_cpp LINENO
1800 # ----------------------
1801 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_cpp ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_cpp conftest.$ac_ext"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1818 fi
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } > conftest.i && {
1821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 }; then :
1824 ac_retval=0
1825 else
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 ac_retval=1
1830 fi
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_cpp
1835
1836 # ac_fn_c_try_run LINENO
1837 # ----------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1839 # that executables *can* be run.
1840 ac_fn_c_try_run ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>&5
1851 ac_status=$?
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1854 { { case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_try") 2>&5
1861 ac_status=$?
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; }; }; then :
1864 ac_retval=0
1865 else
1866 $as_echo "$as_me: program exited with status $ac_status" >&5
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870 ac_retval=$ac_status
1871 fi
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1875
1876 } # ac_fn_c_try_run
1877
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1888 else
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893 #define $2 innocuous_$2
1894
1895 /* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1899
1900 #ifdef __STDC__
1901 # include <limits.h>
1902 #else
1903 # include <assert.h>
1904 #endif
1905
1906 #undef $2
1907
1908 /* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1911 #ifdef __cplusplus
1912 extern "C"
1913 #endif
1914 char $2 ();
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined __stub_$2 || defined __stub___$2
1919 choke me
1920 #endif
1921
1922 int
1923 main ()
1924 {
1925 return $2 ();
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_link "$LINENO"; then :
1931 eval "$3=yes"
1932 else
1933 eval "$3=no"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext \
1936 conftest$ac_exeext conftest.$ac_ext
1937 fi
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943 } # ac_fn_c_check_func
1944
1945 # ac_fn_cxx_try_cpp LINENO
1946 # ------------------------
1947 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_cxx_try_cpp ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if { { ac_try="$ac_cpp conftest.$ac_ext"
1952 case "(($ac_try" in
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1959 ac_status=$?
1960 if test -s conftest.err; then
1961 grep -v '^ *+' conftest.err >conftest.er1
1962 cat conftest.er1 >&5
1963 mv -f conftest.er1 conftest.err
1964 fi
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } > conftest.i && {
1967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1968 test ! -s conftest.err
1969 }; then :
1970 ac_retval=0
1971 else
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975 ac_retval=1
1976 fi
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
1979
1980 } # ac_fn_cxx_try_cpp
1981
1982 # ac_fn_cxx_try_link LINENO
1983 # -------------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded.
1985 ac_fn_cxx_try_link ()
1986 {
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 rm -f conftest.$ac_objext conftest$ac_exeext
1989 if { { ac_try="$ac_link"
1990 case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>conftest.err
1997 ac_status=$?
1998 if test -s conftest.err; then
1999 grep -v '^ *+' conftest.err >conftest.er1
2000 cat conftest.er1 >&5
2001 mv -f conftest.er1 conftest.err
2002 fi
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && {
2005 test -z "$ac_cxx_werror_flag" ||
2006 test ! -s conftest.err
2007 } && test -s conftest$ac_exeext && {
2008 test "$cross_compiling" = yes ||
2009 test -x conftest$ac_exeext
2010 }; then :
2011 ac_retval=0
2012 else
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 ac_retval=1
2017 fi
2018 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2019 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2020 # interfere with the next link command; also delete a directory that is
2021 # left behind by Apple's compiler. We do this before executing the actions.
2022 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 as_fn_set_status $ac_retval
2025
2026 } # ac_fn_cxx_try_link
2027
2028 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2029 # -------------------------------------------------------
2030 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2031 # the include files in INCLUDES and setting the cache variable VAR
2032 # accordingly.
2033 ac_fn_c_check_header_mongrel ()
2034 {
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if eval \${$3+:} false; then :
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038 $as_echo_n "checking for $2... " >&6; }
2039 if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2041 fi
2042 eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 else
2046 # Is the header compilable?
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2048 $as_echo_n "checking $2 usability... " >&6; }
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2051 $4
2052 #include <$2>
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_header_compiler=yes
2056 else
2057 ac_header_compiler=no
2058 fi
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2061 $as_echo "$ac_header_compiler" >&6; }
2062
2063 # Is the header present?
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2065 $as_echo_n "checking $2 presence... " >&6; }
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2068 #include <$2>
2069 _ACEOF
2070 if ac_fn_c_try_cpp "$LINENO"; then :
2071 ac_header_preproc=yes
2072 else
2073 ac_header_preproc=no
2074 fi
2075 rm -f conftest.err conftest.i conftest.$ac_ext
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2077 $as_echo "$ac_header_preproc" >&6; }
2078
2079 # So? What about this header?
2080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2081 yes:no: )
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2083 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2085 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2086 ;;
2087 no:yes:* )
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2089 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2091 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2093 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2095 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2097 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2098 ( $as_echo "## ------------------------------------------------------ ##
2099 ## Report this to https://github.com/mono/mono/issues/new ##
2100 ## ------------------------------------------------------ ##"
2101 ) | sed "s/^/$as_me: WARNING: /" >&2
2102 ;;
2103 esac
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2105 $as_echo_n "checking for $2... " >&6; }
2106 if eval \${$3+:} false; then :
2107 $as_echo_n "(cached) " >&6
2108 else
2109 eval "$3=\$ac_header_compiler"
2110 fi
2111 eval ac_res=\$$3
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 fi
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116
2117 } # ac_fn_c_check_header_mongrel
2118 cat >config.log <<_ACEOF
2119 This file contains any messages produced by compilers while
2120 running configure, to aid debugging if configure makes a mistake.
2121
2122 It was created by libgdiplus $as_me 6.1, which was
2123 generated by GNU Autoconf 2.69. Invocation command line was
2124
2125 $ $0 $@
2126
2127 _ACEOF
2128 exec 5>>config.log
2129 {
2130 cat <<_ASUNAME
2131 ## --------- ##
2132 ## Platform. ##
2133 ## --------- ##
2134
2135 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2136 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2137 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2138 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2139 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2140
2141 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2142 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2143
2144 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2145 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2146 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2147 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2148 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2149 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2150 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2151
2152 _ASUNAME
2153
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2156 do
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 $as_echo "PATH: $as_dir"
2160 done
2161 IFS=$as_save_IFS
2162
2163 } >&5
2164
2165 cat >&5 <<_ACEOF
2166
2167
2168 ## ----------- ##
2169 ## Core tests. ##
2170 ## ----------- ##
2171
2172 _ACEOF
2173
2174
2175 # Keep a trace of the command line.
2176 # Strip out --no-create and --no-recursion so they do not pile up.
2177 # Strip out --silent because we don't want to record it for future runs.
2178 # Also quote any args containing shell meta-characters.
2179 # Make two passes to allow for proper duplicate-argument suppression.
2180 ac_configure_args=
2181 ac_configure_args0=
2182 ac_configure_args1=
2183 ac_must_keep_next=false
2184 for ac_pass in 1 2
2185 do
2186 for ac_arg
2187 do
2188 case $ac_arg in
2189 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2191 | -silent | --silent | --silen | --sile | --sil)
2192 continue ;;
2193 *\'*)
2194 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2195 esac
2196 case $ac_pass in
2197 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2198 2)
2199 as_fn_append ac_configure_args1 " '$ac_arg'"
2200 if test $ac_must_keep_next = true; then
2201 ac_must_keep_next=false # Got value, back to normal.
2202 else
2203 case $ac_arg in
2204 *=* | --config-cache | -C | -disable-* | --disable-* \
2205 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2206 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2207 | -with-* | --with-* | -without-* | --without-* | --x)
2208 case "$ac_configure_args0 " in
2209 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2210 esac
2211 ;;
2212 -* ) ac_must_keep_next=true ;;
2213 esac
2214 fi
2215 as_fn_append ac_configure_args " '$ac_arg'"
2216 ;;
2217 esac
2218 done
2219 done
2220 { ac_configure_args0=; unset ac_configure_args0;}
2221 { ac_configure_args1=; unset ac_configure_args1;}
2222
2223 # When interrupted or exit'd, cleanup temporary files, and complete
2224 # config.log. We remove comments because anyway the quotes in there
2225 # would cause problems or look ugly.
2226 # WARNING: Use '\'' to represent an apostrophe within the trap.
2227 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2228 trap 'exit_status=$?
2229 # Save into config.log some information that might help in debugging.
2230 {
2231 echo
2232
2233 $as_echo "## ---------------- ##
2234 ## Cache variables. ##
2235 ## ---------------- ##"
2236 echo
2237 # The following way of writing the cache mishandles newlines in values,
2238 (
2239 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2240 eval ac_val=\$$ac_var
2241 case $ac_val in #(
2242 *${as_nl}*)
2243 case $ac_var in #(
2244 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2245 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2246 esac
2247 case $ac_var in #(
2248 _ | IFS | as_nl) ;; #(
2249 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2250 *) { eval $ac_var=; unset $ac_var;} ;;
2251 esac ;;
2252 esac
2253 done
2254 (set) 2>&1 |
2255 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2256 *${as_nl}ac_space=\ *)
2257 sed -n \
2258 "s/'\''/'\''\\\\'\'''\''/g;
2259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2260 ;; #(
2261 *)
2262 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2263 ;;
2264 esac |
2265 sort
2266 )
2267 echo
2268
2269 $as_echo "## ----------------- ##
2270 ## Output variables. ##
2271 ## ----------------- ##"
2272 echo
2273 for ac_var in $ac_subst_vars
2274 do
2275 eval ac_val=\$$ac_var
2276 case $ac_val in
2277 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278 esac
2279 $as_echo "$ac_var='\''$ac_val'\''"
2280 done | sort
2281 echo
2282
2283 if test -n "$ac_subst_files"; then
2284 $as_echo "## ------------------- ##
2285 ## File substitutions. ##
2286 ## ------------------- ##"
2287 echo
2288 for ac_var in $ac_subst_files
2289 do
2290 eval ac_val=\$$ac_var
2291 case $ac_val in
2292 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2293 esac
2294 $as_echo "$ac_var='\''$ac_val'\''"
2295 done | sort
2296 echo
2297 fi
2298
2299 if test -s confdefs.h; then
2300 $as_echo "## ----------- ##
2301 ## confdefs.h. ##
2302 ## ----------- ##"
2303 echo
2304 cat confdefs.h
2305 echo
2306 fi
2307 test "$ac_signal" != 0 &&
2308 $as_echo "$as_me: caught signal $ac_signal"
2309 $as_echo "$as_me: exit $exit_status"
2310 } >&5
2311 rm -f core *.core core.conftest.* &&
2312 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2313 exit $exit_status
2314 ' 0
2315 for ac_signal in 1 2 13 15; do
2316 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2317 done
2318 ac_signal=0
2319
2320 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2321 rm -f -r conftest* confdefs.h
2322
2323 $as_echo "/* confdefs.h */" > confdefs.h
2324
2325 # Predefined preprocessor variables.
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_NAME "$PACKAGE_NAME"
2329 _ACEOF
2330
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2333 _ACEOF
2334
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2337 _ACEOF
2338
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_STRING "$PACKAGE_STRING"
2341 _ACEOF
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2345 _ACEOF
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_URL "$PACKAGE_URL"
2349 _ACEOF
2350
2351
2352 # Let the site file select an alternate cache file if it wants to.
2353 # Prefer an explicitly selected file to automatically selected ones.
2354 ac_site_file1=NONE
2355 ac_site_file2=NONE
2356 if test -n "$CONFIG_SITE"; then
2357 # We do not want a PATH search for config.site.
2358 case $CONFIG_SITE in #((
2359 -*) ac_site_file1=./$CONFIG_SITE;;
2360 */*) ac_site_file1=$CONFIG_SITE;;
2361 *) ac_site_file1=./$CONFIG_SITE;;
2362 esac
2363 elif test "x$prefix" != xNONE; then
2364 ac_site_file1=$prefix/share/config.site
2365 ac_site_file2=$prefix/etc/config.site
2366 else
2367 ac_site_file1=$ac_default_prefix/share/config.site
2368 ac_site_file2=$ac_default_prefix/etc/config.site
2369 fi
2370 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2371 do
2372 test "x$ac_site_file" = xNONE && continue
2373 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2375 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2376 sed 's/^/| /' "$ac_site_file" >&5
2377 . "$ac_site_file" \
2378 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2380 as_fn_error $? "failed to load site script $ac_site_file
2381 See \`config.log' for more details" "$LINENO" 5; }
2382 fi
2383 done
2384
2385 if test -r "$cache_file"; then
2386 # Some versions of bash will fail to source /dev/null (special files
2387 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2388 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2390 $as_echo "$as_me: loading cache $cache_file" >&6;}
2391 case $cache_file in
2392 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2393 *) . "./$cache_file";;
2394 esac
2395 fi
2396 else
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2398 $as_echo "$as_me: creating cache $cache_file" >&6;}
2399 >$cache_file
2400 fi
2401
2402 # Check that the precious variables saved in the cache have kept the same
2403 # value.
2404 ac_cache_corrupted=false
2405 for ac_var in $ac_precious_vars; do
2406 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2407 eval ac_new_set=\$ac_env_${ac_var}_set
2408 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2409 eval ac_new_val=\$ac_env_${ac_var}_value
2410 case $ac_old_set,$ac_new_set in
2411 set,)
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2413 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2414 ac_cache_corrupted=: ;;
2415 ,set)
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2417 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2418 ac_cache_corrupted=: ;;
2419 ,);;
2420 *)
2421 if test "x$ac_old_val" != "x$ac_new_val"; then
2422 # differences in whitespace do not lead to failure.
2423 ac_old_val_w=`echo x $ac_old_val`
2424 ac_new_val_w=`echo x $ac_new_val`
2425 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2427 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2428 ac_cache_corrupted=:
2429 else
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2431 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2432 eval $ac_var=\$ac_old_val
2433 fi
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2435 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2437 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2438 fi;;
2439 esac
2440 # Pass precious variables to config.status.
2441 if test "$ac_new_set" = set; then
2442 case $ac_new_val in
2443 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2444 *) ac_arg=$ac_var=$ac_new_val ;;
2445 esac
2446 case " $ac_configure_args " in
2447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2448 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2449 esac
2450 fi
2451 done
2452 if $ac_cache_corrupted; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2456 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2457 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2458 fi
2459 ## -------------------- ##
2460 ## Main body of script. ##
2461 ## -------------------- ##
2462
2463 ac_ext=c
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2468
2469
2470
2471
2472
2473 ac_aux_dir=
2474 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2475 if test -f "$ac_dir/install-sh"; then
2476 ac_aux_dir=$ac_dir
2477 ac_install_sh="$ac_aux_dir/install-sh -c"
2478 break
2479 elif test -f "$ac_dir/install.sh"; then
2480 ac_aux_dir=$ac_dir
2481 ac_install_sh="$ac_aux_dir/install.sh -c"
2482 break
2483 elif test -f "$ac_dir/shtool"; then
2484 ac_aux_dir=$ac_dir
2485 ac_install_sh="$ac_aux_dir/shtool install -c"
2486 break
2487 fi
2488 done
2489 if test -z "$ac_aux_dir"; then
2490 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2491 fi
2492
2493 # These three variables are undocumented and unsupported,
2494 # and are intended to be withdrawn in a future Autoconf release.
2495 # They can cause serious problems if a builder's source tree is in a directory
2496 # whose full name contains unusual characters.
2497 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2498 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2499 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2500
2501
2502 # Make sure we can run config.sub.
2503 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2504 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2505
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2507 $as_echo_n "checking build system type... " >&6; }
2508 if ${ac_cv_build+:} false; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 ac_build_alias=$build_alias
2512 test "x$ac_build_alias" = x &&
2513 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2514 test "x$ac_build_alias" = x &&
2515 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2516 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2517 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2518
2519 fi
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2521 $as_echo "$ac_cv_build" >&6; }
2522 case $ac_cv_build in
2523 *-*-*) ;;
2524 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2525 esac
2526 build=$ac_cv_build
2527 ac_save_IFS=$IFS; IFS='-'
2528 set x $ac_cv_build
2529 shift
2530 build_cpu=$1
2531 build_vendor=$2
2532 shift; shift
2533 # Remember, the first character of IFS is used to create $*,
2534 # except with old shells:
2535 build_os=$*
2536 IFS=$ac_save_IFS
2537 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2538
2539
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2541 $as_echo_n "checking host system type... " >&6; }
2542 if ${ac_cv_host+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test "x$host_alias" = x; then
2546 ac_cv_host=$ac_cv_build
2547 else
2548 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2549 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2550 fi
2551
2552 fi
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2554 $as_echo "$ac_cv_host" >&6; }
2555 case $ac_cv_host in
2556 *-*-*) ;;
2557 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2558 esac
2559 host=$ac_cv_host
2560 ac_save_IFS=$IFS; IFS='-'
2561 set x $ac_cv_host
2562 shift
2563 host_cpu=$1
2564 host_vendor=$2
2565 shift; shift
2566 # Remember, the first character of IFS is used to create $*,
2567 # except with old shells:
2568 host_os=$*
2569 IFS=$ac_save_IFS
2570 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2571
2572
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2574 $as_echo_n "checking target system type... " >&6; }
2575 if ${ac_cv_target+:} false; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 if test "x$target_alias" = x; then
2579 ac_cv_target=$ac_cv_host
2580 else
2581 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2582 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2583 fi
2584
2585 fi
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2587 $as_echo "$ac_cv_target" >&6; }
2588 case $ac_cv_target in
2589 *-*-*) ;;
2590 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2591 esac
2592 target=$ac_cv_target
2593 ac_save_IFS=$IFS; IFS='-'
2594 set x $ac_cv_target
2595 shift
2596 target_cpu=$1
2597 target_vendor=$2
2598 shift; shift
2599 # Remember, the first character of IFS is used to create $*,
2600 # except with old shells:
2601 target_os=$*
2602 IFS=$ac_save_IFS
2603 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2604
2605
2606 # The aliases save the names the user supplied, while $host etc.
2607 # will get canonicalized.
2608 test -n "$target_alias" &&
2609 test "$program_prefix$program_suffix$program_transform_name" = \
2610 NONENONEs,x,x, &&
2611 program_prefix=${target_alias}-
2612
2613
2614
2615 am__api_version='1.16'
2616
2617 # Find a good install program. We prefer a C program (faster),
2618 # so one script is as good as another. But avoid the broken or
2619 # incompatible versions:
2620 # SysV /etc/install, /usr/sbin/install
2621 # SunOS /usr/etc/install
2622 # IRIX /sbin/install
2623 # AIX /bin/install
2624 # AmigaOS /C/install, which installs bootblocks on floppy discs
2625 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2626 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2627 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2628 # OS/2's system install, which has a completely different semantic
2629 # ./install, which can be erroneously created by make from ./install.sh.
2630 # Reject install programs that cannot install multiple files.
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2632 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2633 if test -z "$INSTALL"; then
2634 if ${ac_cv_path_install+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 # Account for people who put trailing slashes in PATH elements.
2643 case $as_dir/ in #((
2644 ./ | .// | /[cC]/* | \
2645 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2646 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2647 /usr/ucb/* ) ;;
2648 *)
2649 # OSF1 and SCO ODT 3.0 have their own names for install.
2650 # Don't use installbsd from OSF since it installs stuff as root
2651 # by default.
2652 for ac_prog in ginstall scoinst install; do
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2655 if test $ac_prog = install &&
2656 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2657 # AIX install. It has an incompatible calling convention.
2658 :
2659 elif test $ac_prog = install &&
2660 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2661 # program-specific install script used by HP pwplus--don't use.
2662 :
2663 else
2664 rm -rf conftest.one conftest.two conftest.dir
2665 echo one > conftest.one
2666 echo two > conftest.two
2667 mkdir conftest.dir
2668 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2669 test -s conftest.one && test -s conftest.two &&
2670 test -s conftest.dir/conftest.one &&
2671 test -s conftest.dir/conftest.two
2672 then
2673 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2674 break 3
2675 fi
2676 fi
2677 fi
2678 done
2679 done
2680 ;;
2681 esac
2682
2683 done
2684 IFS=$as_save_IFS
2685
2686 rm -rf conftest.one conftest.two conftest.dir
2687
2688 fi
2689 if test "${ac_cv_path_install+set}" = set; then
2690 INSTALL=$ac_cv_path_install
2691 else
2692 # As a last resort, use the slow shell script. Don't cache a
2693 # value for INSTALL within a source directory, because that will
2694 # break other packages using the cache if that directory is
2695 # removed, or if the value is a relative name.
2696 INSTALL=$ac_install_sh
2697 fi
2698 fi
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2700 $as_echo "$INSTALL" >&6; }
2701
2702 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2703 # It thinks the first close brace ends the variable substitution.
2704 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2705
2706 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2707
2708 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2709
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2711 $as_echo_n "checking whether build environment is sane... " >&6; }
2712 # Reject unsafe characters in $srcdir or the absolute working directory
2713 # name. Accept space and tab only in the latter.
2714 am_lf='
2715 '
2716 case `pwd` in
2717 *[\\\"\#\$\&\'\`$am_lf]*)
2718 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2719 esac
2720 case $srcdir in
2721 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2722 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2723 esac
2724
2725 # Do 'set' in a subshell so we don't clobber the current shell's
2726 # arguments. Must try -L first in case configure is actually a
2727 # symlink; some systems play weird games with the mod time of symlinks
2728 # (eg FreeBSD returns the mod time of the symlink's containing
2729 # directory).
2730 if (
2731 am_has_slept=no
2732 for am_try in 1 2; do
2733 echo "timestamp, slept: $am_has_slept" > conftest.file
2734 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2735 if test "$*" = "X"; then
2736 # -L didn't work.
2737 set X `ls -t "$srcdir/configure" conftest.file`
2738 fi
2739 if test "$*" != "X $srcdir/configure conftest.file" \
2740 && test "$*" != "X conftest.file $srcdir/configure"; then
2741
2742 # If neither matched, then we have a broken ls. This can happen
2743 # if, for instance, CONFIG_SHELL is bash and it inherits a
2744 # broken ls alias from the environment. This has actually
2745 # happened. Such a system could not be considered "sane".
2746 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2747 alias in your environment" "$LINENO" 5
2748 fi
2749 if test "$2" = conftest.file || test $am_try -eq 2; then
2750 break
2751 fi
2752 # Just in case.
2753 sleep 1
2754 am_has_slept=yes
2755 done
2756 test "$2" = conftest.file
2757 )
2758 then
2759 # Ok.
2760 :
2761 else
2762 as_fn_error $? "newly created file is older than distributed files!
2763 Check your system clock" "$LINENO" 5
2764 fi
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2766 $as_echo "yes" >&6; }
2767 # If we didn't sleep, we still need to ensure time stamps of config.status and
2768 # generated files are strictly newer.
2769 am_sleep_pid=
2770 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2771 ( sleep 1 ) &
2772 am_sleep_pid=$!
2773 fi
2774
2775 rm -f conftest.file
2776
2777 test "$program_prefix" != NONE &&
2778 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2779 # Use a double $ so make ignores it.
2780 test "$program_suffix" != NONE &&
2781 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2782 # Double any \ or $.
2783 # By default was `s,x,x', remove it if useless.
2784 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2785 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2786
2787 # Expand $ac_aux_dir to an absolute path.
2788 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2789
2790 if test x"${MISSING+set}" != xset; then
2791 case $am_aux_dir in
2792 *\ * | *\ *)
2793 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2794 *)
2795 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2796 esac
2797 fi
2798 # Use eval to expand $SHELL
2799 if eval "$MISSING --is-lightweight"; then
2800 am_missing_run="$MISSING "
2801 else
2802 am_missing_run=
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2804 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2805 fi
2806
2807 if test x"${install_sh+set}" != xset; then
2808 case $am_aux_dir in
2809 *\ * | *\ *)
2810 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2811 *)
2812 install_sh="\${SHELL} $am_aux_dir/install-sh"
2813 esac
2814 fi
2815
2816 # Installed binaries are usually stripped using 'strip' when the user
2817 # run "make install-strip". However 'strip' might not be the right
2818 # tool to use in cross-compilation environments, therefore Automake
2819 # will honor the 'STRIP' environment variable to overrule this program.
2820 if test "$cross_compiling" != no; then
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}strip; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if ${ac_cv_prog_STRIP+:} false; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 if test -n "$STRIP"; then
2830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2842 fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 STRIP=$ac_cv_prog_STRIP
2850 if test -n "$STRIP"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2852 $as_echo "$STRIP" >&6; }
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858
2859 fi
2860 if test -z "$ac_cv_prog_STRIP"; then
2861 ac_ct_STRIP=$STRIP
2862 # Extract the first word of "strip", so it can be a program name with args.
2863 set dummy strip; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$ac_ct_STRIP"; then
2870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_ac_ct_STRIP="strip"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2890 if test -n "$ac_ct_STRIP"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2892 $as_echo "$ac_ct_STRIP" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898 if test "x$ac_ct_STRIP" = x; then
2899 STRIP=":"
2900 else
2901 case $cross_compiling:$ac_tool_warned in
2902 yes:)
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2905 ac_tool_warned=yes ;;
2906 esac
2907 STRIP=$ac_ct_STRIP
2908 fi
2909 else
2910 STRIP="$ac_cv_prog_STRIP"
2911 fi
2912
2913 fi
2914 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2915
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2917 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2918 if test -z "$MKDIR_P"; then
2919 if ${ac_cv_path_mkdir+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_prog in mkdir gmkdir; do
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2930 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2931 'mkdir (GNU coreutils) '* | \
2932 'mkdir (coreutils) '* | \
2933 'mkdir (fileutils) '4.1*)
2934 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2935 break 3;;
2936 esac
2937 done
2938 done
2939 done
2940 IFS=$as_save_IFS
2941
2942 fi
2943
2944 test -d ./--version && rmdir ./--version
2945 if test "${ac_cv_path_mkdir+set}" = set; then
2946 MKDIR_P="$ac_cv_path_mkdir -p"
2947 else
2948 # As a last resort, use the slow shell script. Don't cache a
2949 # value for MKDIR_P within a source directory, because that will
2950 # break other packages using the cache if that directory is
2951 # removed, or if the value is a relative name.
2952 MKDIR_P="$ac_install_sh -d"
2953 fi
2954 fi
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2956 $as_echo "$MKDIR_P" >&6; }
2957
2958 for ac_prog in gawk mawk nawk awk
2959 do
2960 # Extract the first word of "$ac_prog", so it can be a program name with args.
2961 set dummy $ac_prog; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_AWK+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 if test -n "$AWK"; then
2968 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_AWK="$ac_prog"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981 done
2982 done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 AWK=$ac_cv_prog_AWK
2988 if test -n "$AWK"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2990 $as_echo "$AWK" >&6; }
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996
2997 test -n "$AWK" && break
2998 done
2999
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3001 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3002 set x ${MAKE-make}
3003 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3004 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 cat >conftest.make <<\_ACEOF
3008 SHELL = /bin/sh
3009 all:
3010 @echo '@@@%%%=$(MAKE)=@@@%%%'
3011 _ACEOF
3012 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3013 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3014 *@@@%%%=?*=@@@%%%*)
3015 eval ac_cv_prog_make_${ac_make}_set=yes;;
3016 *)
3017 eval ac_cv_prog_make_${ac_make}_set=no;;
3018 esac
3019 rm -f conftest.make
3020 fi
3021 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3023 $as_echo "yes" >&6; }
3024 SET_MAKE=
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 SET_MAKE="MAKE=${MAKE-make}"
3029 fi
3030
3031 rm -rf .tst 2>/dev/null
3032 mkdir .tst 2>/dev/null
3033 if test -d .tst; then
3034 am__leading_dot=.
3035 else
3036 am__leading_dot=_
3037 fi
3038 rmdir .tst 2>/dev/null
3039
3040 # Check whether --enable-silent-rules was given.
3041 if test "${enable_silent_rules+set}" = set; then :
3042 enableval=$enable_silent_rules;
3043 fi
3044
3045 case $enable_silent_rules in # (((
3046 yes) AM_DEFAULT_VERBOSITY=0;;
3047 no) AM_DEFAULT_VERBOSITY=1;;
3048 *) AM_DEFAULT_VERBOSITY=1;;
3049 esac
3050 am_make=${MAKE-make}
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3052 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3053 if ${am_cv_make_support_nested_variables+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 if $as_echo 'TRUE=$(BAR$(V))
3057 BAR0=false
3058 BAR1=true
3059 V=1
3060 am__doit:
3061 @$(TRUE)
3062 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3063 am_cv_make_support_nested_variables=yes
3064 else
3065 am_cv_make_support_nested_variables=no
3066 fi
3067 fi
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3069 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3070 if test $am_cv_make_support_nested_variables = yes; then
3071 AM_V='$(V)'
3072 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3073 else
3074 AM_V=$AM_DEFAULT_VERBOSITY
3075 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3076 fi
3077 AM_BACKSLASH='\'
3078
3079 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3080 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3081 # is not polluted with repeated "-I."
3082 am__isrc=' -I$(srcdir)'
3083 # test to see if srcdir already configured
3084 if test -f $srcdir/config.status; then
3085 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3086 fi
3087 fi
3088
3089 # test whether we have cygpath
3090 if test -z "$CYGPATH_W"; then
3091 if (cygpath --version) >/dev/null 2>/dev/null; then
3092 CYGPATH_W='cygpath -w'
3093 else
3094 CYGPATH_W=echo
3095 fi
3096 fi
3097
3098
3099 # Define the identity of the package.
3100 PACKAGE='libgdiplus'
3101 VERSION='6.1'
3102
3103
3104 cat >>confdefs.h <<_ACEOF
3105 #define PACKAGE "$PACKAGE"
3106 _ACEOF
3107
3108
3109 cat >>confdefs.h <<_ACEOF
3110 #define VERSION "$VERSION"
3111 _ACEOF
3112
3113 # Some tools Automake needs.
3114
3115 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3116
3117
3118 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3119
3120
3121 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3122
3123
3124 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3125
3126
3127 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3128
3129 # For better backward compatibility. To be removed once Automake 1.9.x
3130 # dies out for good. For more background, see:
3131 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3132 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3133 mkdir_p='$(MKDIR_P)'
3134
3135 # We need awk for the "check" target (and possibly the TAP driver). The
3136 # system "awk" is bad on some platforms.
3137 # Always define AMTAR for backward compatibility. Yes, it's still used
3138 # in the wild :-( We should find a proper way to deprecate it ...
3139 AMTAR='$${TAR-tar}'
3140
3141
3142 # We'll loop over all known methods to create a tar archive until one works.
3143 _am_tools='gnutar plaintar pax cpio none'
3144
3145 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3146 # There is notably a 21 bits limit for the UID and the GID. In fact,
3147 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3148 # and bug#13588).
3149 am_max_uid=2097151 # 2^21 - 1
3150 am_max_gid=$am_max_uid
3151 # The $UID and $GID variables are not portable, so we need to resort
3152 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3153 # below are definitely unexpected, so allow the users to see them
3154 # (that is, avoid stderr redirection).
3155 am_uid=`id -u || echo unknown`
3156 am_gid=`id -g || echo unknown`
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3158 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3159 if test $am_uid -le $am_max_uid; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161 $as_echo "yes" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 _am_tools=none
3166 fi
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3168 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3169 if test $am_gid -le $am_max_gid; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171 $as_echo "yes" >&6; }
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 _am_tools=none
3176 fi
3177
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3179 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3180
3181 # Go ahead even if we have the value already cached. We do so because we
3182 # need to set the values for the 'am__tar' and 'am__untar' variables.
3183 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3184
3185 for _am_tool in $_am_tools; do
3186 case $_am_tool in
3187 gnutar)
3188 for _am_tar in tar gnutar gtar; do
3189 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3190 ($_am_tar --version) >&5 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } && break
3194 done
3195 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3196 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3197 am__untar="$_am_tar -xf -"
3198 ;;
3199 plaintar)
3200 # Must skip GNU tar: if it does not support --format= it doesn't create
3201 # ustar tarball either.
3202 (tar --version) >/dev/null 2>&1 && continue
3203 am__tar='tar chf - "$$tardir"'
3204 am__tar_='tar chf - "$tardir"'
3205 am__untar='tar xf -'
3206 ;;
3207 pax)
3208 am__tar='pax -L -x ustar -w "$$tardir"'
3209 am__tar_='pax -L -x ustar -w "$tardir"'
3210 am__untar='pax -r'
3211 ;;
3212 cpio)
3213 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3214 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3215 am__untar='cpio -i -H ustar -d'
3216 ;;
3217 none)
3218 am__tar=false
3219 am__tar_=false
3220 am__untar=false
3221 ;;
3222 esac
3223
3224 # If the value was cached, stop now. We just wanted to have am__tar
3225 # and am__untar set.
3226 test -n "${am_cv_prog_tar_ustar}" && break
3227
3228 # tar/untar a dummy directory, and stop if the command works.
3229 rm -rf conftest.dir
3230 mkdir conftest.dir
3231 echo GrepMe > conftest.dir/file
3232 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3233 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }
3237 rm -rf conftest.dir
3238 if test -s conftest.tar; then
3239 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3240 ($am__untar <conftest.tar) >&5 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }
3244 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3245 (cat conftest.dir/file) >&5 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }
3249 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3250 fi
3251 done
3252 rm -rf conftest.dir
3253
3254 if ${am_cv_prog_tar_ustar+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 am_cv_prog_tar_ustar=$_am_tool
3258 fi
3259
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3261 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3262
3263
3264
3265
3266
3267
3268 # POSIX will say in a future version that running "rm -f" with no argument
3269 # is OK; and we want to be able to make that assumption in our Makefile
3270 # recipes. So use an aggressive probe to check that the usage we want is
3271 # actually supported "in the wild" to an acceptable degree.
3272 # See automake bug#10828.
3273 # To make any issue more visible, cause the running configure to be aborted
3274 # by default if the 'rm' program in use doesn't match our expectations; the
3275 # user can still override this though.
3276 if rm -f && rm -fr && rm -rf; then : OK; else
3277 cat >&2 <<'END'
3278 Oops!
3279
3280 Your 'rm' program seems unable to run without file operands specified
3281 on the command line, even when the '-f' option is present. This is contrary
3282 to the behaviour of most rm programs out there, and not conforming with
3283 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3284
3285 Please tell [email protected] about your system, including the value
3286 of your $PATH and any error possibly output before this message. This
3287 can help us improve future automake versions.
3288
3289 END
3290 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3291 echo 'Configuration will proceed anyway, since you have set the' >&2
3292 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3293 echo >&2
3294 else
3295 cat >&2 <<'END'
3296 Aborting the configuration process, to ensure you take notice of the issue.
3297
3298 You can download and install GNU coreutils to get an 'rm' implementation
3299 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3300
3301 If you want to complete the configuration process using your problematic
3302 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3303 to "yes", and re-run configure.
3304
3305 END
3306 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3307 fi
3308 fi
3309
3310 ac_config_headers="$ac_config_headers config.h"
3311
3312
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3314 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3315 # Check whether --enable-maintainer-mode was given.
3316 if test "${enable_maintainer_mode+set}" = set; then :
3317 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3318 else
3319 USE_MAINTAINER_MODE=no
3320 fi
3321
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3323 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3324 if test $USE_MAINTAINER_MODE = yes; then
3325 MAINTAINER_MODE_TRUE=
3326 MAINTAINER_MODE_FALSE='#'
3327 else
3328 MAINTAINER_MODE_TRUE='#'
3329 MAINTAINER_MODE_FALSE=
3330 fi
3331
3332 MAINT=$MAINTAINER_MODE_TRUE
3333
3334
3335 ac_ext=cpp
3336 ac_cpp='$CXXCPP $CPPFLAGS'
3337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3340 if test -z "$CXX"; then
3341 if test -n "$CCC"; then
3342 CXX=$CCC
3343 else
3344 if test -n "$ac_tool_prefix"; then
3345 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3346 do
3347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if ${ac_cv_prog_CXX+:} false; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 if test -n "$CXX"; then
3355 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3356 else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360 IFS=$as_save_IFS
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 break 2
3367 fi
3368 done
3369 done
3370 IFS=$as_save_IFS
3371
3372 fi
3373 fi
3374 CXX=$ac_cv_prog_CXX
3375 if test -n "$CXX"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3377 $as_echo "$CXX" >&6; }
3378 else
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3381 fi
3382
3383
3384 test -n "$CXX" && break
3385 done
3386 fi
3387 if test -z "$CXX"; then
3388 ac_ct_CXX=$CXX
3389 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3390 do
3391 # Extract the first word of "$ac_prog", so it can be a program name with args.
3392 set dummy $ac_prog; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 if test -n "$ac_ct_CXX"; then
3399 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_ac_ct_CXX="$ac_prog"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412 done
3413 done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3419 if test -n "$ac_ct_CXX"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3421 $as_echo "$ac_ct_CXX" >&6; }
3422 else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427
3428 test -n "$ac_ct_CXX" && break
3429 done
3430
3431 if test "x$ac_ct_CXX" = x; then
3432 CXX="g++"
3433 else
3434 case $cross_compiling:$ac_tool_warned in
3435 yes:)
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3438 ac_tool_warned=yes ;;
3439 esac
3440 CXX=$ac_ct_CXX
3441 fi
3442 fi
3443
3444 fi
3445 fi
3446 # Provide some information about the compiler.
3447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3448 set X $ac_compile
3449 ac_compiler=$2
3450 for ac_option in --version -v -V -qversion; do
3451 { { ac_try="$ac_compiler $ac_option >&5"
3452 case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3459 ac_status=$?
3460 if test -s conftest.err; then
3461 sed '10a\
3462 ... rest of stderr output deleted ...
3463 10q' conftest.err >conftest.er1
3464 cat conftest.er1 >&5
3465 fi
3466 rm -f conftest.er1 conftest.err
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }
3469 done
3470
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3473
3474 int
3475 main ()
3476 {
3477
3478 ;
3479 return 0;
3480 }
3481 _ACEOF
3482 ac_clean_files_save=$ac_clean_files
3483 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3484 # Try to create an executable without -o first, disregard a.out.
3485 # It will help us diagnose broken compilers, and finding out an intuition
3486 # of exeext.
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3488 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3489 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3490
3491 # The possible output files:
3492 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3493
3494 ac_rmfiles=
3495 for ac_file in $ac_files
3496 do
3497 case $ac_file in
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3499 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3500 esac
3501 done
3502 rm -f $ac_rmfiles
3503
3504 if { { ac_try="$ac_link_default"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_link_default") 2>&5
3512 ac_status=$?
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
3515 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3516 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3517 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3518 # so that the user can short-circuit this test for compilers unknown to
3519 # Autoconf.
3520 for ac_file in $ac_files ''
3521 do
3522 test -f "$ac_file" || continue
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3525 ;;
3526 [ab].out )
3527 # We found the default executable, but exeext='' is most
3528 # certainly right.
3529 break;;
3530 *.* )
3531 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3532 then :; else
3533 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3534 fi
3535 # We set ac_cv_exeext here because the later test for it is not
3536 # safe: cross compilers may not add the suffix if given an `-o'
3537 # argument, so we may need to know it at that point already.
3538 # Even if this section looks crufty: it has the advantage of
3539 # actually working.
3540 break;;
3541 * )
3542 break;;
3543 esac
3544 done
3545 test "$ac_cv_exeext" = no && ac_cv_exeext=
3546
3547 else
3548 ac_file=''
3549 fi
3550 if test -z "$ac_file"; then :
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error 77 "C++ compiler cannot create executables
3559 See \`config.log' for more details" "$LINENO" 5; }
3560 else
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3562 $as_echo "yes" >&6; }
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3565 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3567 $as_echo "$ac_file" >&6; }
3568 ac_exeext=$ac_cv_exeext
3569
3570 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3571 ac_clean_files=$ac_clean_files_save
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3573 $as_echo_n "checking for suffix of executables... " >&6; }
3574 if { { ac_try="$ac_link"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; then :
3585 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3586 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3587 # work properly (i.e., refer to `conftest.exe'), while it won't with
3588 # `rm'.
3589 for ac_file in conftest.exe conftest conftest.*; do
3590 test -f "$ac_file" || continue
3591 case $ac_file in
3592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3593 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3594 break;;
3595 * ) break;;
3596 esac
3597 done
3598 else
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3602 See \`config.log' for more details" "$LINENO" 5; }
3603 fi
3604 rm -f conftest conftest$ac_cv_exeext
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3606 $as_echo "$ac_cv_exeext" >&6; }
3607
3608 rm -f conftest.$ac_ext
3609 EXEEXT=$ac_cv_exeext
3610 ac_exeext=$EXEEXT
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613 #include <stdio.h>
3614 int
3615 main ()
3616 {
3617 FILE *f = fopen ("conftest.out", "w");
3618 return ferror (f) || fclose (f) != 0;
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 ac_clean_files="$ac_clean_files conftest.out"
3625 # Check that the compiler produces executables we can run. If not, either
3626 # the compiler is broken, or we cross compile.
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3628 $as_echo_n "checking whether we are cross compiling... " >&6; }
3629 if test "$cross_compiling" != yes; then
3630 { { ac_try="$ac_link"
3631 case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_link") 2>&5
3638 ac_status=$?
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }
3641 if { ac_try='./conftest$ac_cv_exeext'
3642 { { case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_try") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; }; then
3652 cross_compiling=no
3653 else
3654 if test "$cross_compiling" = maybe; then
3655 cross_compiling=yes
3656 else
3657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659 as_fn_error $? "cannot run C++ compiled programs.
3660 If you meant to cross compile, use \`--host'.
3661 See \`config.log' for more details" "$LINENO" 5; }
3662 fi
3663 fi
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3666 $as_echo "$cross_compiling" >&6; }
3667
3668 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3669 ac_clean_files=$ac_clean_files_save
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3671 $as_echo_n "checking for suffix of object files... " >&6; }
3672 if ${ac_cv_objext+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3677
3678 int
3679 main ()
3680 {
3681
3682 ;
3683 return 0;
3684 }
3685 _ACEOF
3686 rm -f conftest.o conftest.obj
3687 if { { ac_try="$ac_compile"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_compile") 2>&5
3695 ac_status=$?
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 for ac_file in conftest.o conftest.obj conftest.*; do
3699 test -f "$ac_file" || continue;
3700 case $ac_file in
3701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3703 break;;
3704 esac
3705 done
3706 else
3707 $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error $? "cannot compute suffix of object files: cannot compile
3713 See \`config.log' for more details" "$LINENO" 5; }
3714 fi
3715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3716 fi
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3718 $as_echo "$ac_cv_objext" >&6; }
3719 OBJEXT=$ac_cv_objext
3720 ac_objext=$OBJEXT
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3722 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3723 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 int
3730 main ()
3731 {
3732 #ifndef __GNUC__
3733 choke me
3734 #endif
3735
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 if ac_fn_cxx_try_compile "$LINENO"; then :
3741 ac_compiler_gnu=yes
3742 else
3743 ac_compiler_gnu=no
3744 fi
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3747
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3750 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3751 if test $ac_compiler_gnu = yes; then
3752 GXX=yes
3753 else
3754 GXX=
3755 fi
3756 ac_test_CXXFLAGS=${CXXFLAGS+set}
3757 ac_save_CXXFLAGS=$CXXFLAGS
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3759 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3760 if ${ac_cv_prog_cxx_g+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3764 ac_cxx_werror_flag=yes
3765 ac_cv_prog_cxx_g=no
3766 CXXFLAGS="-g"
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769
3770 int
3771 main ()
3772 {
3773
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 if ac_fn_cxx_try_compile "$LINENO"; then :
3779 ac_cv_prog_cxx_g=yes
3780 else
3781 CXXFLAGS=""
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784
3785 int
3786 main ()
3787 {
3788
3789 ;
3790 return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_cxx_try_compile "$LINENO"; then :
3794
3795 else
3796 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3797 CXXFLAGS="-g"
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800
3801 int
3802 main ()
3803 {
3804
3805 ;
3806 return 0;
3807 }
3808 _ACEOF
3809 if ac_fn_cxx_try_compile "$LINENO"; then :
3810 ac_cv_prog_cxx_g=yes
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 fi
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3820 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3821 if test "$ac_test_CXXFLAGS" = set; then
3822 CXXFLAGS=$ac_save_CXXFLAGS
3823 elif test $ac_cv_prog_cxx_g = yes; then
3824 if test "$GXX" = yes; then
3825 CXXFLAGS="-g -O2"
3826 else
3827 CXXFLAGS="-g"
3828 fi
3829 else
3830 if test "$GXX" = yes; then
3831 CXXFLAGS="-O2"
3832 else
3833 CXXFLAGS=
3834 fi
3835 fi
3836 ac_ext=c
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 DEPDIR="${am__leading_dot}deps"
3842
3843 ac_config_commands="$ac_config_commands depfiles"
3844
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3846 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3847 cat > confinc.mk << 'END'
3848 am__doit:
3849 @echo this is the am__doit target >confinc.out
3850 .PHONY: am__doit
3851 END
3852 am__include="#"
3853 am__quote=
3854 # BSD make does it like this.
3855 echo '.include "confinc.mk" # ignored' > confmf.BSD
3856 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3857 echo 'include confinc.mk # ignored' > confmf.GNU
3858 _am_result=no
3859 for s in GNU BSD; do
3860 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3861 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }
3865 case $?:`cat confinc.out 2>/dev/null` in #(
3866 '0:this is the am__doit target') :
3867 case $s in #(
3868 BSD) :
3869 am__include='.include' am__quote='"' ;; #(
3870 *) :
3871 am__include='include' am__quote='' ;;
3872 esac ;; #(
3873 *) :
3874 ;;
3875 esac
3876 if test "$am__include" != "#"; then
3877 _am_result="yes ($s style)"
3878 break
3879 fi
3880 done
3881 rm -f confinc.* confmf.*
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3883 $as_echo "${_am_result}" >&6; }
3884
3885 # Check whether --enable-dependency-tracking was given.
3886 if test "${enable_dependency_tracking+set}" = set; then :
3887 enableval=$enable_dependency_tracking;
3888 fi
3889
3890 if test "x$enable_dependency_tracking" != xno; then
3891 am_depcomp="$ac_aux_dir/depcomp"
3892 AMDEPBACKSLASH='\'
3893 am__nodep='_no'
3894 fi
3895 if test "x$enable_dependency_tracking" != xno; then
3896 AMDEP_TRUE=
3897 AMDEP_FALSE='#'
3898 else
3899 AMDEP_TRUE='#'
3900 AMDEP_FALSE=
3901 fi
3902
3903
3904
3905 depcc="$CXX" am_compiler_list=
3906
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3908 $as_echo_n "checking dependency style of $depcc... " >&6; }
3909 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3913 # We make a subdir and do the tests there. Otherwise we can end up
3914 # making bogus files that we don't know about and never remove. For
3915 # instance it was reported that on HP-UX the gcc test will end up
3916 # making a dummy file named 'D' -- because '-MD' means "put the output
3917 # in D".
3918 rm -rf conftest.dir
3919 mkdir conftest.dir
3920 # Copy depcomp to subdir because otherwise we won't find it if we're
3921 # using a relative directory.
3922 cp "$am_depcomp" conftest.dir
3923 cd conftest.dir
3924 # We will build objects and dependencies in a subdirectory because
3925 # it helps to detect inapplicable dependency modes. For instance
3926 # both Tru64's cc and ICC support -MD to output dependencies as a
3927 # side effect of compilation, but ICC will put the dependencies in
3928 # the current directory while Tru64 will put them in the object
3929 # directory.
3930 mkdir sub
3931
3932 am_cv_CXX_dependencies_compiler_type=none
3933 if test "$am_compiler_list" = ""; then
3934 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3935 fi
3936 am__universal=false
3937 case " $depcc " in #(
3938 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3939 esac
3940
3941 for depmode in $am_compiler_list; do
3942 # Setup a source with many dependencies, because some compilers
3943 # like to wrap large dependency lists on column 80 (with \), and
3944 # we should not choose a depcomp mode which is confused by this.
3945 #
3946 # We need to recreate these files for each test, as the compiler may
3947 # overwrite some of them when testing with obscure command lines.
3948 # This happens at least with the AIX C compiler.
3949 : > sub/conftest.c
3950 for i in 1 2 3 4 5 6; do
3951 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3952 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3953 # Solaris 10 /bin/sh.
3954 echo '/* dummy */' > sub/conftst$i.h
3955 done
3956 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3957
3958 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3959 # mode. It turns out that the SunPro C++ compiler does not properly
3960 # handle '-M -o', and we need to detect this. Also, some Intel
3961 # versions had trouble with output in subdirs.
3962 am__obj=sub/conftest.${OBJEXT-o}
3963 am__minus_obj="-o $am__obj"
3964 case $depmode in
3965 gcc)
3966 # This depmode causes a compiler race in universal mode.
3967 test "$am__universal" = false || continue
3968 ;;
3969 nosideeffect)
3970 # After this tag, mechanisms are not by side-effect, so they'll
3971 # only be used when explicitly requested.
3972 if test "x$enable_dependency_tracking" = xyes; then
3973 continue
3974 else
3975 break
3976 fi
3977 ;;
3978 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3979 # This compiler won't grok '-c -o', but also, the minuso test has
3980 # not run yet. These depmodes are late enough in the game, and
3981 # so weak that their functioning should not be impacted.
3982 am__obj=conftest.${OBJEXT-o}
3983 am__minus_obj=
3984 ;;
3985 none) break ;;
3986 esac
3987 if depmode=$depmode \
3988 source=sub/conftest.c object=$am__obj \
3989 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3990 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3991 >/dev/null 2>conftest.err &&
3992 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3993 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3994 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3995 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3996 # icc doesn't choke on unknown options, it will just issue warnings
3997 # or remarks (even with -Werror). So we grep stderr for any message
3998 # that says an option was ignored or not supported.
3999 # When given -MP, icc 7.0 and 7.1 complain thusly:
4000 # icc: Command line warning: ignoring option '-M'; no argument required
4001 # The diagnosis changed in icc 8.0:
4002 # icc: Command line remark: option '-MP' not supported
4003 if (grep 'ignoring option' conftest.err ||
4004 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4005 am_cv_CXX_dependencies_compiler_type=$depmode
4006 break
4007 fi
4008 fi
4009 done
4010
4011 cd ..
4012 rm -rf conftest.dir
4013 else
4014 am_cv_CXX_dependencies_compiler_type=none
4015 fi
4016
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4019 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4020 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4021
4022 if
4023 test "x$enable_dependency_tracking" != xno \
4024 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4025 am__fastdepCXX_TRUE=
4026 am__fastdepCXX_FALSE='#'
4027 else
4028 am__fastdepCXX_TRUE='#'
4029 am__fastdepCXX_FALSE=
4030 fi
4031
4032
4033 case `pwd` in
4034 *\ * | *\ *)
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4036 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4037 esac
4038
4039
4040
4041 macro_version='2.4.6'
4042 macro_revision='2.4.6'
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056 ltmain=$ac_aux_dir/ltmain.sh
4057
4058 # Backslashify metacharacters that are still active within
4059 # double-quoted strings.
4060 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4061
4062 # Same as above, but do not quote variable references.
4063 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4064
4065 # Sed substitution to delay expansion of an escaped shell variable in a
4066 # double_quote_subst'ed string.
4067 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4068
4069 # Sed substitution to delay expansion of an escaped single quote.
4070 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4071
4072 # Sed substitution to avoid accidental globbing in evaled expressions
4073 no_glob_subst='s/\*/\\\*/g'
4074
4075 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4076 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4077 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4078
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4080 $as_echo_n "checking how to print strings... " >&6; }
4081 # Test print first, because it will be a builtin if present.
4082 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4083 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4084 ECHO='print -r --'
4085 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4086 ECHO='printf %s\n'
4087 else
4088 # Use this function as a fallback that always works.
4089 func_fallback_echo ()
4090 {
4091 eval 'cat <<_LTECHO_EOF
4092 $1
4093 _LTECHO_EOF'
4094 }
4095 ECHO='func_fallback_echo'
4096 fi
4097
4098 # func_echo_all arg...
4099 # Invoke $ECHO with all args, space-separated.
4100 func_echo_all ()
4101 {
4102 $ECHO ""
4103 }
4104
4105 case $ECHO in
4106 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4107 $as_echo "printf" >&6; } ;;
4108 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4109 $as_echo "print -r" >&6; } ;;
4110 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4111 $as_echo "cat" >&6; } ;;
4112 esac
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127 ac_ext=c
4128 ac_cpp='$CPP $CPPFLAGS'
4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 if test -n "$ac_tool_prefix"; then
4133 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4134 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 $as_echo_n "checking for $ac_word... " >&6; }
4137 if ${ac_cv_prog_CC+:} false; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 if test -n "$CC"; then
4141 ac_cv_prog_CC="$CC" # Let the user override the test.
4142 else
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4145 do
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4150 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 break 2
4153 fi
4154 done
4155 done
4156 IFS=$as_save_IFS
4157
4158 fi
4159 fi
4160 CC=$ac_cv_prog_CC
4161 if test -n "$CC"; then
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4163 $as_echo "$CC" >&6; }
4164 else
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 $as_echo "no" >&6; }
4167 fi
4168
4169
4170 fi
4171 if test -z "$ac_cv_prog_CC"; then
4172 ac_ct_CC=$CC
4173 # Extract the first word of "gcc", so it can be a program name with args.
4174 set dummy gcc; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 if test -n "$ac_ct_CC"; then
4181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4185 do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4190 ac_cv_prog_ac_ct_CC="gcc"
4191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 break 2
4193 fi
4194 done
4195 done
4196 IFS=$as_save_IFS
4197
4198 fi
4199 fi
4200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4201 if test -n "$ac_ct_CC"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4203 $as_echo "$ac_ct_CC" >&6; }
4204 else
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4207 fi
4208
4209 if test "x$ac_ct_CC" = x; then
4210 CC=""
4211 else
4212 case $cross_compiling:$ac_tool_warned in
4213 yes:)
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4216 ac_tool_warned=yes ;;
4217 esac
4218 CC=$ac_ct_CC
4219 fi
4220 else
4221 CC="$ac_cv_prog_CC"
4222 fi
4223
4224 if test -z "$CC"; then
4225 if test -n "$ac_tool_prefix"; then
4226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4227 set dummy ${ac_tool_prefix}cc; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_prog_CC+:} false; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 if test -n "$CC"; then
4234 ac_cv_prog_CC="$CC" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243 ac_cv_prog_CC="${ac_tool_prefix}cc"
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4246 fi
4247 done
4248 done
4249 IFS=$as_save_IFS
4250
4251 fi
4252 fi
4253 CC=$ac_cv_prog_CC
4254 if test -n "$CC"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4256 $as_echo "$CC" >&6; }
4257 else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4260 fi
4261
4262
4263 fi
4264 fi
4265 if test -z "$CC"; then
4266 # Extract the first word of "cc", so it can be a program name with args.
4267 set dummy cc; ac_word=$2
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 $as_echo_n "checking for $ac_word... " >&6; }
4270 if ${ac_cv_prog_CC+:} false; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 if test -n "$CC"; then
4274 ac_cv_prog_CC="$CC" # Let the user override the test.
4275 else
4276 ac_prog_rejected=no
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4285 ac_prog_rejected=yes
4286 continue
4287 fi
4288 ac_cv_prog_CC="cc"
4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 break 2
4291 fi
4292 done
4293 done
4294 IFS=$as_save_IFS
4295
4296 if test $ac_prog_rejected = yes; then
4297 # We found a bogon in the path, so make sure we never use it.
4298 set dummy $ac_cv_prog_CC
4299 shift
4300 if test $# != 0; then
4301 # We chose a different compiler from the bogus one.
4302 # However, it has the same basename, so the bogon will be chosen
4303 # first if we set CC to just the basename; use the full file name.
4304 shift
4305 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4306 fi
4307 fi
4308 fi
4309 fi
4310 CC=$ac_cv_prog_CC
4311 if test -n "$CC"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4313 $as_echo "$CC" >&6; }
4314 else
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4317 fi
4318
4319
4320 fi
4321 if test -z "$CC"; then
4322 if test -n "$ac_tool_prefix"; then
4323 for ac_prog in cl.exe
4324 do
4325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if ${ac_cv_prog_CC+:} false; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 if test -n "$CC"; then
4333 ac_cv_prog_CC="$CC" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4337 do
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4345 fi
4346 done
4347 done
4348 IFS=$as_save_IFS
4349
4350 fi
4351 fi
4352 CC=$ac_cv_prog_CC
4353 if test -n "$CC"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4355 $as_echo "$CC" >&6; }
4356 else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359 fi
4360
4361
4362 test -n "$CC" && break
4363 done
4364 fi
4365 if test -z "$CC"; then
4366 ac_ct_CC=$CC
4367 for ac_prog in cl.exe
4368 do
4369 # Extract the first word of "$ac_prog", so it can be a program name with args.
4370 set dummy $ac_prog; ac_word=$2
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 $as_echo_n "checking for $ac_word... " >&6; }
4373 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 if test -n "$ac_ct_CC"; then
4377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4381 do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4386 ac_cv_prog_ac_ct_CC="$ac_prog"
4387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 break 2
4389 fi
4390 done
4391 done
4392 IFS=$as_save_IFS
4393
4394 fi
4395 fi
4396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4397 if test -n "$ac_ct_CC"; then
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4399 $as_echo "$ac_ct_CC" >&6; }
4400 else
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402 $as_echo "no" >&6; }
4403 fi
4404
4405
4406 test -n "$ac_ct_CC" && break
4407 done
4408
4409 if test "x$ac_ct_CC" = x; then
4410 CC=""
4411 else
4412 case $cross_compiling:$ac_tool_warned in
4413 yes:)
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4416 ac_tool_warned=yes ;;
4417 esac
4418 CC=$ac_ct_CC
4419 fi
4420 fi
4421
4422 fi
4423
4424
4425 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 as_fn_error $? "no acceptable C compiler found in \$PATH
4428 See \`config.log' for more details" "$LINENO" 5; }
4429
4430 # Provide some information about the compiler.
4431 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4432 set X $ac_compile
4433 ac_compiler=$2
4434 for ac_option in --version -v -V -qversion; do
4435 { { ac_try="$ac_compiler $ac_option >&5"
4436 case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439 esac
4440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4441 $as_echo "$ac_try_echo"; } >&5
4442 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4443 ac_status=$?
4444 if test -s conftest.err; then
4445 sed '10a\
4446 ... rest of stderr output deleted ...
4447 10q' conftest.err >conftest.er1
4448 cat conftest.er1 >&5
4449 fi
4450 rm -f conftest.er1 conftest.err
4451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4452 test $ac_status = 0; }
4453 done
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4456 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4457 if ${ac_cv_c_compiler_gnu+:} false; then :
4458 $as_echo_n "(cached) " >&6
4459 else
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462
4463 int
4464 main ()
4465 {
4466 #ifndef __GNUC__
4467 choke me
4468 #endif
4469
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 if ac_fn_c_try_compile "$LINENO"; then :
4475 ac_compiler_gnu=yes
4476 else
4477 ac_compiler_gnu=no
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4481
4482 fi
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4484 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4485 if test $ac_compiler_gnu = yes; then
4486 GCC=yes
4487 else
4488 GCC=
4489 fi
4490 ac_test_CFLAGS=${CFLAGS+set}
4491 ac_save_CFLAGS=$CFLAGS
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4493 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4494 if ${ac_cv_prog_cc_g+:} false; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 ac_save_c_werror_flag=$ac_c_werror_flag
4498 ac_c_werror_flag=yes
4499 ac_cv_prog_cc_g=no
4500 CFLAGS="-g"
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503
4504 int
4505 main ()
4506 {
4507
4508 ;
4509 return 0;
4510 }
4511 _ACEOF
4512 if ac_fn_c_try_compile "$LINENO"; then :
4513 ac_cv_prog_cc_g=yes
4514 else
4515 CFLAGS=""
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518
4519 int
4520 main ()
4521 {
4522
4523 ;
4524 return 0;
4525 }
4526 _ACEOF
4527 if ac_fn_c_try_compile "$LINENO"; then :
4528
4529 else
4530 ac_c_werror_flag=$ac_save_c_werror_flag
4531 CFLAGS="-g"
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4534
4535 int
4536 main ()
4537 {
4538
4539 ;
4540 return 0;
4541 }
4542 _ACEOF
4543 if ac_fn_c_try_compile "$LINENO"; then :
4544 ac_cv_prog_cc_g=yes
4545 fi
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 fi
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 ac_c_werror_flag=$ac_save_c_werror_flag
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4554 $as_echo "$ac_cv_prog_cc_g" >&6; }
4555 if test "$ac_test_CFLAGS" = set; then
4556 CFLAGS=$ac_save_CFLAGS
4557 elif test $ac_cv_prog_cc_g = yes; then
4558 if test "$GCC" = yes; then
4559 CFLAGS="-g -O2"
4560 else
4561 CFLAGS="-g"
4562 fi
4563 else
4564 if test "$GCC" = yes; then
4565 CFLAGS="-O2"
4566 else
4567 CFLAGS=
4568 fi
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4571 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4572 if ${ac_cv_prog_cc_c89+:} false; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 ac_cv_prog_cc_c89=no
4576 ac_save_CC=$CC
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4579 #include <stdarg.h>
4580 #include <stdio.h>
4581 struct stat;
4582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4583 struct buf { int x; };
4584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4585 static char *e (p, i)
4586 char **p;
4587 int i;
4588 {
4589 return p[i];
4590 }
4591 static char *f (char * (*g) (char **, int), char **p, ...)
4592 {
4593 char *s;
4594 va_list v;
4595 va_start (v,p);
4596 s = g (p, va_arg (v,int));
4597 va_end (v);
4598 return s;
4599 }
4600
4601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4602 function prototypes and stuff, but not '\xHH' hex character constants.
4603 These don't provoke an error unfortunately, instead are silently treated
4604 as 'x'. The following induces an error, until -std is added to get
4605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4606 array size at least. It's necessary to write '\x00'==0 to get something
4607 that's true only with -std. */
4608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4609
4610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4611 inside strings and character constants. */
4612 #define FOO(x) 'x'
4613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4614
4615 int test (int i, double x);
4616 struct s1 {int (*f) (int a);};
4617 struct s2 {int (*f) (double a);};
4618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4619 int argc;
4620 char **argv;
4621 int
4622 main ()
4623 {
4624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4625 ;
4626 return 0;
4627 }
4628 _ACEOF
4629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4630 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4631 do
4632 CC="$ac_save_CC $ac_arg"
4633 if ac_fn_c_try_compile "$LINENO"; then :
4634 ac_cv_prog_cc_c89=$ac_arg
4635 fi
4636 rm -f core conftest.err conftest.$ac_objext
4637 test "x$ac_cv_prog_cc_c89" != "xno" && break
4638 done
4639 rm -f conftest.$ac_ext
4640 CC=$ac_save_CC
4641
4642 fi
4643 # AC_CACHE_VAL
4644 case "x$ac_cv_prog_cc_c89" in
4645 x)
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4647 $as_echo "none needed" >&6; } ;;
4648 xno)
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4650 $as_echo "unsupported" >&6; } ;;
4651 *)
4652 CC="$CC $ac_cv_prog_cc_c89"
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4654 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4655 esac
4656 if test "x$ac_cv_prog_cc_c89" != xno; then :
4657
4658 fi
4659
4660 ac_ext=c
4661 ac_cpp='$CPP $CPPFLAGS'
4662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665
4666 ac_ext=c
4667 ac_cpp='$CPP $CPPFLAGS'
4668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4672 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4673 if ${am_cv_prog_cc_c_o+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4678
4679 int
4680 main ()
4681 {
4682
4683 ;
4684 return 0;
4685 }
4686 _ACEOF
4687 # Make sure it works both with $CC and with simple cc.
4688 # Following AC_PROG_CC_C_O, we do the test twice because some
4689 # compilers refuse to overwrite an existing .o file with -o,
4690 # though they will create one.
4691 am_cv_prog_cc_c_o=yes
4692 for am_i in 1 2; do
4693 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4694 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } \
4698 && test -f conftest2.$ac_objext; then
4699 : OK
4700 else
4701 am_cv_prog_cc_c_o=no
4702 break
4703 fi
4704 done
4705 rm -f core conftest*
4706 unset am_i
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4709 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4710 if test "$am_cv_prog_cc_c_o" != yes; then
4711 # Losing compiler, so override with the script.
4712 # FIXME: It is wrong to rewrite CC.
4713 # But if we don't then we get into trouble of one sort or another.
4714 # A longer-term fix would be to have automake use am__CC in this case,
4715 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4716 CC="$am_aux_dir/compile $CC"
4717 fi
4718 ac_ext=c
4719 ac_cpp='$CPP $CPPFLAGS'
4720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723
4724
4725 depcc="$CC" am_compiler_list=
4726
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4728 $as_echo_n "checking dependency style of $depcc... " >&6; }
4729 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4733 # We make a subdir and do the tests there. Otherwise we can end up
4734 # making bogus files that we don't know about and never remove. For
4735 # instance it was reported that on HP-UX the gcc test will end up
4736 # making a dummy file named 'D' -- because '-MD' means "put the output
4737 # in D".
4738 rm -rf conftest.dir
4739 mkdir conftest.dir
4740 # Copy depcomp to subdir because otherwise we won't find it if we're
4741 # using a relative directory.
4742 cp "$am_depcomp" conftest.dir
4743 cd conftest.dir
4744 # We will build objects and dependencies in a subdirectory because
4745 # it helps to detect inapplicable dependency modes. For instance
4746 # both Tru64's cc and ICC support -MD to output dependencies as a
4747 # side effect of compilation, but ICC will put the dependencies in
4748 # the current directory while Tru64 will put them in the object
4749 # directory.
4750 mkdir sub
4751
4752 am_cv_CC_dependencies_compiler_type=none
4753 if test "$am_compiler_list" = ""; then
4754 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4755 fi
4756 am__universal=false
4757 case " $depcc " in #(
4758 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4759 esac
4760
4761 for depmode in $am_compiler_list; do
4762 # Setup a source with many dependencies, because some compilers
4763 # like to wrap large dependency lists on column 80 (with \), and
4764 # we should not choose a depcomp mode which is confused by this.
4765 #
4766 # We need to recreate these files for each test, as the compiler may
4767 # overwrite some of them when testing with obscure command lines.
4768 # This happens at least with the AIX C compiler.
4769 : > sub/conftest.c
4770 for i in 1 2 3 4 5 6; do
4771 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4772 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4773 # Solaris 10 /bin/sh.
4774 echo '/* dummy */' > sub/conftst$i.h
4775 done
4776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4777
4778 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4779 # mode. It turns out that the SunPro C++ compiler does not properly
4780 # handle '-M -o', and we need to detect this. Also, some Intel
4781 # versions had trouble with output in subdirs.
4782 am__obj=sub/conftest.${OBJEXT-o}
4783 am__minus_obj="-o $am__obj"
4784 case $depmode in
4785 gcc)
4786 # This depmode causes a compiler race in universal mode.
4787 test "$am__universal" = false || continue
4788 ;;
4789 nosideeffect)
4790 # After this tag, mechanisms are not by side-effect, so they'll
4791 # only be used when explicitly requested.
4792 if test "x$enable_dependency_tracking" = xyes; then
4793 continue
4794 else
4795 break
4796 fi
4797 ;;
4798 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4799 # This compiler won't grok '-c -o', but also, the minuso test has
4800 # not run yet. These depmodes are late enough in the game, and
4801 # so weak that their functioning should not be impacted.
4802 am__obj=conftest.${OBJEXT-o}
4803 am__minus_obj=
4804 ;;
4805 none) break ;;
4806 esac
4807 if depmode=$depmode \
4808 source=sub/conftest.c object=$am__obj \
4809 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4810 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4811 >/dev/null 2>conftest.err &&
4812 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4813 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4814 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4815 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4816 # icc doesn't choke on unknown options, it will just issue warnings
4817 # or remarks (even with -Werror). So we grep stderr for any message
4818 # that says an option was ignored or not supported.
4819 # When given -MP, icc 7.0 and 7.1 complain thusly:
4820 # icc: Command line warning: ignoring option '-M'; no argument required
4821 # The diagnosis changed in icc 8.0:
4822 # icc: Command line remark: option '-MP' not supported
4823 if (grep 'ignoring option' conftest.err ||
4824 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4825 am_cv_CC_dependencies_compiler_type=$depmode
4826 break
4827 fi
4828 fi
4829 done
4830
4831 cd ..
4832 rm -rf conftest.dir
4833 else
4834 am_cv_CC_dependencies_compiler_type=none
4835 fi
4836
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4839 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4840 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4841
4842 if
4843 test "x$enable_dependency_tracking" != xno \
4844 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4845 am__fastdepCC_TRUE=
4846 am__fastdepCC_FALSE='#'
4847 else
4848 am__fastdepCC_TRUE='#'
4849 am__fastdepCC_FALSE=
4850 fi
4851
4852
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4854 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4855 if ${ac_cv_path_SED+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4859 for ac_i in 1 2 3 4 5 6 7; do
4860 ac_script="$ac_script$as_nl$ac_script"
4861 done
4862 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4863 { ac_script=; unset ac_script;}
4864 if test -z "$SED"; then
4865 ac_path_SED_found=false
4866 # Loop through the user's path and test for each of PROGNAME-LIST
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_prog in sed gsed; do
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4875 as_fn_executable_p "$ac_path_SED" || continue
4876 # Check for GNU ac_path_SED and select it if it is found.
4877 # Check for GNU $ac_path_SED
4878 case `"$ac_path_SED" --version 2>&1` in
4879 *GNU*)
4880 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4881 *)
4882 ac_count=0
4883 $as_echo_n 0123456789 >"conftest.in"
4884 while :
4885 do
4886 cat "conftest.in" "conftest.in" >"conftest.tmp"
4887 mv "conftest.tmp" "conftest.in"
4888 cp "conftest.in" "conftest.nl"
4889 $as_echo '' >> "conftest.nl"
4890 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892 as_fn_arith $ac_count + 1 && ac_count=$as_val
4893 if test $ac_count -gt ${ac_path_SED_max-0}; then
4894 # Best one so far, save it but keep looking for a better one
4895 ac_cv_path_SED="$ac_path_SED"
4896 ac_path_SED_max=$ac_count
4897 fi
4898 # 10*(2^10) chars as input seems more than enough
4899 test $ac_count -gt 10 && break
4900 done
4901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902 esac
4903
4904 $ac_path_SED_found && break 3
4905 done
4906 done
4907 done
4908 IFS=$as_save_IFS
4909 if test -z "$ac_cv_path_SED"; then
4910 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4911 fi
4912 else
4913 ac_cv_path_SED=$SED
4914 fi
4915
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4918 $as_echo "$ac_cv_path_SED" >&6; }
4919 SED="$ac_cv_path_SED"
4920 rm -f conftest.sed
4921
4922 test -z "$SED" && SED=sed
4923 Xsed="$SED -e 1s/^X//"
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4936 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4937 if ${ac_cv_path_GREP+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if test -z "$GREP"; then
4941 ac_path_GREP_found=false
4942 # Loop through the user's path and test for each of PROGNAME-LIST
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4945 do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_prog in grep ggrep; do
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4951 as_fn_executable_p "$ac_path_GREP" || continue
4952 # Check for GNU ac_path_GREP and select it if it is found.
4953 # Check for GNU $ac_path_GREP
4954 case `"$ac_path_GREP" --version 2>&1` in
4955 *GNU*)
4956 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4957 *)
4958 ac_count=0
4959 $as_echo_n 0123456789 >"conftest.in"
4960 while :
4961 do
4962 cat "conftest.in" "conftest.in" >"conftest.tmp"
4963 mv "conftest.tmp" "conftest.in"
4964 cp "conftest.in" "conftest.nl"
4965 $as_echo 'GREP' >> "conftest.nl"
4966 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4968 as_fn_arith $ac_count + 1 && ac_count=$as_val
4969 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4970 # Best one so far, save it but keep looking for a better one
4971 ac_cv_path_GREP="$ac_path_GREP"
4972 ac_path_GREP_max=$ac_count
4973 fi
4974 # 10*(2^10) chars as input seems more than enough
4975 test $ac_count -gt 10 && break
4976 done
4977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4978 esac
4979
4980 $ac_path_GREP_found && break 3
4981 done
4982 done
4983 done
4984 IFS=$as_save_IFS
4985 if test -z "$ac_cv_path_GREP"; then
4986 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4987 fi
4988 else
4989 ac_cv_path_GREP=$GREP
4990 fi
4991
4992 fi
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4994 $as_echo "$ac_cv_path_GREP" >&6; }
4995 GREP="$ac_cv_path_GREP"
4996
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4999 $as_echo_n "checking for egrep... " >&6; }
5000 if ${ac_cv_path_EGREP+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5004 then ac_cv_path_EGREP="$GREP -E"
5005 else
5006 if test -z "$EGREP"; then
5007 ac_path_EGREP_found=false
5008 # Loop through the user's path and test for each of PROGNAME-LIST
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5011 do
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_prog in egrep; do
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5017 as_fn_executable_p "$ac_path_EGREP" || continue
5018 # Check for GNU ac_path_EGREP and select it if it is found.
5019 # Check for GNU $ac_path_EGREP
5020 case `"$ac_path_EGREP" --version 2>&1` in
5021 *GNU*)
5022 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5023 *)
5024 ac_count=0
5025 $as_echo_n 0123456789 >"conftest.in"
5026 while :
5027 do
5028 cat "conftest.in" "conftest.in" >"conftest.tmp"
5029 mv "conftest.tmp" "conftest.in"
5030 cp "conftest.in" "conftest.nl"
5031 $as_echo 'EGREP' >> "conftest.nl"
5032 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5034 as_fn_arith $ac_count + 1 && ac_count=$as_val
5035 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5036 # Best one so far, save it but keep looking for a better one
5037 ac_cv_path_EGREP="$ac_path_EGREP"
5038 ac_path_EGREP_max=$ac_count
5039 fi
5040 # 10*(2^10) chars as input seems more than enough
5041 test $ac_count -gt 10 && break
5042 done
5043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5044 esac
5045
5046 $ac_path_EGREP_found && break 3
5047 done
5048 done
5049 done
5050 IFS=$as_save_IFS
5051 if test -z "$ac_cv_path_EGREP"; then
5052 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5053 fi
5054 else
5055 ac_cv_path_EGREP=$EGREP
5056 fi
5057
5058 fi
5059 fi
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5061 $as_echo "$ac_cv_path_EGREP" >&6; }
5062 EGREP="$ac_cv_path_EGREP"
5063
5064
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5066 $as_echo_n "checking for fgrep... " >&6; }
5067 if ${ac_cv_path_FGREP+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5071 then ac_cv_path_FGREP="$GREP -F"
5072 else
5073 if test -z "$FGREP"; then
5074 ac_path_FGREP_found=false
5075 # Loop through the user's path and test for each of PROGNAME-LIST
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5078 do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_prog in fgrep; do
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5084 as_fn_executable_p "$ac_path_FGREP" || continue
5085 # Check for GNU ac_path_FGREP and select it if it is found.
5086 # Check for GNU $ac_path_FGREP
5087 case `"$ac_path_FGREP" --version 2>&1` in
5088 *GNU*)
5089 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5090 *)
5091 ac_count=0
5092 $as_echo_n 0123456789 >"conftest.in"
5093 while :
5094 do
5095 cat "conftest.in" "conftest.in" >"conftest.tmp"
5096 mv "conftest.tmp" "conftest.in"
5097 cp "conftest.in" "conftest.nl"
5098 $as_echo 'FGREP' >> "conftest.nl"
5099 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5101 as_fn_arith $ac_count + 1 && ac_count=$as_val
5102 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5103 # Best one so far, save it but keep looking for a better one
5104 ac_cv_path_FGREP="$ac_path_FGREP"
5105 ac_path_FGREP_max=$ac_count
5106 fi
5107 # 10*(2^10) chars as input seems more than enough
5108 test $ac_count -gt 10 && break
5109 done
5110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5111 esac
5112
5113 $ac_path_FGREP_found && break 3
5114 done
5115 done
5116 done
5117 IFS=$as_save_IFS
5118 if test -z "$ac_cv_path_FGREP"; then
5119 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5120 fi
5121 else
5122 ac_cv_path_FGREP=$FGREP
5123 fi
5124
5125 fi
5126 fi
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5128 $as_echo "$ac_cv_path_FGREP" >&6; }
5129 FGREP="$ac_cv_path_FGREP"
5130
5131
5132 test -z "$GREP" && GREP=grep
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152 # Check whether --with-gnu-ld was given.
5153 if test "${with_gnu_ld+set}" = set; then :
5154 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5155 else
5156 with_gnu_ld=no
5157 fi
5158
5159 ac_prog=ld
5160 if test yes = "$GCC"; then
5161 # Check if gcc -print-prog-name=ld gives a path.
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5163 $as_echo_n "checking for ld used by $CC... " >&6; }
5164 case $host in
5165 *-*-mingw*)
5166 # gcc leaves a trailing carriage return, which upsets mingw
5167 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5168 *)
5169 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5170 esac
5171 case $ac_prog in
5172 # Accept absolute paths.
5173 [\\/]* | ?:[\\/]*)
5174 re_direlt='/[^/][^/]*/\.\./'
5175 # Canonicalize the pathname of ld
5176 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5177 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5178 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5179 done
5180 test -z "$LD" && LD=$ac_prog
5181 ;;
5182 "")
5183 # If it fails, then pretend we aren't using GCC.
5184 ac_prog=ld
5185 ;;
5186 *)
5187 # If it is relative, then search for the first ld in PATH.
5188 with_gnu_ld=unknown
5189 ;;
5190 esac
5191 elif test yes = "$with_gnu_ld"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5193 $as_echo_n "checking for GNU ld... " >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5196 $as_echo_n "checking for non-GNU ld... " >&6; }
5197 fi
5198 if ${lt_cv_path_LD+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 if test -z "$LD"; then
5202 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5203 for ac_dir in $PATH; do
5204 IFS=$lt_save_ifs
5205 test -z "$ac_dir" && ac_dir=.
5206 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5207 lt_cv_path_LD=$ac_dir/$ac_prog
5208 # Check to see if the program is GNU ld. I'd rather use --version,
5209 # but apparently some variants of GNU ld only accept -v.
5210 # Break only if it was the GNU/non-GNU ld that we prefer.
5211 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5212 *GNU* | *'with BFD'*)
5213 test no != "$with_gnu_ld" && break
5214 ;;
5215 *)
5216 test yes != "$with_gnu_ld" && break
5217 ;;
5218 esac
5219 fi
5220 done
5221 IFS=$lt_save_ifs
5222 else
5223 lt_cv_path_LD=$LD # Let the user override the test with a path.
5224 fi
5225 fi
5226
5227 LD=$lt_cv_path_LD
5228 if test -n "$LD"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5230 $as_echo "$LD" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5237 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5238 if ${lt_cv_prog_gnu_ld+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5242 case `$LD -v 2>&1 </dev/null` in
5243 *GNU* | *'with BFD'*)
5244 lt_cv_prog_gnu_ld=yes
5245 ;;
5246 *)
5247 lt_cv_prog_gnu_ld=no
5248 ;;
5249 esac
5250 fi
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5252 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5253 with_gnu_ld=$lt_cv_prog_gnu_ld
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5264 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5265 if ${lt_cv_path_NM+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 if test -n "$NM"; then
5269 # Let the user override the test.
5270 lt_cv_path_NM=$NM
5271 else
5272 lt_nm_to_check=${ac_tool_prefix}nm
5273 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5274 lt_nm_to_check="$lt_nm_to_check nm"
5275 fi
5276 for lt_tmp_nm in $lt_nm_to_check; do
5277 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5278 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5279 IFS=$lt_save_ifs
5280 test -z "$ac_dir" && ac_dir=.
5281 tmp_nm=$ac_dir/$lt_tmp_nm
5282 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5283 # Check to see if the nm accepts a BSD-compat flag.
5284 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5285 # nm: unknown option "B" ignored
5286 # Tru64's nm complains that /dev/null is an invalid object file
5287 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5288 case $build_os in
5289 mingw*) lt_bad_file=conftest.nm/nofile ;;
5290 *) lt_bad_file=/dev/null ;;
5291 esac
5292 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5293 *$lt_bad_file* | *'Invalid file or object type'*)
5294 lt_cv_path_NM="$tmp_nm -B"
5295 break 2
5296 ;;
5297 *)
5298 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5299 */dev/null*)
5300 lt_cv_path_NM="$tmp_nm -p"
5301 break 2
5302 ;;
5303 *)
5304 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5305 continue # so that we can try to find one that supports BSD flags
5306 ;;
5307 esac
5308 ;;
5309 esac
5310 fi
5311 done
5312 IFS=$lt_save_ifs
5313 done
5314 : ${lt_cv_path_NM=no}
5315 fi
5316 fi
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5318 $as_echo "$lt_cv_path_NM" >&6; }
5319 if test no != "$lt_cv_path_NM"; then
5320 NM=$lt_cv_path_NM
5321 else
5322 # Didn't find any BSD compatible name lister, look for dumpbin.
5323 if test -n "$DUMPBIN"; then :
5324 # Let the user override the test.
5325 else
5326 if test -n "$ac_tool_prefix"; then
5327 for ac_prog in dumpbin "link -dump"
5328 do
5329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5332 $as_echo_n "checking for $ac_word... " >&6; }
5333 if ${ac_cv_prog_DUMPBIN+:} false; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 if test -n "$DUMPBIN"; then
5337 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5338 else
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5341 do
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5346 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 break 2
5349 fi
5350 done
5351 done
5352 IFS=$as_save_IFS
5353
5354 fi
5355 fi
5356 DUMPBIN=$ac_cv_prog_DUMPBIN
5357 if test -n "$DUMPBIN"; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5359 $as_echo "$DUMPBIN" >&6; }
5360 else
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5363 fi
5364
5365
5366 test -n "$DUMPBIN" && break
5367 done
5368 fi
5369 if test -z "$DUMPBIN"; then
5370 ac_ct_DUMPBIN=$DUMPBIN
5371 for ac_prog in dumpbin "link -dump"
5372 do
5373 # Extract the first word of "$ac_prog", so it can be a program name with args.
5374 set dummy $ac_prog; ac_word=$2
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376 $as_echo_n "checking for $ac_word... " >&6; }
5377 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5380 if test -n "$ac_ct_DUMPBIN"; then
5381 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5382 else
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH
5385 do
5386 IFS=$as_save_IFS
5387 test -z "$as_dir" && as_dir=.
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5390 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5392 break 2
5393 fi
5394 done
5395 done
5396 IFS=$as_save_IFS
5397
5398 fi
5399 fi
5400 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5401 if test -n "$ac_ct_DUMPBIN"; then
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5403 $as_echo "$ac_ct_DUMPBIN" >&6; }
5404 else
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5407 fi
5408
5409
5410 test -n "$ac_ct_DUMPBIN" && break
5411 done
5412
5413 if test "x$ac_ct_DUMPBIN" = x; then
5414 DUMPBIN=":"
5415 else
5416 case $cross_compiling:$ac_tool_warned in
5417 yes:)
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5420 ac_tool_warned=yes ;;
5421 esac
5422 DUMPBIN=$ac_ct_DUMPBIN
5423 fi
5424 fi
5425
5426 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5427 *COFF*)
5428 DUMPBIN="$DUMPBIN -symbols -headers"
5429 ;;
5430 *)
5431 DUMPBIN=:
5432 ;;
5433 esac
5434 fi
5435
5436 if test : != "$DUMPBIN"; then
5437 NM=$DUMPBIN
5438 fi
5439 fi
5440 test -z "$NM" && NM=nm
5441
5442
5443
5444
5445
5446
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5448 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5449 if ${lt_cv_nm_interface+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 lt_cv_nm_interface="BSD nm"
5453 echo "int some_variable = 0;" > conftest.$ac_ext
5454 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5455 (eval "$ac_compile" 2>conftest.err)
5456 cat conftest.err >&5
5457 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5458 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5459 cat conftest.err >&5
5460 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5461 cat conftest.out >&5
5462 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5463 lt_cv_nm_interface="MS dumpbin"
5464 fi
5465 rm -f conftest*
5466 fi
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5468 $as_echo "$lt_cv_nm_interface" >&6; }
5469
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5471 $as_echo_n "checking whether ln -s works... " >&6; }
5472 LN_S=$as_ln_s
5473 if test "$LN_S" = "ln -s"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5475 $as_echo "yes" >&6; }
5476 else
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5478 $as_echo "no, using $LN_S" >&6; }
5479 fi
5480
5481 # find the maximum length of command line arguments
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5483 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5484 if ${lt_cv_sys_max_cmd_len+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 i=0
5488 teststring=ABCD
5489
5490 case $build_os in
5491 msdosdjgpp*)
5492 # On DJGPP, this test can blow up pretty badly due to problems in libc
5493 # (any single argument exceeding 2000 bytes causes a buffer overrun
5494 # during glob expansion). Even if it were fixed, the result of this
5495 # check would be larger than it should be.
5496 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5497 ;;
5498
5499 gnu*)
5500 # Under GNU Hurd, this test is not required because there is
5501 # no limit to the length of command line arguments.
5502 # Libtool will interpret -1 as no limit whatsoever
5503 lt_cv_sys_max_cmd_len=-1;
5504 ;;
5505
5506 cygwin* | mingw* | cegcc*)
5507 # On Win9x/ME, this test blows up -- it succeeds, but takes
5508 # about 5 minutes as the teststring grows exponentially.
5509 # Worse, since 9x/ME are not pre-emptively multitasking,
5510 # you end up with a "frozen" computer, even though with patience
5511 # the test eventually succeeds (with a max line length of 256k).
5512 # Instead, let's just punt: use the minimum linelength reported by
5513 # all of the supported platforms: 8192 (on NT/2K/XP).
5514 lt_cv_sys_max_cmd_len=8192;
5515 ;;
5516
5517 mint*)
5518 # On MiNT this can take a long time and run out of memory.
5519 lt_cv_sys_max_cmd_len=8192;
5520 ;;
5521
5522 amigaos*)
5523 # On AmigaOS with pdksh, this test takes hours, literally.
5524 # So we just punt and use a minimum line length of 8192.
5525 lt_cv_sys_max_cmd_len=8192;
5526 ;;
5527
5528 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5529 # This has been around since 386BSD, at least. Likely further.
5530 if test -x /sbin/sysctl; then
5531 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5532 elif test -x /usr/sbin/sysctl; then
5533 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5534 else
5535 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5536 fi
5537 # And add a safety zone
5538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5540 ;;
5541
5542 interix*)
5543 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5544 lt_cv_sys_max_cmd_len=196608
5545 ;;
5546
5547 os2*)
5548 # The test takes a long time on OS/2.
5549 lt_cv_sys_max_cmd_len=8192
5550 ;;
5551
5552 osf*)
5553 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5554 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5555 # nice to cause kernel panics so lets avoid the loop below.
5556 # First set a reasonable default.
5557 lt_cv_sys_max_cmd_len=16384
5558 #
5559 if test -x /sbin/sysconfig; then
5560 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5561 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5562 esac
5563 fi
5564 ;;
5565 sco3.2v5*)
5566 lt_cv_sys_max_cmd_len=102400
5567 ;;
5568 sysv5* | sco5v6* | sysv4.2uw2*)
5569 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5570 if test -n "$kargmax"; then
5571 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5572 else
5573 lt_cv_sys_max_cmd_len=32768
5574 fi
5575 ;;
5576 *)
5577 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5578 if test -n "$lt_cv_sys_max_cmd_len" && \
5579 test undefined != "$lt_cv_sys_max_cmd_len"; then
5580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5582 else
5583 # Make teststring a little bigger before we do anything with it.
5584 # a 1K string should be a reasonable start.
5585 for i in 1 2 3 4 5 6 7 8; do
5586 teststring=$teststring$teststring
5587 done
5588 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5589 # If test is not a shell built-in, we'll probably end up computing a
5590 # maximum length that is only half of the actual maximum length, but
5591 # we can't tell.
5592 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5593 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5594 test 17 != "$i" # 1/2 MB should be enough
5595 do
5596 i=`expr $i + 1`
5597 teststring=$teststring$teststring
5598 done
5599 # Only check the string length outside the loop.
5600 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5601 teststring=
5602 # Add a significant safety factor because C++ compilers can tack on
5603 # massive amounts of additional arguments before passing them to the
5604 # linker. It appears as though 1/2 is a usable value.
5605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5606 fi
5607 ;;
5608 esac
5609
5610 fi
5611
5612 if test -n "$lt_cv_sys_max_cmd_len"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5614 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5615 else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5617 $as_echo "none" >&6; }
5618 fi
5619 max_cmd_len=$lt_cv_sys_max_cmd_len
5620
5621
5622
5623
5624
5625
5626 : ${CP="cp -f"}
5627 : ${MV="mv -f"}
5628 : ${RM="rm -f"}
5629
5630 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5631 lt_unset=unset
5632 else
5633 lt_unset=false
5634 fi
5635
5636
5637
5638
5639
5640 # test EBCDIC or ASCII
5641 case `echo X|tr X '\101'` in
5642 A) # ASCII based system
5643 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5644 lt_SP2NL='tr \040 \012'
5645 lt_NL2SP='tr \015\012 \040\040'
5646 ;;
5647 *) # EBCDIC based system
5648 lt_SP2NL='tr \100 \n'
5649 lt_NL2SP='tr \r\n \100\100'
5650 ;;
5651 esac
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5662 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5663 if ${lt_cv_to_host_file_cmd+:} false; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 case $host in
5667 *-*-mingw* )
5668 case $build in
5669 *-*-mingw* ) # actually msys
5670 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5671 ;;
5672 *-*-cygwin* )
5673 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5674 ;;
5675 * ) # otherwise, assume *nix
5676 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5677 ;;
5678 esac
5679 ;;
5680 *-*-cygwin* )
5681 case $build in
5682 *-*-mingw* ) # actually msys
5683 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5684 ;;
5685 *-*-cygwin* )
5686 lt_cv_to_host_file_cmd=func_convert_file_noop
5687 ;;
5688 * ) # otherwise, assume *nix
5689 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5690 ;;
5691 esac
5692 ;;
5693 * ) # unhandled hosts (and "normal" native builds)
5694 lt_cv_to_host_file_cmd=func_convert_file_noop
5695 ;;
5696 esac
5697
5698 fi
5699
5700 to_host_file_cmd=$lt_cv_to_host_file_cmd
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5702 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5703
5704
5705
5706
5707
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5709 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5710 if ${lt_cv_to_tool_file_cmd+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 #assume ordinary cross tools, or native build.
5714 lt_cv_to_tool_file_cmd=func_convert_file_noop
5715 case $host in
5716 *-*-mingw* )
5717 case $build in
5718 *-*-mingw* ) # actually msys
5719 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5720 ;;
5721 esac
5722 ;;
5723 esac
5724
5725 fi
5726
5727 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5729 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5730
5731
5732
5733
5734
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5736 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5737 if ${lt_cv_ld_reload_flag+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 lt_cv_ld_reload_flag='-r'
5741 fi
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5743 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5744 reload_flag=$lt_cv_ld_reload_flag
5745 case $reload_flag in
5746 "" | " "*) ;;
5747 *) reload_flag=" $reload_flag" ;;
5748 esac
5749 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5750 case $host_os in
5751 cygwin* | mingw* | pw32* | cegcc*)
5752 if test yes != "$GCC"; then
5753 reload_cmds=false
5754 fi
5755 ;;
5756 darwin*)
5757 if test yes = "$GCC"; then
5758 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5759 else
5760 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5761 fi
5762 ;;
5763 esac
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773 if test -n "$ac_tool_prefix"; then
5774 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5775 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777 $as_echo_n "checking for $ac_word... " >&6; }
5778 if ${ac_cv_prog_OBJDUMP+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 if test -n "$OBJDUMP"; then
5782 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 break 2
5794 fi
5795 done
5796 done
5797 IFS=$as_save_IFS
5798
5799 fi
5800 fi
5801 OBJDUMP=$ac_cv_prog_OBJDUMP
5802 if test -n "$OBJDUMP"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5804 $as_echo "$OBJDUMP" >&6; }
5805 else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5808 fi
5809
5810
5811 fi
5812 if test -z "$ac_cv_prog_OBJDUMP"; then
5813 ac_ct_OBJDUMP=$OBJDUMP
5814 # Extract the first word of "objdump", so it can be a program name with args.
5815 set dummy objdump; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 if test -n "$ac_ct_OBJDUMP"; then
5822 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835 done
5836 done
5837 IFS=$as_save_IFS
5838
5839 fi
5840 fi
5841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5842 if test -n "$ac_ct_OBJDUMP"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5844 $as_echo "$ac_ct_OBJDUMP" >&6; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5848 fi
5849
5850 if test "x$ac_ct_OBJDUMP" = x; then
5851 OBJDUMP="false"
5852 else
5853 case $cross_compiling:$ac_tool_warned in
5854 yes:)
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5857 ac_tool_warned=yes ;;
5858 esac
5859 OBJDUMP=$ac_ct_OBJDUMP
5860 fi
5861 else
5862 OBJDUMP="$ac_cv_prog_OBJDUMP"
5863 fi
5864
5865 test -z "$OBJDUMP" && OBJDUMP=objdump
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5876 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5877 if ${lt_cv_deplibs_check_method+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 lt_cv_file_magic_cmd='$MAGIC_CMD'
5881 lt_cv_file_magic_test_file=
5882 lt_cv_deplibs_check_method='unknown'
5883 # Need to set the preceding variable on all platforms that support
5884 # interlibrary dependencies.
5885 # 'none' -- dependencies not supported.
5886 # 'unknown' -- same as none, but documents that we really don't know.
5887 # 'pass_all' -- all dependencies passed with no checks.
5888 # 'test_compile' -- check by making test program.
5889 # 'file_magic [[regex]]' -- check by looking for files in library path
5890 # that responds to the $file_magic_cmd with a given extended regex.
5891 # If you have 'file' or equivalent on your system and you're not sure
5892 # whether 'pass_all' will *always* work, you probably want this one.
5893
5894 case $host_os in
5895 aix[4-9]*)
5896 lt_cv_deplibs_check_method=pass_all
5897 ;;
5898
5899 beos*)
5900 lt_cv_deplibs_check_method=pass_all
5901 ;;
5902
5903 bsdi[45]*)
5904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5905 lt_cv_file_magic_cmd='/usr/bin/file -L'
5906 lt_cv_file_magic_test_file=/shlib/libc.so
5907 ;;
5908
5909 cygwin*)
5910 # func_win32_libid is a shell function defined in ltmain.sh
5911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5912 lt_cv_file_magic_cmd='func_win32_libid'
5913 ;;
5914
5915 mingw* | pw32*)
5916 # Base MSYS/MinGW do not provide the 'file' command needed by
5917 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5918 # unless we find 'file', for example because we are cross-compiling.
5919 if ( file / ) >/dev/null 2>&1; then
5920 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5921 lt_cv_file_magic_cmd='func_win32_libid'
5922 else
5923 # Keep this pattern in sync with the one in func_win32_libid.
5924 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5925 lt_cv_file_magic_cmd='$OBJDUMP -f'
5926 fi
5927 ;;
5928
5929 cegcc*)
5930 # use the weaker test based on 'objdump'. See mingw*.
5931 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5932 lt_cv_file_magic_cmd='$OBJDUMP -f'
5933 ;;
5934
5935 darwin* | rhapsody*)
5936 lt_cv_deplibs_check_method=pass_all
5937 ;;
5938
5939 freebsd* | dragonfly*)
5940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5941 case $host_cpu in
5942 i*86 )
5943 # Not sure whether the presence of OpenBSD here was a mistake.
5944 # Let's accept both of them until this is cleared up.
5945 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5946 lt_cv_file_magic_cmd=/usr/bin/file
5947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5948 ;;
5949 esac
5950 else
5951 lt_cv_deplibs_check_method=pass_all
5952 fi
5953 ;;
5954
5955 haiku*)
5956 lt_cv_deplibs_check_method=pass_all
5957 ;;
5958
5959 hpux10.20* | hpux11*)
5960 lt_cv_file_magic_cmd=/usr/bin/file
5961 case $host_cpu in
5962 ia64*)
5963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5964 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5965 ;;
5966 hppa*64*)
5967 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]'
5968 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5969 ;;
5970 *)
5971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5972 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5973 ;;
5974 esac
5975 ;;
5976
5977 interix[3-9]*)
5978 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5980 ;;
5981
5982 irix5* | irix6* | nonstopux*)
5983 case $LD in
5984 *-32|*"-32 ") libmagic=32-bit;;
5985 *-n32|*"-n32 ") libmagic=N32;;
5986 *-64|*"-64 ") libmagic=64-bit;;
5987 *) libmagic=never-match;;
5988 esac
5989 lt_cv_deplibs_check_method=pass_all
5990 ;;
5991
5992 # This must be glibc/ELF.
5993 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5994 lt_cv_deplibs_check_method=pass_all
5995 ;;
5996
5997 netbsd* | netbsdelf*-gnu)
5998 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6000 else
6001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6002 fi
6003 ;;
6004
6005 newos6*)
6006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6007 lt_cv_file_magic_cmd=/usr/bin/file
6008 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6009 ;;
6010
6011 *nto* | *qnx*)
6012 lt_cv_deplibs_check_method=pass_all
6013 ;;
6014
6015 openbsd* | bitrig*)
6016 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6018 else
6019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6020 fi
6021 ;;
6022
6023 osf3* | osf4* | osf5*)
6024 lt_cv_deplibs_check_method=pass_all
6025 ;;
6026
6027 rdos*)
6028 lt_cv_deplibs_check_method=pass_all
6029 ;;
6030
6031 solaris*)
6032 lt_cv_deplibs_check_method=pass_all
6033 ;;
6034
6035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6036 lt_cv_deplibs_check_method=pass_all
6037 ;;
6038
6039 sysv4 | sysv4.3*)
6040 case $host_vendor in
6041 motorola)
6042 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]'
6043 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6044 ;;
6045 ncr)
6046 lt_cv_deplibs_check_method=pass_all
6047 ;;
6048 sequent)
6049 lt_cv_file_magic_cmd='/bin/file'
6050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6051 ;;
6052 sni)
6053 lt_cv_file_magic_cmd='/bin/file'
6054 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6055 lt_cv_file_magic_test_file=/lib/libc.so
6056 ;;
6057 siemens)
6058 lt_cv_deplibs_check_method=pass_all
6059 ;;
6060 pc)
6061 lt_cv_deplibs_check_method=pass_all
6062 ;;
6063 esac
6064 ;;
6065
6066 tpf*)
6067 lt_cv_deplibs_check_method=pass_all
6068 ;;
6069 os2*)
6070 lt_cv_deplibs_check_method=pass_all
6071 ;;
6072 esac
6073
6074 fi
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6076 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6077
6078 file_magic_glob=
6079 want_nocaseglob=no
6080 if test "$build" = "$host"; then
6081 case $host_os in
6082 mingw* | pw32*)
6083 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6084 want_nocaseglob=yes
6085 else
6086 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6087 fi
6088 ;;
6089 esac
6090 fi
6091
6092 file_magic_cmd=$lt_cv_file_magic_cmd
6093 deplibs_check_method=$lt_cv_deplibs_check_method
6094 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117 if test -n "$ac_tool_prefix"; then
6118 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6119 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_DLLTOOL+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 if test -n "$DLLTOOL"; then
6126 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6138 fi
6139 done
6140 done
6141 IFS=$as_save_IFS
6142
6143 fi
6144 fi
6145 DLLTOOL=$ac_cv_prog_DLLTOOL
6146 if test -n "$DLLTOOL"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6148 $as_echo "$DLLTOOL" >&6; }
6149 else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153
6154
6155 fi
6156 if test -z "$ac_cv_prog_DLLTOOL"; then
6157 ac_ct_DLLTOOL=$DLLTOOL
6158 # Extract the first word of "dlltool", so it can be a program name with args.
6159 set dummy dlltool; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 if test -n "$ac_ct_DLLTOOL"; then
6166 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6178 fi
6179 done
6180 done
6181 IFS=$as_save_IFS
6182
6183 fi
6184 fi
6185 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6186 if test -n "$ac_ct_DLLTOOL"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6188 $as_echo "$ac_ct_DLLTOOL" >&6; }
6189 else
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6192 fi
6193
6194 if test "x$ac_ct_DLLTOOL" = x; then
6195 DLLTOOL="false"
6196 else
6197 case $cross_compiling:$ac_tool_warned in
6198 yes:)
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6201 ac_tool_warned=yes ;;
6202 esac
6203 DLLTOOL=$ac_ct_DLLTOOL
6204 fi
6205 else
6206 DLLTOOL="$ac_cv_prog_DLLTOOL"
6207 fi
6208
6209 test -z "$DLLTOOL" && DLLTOOL=dlltool
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6221 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6222 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 lt_cv_sharedlib_from_linklib_cmd='unknown'
6226
6227 case $host_os in
6228 cygwin* | mingw* | pw32* | cegcc*)
6229 # two different shell functions defined in ltmain.sh;
6230 # decide which one to use based on capabilities of $DLLTOOL
6231 case `$DLLTOOL --help 2>&1` in
6232 *--identify-strict*)
6233 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6234 ;;
6235 *)
6236 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6237 ;;
6238 esac
6239 ;;
6240 *)
6241 # fallback: assume linklib IS sharedlib
6242 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6243 ;;
6244 esac
6245
6246 fi
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6248 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6249 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6250 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6251
6252
6253
6254
6255
6256
6257
6258
6259 if test -n "$ac_tool_prefix"; then
6260 for ac_prog in ar
6261 do
6262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if ${ac_cv_prog_AR+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 if test -n "$AR"; then
6270 ac_cv_prog_AR="$AR" # Let the user override the test.
6271 else
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6279 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 break 2
6282 fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287 fi
6288 fi
6289 AR=$ac_cv_prog_AR
6290 if test -n "$AR"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6292 $as_echo "$AR" >&6; }
6293 else
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6296 fi
6297
6298
6299 test -n "$AR" && break
6300 done
6301 fi
6302 if test -z "$AR"; then
6303 ac_ct_AR=$AR
6304 for ac_prog in ar
6305 do
6306 # Extract the first word of "$ac_prog", so it can be a program name with args.
6307 set dummy $ac_prog; ac_word=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 $as_echo_n "checking for $ac_word... " >&6; }
6310 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 if test -n "$ac_ct_AR"; then
6314 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323 ac_cv_prog_ac_ct_AR="$ac_prog"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6326 fi
6327 done
6328 done
6329 IFS=$as_save_IFS
6330
6331 fi
6332 fi
6333 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6334 if test -n "$ac_ct_AR"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6336 $as_echo "$ac_ct_AR" >&6; }
6337 else
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6340 fi
6341
6342
6343 test -n "$ac_ct_AR" && break
6344 done
6345
6346 if test "x$ac_ct_AR" = x; then
6347 AR="false"
6348 else
6349 case $cross_compiling:$ac_tool_warned in
6350 yes:)
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6353 ac_tool_warned=yes ;;
6354 esac
6355 AR=$ac_ct_AR
6356 fi
6357 fi
6358
6359 : ${AR=ar}
6360 : ${AR_FLAGS=cr}
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6373 $as_echo_n "checking for archiver @FILE support... " >&6; }
6374 if ${lt_cv_ar_at_file+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 lt_cv_ar_at_file=no
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6380
6381 int
6382 main ()
6383 {
6384
6385 ;
6386 return 0;
6387 }
6388 _ACEOF
6389 if ac_fn_c_try_compile "$LINENO"; then :
6390 echo conftest.$ac_objext > conftest.lst
6391 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6393 (eval $lt_ar_try) 2>&5
6394 ac_status=$?
6395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396 test $ac_status = 0; }
6397 if test 0 -eq "$ac_status"; then
6398 # Ensure the archiver fails upon bogus file names.
6399 rm -f conftest.$ac_objext libconftest.a
6400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6401 (eval $lt_ar_try) 2>&5
6402 ac_status=$?
6403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404 test $ac_status = 0; }
6405 if test 0 -ne "$ac_status"; then
6406 lt_cv_ar_at_file=@
6407 fi
6408 fi
6409 rm -f conftest.* libconftest.a
6410
6411 fi
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413
6414 fi
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6416 $as_echo "$lt_cv_ar_at_file" >&6; }
6417
6418 if test no = "$lt_cv_ar_at_file"; then
6419 archiver_list_spec=
6420 else
6421 archiver_list_spec=$lt_cv_ar_at_file
6422 fi
6423
6424
6425
6426
6427
6428
6429
6430 if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6432 set dummy ${ac_tool_prefix}strip; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_STRIP+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 if test -n "$STRIP"; then
6439 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452 done
6453 done
6454 IFS=$as_save_IFS
6455
6456 fi
6457 fi
6458 STRIP=$ac_cv_prog_STRIP
6459 if test -n "$STRIP"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6461 $as_echo "$STRIP" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6465 fi
6466
6467
6468 fi
6469 if test -z "$ac_cv_prog_STRIP"; then
6470 ac_ct_STRIP=$STRIP
6471 # Extract the first word of "strip", so it can be a program name with args.
6472 set dummy strip; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478 if test -n "$ac_ct_STRIP"; then
6479 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488 ac_cv_prog_ac_ct_STRIP="strip"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492 done
6493 done
6494 IFS=$as_save_IFS
6495
6496 fi
6497 fi
6498 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6499 if test -n "$ac_ct_STRIP"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6501 $as_echo "$ac_ct_STRIP" >&6; }
6502 else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506
6507 if test "x$ac_ct_STRIP" = x; then
6508 STRIP=":"
6509 else
6510 case $cross_compiling:$ac_tool_warned in
6511 yes:)
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514 ac_tool_warned=yes ;;
6515 esac
6516 STRIP=$ac_ct_STRIP
6517 fi
6518 else
6519 STRIP="$ac_cv_prog_STRIP"
6520 fi
6521
6522 test -z "$STRIP" && STRIP=:
6523
6524
6525
6526
6527
6528
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if ${ac_cv_prog_RANLIB+:} false; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 if test -n "$RANLIB"; then
6538 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6547 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 break 2
6550 fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 RANLIB=$ac_cv_prog_RANLIB
6558 if test -n "$RANLIB"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6560 $as_echo "$RANLIB" >&6; }
6561 else
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6564 fi
6565
6566
6567 fi
6568 if test -z "$ac_cv_prog_RANLIB"; then
6569 ac_ct_RANLIB=$RANLIB
6570 # Extract the first word of "ranlib", so it can be a program name with args.
6571 set dummy ranlib; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 if test -n "$ac_ct_RANLIB"; then
6578 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6587 ac_cv_prog_ac_ct_RANLIB="ranlib"
6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6598 if test -n "$ac_ct_RANLIB"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6600 $as_echo "$ac_ct_RANLIB" >&6; }
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606 if test "x$ac_ct_RANLIB" = x; then
6607 RANLIB=":"
6608 else
6609 case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615 RANLIB=$ac_ct_RANLIB
6616 fi
6617 else
6618 RANLIB="$ac_cv_prog_RANLIB"
6619 fi
6620
6621 test -z "$RANLIB" && RANLIB=:
6622
6623
6624
6625
6626
6627
6628 # Determine commands to create old-style static archives.
6629 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6630 old_postinstall_cmds='chmod 644 $oldlib'
6631 old_postuninstall_cmds=
6632
6633 if test -n "$RANLIB"; then
6634 case $host_os in
6635 bitrig* | openbsd*)
6636 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6637 ;;
6638 *)
6639 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6640 ;;
6641 esac
6642 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6643 fi
6644
6645 case $host_os in
6646 darwin*)
6647 lock_old_archive_extraction=yes ;;
6648 *)
6649 lock_old_archive_extraction=no ;;
6650 esac
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690 # If no C compiler was specified, use CC.
6691 LTCC=${LTCC-"$CC"}
6692
6693 # If no C compiler flags were specified, use CFLAGS.
6694 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6695
6696 # Allow CC to be a program name with arguments.
6697 compiler=$CC
6698
6699
6700 # Check for command to grab the raw symbol name followed by C symbol from nm.
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6702 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6703 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706
6707 # These are sane defaults that work on at least a few old systems.
6708 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6709
6710 # Character class describing NM global symbol codes.
6711 symcode='[BCDEGRST]'
6712
6713 # Regexp to match symbols that can be accessed directly from C.
6714 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6715
6716 # Define system-specific variables.
6717 case $host_os in
6718 aix*)
6719 symcode='[BCDT]'
6720 ;;
6721 cygwin* | mingw* | pw32* | cegcc*)
6722 symcode='[ABCDGISTW]'
6723 ;;
6724 hpux*)
6725 if test ia64 = "$host_cpu"; then
6726 symcode='[ABCDEGRST]'
6727 fi
6728 ;;
6729 irix* | nonstopux*)
6730 symcode='[BCDEGRST]'
6731 ;;
6732 osf*)
6733 symcode='[BCDEGQRST]'
6734 ;;
6735 solaris*)
6736 symcode='[BDRT]'
6737 ;;
6738 sco3.2v5*)
6739 symcode='[DT]'
6740 ;;
6741 sysv4.2uw2*)
6742 symcode='[DT]'
6743 ;;
6744 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6745 symcode='[ABDT]'
6746 ;;
6747 sysv4)
6748 symcode='[DFNSTU]'
6749 ;;
6750 esac
6751
6752 # If we're using GNU nm, then use its standard symbol codes.
6753 case `$NM -V 2>&1` in
6754 *GNU* | *'with BFD'*)
6755 symcode='[ABCDGIRSTW]' ;;
6756 esac
6757
6758 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6759 # Gets list of data symbols to import.
6760 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6761 # Adjust the below global symbol transforms to fixup imported variables.
6762 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6763 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6764 lt_c_name_lib_hook="\
6765 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6766 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6767 else
6768 # Disable hooks by default.
6769 lt_cv_sys_global_symbol_to_import=
6770 lt_cdecl_hook=
6771 lt_c_name_hook=
6772 lt_c_name_lib_hook=
6773 fi
6774
6775 # Transform an extracted symbol line into a proper C declaration.
6776 # Some systems (esp. on ia64) link data and code symbols differently,
6777 # so use this general approach.
6778 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6779 $lt_cdecl_hook\
6780 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6781 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6782
6783 # Transform an extracted symbol line into symbol name and symbol address
6784 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6785 $lt_c_name_hook\
6786 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6787 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6788
6789 # Transform an extracted symbol line into symbol name with lib prefix and
6790 # symbol address.
6791 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6792 $lt_c_name_lib_hook\
6793 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6794 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6795 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6796
6797 # Handle CRLF in mingw tool chain
6798 opt_cr=
6799 case $build_os in
6800 mingw*)
6801 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6802 ;;
6803 esac
6804
6805 # Try without a prefix underscore, then with it.
6806 for ac_symprfx in "" "_"; do
6807
6808 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6809 symxfrm="\\1 $ac_symprfx\\2 \\2"
6810
6811 # Write the raw and C identifiers.
6812 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6813 # Fake it for dumpbin and say T for any non-static function,
6814 # D for any global variable and I for any imported variable.
6815 # Also find C++ and __fastcall symbols from MSVC++,
6816 # which start with @ or ?.
6817 lt_cv_sys_global_symbol_pipe="$AWK '"\
6818 " {last_section=section; section=\$ 3};"\
6819 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6820 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6821 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6822 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6823 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6824 " \$ 0!~/External *\|/{next};"\
6825 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6826 " {if(hide[section]) next};"\
6827 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6828 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6829 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6830 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6831 " ' prfx=^$ac_symprfx"
6832 else
6833 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6834 fi
6835 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6836
6837 # Check to see that the pipe works correctly.
6838 pipe_works=no
6839
6840 rm -f conftest*
6841 cat > conftest.$ac_ext <<_LT_EOF
6842 #ifdef __cplusplus
6843 extern "C" {
6844 #endif
6845 char nm_test_var;
6846 void nm_test_func(void);
6847 void nm_test_func(void){}
6848 #ifdef __cplusplus
6849 }
6850 #endif
6851 int main(){nm_test_var='a';nm_test_func();return(0);}
6852 _LT_EOF
6853
6854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6855 (eval $ac_compile) 2>&5
6856 ac_status=$?
6857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6858 test $ac_status = 0; }; then
6859 # Now try to grab the symbols.
6860 nlist=conftest.nm
6861 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6862 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6863 # Try sorting and uniquifying the output.
6864 if sort "$nlist" | uniq > "$nlist"T; then
6865 mv -f "$nlist"T "$nlist"
6866 else
6867 rm -f "$nlist"T
6868 fi
6869
6870 # Make sure that we snagged all the symbols we need.
6871 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6872 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6873 cat <<_LT_EOF > conftest.$ac_ext
6874 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6875 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6876 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6877 relocations are performed -- see ld's documentation on pseudo-relocs. */
6878 # define LT_DLSYM_CONST
6879 #elif defined __osf__
6880 /* This system does not cope well with relocations in const data. */
6881 # define LT_DLSYM_CONST
6882 #else
6883 # define LT_DLSYM_CONST const
6884 #endif
6885
6886 #ifdef __cplusplus
6887 extern "C" {
6888 #endif
6889
6890 _LT_EOF
6891 # Now generate the symbol file.
6892 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6893
6894 cat <<_LT_EOF >> conftest.$ac_ext
6895
6896 /* The mapping between symbol names and symbols. */
6897 LT_DLSYM_CONST struct {
6898 const char *name;
6899 void *address;
6900 }
6901 lt__PROGRAM__LTX_preloaded_symbols[] =
6902 {
6903 { "@PROGRAM@", (void *) 0 },
6904 _LT_EOF
6905 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6906 cat <<\_LT_EOF >> conftest.$ac_ext
6907 {0, (void *) 0}
6908 };
6909
6910 /* This works around a problem in FreeBSD linker */
6911 #ifdef FREEBSD_WORKAROUND
6912 static const void *lt_preloaded_setup() {
6913 return lt__PROGRAM__LTX_preloaded_symbols;
6914 }
6915 #endif
6916
6917 #ifdef __cplusplus
6918 }
6919 #endif
6920 _LT_EOF
6921 # Now try linking the two files.
6922 mv conftest.$ac_objext conftstm.$ac_objext
6923 lt_globsym_save_LIBS=$LIBS
6924 lt_globsym_save_CFLAGS=$CFLAGS
6925 LIBS=conftstm.$ac_objext
6926 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6928 (eval $ac_link) 2>&5
6929 ac_status=$?
6930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6931 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6932 pipe_works=yes
6933 fi
6934 LIBS=$lt_globsym_save_LIBS
6935 CFLAGS=$lt_globsym_save_CFLAGS
6936 else
6937 echo "cannot find nm_test_func in $nlist" >&5
6938 fi
6939 else
6940 echo "cannot find nm_test_var in $nlist" >&5
6941 fi
6942 else
6943 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6944 fi
6945 else
6946 echo "$progname: failed program was:" >&5
6947 cat conftest.$ac_ext >&5
6948 fi
6949 rm -rf conftest* conftst*
6950
6951 # Do not use the global_symbol_pipe unless it works.
6952 if test yes = "$pipe_works"; then
6953 break
6954 else
6955 lt_cv_sys_global_symbol_pipe=
6956 fi
6957 done
6958
6959 fi
6960
6961 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6962 lt_cv_sys_global_symbol_to_cdecl=
6963 fi
6964 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6966 $as_echo "failed" >&6; }
6967 else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6969 $as_echo "ok" >&6; }
6970 fi
6971
6972 # Response file support.
6973 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6974 nm_file_list_spec='@'
6975 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6976 nm_file_list_spec='@'
6977 fi
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7016 $as_echo_n "checking for sysroot... " >&6; }
7017
7018 # Check whether --with-sysroot was given.
7019 if test "${with_sysroot+set}" = set; then :
7020 withval=$with_sysroot;
7021 else
7022 with_sysroot=no
7023 fi
7024
7025
7026 lt_sysroot=
7027 case $with_sysroot in #(
7028 yes)
7029 if test yes = "$GCC"; then
7030 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7031 fi
7032 ;; #(
7033 /*)
7034 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7035 ;; #(
7036 no|'')
7037 ;; #(
7038 *)
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7040 $as_echo "$with_sysroot" >&6; }
7041 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7042 ;;
7043 esac
7044
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7046 $as_echo "${lt_sysroot:-no}" >&6; }
7047
7048
7049
7050
7051
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7053 $as_echo_n "checking for a working dd... " >&6; }
7054 if ${ac_cv_path_lt_DD+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 printf 0123456789abcdef0123456789abcdef >conftest.i
7058 cat conftest.i conftest.i >conftest2.i
7059 : ${lt_DD:=$DD}
7060 if test -z "$lt_DD"; then
7061 ac_path_lt_DD_found=false
7062 # Loop through the user's path and test for each of PROGNAME-LIST
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7065 do
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_prog in dd; do
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7071 as_fn_executable_p "$ac_path_lt_DD" || continue
7072 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7073 cmp -s conftest.i conftest.out \
7074 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7075 fi
7076 $ac_path_lt_DD_found && break 3
7077 done
7078 done
7079 done
7080 IFS=$as_save_IFS
7081 if test -z "$ac_cv_path_lt_DD"; then
7082 :
7083 fi
7084 else
7085 ac_cv_path_lt_DD=$lt_DD
7086 fi
7087
7088 rm -f conftest.i conftest2.i conftest.out
7089 fi
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7091 $as_echo "$ac_cv_path_lt_DD" >&6; }
7092
7093
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7095 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7096 if ${lt_cv_truncate_bin+:} false; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 printf 0123456789abcdef0123456789abcdef >conftest.i
7100 cat conftest.i conftest.i >conftest2.i
7101 lt_cv_truncate_bin=
7102 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7103 cmp -s conftest.i conftest.out \
7104 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7105 fi
7106 rm -f conftest.i conftest2.i conftest.out
7107 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7108 fi
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7110 $as_echo "$lt_cv_truncate_bin" >&6; }
7111
7112
7113
7114
7115
7116
7117
7118 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7119 func_cc_basename ()
7120 {
7121 for cc_temp in $*""; do
7122 case $cc_temp in
7123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7125 \-*) ;;
7126 *) break;;
7127 esac
7128 done
7129 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7130 }
7131
7132 # Check whether --enable-libtool-lock was given.
7133 if test "${enable_libtool_lock+set}" = set; then :
7134 enableval=$enable_libtool_lock;
7135 fi
7136
7137 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7138
7139 # Some flags need to be propagated to the compiler or linker for good
7140 # libtool support.
7141 case $host in
7142 ia64-*-hpux*)
7143 # Find out what ABI is being produced by ac_compile, and set mode
7144 # options accordingly.
7145 echo 'int i;' > conftest.$ac_ext
7146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7147 (eval $ac_compile) 2>&5
7148 ac_status=$?
7149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7150 test $ac_status = 0; }; then
7151 case `/usr/bin/file conftest.$ac_objext` in
7152 *ELF-32*)
7153 HPUX_IA64_MODE=32
7154 ;;
7155 *ELF-64*)
7156 HPUX_IA64_MODE=64
7157 ;;
7158 esac
7159 fi
7160 rm -rf conftest*
7161 ;;
7162 *-*-irix6*)
7163 # Find out what ABI is being produced by ac_compile, and set linker
7164 # options accordingly.
7165 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7167 (eval $ac_compile) 2>&5
7168 ac_status=$?
7169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7170 test $ac_status = 0; }; then
7171 if test yes = "$lt_cv_prog_gnu_ld"; then
7172 case `/usr/bin/file conftest.$ac_objext` in
7173 *32-bit*)
7174 LD="${LD-ld} -melf32bsmip"
7175 ;;
7176 *N32*)
7177 LD="${LD-ld} -melf32bmipn32"
7178 ;;
7179 *64-bit*)
7180 LD="${LD-ld} -melf64bmip"
7181 ;;
7182 esac
7183 else
7184 case `/usr/bin/file conftest.$ac_objext` in
7185 *32-bit*)
7186 LD="${LD-ld} -32"
7187 ;;
7188 *N32*)
7189 LD="${LD-ld} -n32"
7190 ;;
7191 *64-bit*)
7192 LD="${LD-ld} -64"
7193 ;;
7194 esac
7195 fi
7196 fi
7197 rm -rf conftest*
7198 ;;
7199
7200 mips64*-*linux*)
7201 # Find out what ABI is being produced by ac_compile, and set linker
7202 # options accordingly.
7203 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7205 (eval $ac_compile) 2>&5
7206 ac_status=$?
7207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208 test $ac_status = 0; }; then
7209 emul=elf
7210 case `/usr/bin/file conftest.$ac_objext` in
7211 *32-bit*)
7212 emul="${emul}32"
7213 ;;
7214 *64-bit*)
7215 emul="${emul}64"
7216 ;;
7217 esac
7218 case `/usr/bin/file conftest.$ac_objext` in
7219 *MSB*)
7220 emul="${emul}btsmip"
7221 ;;
7222 *LSB*)
7223 emul="${emul}ltsmip"
7224 ;;
7225 esac
7226 case `/usr/bin/file conftest.$ac_objext` in
7227 *N32*)
7228 emul="${emul}n32"
7229 ;;
7230 esac
7231 LD="${LD-ld} -m $emul"
7232 fi
7233 rm -rf conftest*
7234 ;;
7235
7236 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7237 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7238 # Find out what ABI is being produced by ac_compile, and set linker
7239 # options accordingly. Note that the listed cases only cover the
7240 # situations where additional linker options are needed (such as when
7241 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7242 # vice versa); the common cases where no linker options are needed do
7243 # not appear in the list.
7244 echo 'int i;' > conftest.$ac_ext
7245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7246 (eval $ac_compile) 2>&5
7247 ac_status=$?
7248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7249 test $ac_status = 0; }; then
7250 case `/usr/bin/file conftest.o` in
7251 *32-bit*)
7252 case $host in
7253 x86_64-*kfreebsd*-gnu)
7254 LD="${LD-ld} -m elf_i386_fbsd"
7255 ;;
7256 x86_64-*linux*)
7257 case `/usr/bin/file conftest.o` in
7258 *x86-64*)
7259 LD="${LD-ld} -m elf32_x86_64"
7260 ;;
7261 *)
7262 LD="${LD-ld} -m elf_i386"
7263 ;;
7264 esac
7265 ;;
7266 powerpc64le-*linux*)
7267 LD="${LD-ld} -m elf32lppclinux"
7268 ;;
7269 powerpc64-*linux*)
7270 LD="${LD-ld} -m elf32ppclinux"
7271 ;;
7272 s390x-*linux*)
7273 LD="${LD-ld} -m elf_s390"
7274 ;;
7275 sparc64-*linux*)
7276 LD="${LD-ld} -m elf32_sparc"
7277 ;;
7278 esac
7279 ;;
7280 *64-bit*)
7281 case $host in
7282 x86_64-*kfreebsd*-gnu)
7283 LD="${LD-ld} -m elf_x86_64_fbsd"
7284 ;;
7285 x86_64-*linux*)
7286 LD="${LD-ld} -m elf_x86_64"
7287 ;;
7288 powerpcle-*linux*)
7289 LD="${LD-ld} -m elf64lppc"
7290 ;;
7291 powerpc-*linux*)
7292 LD="${LD-ld} -m elf64ppc"
7293 ;;
7294 s390*-*linux*|s390*-*tpf*)
7295 LD="${LD-ld} -m elf64_s390"
7296 ;;
7297 sparc*-*linux*)
7298 LD="${LD-ld} -m elf64_sparc"
7299 ;;
7300 esac
7301 ;;
7302 esac
7303 fi
7304 rm -rf conftest*
7305 ;;
7306
7307 *-*-sco3.2v5*)
7308 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7309 SAVE_CFLAGS=$CFLAGS
7310 CFLAGS="$CFLAGS -belf"
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7312 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7313 if ${lt_cv_cc_needs_belf+:} false; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 ac_ext=c
7317 ac_cpp='$CPP $CPPFLAGS'
7318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324
7325 int
7326 main ()
7327 {
7328
7329 ;
7330 return 0;
7331 }
7332 _ACEOF
7333 if ac_fn_c_try_link "$LINENO"; then :
7334 lt_cv_cc_needs_belf=yes
7335 else
7336 lt_cv_cc_needs_belf=no
7337 fi
7338 rm -f core conftest.err conftest.$ac_objext \
7339 conftest$ac_exeext conftest.$ac_ext
7340 ac_ext=c
7341 ac_cpp='$CPP $CPPFLAGS'
7342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7345
7346 fi
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7348 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7349 if test yes != "$lt_cv_cc_needs_belf"; then
7350 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7351 CFLAGS=$SAVE_CFLAGS
7352 fi
7353 ;;
7354 *-*solaris*)
7355 # Find out what ABI is being produced by ac_compile, and set linker
7356 # options accordingly.
7357 echo 'int i;' > conftest.$ac_ext
7358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7359 (eval $ac_compile) 2>&5
7360 ac_status=$?
7361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7362 test $ac_status = 0; }; then
7363 case `/usr/bin/file conftest.o` in
7364 *64-bit*)
7365 case $lt_cv_prog_gnu_ld in
7366 yes*)
7367 case $host in
7368 i?86-*-solaris*|x86_64-*-solaris*)
7369 LD="${LD-ld} -m elf_x86_64"
7370 ;;
7371 sparc*-*-solaris*)
7372 LD="${LD-ld} -m elf64_sparc"
7373 ;;
7374 esac
7375 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7376 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7377 LD=${LD-ld}_sol2
7378 fi
7379 ;;
7380 *)
7381 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7382 LD="${LD-ld} -64"
7383 fi
7384 ;;
7385 esac
7386 ;;
7387 esac
7388 fi
7389 rm -rf conftest*
7390 ;;
7391 esac
7392
7393 need_locks=$enable_libtool_lock
7394
7395 if test -n "$ac_tool_prefix"; then
7396 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7397 set dummy ${ac_tool_prefix}mt; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 if test -n "$MANIFEST_TOOL"; then
7404 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 break 2
7416 fi
7417 done
7418 done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7424 if test -n "$MANIFEST_TOOL"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7426 $as_echo "$MANIFEST_TOOL" >&6; }
7427 else
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7430 fi
7431
7432
7433 fi
7434 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7435 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7436 # Extract the first word of "mt", so it can be a program name with args.
7437 set dummy mt; ac_word=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 if test -n "$ac_ct_MANIFEST_TOOL"; then
7444 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7445 else
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7448 do
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 break 2
7456 fi
7457 done
7458 done
7459 IFS=$as_save_IFS
7460
7461 fi
7462 fi
7463 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7464 if test -n "$ac_ct_MANIFEST_TOOL"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7466 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7467 else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7470 fi
7471
7472 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7473 MANIFEST_TOOL=":"
7474 else
7475 case $cross_compiling:$ac_tool_warned in
7476 yes:)
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7479 ac_tool_warned=yes ;;
7480 esac
7481 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7482 fi
7483 else
7484 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7485 fi
7486
7487 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7489 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7490 if ${lt_cv_path_mainfest_tool+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 lt_cv_path_mainfest_tool=no
7494 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7495 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7496 cat conftest.err >&5
7497 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7498 lt_cv_path_mainfest_tool=yes
7499 fi
7500 rm -f conftest*
7501 fi
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7503 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7504 if test yes != "$lt_cv_path_mainfest_tool"; then
7505 MANIFEST_TOOL=:
7506 fi
7507
7508
7509
7510
7511
7512
7513 case $host_os in
7514 rhapsody* | darwin*)
7515 if test -n "$ac_tool_prefix"; then
7516 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7517 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523 if test -n "$DSYMUTIL"; then
7524 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7528 do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7536 fi
7537 done
7538 done
7539 IFS=$as_save_IFS
7540
7541 fi
7542 fi
7543 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7544 if test -n "$DSYMUTIL"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7546 $as_echo "$DSYMUTIL" >&6; }
7547 else
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 fi
7551
7552
7553 fi
7554 if test -z "$ac_cv_prog_DSYMUTIL"; then
7555 ac_ct_DSYMUTIL=$DSYMUTIL
7556 # Extract the first word of "dsymutil", so it can be a program name with args.
7557 set dummy dsymutil; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7563 if test -n "$ac_ct_DSYMUTIL"; then
7564 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7568 do
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7576 fi
7577 done
7578 done
7579 IFS=$as_save_IFS
7580
7581 fi
7582 fi
7583 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7584 if test -n "$ac_ct_DSYMUTIL"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7586 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7587 else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 fi
7591
7592 if test "x$ac_ct_DSYMUTIL" = x; then
7593 DSYMUTIL=":"
7594 else
7595 case $cross_compiling:$ac_tool_warned in
7596 yes:)
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7599 ac_tool_warned=yes ;;
7600 esac
7601 DSYMUTIL=$ac_ct_DSYMUTIL
7602 fi
7603 else
7604 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7605 fi
7606
7607 if test -n "$ac_tool_prefix"; then
7608 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7609 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_NMEDIT+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 if test -n "$NMEDIT"; then
7616 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621 IFS=$as_save_IFS
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 break 2
7628 fi
7629 done
7630 done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 NMEDIT=$ac_cv_prog_NMEDIT
7636 if test -n "$NMEDIT"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7638 $as_echo "$NMEDIT" >&6; }
7639 else
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644
7645 fi
7646 if test -z "$ac_cv_prog_NMEDIT"; then
7647 ac_ct_NMEDIT=$NMEDIT
7648 # Extract the first word of "nmedit", so it can be a program name with args.
7649 set dummy nmedit; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 if test -n "$ac_ct_NMEDIT"; then
7656 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661 IFS=$as_save_IFS
7662 test -z "$as_dir" && as_dir=.
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7665 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 break 2
7668 fi
7669 done
7670 done
7671 IFS=$as_save_IFS
7672
7673 fi
7674 fi
7675 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7676 if test -n "$ac_ct_NMEDIT"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7678 $as_echo "$ac_ct_NMEDIT" >&6; }
7679 else
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7682 fi
7683
7684 if test "x$ac_ct_NMEDIT" = x; then
7685 NMEDIT=":"
7686 else
7687 case $cross_compiling:$ac_tool_warned in
7688 yes:)
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7691 ac_tool_warned=yes ;;
7692 esac
7693 NMEDIT=$ac_ct_NMEDIT
7694 fi
7695 else
7696 NMEDIT="$ac_cv_prog_NMEDIT"
7697 fi
7698
7699 if test -n "$ac_tool_prefix"; then
7700 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7701 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if ${ac_cv_prog_LIPO+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 if test -n "$LIPO"; then
7708 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7712 do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721 done
7722 done
7723 IFS=$as_save_IFS
7724
7725 fi
7726 fi
7727 LIPO=$ac_cv_prog_LIPO
7728 if test -n "$LIPO"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7730 $as_echo "$LIPO" >&6; }
7731 else
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7734 fi
7735
7736
7737 fi
7738 if test -z "$ac_cv_prog_LIPO"; then
7739 ac_ct_LIPO=$LIPO
7740 # Extract the first word of "lipo", so it can be a program name with args.
7741 set dummy lipo; ac_word=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 if test -n "$ac_ct_LIPO"; then
7748 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757 ac_cv_prog_ac_ct_LIPO="lipo"
7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7760 fi
7761 done
7762 done
7763 IFS=$as_save_IFS
7764
7765 fi
7766 fi
7767 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7768 if test -n "$ac_ct_LIPO"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7770 $as_echo "$ac_ct_LIPO" >&6; }
7771 else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7774 fi
7775
7776 if test "x$ac_ct_LIPO" = x; then
7777 LIPO=":"
7778 else
7779 case $cross_compiling:$ac_tool_warned in
7780 yes:)
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7783 ac_tool_warned=yes ;;
7784 esac
7785 LIPO=$ac_ct_LIPO
7786 fi
7787 else
7788 LIPO="$ac_cv_prog_LIPO"
7789 fi
7790
7791 if test -n "$ac_tool_prefix"; then
7792 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7793 set dummy ${ac_tool_prefix}otool; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_prog_OTOOL+:} false; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 if test -n "$OTOOL"; then
7800 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813 done
7814 done
7815 IFS=$as_save_IFS
7816
7817 fi
7818 fi
7819 OTOOL=$ac_cv_prog_OTOOL
7820 if test -n "$OTOOL"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7822 $as_echo "$OTOOL" >&6; }
7823 else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7826 fi
7827
7828
7829 fi
7830 if test -z "$ac_cv_prog_OTOOL"; then
7831 ac_ct_OTOOL=$OTOOL
7832 # Extract the first word of "otool", so it can be a program name with args.
7833 set dummy otool; ac_word=$2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835 $as_echo_n "checking for $ac_word... " >&6; }
7836 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 if test -n "$ac_ct_OTOOL"; then
7840 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849 ac_cv_prog_ac_ct_OTOOL="otool"
7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7852 fi
7853 done
7854 done
7855 IFS=$as_save_IFS
7856
7857 fi
7858 fi
7859 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7860 if test -n "$ac_ct_OTOOL"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7862 $as_echo "$ac_ct_OTOOL" >&6; }
7863 else
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7866 fi
7867
7868 if test "x$ac_ct_OTOOL" = x; then
7869 OTOOL=":"
7870 else
7871 case $cross_compiling:$ac_tool_warned in
7872 yes:)
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7875 ac_tool_warned=yes ;;
7876 esac
7877 OTOOL=$ac_ct_OTOOL
7878 fi
7879 else
7880 OTOOL="$ac_cv_prog_OTOOL"
7881 fi
7882
7883 if test -n "$ac_tool_prefix"; then
7884 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7885 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if ${ac_cv_prog_OTOOL64+:} false; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 if test -n "$OTOOL64"; then
7892 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7893 else
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 for as_dir in $PATH
7896 do
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7901 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 break 2
7904 fi
7905 done
7906 done
7907 IFS=$as_save_IFS
7908
7909 fi
7910 fi
7911 OTOOL64=$ac_cv_prog_OTOOL64
7912 if test -n "$OTOOL64"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7914 $as_echo "$OTOOL64" >&6; }
7915 else
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7918 fi
7919
7920
7921 fi
7922 if test -z "$ac_cv_prog_OTOOL64"; then
7923 ac_ct_OTOOL64=$OTOOL64
7924 # Extract the first word of "otool64", so it can be a program name with args.
7925 set dummy otool64; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 if test -n "$ac_ct_OTOOL64"; then
7932 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7933 else
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7936 do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941 ac_cv_prog_ac_ct_OTOOL64="otool64"
7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945 done
7946 done
7947 IFS=$as_save_IFS
7948
7949 fi
7950 fi
7951 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7952 if test -n "$ac_ct_OTOOL64"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7954 $as_echo "$ac_ct_OTOOL64" >&6; }
7955 else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7958 fi
7959
7960 if test "x$ac_ct_OTOOL64" = x; then
7961 OTOOL64=":"
7962 else
7963 case $cross_compiling:$ac_tool_warned in
7964 yes:)
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7967 ac_tool_warned=yes ;;
7968 esac
7969 OTOOL64=$ac_ct_OTOOL64
7970 fi
7971 else
7972 OTOOL64="$ac_cv_prog_OTOOL64"
7973 fi
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8002 $as_echo_n "checking for -single_module linker flag... " >&6; }
8003 if ${lt_cv_apple_cc_single_mod+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 lt_cv_apple_cc_single_mod=no
8007 if test -z "$LT_MULTI_MODULE"; then
8008 # By default we will add the -single_module flag. You can override
8009 # by either setting the environment variable LT_MULTI_MODULE
8010 # non-empty at configure time, or by adding -multi_module to the
8011 # link flags.
8012 rm -rf libconftest.dylib*
8013 echo "int foo(void){return 1;}" > conftest.c
8014 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8015 -dynamiclib -Wl,-single_module conftest.c" >&5
8016 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8017 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8018 _lt_result=$?
8019 # If there is a non-empty error log, and "single_module"
8020 # appears in it, assume the flag caused a linker warning
8021 if test -s conftest.err && $GREP single_module conftest.err; then
8022 cat conftest.err >&5
8023 # Otherwise, if the output was created with a 0 exit code from
8024 # the compiler, it worked.
8025 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8026 lt_cv_apple_cc_single_mod=yes
8027 else
8028 cat conftest.err >&5
8029 fi
8030 rm -rf libconftest.dylib*
8031 rm -f conftest.*
8032 fi
8033 fi
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8035 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8036
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8038 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8039 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 lt_cv_ld_exported_symbols_list=no
8043 save_LDFLAGS=$LDFLAGS
8044 echo "_main" > conftest.sym
8045 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8048
8049 int
8050 main ()
8051 {
8052
8053 ;
8054 return 0;
8055 }
8056 _ACEOF
8057 if ac_fn_c_try_link "$LINENO"; then :
8058 lt_cv_ld_exported_symbols_list=yes
8059 else
8060 lt_cv_ld_exported_symbols_list=no
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext \
8063 conftest$ac_exeext conftest.$ac_ext
8064 LDFLAGS=$save_LDFLAGS
8065
8066 fi
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8068 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8069
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8071 $as_echo_n "checking for -force_load linker flag... " >&6; }
8072 if ${lt_cv_ld_force_load+:} false; then :
8073 $as_echo_n "(cached) " >&6
8074 else
8075 lt_cv_ld_force_load=no
8076 cat > conftest.c << _LT_EOF
8077 int forced_loaded() { return 2;}
8078 _LT_EOF
8079 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8080 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8081 echo "$AR cr libconftest.a conftest.o" >&5
8082 $AR cr libconftest.a conftest.o 2>&5
8083 echo "$RANLIB libconftest.a" >&5
8084 $RANLIB libconftest.a 2>&5
8085 cat > conftest.c << _LT_EOF
8086 int main() { return 0;}
8087 _LT_EOF
8088 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8089 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8090 _lt_result=$?
8091 if test -s conftest.err && $GREP force_load conftest.err; then
8092 cat conftest.err >&5
8093 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8094 lt_cv_ld_force_load=yes
8095 else
8096 cat conftest.err >&5
8097 fi
8098 rm -f conftest.err libconftest.a conftest conftest.c
8099 rm -rf conftest.dSYM
8100
8101 fi
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8103 $as_echo "$lt_cv_ld_force_load" >&6; }
8104 case $host_os in
8105 rhapsody* | darwin1.[012])
8106 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8107 darwin1.*)
8108 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8109 darwin*) # darwin 5.x on
8110 # if running on 10.5 or later, the deployment target defaults
8111 # to the OS version, if on x86, and 10.4, the deployment
8112 # target defaults to 10.4. Don't you love it?
8113 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8114 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8115 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8116 10.[012][,.]*)
8117 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8118 10.*)
8119 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8120 esac
8121 ;;
8122 esac
8123 if test yes = "$lt_cv_apple_cc_single_mod"; then
8124 _lt_dar_single_mod='$single_module'
8125 fi
8126 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8127 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8128 else
8129 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8130 fi
8131 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8132 _lt_dsymutil='~$DSYMUTIL $lib || :'
8133 else
8134 _lt_dsymutil=
8135 fi
8136 ;;
8137 esac
8138
8139 # func_munge_path_list VARIABLE PATH
8140 # -----------------------------------
8141 # VARIABLE is name of variable containing _space_ separated list of
8142 # directories to be munged by the contents of PATH, which is string
8143 # having a format:
8144 # "DIR[:DIR]:"
8145 # string "DIR[ DIR]" will be prepended to VARIABLE
8146 # ":DIR[:DIR]"
8147 # string "DIR[ DIR]" will be appended to VARIABLE
8148 # "DIRP[:DIRP]::[DIRA:]DIRA"
8149 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8150 # "DIRA[ DIRA]" will be appended to VARIABLE
8151 # "DIR[:DIR]"
8152 # VARIABLE will be replaced by "DIR[ DIR]"
8153 func_munge_path_list ()
8154 {
8155 case x$2 in
8156 x)
8157 ;;
8158 *:)
8159 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8160 ;;
8161 x:*)
8162 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8163 ;;
8164 *::*)
8165 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8166 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8167 ;;
8168 *)
8169 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8170 ;;
8171 esac
8172 }
8173
8174 ac_ext=c
8175 ac_cpp='$CPP $CPPFLAGS'
8176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8180 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8181 # On Suns, sometimes $CPP names a directory.
8182 if test -n "$CPP" && test -d "$CPP"; then
8183 CPP=
8184 fi
8185 if test -z "$CPP"; then
8186 if ${ac_cv_prog_CPP+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 # Double quotes because CPP needs to be expanded
8190 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8191 do
8192 ac_preproc_ok=false
8193 for ac_c_preproc_warn_flag in '' yes
8194 do
8195 # Use a header file that comes with gcc, so configuring glibc
8196 # with a fresh cross-compiler works.
8197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8198 # <limits.h> exists even on freestanding compilers.
8199 # On the NeXT, cc -E runs the code through the compiler's parser,
8200 # not just through cpp. "Syntax error" is here to catch this case.
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8203 #ifdef __STDC__
8204 # include <limits.h>
8205 #else
8206 # include <assert.h>
8207 #endif
8208 Syntax error
8209 _ACEOF
8210 if ac_fn_c_try_cpp "$LINENO"; then :
8211
8212 else
8213 # Broken: fails on valid input.
8214 continue
8215 fi
8216 rm -f conftest.err conftest.i conftest.$ac_ext
8217
8218 # OK, works on sane cases. Now check whether nonexistent headers
8219 # can be detected and how.
8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8222 #include <ac_nonexistent.h>
8223 _ACEOF
8224 if ac_fn_c_try_cpp "$LINENO"; then :
8225 # Broken: success on invalid input.
8226 continue
8227 else
8228 # Passes both tests.
8229 ac_preproc_ok=:
8230 break
8231 fi
8232 rm -f conftest.err conftest.i conftest.$ac_ext
8233
8234 done
8235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8236 rm -f conftest.i conftest.err conftest.$ac_ext
8237 if $ac_preproc_ok; then :
8238 break
8239 fi
8240
8241 done
8242 ac_cv_prog_CPP=$CPP
8243
8244 fi
8245 CPP=$ac_cv_prog_CPP
8246 else
8247 ac_cv_prog_CPP=$CPP
8248 fi
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8250 $as_echo "$CPP" >&6; }
8251 ac_preproc_ok=false
8252 for ac_c_preproc_warn_flag in '' yes
8253 do
8254 # Use a header file that comes with gcc, so configuring glibc
8255 # with a fresh cross-compiler works.
8256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8257 # <limits.h> exists even on freestanding compilers.
8258 # On the NeXT, cc -E runs the code through the compiler's parser,
8259 # not just through cpp. "Syntax error" is here to catch this case.
8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8262 #ifdef __STDC__
8263 # include <limits.h>
8264 #else
8265 # include <assert.h>
8266 #endif
8267 Syntax error
8268 _ACEOF
8269 if ac_fn_c_try_cpp "$LINENO"; then :
8270
8271 else
8272 # Broken: fails on valid input.
8273 continue
8274 fi
8275 rm -f conftest.err conftest.i conftest.$ac_ext
8276
8277 # OK, works on sane cases. Now check whether nonexistent headers
8278 # can be detected and how.
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8281 #include <ac_nonexistent.h>
8282 _ACEOF
8283 if ac_fn_c_try_cpp "$LINENO"; then :
8284 # Broken: success on invalid input.
8285 continue
8286 else
8287 # Passes both tests.
8288 ac_preproc_ok=:
8289 break
8290 fi
8291 rm -f conftest.err conftest.i conftest.$ac_ext
8292
8293 done
8294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8295 rm -f conftest.i conftest.err conftest.$ac_ext
8296 if $ac_preproc_ok; then :
8297
8298 else
8299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8301 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8302 See \`config.log' for more details" "$LINENO" 5; }
8303 fi
8304
8305 ac_ext=c
8306 ac_cpp='$CPP $CPPFLAGS'
8307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8310
8311
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8313 $as_echo_n "checking for ANSI C header files... " >&6; }
8314 if ${ac_cv_header_stdc+:} false; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8319 #include <stdlib.h>
8320 #include <stdarg.h>
8321 #include <string.h>
8322 #include <float.h>
8323
8324 int
8325 main ()
8326 {
8327
8328 ;
8329 return 0;
8330 }
8331 _ACEOF
8332 if ac_fn_c_try_compile "$LINENO"; then :
8333 ac_cv_header_stdc=yes
8334 else
8335 ac_cv_header_stdc=no
8336 fi
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338
8339 if test $ac_cv_header_stdc = yes; then
8340 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 #include <string.h>
8344
8345 _ACEOF
8346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8347 $EGREP "memchr" >/dev/null 2>&1; then :
8348
8349 else
8350 ac_cv_header_stdc=no
8351 fi
8352 rm -f conftest*
8353
8354 fi
8355
8356 if test $ac_cv_header_stdc = yes; then
8357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8360 #include <stdlib.h>
8361
8362 _ACEOF
8363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8364 $EGREP "free" >/dev/null 2>&1; then :
8365
8366 else
8367 ac_cv_header_stdc=no
8368 fi
8369 rm -f conftest*
8370
8371 fi
8372
8373 if test $ac_cv_header_stdc = yes; then
8374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8375 if test "$cross_compiling" = yes; then :
8376 :
8377 else
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8380 #include <ctype.h>
8381 #include <stdlib.h>
8382 #if ((' ' & 0x0FF) == 0x020)
8383 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8384 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8385 #else
8386 # define ISLOWER(c) \
8387 (('a' <= (c) && (c) <= 'i') \
8388 || ('j' <= (c) && (c) <= 'r') \
8389 || ('s' <= (c) && (c) <= 'z'))
8390 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8391 #endif
8392
8393 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8394 int
8395 main ()
8396 {
8397 int i;
8398 for (i = 0; i < 256; i++)
8399 if (XOR (islower (i), ISLOWER (i))
8400 || toupper (i) != TOUPPER (i))
8401 return 2;
8402 return 0;
8403 }
8404 _ACEOF
8405 if ac_fn_c_try_run "$LINENO"; then :
8406
8407 else
8408 ac_cv_header_stdc=no
8409 fi
8410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8411 conftest.$ac_objext conftest.beam conftest.$ac_ext
8412 fi
8413
8414 fi
8415 fi
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8417 $as_echo "$ac_cv_header_stdc" >&6; }
8418 if test $ac_cv_header_stdc = yes; then
8419
8420 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8421
8422 fi
8423
8424 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8425 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8426 inttypes.h stdint.h unistd.h
8427 do :
8428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8429 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8430 "
8431 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8432 cat >>confdefs.h <<_ACEOF
8433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8434 _ACEOF
8435
8436 fi
8437
8438 done
8439
8440
8441 for ac_header in dlfcn.h
8442 do :
8443 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8444 "
8445 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8446 cat >>confdefs.h <<_ACEOF
8447 #define HAVE_DLFCN_H 1
8448 _ACEOF
8449
8450 fi
8451
8452 done
8453
8454
8455
8456
8457 func_stripname_cnf ()
8458 {
8459 case $2 in
8460 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8461 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8462 esac
8463 } # func_stripname_cnf
8464
8465
8466
8467
8468
8469 # Set options
8470
8471
8472
8473 enable_dlopen=no
8474
8475
8476 enable_win32_dll=no
8477
8478
8479 # Check whether --enable-shared was given.
8480 if test "${enable_shared+set}" = set; then :
8481 enableval=$enable_shared; p=${PACKAGE-default}
8482 case $enableval in
8483 yes) enable_shared=yes ;;
8484 no) enable_shared=no ;;
8485 *)
8486 enable_shared=no
8487 # Look at the argument we got. We use all the common list separators.
8488 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8489 for pkg in $enableval; do
8490 IFS=$lt_save_ifs
8491 if test "X$pkg" = "X$p"; then
8492 enable_shared=yes
8493 fi
8494 done
8495 IFS=$lt_save_ifs
8496 ;;
8497 esac
8498 else
8499 enable_shared=yes
8500 fi
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510 # Check whether --enable-static was given.
8511 if test "${enable_static+set}" = set; then :
8512 enableval=$enable_static; p=${PACKAGE-default}
8513 case $enableval in
8514 yes) enable_static=yes ;;
8515 no) enable_static=no ;;
8516 *)
8517 enable_static=no
8518 # Look at the argument we got. We use all the common list separators.
8519 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8520 for pkg in $enableval; do
8521 IFS=$lt_save_ifs
8522 if test "X$pkg" = "X$p"; then
8523 enable_static=yes
8524 fi
8525 done
8526 IFS=$lt_save_ifs
8527 ;;
8528 esac
8529 else
8530 enable_static=yes
8531 fi
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542 # Check whether --with-pic was given.
8543 if test "${with_pic+set}" = set; then :
8544 withval=$with_pic; lt_p=${PACKAGE-default}
8545 case $withval in
8546 yes|no) pic_mode=$withval ;;
8547 *)
8548 pic_mode=default
8549 # Look at the argument we got. We use all the common list separators.
8550 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8551 for lt_pkg in $withval; do
8552 IFS=$lt_save_ifs
8553 if test "X$lt_pkg" = "X$lt_p"; then
8554 pic_mode=yes
8555 fi
8556 done
8557 IFS=$lt_save_ifs
8558 ;;
8559 esac
8560 else
8561 pic_mode=default
8562 fi
8563
8564
8565
8566
8567
8568
8569
8570
8571 # Check whether --enable-fast-install was given.
8572 if test "${enable_fast_install+set}" = set; then :
8573 enableval=$enable_fast_install; p=${PACKAGE-default}
8574 case $enableval in
8575 yes) enable_fast_install=yes ;;
8576 no) enable_fast_install=no ;;
8577 *)
8578 enable_fast_install=no
8579 # Look at the argument we got. We use all the common list separators.
8580 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8581 for pkg in $enableval; do
8582 IFS=$lt_save_ifs
8583 if test "X$pkg" = "X$p"; then
8584 enable_fast_install=yes
8585 fi
8586 done
8587 IFS=$lt_save_ifs
8588 ;;
8589 esac
8590 else
8591 enable_fast_install=yes
8592 fi
8593
8594
8595
8596
8597
8598
8599
8600
8601 shared_archive_member_spec=
8602 case $host,$enable_shared in
8603 power*-*-aix[5-9]*,yes)
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8605 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8606
8607 # Check whether --with-aix-soname was given.
8608 if test "${with_aix_soname+set}" = set; then :
8609 withval=$with_aix_soname; case $withval in
8610 aix|svr4|both)
8611 ;;
8612 *)
8613 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8614 ;;
8615 esac
8616 lt_cv_with_aix_soname=$with_aix_soname
8617 else
8618 if ${lt_cv_with_aix_soname+:} false; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 lt_cv_with_aix_soname=aix
8622 fi
8623
8624 with_aix_soname=$lt_cv_with_aix_soname
8625 fi
8626
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8628 $as_echo "$with_aix_soname" >&6; }
8629 if test aix != "$with_aix_soname"; then
8630 # For the AIX way of multilib, we name the shared archive member
8631 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8632 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8633 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8634 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8635 if test 64 = "${OBJECT_MODE-32}"; then
8636 shared_archive_member_spec=shr_64
8637 else
8638 shared_archive_member_spec=shr
8639 fi
8640 fi
8641 ;;
8642 *)
8643 with_aix_soname=aix
8644 ;;
8645 esac
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656 # This can be used to rebuild libtool when needed
8657 LIBTOOL_DEPS=$ltmain
8658
8659 # Always use our own libtool.
8660 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691 test -z "$LN_S" && LN_S="ln -s"
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706 if test -n "${ZSH_VERSION+set}"; then
8707 setopt NO_GLOB_SUBST
8708 fi
8709
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8711 $as_echo_n "checking for objdir... " >&6; }
8712 if ${lt_cv_objdir+:} false; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 rm -f .libs 2>/dev/null
8716 mkdir .libs 2>/dev/null
8717 if test -d .libs; then
8718 lt_cv_objdir=.libs
8719 else
8720 # MS-DOS does not allow filenames that begin with a dot.
8721 lt_cv_objdir=_libs
8722 fi
8723 rmdir .libs 2>/dev/null
8724 fi
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8726 $as_echo "$lt_cv_objdir" >&6; }
8727 objdir=$lt_cv_objdir
8728
8729
8730
8731
8732
8733 cat >>confdefs.h <<_ACEOF
8734 #define LT_OBJDIR "$lt_cv_objdir/"
8735 _ACEOF
8736
8737
8738
8739
8740 case $host_os in
8741 aix3*)
8742 # AIX sometimes has problems with the GCC collect2 program. For some
8743 # reason, if we set the COLLECT_NAMES environment variable, the problems
8744 # vanish in a puff of smoke.
8745 if test set != "${COLLECT_NAMES+set}"; then
8746 COLLECT_NAMES=
8747 export COLLECT_NAMES
8748 fi
8749 ;;
8750 esac
8751
8752 # Global variables:
8753 ofile=libtool
8754 can_build_shared=yes
8755
8756 # All known linkers require a '.a' archive for static linking (except MSVC,
8757 # which needs '.lib').
8758 libext=a
8759
8760 with_gnu_ld=$lt_cv_prog_gnu_ld
8761
8762 old_CC=$CC
8763 old_CFLAGS=$CFLAGS
8764
8765 # Set sane defaults for various variables
8766 test -z "$CC" && CC=cc
8767 test -z "$LTCC" && LTCC=$CC
8768 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8769 test -z "$LD" && LD=ld
8770 test -z "$ac_objext" && ac_objext=o
8771
8772 func_cc_basename $compiler
8773 cc_basename=$func_cc_basename_result
8774
8775
8776 # Only perform the check for file, if the check method requires it
8777 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8778 case $deplibs_check_method in
8779 file_magic*)
8780 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8782 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8783 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786 case $MAGIC_CMD in
8787 [\\/*] | ?:[\\/]*)
8788 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8789 ;;
8790 *)
8791 lt_save_MAGIC_CMD=$MAGIC_CMD
8792 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8793 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8794 for ac_dir in $ac_dummy; do
8795 IFS=$lt_save_ifs
8796 test -z "$ac_dir" && ac_dir=.
8797 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8798 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8799 if test -n "$file_magic_test_file"; then
8800 case $deplibs_check_method in
8801 "file_magic "*)
8802 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8803 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8804 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8805 $EGREP "$file_magic_regex" > /dev/null; then
8806 :
8807 else
8808 cat <<_LT_EOF 1>&2
8809
8810 *** Warning: the command libtool uses to detect shared libraries,
8811 *** $file_magic_cmd, produces output that libtool cannot recognize.
8812 *** The result is that libtool may fail to recognize shared libraries
8813 *** as such. This will affect the creation of libtool libraries that
8814 *** depend on shared libraries, but programs linked with such libtool
8815 *** libraries will work regardless of this problem. Nevertheless, you
8816 *** may want to report the problem to your system manager and/or to
8817 *** [email protected]
8818
8819 _LT_EOF
8820 fi ;;
8821 esac
8822 fi
8823 break
8824 fi
8825 done
8826 IFS=$lt_save_ifs
8827 MAGIC_CMD=$lt_save_MAGIC_CMD
8828 ;;
8829 esac
8830 fi
8831
8832 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8833 if test -n "$MAGIC_CMD"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8835 $as_echo "$MAGIC_CMD" >&6; }
8836 else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8839 fi
8840
8841
8842
8843
8844
8845 if test -z "$lt_cv_path_MAGIC_CMD"; then
8846 if test -n "$ac_tool_prefix"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8848 $as_echo_n "checking for file... " >&6; }
8849 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 case $MAGIC_CMD in
8853 [\\/*] | ?:[\\/]*)
8854 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8855 ;;
8856 *)
8857 lt_save_MAGIC_CMD=$MAGIC_CMD
8858 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8859 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8860 for ac_dir in $ac_dummy; do
8861 IFS=$lt_save_ifs
8862 test -z "$ac_dir" && ac_dir=.
8863 if test -f "$ac_dir/file"; then
8864 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8865 if test -n "$file_magic_test_file"; then
8866 case $deplibs_check_method in
8867 "file_magic "*)
8868 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8869 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8870 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8871 $EGREP "$file_magic_regex" > /dev/null; then
8872 :
8873 else
8874 cat <<_LT_EOF 1>&2
8875
8876 *** Warning: the command libtool uses to detect shared libraries,
8877 *** $file_magic_cmd, produces output that libtool cannot recognize.
8878 *** The result is that libtool may fail to recognize shared libraries
8879 *** as such. This will affect the creation of libtool libraries that
8880 *** depend on shared libraries, but programs linked with such libtool
8881 *** libraries will work regardless of this problem. Nevertheless, you
8882 *** may want to report the problem to your system manager and/or to
8883 *** [email protected]
8884
8885 _LT_EOF
8886 fi ;;
8887 esac
8888 fi
8889 break
8890 fi
8891 done
8892 IFS=$lt_save_ifs
8893 MAGIC_CMD=$lt_save_MAGIC_CMD
8894 ;;
8895 esac
8896 fi
8897
8898 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8899 if test -n "$MAGIC_CMD"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8901 $as_echo "$MAGIC_CMD" >&6; }
8902 else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8905 fi
8906
8907
8908 else
8909 MAGIC_CMD=:
8910 fi
8911 fi
8912
8913 fi
8914 ;;
8915 esac
8916
8917 # Use C for the default configuration in the libtool script
8918
8919 lt_save_CC=$CC
8920 ac_ext=c
8921 ac_cpp='$CPP $CPPFLAGS'
8922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8925
8926
8927 # Source file extension for C test sources.
8928 ac_ext=c
8929
8930 # Object file extension for compiled C test sources.
8931 objext=o
8932 objext=$objext
8933
8934 # Code to be used in simple compile tests
8935 lt_simple_compile_test_code="int some_variable = 0;"
8936
8937 # Code to be used in simple link tests
8938 lt_simple_link_test_code='int main(){return(0);}'
8939
8940
8941
8942
8943
8944
8945
8946 # If no C compiler was specified, use CC.
8947 LTCC=${LTCC-"$CC"}
8948
8949 # If no C compiler flags were specified, use CFLAGS.
8950 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8951
8952 # Allow CC to be a program name with arguments.
8953 compiler=$CC
8954
8955 # Save the default compiler, since it gets overwritten when the other
8956 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8957 compiler_DEFAULT=$CC
8958
8959 # save warnings/boilerplate of simple test code
8960 ac_outfile=conftest.$ac_objext
8961 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8962 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8963 _lt_compiler_boilerplate=`cat conftest.err`
8964 $RM conftest*
8965
8966 ac_outfile=conftest.$ac_objext
8967 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8968 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8969 _lt_linker_boilerplate=`cat conftest.err`
8970 $RM -r conftest*
8971
8972
8973 ## CAVEAT EMPTOR:
8974 ## There is no encapsulation within the following macros, do not change
8975 ## the running order or otherwise move them around unless you know exactly
8976 ## what you are doing...
8977 if test -n "$compiler"; then
8978
8979 lt_prog_compiler_no_builtin_flag=
8980
8981 if test yes = "$GCC"; then
8982 case $cc_basename in
8983 nvcc*)
8984 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8985 *)
8986 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8987 esac
8988
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8990 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8991 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 lt_cv_prog_compiler_rtti_exceptions=no
8995 ac_outfile=conftest.$ac_objext
8996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8997 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8998 # Insert the option either (1) after the last *FLAGS variable, or
8999 # (2) before a word containing "conftest.", or (3) at the end.
9000 # Note that $ac_compile itself does not contain backslashes and begins
9001 # with a dollar sign (not a hyphen), so the echo should work correctly.
9002 # The option is referenced via a variable to avoid confusing sed.
9003 lt_compile=`echo "$ac_compile" | $SED \
9004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9006 -e 's:$: $lt_compiler_flag:'`
9007 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9008 (eval "$lt_compile" 2>conftest.err)
9009 ac_status=$?
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 if (exit $ac_status) && test -s "$ac_outfile"; then
9013 # The compiler can only warn and ignore the option if not recognized
9014 # So say no if there are warnings other than the usual output.
9015 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9017 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9018 lt_cv_prog_compiler_rtti_exceptions=yes
9019 fi
9020 fi
9021 $RM conftest*
9022
9023 fi
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9025 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9026
9027 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9028 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9029 else
9030 :
9031 fi
9032
9033 fi
9034
9035
9036
9037
9038
9039
9040 lt_prog_compiler_wl=
9041 lt_prog_compiler_pic=
9042 lt_prog_compiler_static=
9043
9044
9045 if test yes = "$GCC"; then
9046 lt_prog_compiler_wl='-Wl,'
9047 lt_prog_compiler_static='-static'
9048
9049 case $host_os in
9050 aix*)
9051 # All AIX code is PIC.
9052 if test ia64 = "$host_cpu"; then
9053 # AIX 5 now supports IA64 processor
9054 lt_prog_compiler_static='-Bstatic'
9055 fi
9056 lt_prog_compiler_pic='-fPIC'
9057 ;;
9058
9059 amigaos*)
9060 case $host_cpu in
9061 powerpc)
9062 # see comment about AmigaOS4 .so support
9063 lt_prog_compiler_pic='-fPIC'
9064 ;;
9065 m68k)
9066 # FIXME: we need at least 68020 code to build shared libraries, but
9067 # adding the '-m68020' flag to GCC prevents building anything better,
9068 # like '-m68040'.
9069 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9070 ;;
9071 esac
9072 ;;
9073
9074 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9075 # PIC is the default for these OSes.
9076 ;;
9077
9078 mingw* | cygwin* | pw32* | os2* | cegcc*)
9079 # This hack is so that the source file can tell whether it is being
9080 # built for inclusion in a dll (and should export symbols for example).
9081 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9082 # (--disable-auto-import) libraries
9083 lt_prog_compiler_pic='-DDLL_EXPORT'
9084 case $host_os in
9085 os2*)
9086 lt_prog_compiler_static='$wl-static'
9087 ;;
9088 esac
9089 ;;
9090
9091 darwin* | rhapsody*)
9092 # PIC is the default on this platform
9093 # Common symbols not allowed in MH_DYLIB files
9094 lt_prog_compiler_pic='-fno-common'
9095 ;;
9096
9097 haiku*)
9098 # PIC is the default for Haiku.
9099 # The "-static" flag exists, but is broken.
9100 lt_prog_compiler_static=
9101 ;;
9102
9103 hpux*)
9104 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9105 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9106 # sets the default TLS model and affects inlining.
9107 case $host_cpu in
9108 hppa*64*)
9109 # +Z the default
9110 ;;
9111 *)
9112 lt_prog_compiler_pic='-fPIC'
9113 ;;
9114 esac
9115 ;;
9116
9117 interix[3-9]*)
9118 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9119 # Instead, we relocate shared libraries at runtime.
9120 ;;
9121
9122 msdosdjgpp*)
9123 # Just because we use GCC doesn't mean we suddenly get shared libraries
9124 # on systems that don't support them.
9125 lt_prog_compiler_can_build_shared=no
9126 enable_shared=no
9127 ;;
9128
9129 *nto* | *qnx*)
9130 # QNX uses GNU C++, but need to define -shared option too, otherwise
9131 # it will coredump.
9132 lt_prog_compiler_pic='-fPIC -shared'
9133 ;;
9134
9135 sysv4*MP*)
9136 if test -d /usr/nec; then
9137 lt_prog_compiler_pic=-Kconform_pic
9138 fi
9139 ;;
9140
9141 *)
9142 lt_prog_compiler_pic='-fPIC'
9143 ;;
9144 esac
9145
9146 case $cc_basename in
9147 nvcc*) # Cuda Compiler Driver 2.2
9148 lt_prog_compiler_wl='-Xlinker '
9149 if test -n "$lt_prog_compiler_pic"; then
9150 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9151 fi
9152 ;;
9153 esac
9154 else
9155 # PORTME Check for flag to pass linker flags through the system compiler.
9156 case $host_os in
9157 aix*)
9158 lt_prog_compiler_wl='-Wl,'
9159 if test ia64 = "$host_cpu"; then
9160 # AIX 5 now supports IA64 processor
9161 lt_prog_compiler_static='-Bstatic'
9162 else
9163 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9164 fi
9165 ;;
9166
9167 darwin* | rhapsody*)
9168 # PIC is the default on this platform
9169 # Common symbols not allowed in MH_DYLIB files
9170 lt_prog_compiler_pic='-fno-common'
9171 case $cc_basename in
9172 nagfor*)
9173 # NAG Fortran compiler
9174 lt_prog_compiler_wl='-Wl,-Wl,,'
9175 lt_prog_compiler_pic='-PIC'
9176 lt_prog_compiler_static='-Bstatic'
9177 ;;
9178 esac
9179 ;;
9180
9181 mingw* | cygwin* | pw32* | os2* | cegcc*)
9182 # This hack is so that the source file can tell whether it is being
9183 # built for inclusion in a dll (and should export symbols for example).
9184 lt_prog_compiler_pic='-DDLL_EXPORT'
9185 case $host_os in
9186 os2*)
9187 lt_prog_compiler_static='$wl-static'
9188 ;;
9189 esac
9190 ;;
9191
9192 hpux9* | hpux10* | hpux11*)
9193 lt_prog_compiler_wl='-Wl,'
9194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9195 # not for PA HP-UX.
9196 case $host_cpu in
9197 hppa*64*|ia64*)
9198 # +Z the default
9199 ;;
9200 *)
9201 lt_prog_compiler_pic='+Z'
9202 ;;
9203 esac
9204 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9205 lt_prog_compiler_static='$wl-a ${wl}archive'
9206 ;;
9207
9208 irix5* | irix6* | nonstopux*)
9209 lt_prog_compiler_wl='-Wl,'
9210 # PIC (with -KPIC) is the default.
9211 lt_prog_compiler_static='-non_shared'
9212 ;;
9213
9214 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9215 case $cc_basename in
9216 # old Intel for x86_64, which still supported -KPIC.
9217 ecc*)
9218 lt_prog_compiler_wl='-Wl,'
9219 lt_prog_compiler_pic='-KPIC'
9220 lt_prog_compiler_static='-static'
9221 ;;
9222 # flang / f18. f95 an alias for gfortran or flang on Debian
9223 flang* | f18* | f95*)
9224 lt_prog_compiler_wl='-Wl,'
9225 lt_prog_compiler_pic='-fPIC'
9226 lt_prog_compiler_static='-static'
9227 ;;
9228 # icc used to be incompatible with GCC.
9229 # ICC 10 doesn't accept -KPIC any more.
9230 icc* | ifort*)
9231 lt_prog_compiler_wl='-Wl,'
9232 lt_prog_compiler_pic='-fPIC'
9233 lt_prog_compiler_static='-static'
9234 ;;
9235 # Lahey Fortran 8.1.
9236 lf95*)
9237 lt_prog_compiler_wl='-Wl,'
9238 lt_prog_compiler_pic='--shared'
9239 lt_prog_compiler_static='--static'
9240 ;;
9241 nagfor*)
9242 # NAG Fortran compiler
9243 lt_prog_compiler_wl='-Wl,-Wl,,'
9244 lt_prog_compiler_pic='-PIC'
9245 lt_prog_compiler_static='-Bstatic'
9246 ;;
9247 tcc*)
9248 # Fabrice Bellard et al's Tiny C Compiler
9249 lt_prog_compiler_wl='-Wl,'
9250 lt_prog_compiler_pic='-fPIC'
9251 lt_prog_compiler_static='-static'
9252 ;;
9253 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9254 # Portland Group compilers (*not* the Pentium gcc compiler,
9255 # which looks to be a dead project)
9256 lt_prog_compiler_wl='-Wl,'
9257 lt_prog_compiler_pic='-fpic'
9258 lt_prog_compiler_static='-Bstatic'
9259 ;;
9260 ccc*)
9261 lt_prog_compiler_wl='-Wl,'
9262 # All Alpha code is PIC.
9263 lt_prog_compiler_static='-non_shared'
9264 ;;
9265 xl* | bgxl* | bgf* | mpixl*)
9266 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9267 lt_prog_compiler_wl='-Wl,'
9268 lt_prog_compiler_pic='-qpic'
9269 lt_prog_compiler_static='-qstaticlink'
9270 ;;
9271 *)
9272 case `$CC -V 2>&1 | sed 5q` in
9273 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9274 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9275 lt_prog_compiler_pic='-KPIC'
9276 lt_prog_compiler_static='-Bstatic'
9277 lt_prog_compiler_wl=''
9278 ;;
9279 *Sun\ F* | *Sun*Fortran*)
9280 lt_prog_compiler_pic='-KPIC'
9281 lt_prog_compiler_static='-Bstatic'
9282 lt_prog_compiler_wl='-Qoption ld '
9283 ;;
9284 *Sun\ C*)
9285 # Sun C 5.9
9286 lt_prog_compiler_pic='-KPIC'
9287 lt_prog_compiler_static='-Bstatic'
9288 lt_prog_compiler_wl='-Wl,'
9289 ;;
9290 *Intel*\ [CF]*Compiler*)
9291 lt_prog_compiler_wl='-Wl,'
9292 lt_prog_compiler_pic='-fPIC'
9293 lt_prog_compiler_static='-static'
9294 ;;
9295 *Portland\ Group*)
9296 lt_prog_compiler_wl='-Wl,'
9297 lt_prog_compiler_pic='-fpic'
9298 lt_prog_compiler_static='-Bstatic'
9299 ;;
9300 esac
9301 ;;
9302 esac
9303 ;;
9304
9305 newsos6)
9306 lt_prog_compiler_pic='-KPIC'
9307 lt_prog_compiler_static='-Bstatic'
9308 ;;
9309
9310 *nto* | *qnx*)
9311 # QNX uses GNU C++, but need to define -shared option too, otherwise
9312 # it will coredump.
9313 lt_prog_compiler_pic='-fPIC -shared'
9314 ;;
9315
9316 osf3* | osf4* | osf5*)
9317 lt_prog_compiler_wl='-Wl,'
9318 # All OSF/1 code is PIC.
9319 lt_prog_compiler_static='-non_shared'
9320 ;;
9321
9322 rdos*)
9323 lt_prog_compiler_static='-non_shared'
9324 ;;
9325
9326 solaris*)
9327 lt_prog_compiler_pic='-KPIC'
9328 lt_prog_compiler_static='-Bstatic'
9329 case $cc_basename in
9330 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9331 lt_prog_compiler_wl='-Qoption ld ';;
9332 *)
9333 lt_prog_compiler_wl='-Wl,';;
9334 esac
9335 ;;
9336
9337 sunos4*)
9338 lt_prog_compiler_wl='-Qoption ld '
9339 lt_prog_compiler_pic='-PIC'
9340 lt_prog_compiler_static='-Bstatic'
9341 ;;
9342
9343 sysv4 | sysv4.2uw2* | sysv4.3*)
9344 lt_prog_compiler_wl='-Wl,'
9345 lt_prog_compiler_pic='-KPIC'
9346 lt_prog_compiler_static='-Bstatic'
9347 ;;
9348
9349 sysv4*MP*)
9350 if test -d /usr/nec; then
9351 lt_prog_compiler_pic='-Kconform_pic'
9352 lt_prog_compiler_static='-Bstatic'
9353 fi
9354 ;;
9355
9356 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9357 lt_prog_compiler_wl='-Wl,'
9358 lt_prog_compiler_pic='-KPIC'
9359 lt_prog_compiler_static='-Bstatic'
9360 ;;
9361
9362 unicos*)
9363 lt_prog_compiler_wl='-Wl,'
9364 lt_prog_compiler_can_build_shared=no
9365 ;;
9366
9367 uts4*)
9368 lt_prog_compiler_pic='-pic'
9369 lt_prog_compiler_static='-Bstatic'
9370 ;;
9371
9372 *)
9373 lt_prog_compiler_can_build_shared=no
9374 ;;
9375 esac
9376 fi
9377
9378 case $host_os in
9379 # For platforms that do not support PIC, -DPIC is meaningless:
9380 *djgpp*)
9381 lt_prog_compiler_pic=
9382 ;;
9383 *)
9384 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9385 ;;
9386 esac
9387
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9389 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9390 if ${lt_cv_prog_compiler_pic+:} false; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9394 fi
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9396 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9397 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9398
9399 #
9400 # Check to make sure the PIC flag actually works.
9401 #
9402 if test -n "$lt_prog_compiler_pic"; then
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9404 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9405 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408 lt_cv_prog_compiler_pic_works=no
9409 ac_outfile=conftest.$ac_objext
9410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9411 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9412 # Insert the option either (1) after the last *FLAGS variable, or
9413 # (2) before a word containing "conftest.", or (3) at the end.
9414 # Note that $ac_compile itself does not contain backslashes and begins
9415 # with a dollar sign (not a hyphen), so the echo should work correctly.
9416 # The option is referenced via a variable to avoid confusing sed.
9417 lt_compile=`echo "$ac_compile" | $SED \
9418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9420 -e 's:$: $lt_compiler_flag:'`
9421 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9422 (eval "$lt_compile" 2>conftest.err)
9423 ac_status=$?
9424 cat conftest.err >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 if (exit $ac_status) && test -s "$ac_outfile"; then
9427 # The compiler can only warn and ignore the option if not recognized
9428 # So say no if there are warnings other than the usual output.
9429 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9431 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9432 lt_cv_prog_compiler_pic_works=yes
9433 fi
9434 fi
9435 $RM conftest*
9436
9437 fi
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9439 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9440
9441 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9442 case $lt_prog_compiler_pic in
9443 "" | " "*) ;;
9444 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9445 esac
9446 else
9447 lt_prog_compiler_pic=
9448 lt_prog_compiler_can_build_shared=no
9449 fi
9450
9451 fi
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463 #
9464 # Check to make sure the static flag actually works.
9465 #
9466 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9468 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9469 if ${lt_cv_prog_compiler_static_works+:} false; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 lt_cv_prog_compiler_static_works=no
9473 save_LDFLAGS=$LDFLAGS
9474 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9475 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9476 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9477 # The linker can only warn and ignore the option if not recognized
9478 # So say no if there are warnings
9479 if test -s conftest.err; then
9480 # Append any errors to the config.log.
9481 cat conftest.err 1>&5
9482 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9484 if diff conftest.exp conftest.er2 >/dev/null; then
9485 lt_cv_prog_compiler_static_works=yes
9486 fi
9487 else
9488 lt_cv_prog_compiler_static_works=yes
9489 fi
9490 fi
9491 $RM -r conftest*
9492 LDFLAGS=$save_LDFLAGS
9493
9494 fi
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9496 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9497
9498 if test yes = "$lt_cv_prog_compiler_static_works"; then
9499 :
9500 else
9501 lt_prog_compiler_static=
9502 fi
9503
9504
9505
9506
9507
9508
9509
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9511 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9512 if ${lt_cv_prog_compiler_c_o+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 lt_cv_prog_compiler_c_o=no
9516 $RM -r conftest 2>/dev/null
9517 mkdir conftest
9518 cd conftest
9519 mkdir out
9520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9521
9522 lt_compiler_flag="-o out/conftest2.$ac_objext"
9523 # Insert the option either (1) after the last *FLAGS variable, or
9524 # (2) before a word containing "conftest.", or (3) at the end.
9525 # Note that $ac_compile itself does not contain backslashes and begins
9526 # with a dollar sign (not a hyphen), so the echo should work correctly.
9527 lt_compile=`echo "$ac_compile" | $SED \
9528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9530 -e 's:$: $lt_compiler_flag:'`
9531 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9532 (eval "$lt_compile" 2>out/conftest.err)
9533 ac_status=$?
9534 cat out/conftest.err >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9537 then
9538 # The compiler can only warn and ignore the option if not recognized
9539 # So say no if there are warnings
9540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9543 lt_cv_prog_compiler_c_o=yes
9544 fi
9545 fi
9546 chmod u+w . 2>&5
9547 $RM conftest*
9548 # SGI C++ compiler will create directory out/ii_files/ for
9549 # template instantiation
9550 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9551 $RM out/* && rmdir out
9552 cd ..
9553 $RM -r conftest
9554 $RM conftest*
9555
9556 fi
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9558 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9559
9560
9561
9562
9563
9564
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9567 if ${lt_cv_prog_compiler_c_o+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 lt_cv_prog_compiler_c_o=no
9571 $RM -r conftest 2>/dev/null
9572 mkdir conftest
9573 cd conftest
9574 mkdir out
9575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9576
9577 lt_compiler_flag="-o out/conftest2.$ac_objext"
9578 # Insert the option either (1) after the last *FLAGS variable, or
9579 # (2) before a word containing "conftest.", or (3) at the end.
9580 # Note that $ac_compile itself does not contain backslashes and begins
9581 # with a dollar sign (not a hyphen), so the echo should work correctly.
9582 lt_compile=`echo "$ac_compile" | $SED \
9583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9585 -e 's:$: $lt_compiler_flag:'`
9586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9587 (eval "$lt_compile" 2>out/conftest.err)
9588 ac_status=$?
9589 cat out/conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9592 then
9593 # The compiler can only warn and ignore the option if not recognized
9594 # So say no if there are warnings
9595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9598 lt_cv_prog_compiler_c_o=yes
9599 fi
9600 fi
9601 chmod u+w . 2>&5
9602 $RM conftest*
9603 # SGI C++ compiler will create directory out/ii_files/ for
9604 # template instantiation
9605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9606 $RM out/* && rmdir out
9607 cd ..
9608 $RM -r conftest
9609 $RM conftest*
9610
9611 fi
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9613 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9614
9615
9616
9617
9618 hard_links=nottested
9619 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9620 # do not overwrite the value of need_locks provided by the user
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9622 $as_echo_n "checking if we can lock with hard links... " >&6; }
9623 hard_links=yes
9624 $RM conftest*
9625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9626 touch conftest.a
9627 ln conftest.a conftest.b 2>&5 || hard_links=no
9628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9630 $as_echo "$hard_links" >&6; }
9631 if test no = "$hard_links"; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9633 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9634 need_locks=warn
9635 fi
9636 else
9637 need_locks=no
9638 fi
9639
9640
9641
9642
9643
9644
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9646 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9647
9648 runpath_var=
9649 allow_undefined_flag=
9650 always_export_symbols=no
9651 archive_cmds=
9652 archive_expsym_cmds=
9653 compiler_needs_object=no
9654 enable_shared_with_static_runtimes=no
9655 export_dynamic_flag_spec=
9656 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9657 hardcode_automatic=no
9658 hardcode_direct=no
9659 hardcode_direct_absolute=no
9660 hardcode_libdir_flag_spec=
9661 hardcode_libdir_separator=
9662 hardcode_minus_L=no
9663 hardcode_shlibpath_var=unsupported
9664 inherit_rpath=no
9665 link_all_deplibs=unknown
9666 module_cmds=
9667 module_expsym_cmds=
9668 old_archive_from_new_cmds=
9669 old_archive_from_expsyms_cmds=
9670 thread_safe_flag_spec=
9671 whole_archive_flag_spec=
9672 # include_expsyms should be a list of space-separated symbols to be *always*
9673 # included in the symbol list
9674 include_expsyms=
9675 # exclude_expsyms can be an extended regexp of symbols to exclude
9676 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9677 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9678 # as well as any symbol that contains 'd'.
9679 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9680 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9681 # platforms (ab)use it in PIC code, but their linkers get confused if
9682 # the symbol is explicitly referenced. Since portable code cannot
9683 # rely on this symbol name, it's probably fine to never include it in
9684 # preloaded symbol tables.
9685 # Exclude shared library initialization/finalization symbols.
9686 extract_expsyms_cmds=
9687
9688 case $host_os in
9689 cygwin* | mingw* | pw32* | cegcc*)
9690 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9691 # When not using gcc, we currently assume that we are using
9692 # Microsoft Visual C++.
9693 if test yes != "$GCC"; then
9694 with_gnu_ld=no
9695 fi
9696 ;;
9697 interix*)
9698 # we just hope/assume this is gcc and not c89 (= MSVC++)
9699 with_gnu_ld=yes
9700 ;;
9701 openbsd* | bitrig*)
9702 with_gnu_ld=no
9703 ;;
9704 linux* | k*bsd*-gnu | gnu*)
9705 link_all_deplibs=no
9706 ;;
9707 esac
9708
9709 ld_shlibs=yes
9710
9711 # On some targets, GNU ld is compatible enough with the native linker
9712 # that we're better off using the native interface for both.
9713 lt_use_gnu_ld_interface=no
9714 if test yes = "$with_gnu_ld"; then
9715 case $host_os in
9716 aix*)
9717 # The AIX port of GNU ld has always aspired to compatibility
9718 # with the native linker. However, as the warning in the GNU ld
9719 # block says, versions before 2.19.5* couldn't really create working
9720 # shared libraries, regardless of the interface used.
9721 case `$LD -v 2>&1` in
9722 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9723 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9724 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9725 *)
9726 lt_use_gnu_ld_interface=yes
9727 ;;
9728 esac
9729 ;;
9730 *)
9731 lt_use_gnu_ld_interface=yes
9732 ;;
9733 esac
9734 fi
9735
9736 if test yes = "$lt_use_gnu_ld_interface"; then
9737 # If archive_cmds runs LD, not CC, wlarc should be empty
9738 wlarc='$wl'
9739
9740 # Set some defaults for GNU ld with shared library support. These
9741 # are reset later if shared libraries are not supported. Putting them
9742 # here allows them to be overridden if necessary.
9743 runpath_var=LD_RUN_PATH
9744 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9745 export_dynamic_flag_spec='$wl--export-dynamic'
9746 # ancient GNU ld didn't support --whole-archive et. al.
9747 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9748 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9749 else
9750 whole_archive_flag_spec=
9751 fi
9752 supports_anon_versioning=no
9753 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9754 *GNU\ gold*) supports_anon_versioning=yes ;;
9755 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9756 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9757 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9758 *\ 2.11.*) ;; # other 2.11 versions
9759 *) supports_anon_versioning=yes ;;
9760 esac
9761
9762 # See if GNU ld supports shared libraries.
9763 case $host_os in
9764 aix[3-9]*)
9765 # On AIX/PPC, the GNU linker is very broken
9766 if test ia64 != "$host_cpu"; then
9767 ld_shlibs=no
9768 cat <<_LT_EOF 1>&2
9769
9770 *** Warning: the GNU linker, at least up to release 2.19, is reported
9771 *** to be unable to reliably create shared libraries on AIX.
9772 *** Therefore, libtool is disabling shared libraries support. If you
9773 *** really care for shared libraries, you may want to install binutils
9774 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9775 *** You will then need to restart the configuration process.
9776
9777 _LT_EOF
9778 fi
9779 ;;
9780
9781 amigaos*)
9782 case $host_cpu in
9783 powerpc)
9784 # see comment about AmigaOS4 .so support
9785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9786 archive_expsym_cmds=''
9787 ;;
9788 m68k)
9789 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)'
9790 hardcode_libdir_flag_spec='-L$libdir'
9791 hardcode_minus_L=yes
9792 ;;
9793 esac
9794 ;;
9795
9796 beos*)
9797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9798 allow_undefined_flag=unsupported
9799 # Joseph Beckenbach <[email protected]> says some releases of gcc
9800 # support --undefined. This deserves some investigation. FIXME
9801 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9802 else
9803 ld_shlibs=no
9804 fi
9805 ;;
9806
9807 cygwin* | mingw* | pw32* | cegcc*)
9808 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9809 # as there is no search path for DLLs.
9810 hardcode_libdir_flag_spec='-L$libdir'
9811 export_dynamic_flag_spec='$wl--export-all-symbols'
9812 allow_undefined_flag=unsupported
9813 always_export_symbols=no
9814 enable_shared_with_static_runtimes=yes
9815 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'
9816 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9817
9818 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9820 # If the export-symbols file already is a .def file, use it as
9821 # is; otherwise, prepend EXPORTS...
9822 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9823 cp $export_symbols $output_objdir/$soname.def;
9824 else
9825 echo EXPORTS > $output_objdir/$soname.def;
9826 cat $export_symbols >> $output_objdir/$soname.def;
9827 fi~
9828 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9829 else
9830 ld_shlibs=no
9831 fi
9832 ;;
9833
9834 haiku*)
9835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9836 link_all_deplibs=yes
9837 ;;
9838
9839 os2*)
9840 hardcode_libdir_flag_spec='-L$libdir'
9841 hardcode_minus_L=yes
9842 allow_undefined_flag=unsupported
9843 shrext_cmds=.dll
9844 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9845 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9846 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9847 $ECHO EXPORTS >> $output_objdir/$libname.def~
9848 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9849 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9850 emximp -o $lib $output_objdir/$libname.def'
9851 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9852 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9853 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9854 $ECHO EXPORTS >> $output_objdir/$libname.def~
9855 prefix_cmds="$SED"~
9856 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9857 prefix_cmds="$prefix_cmds -e 1d";
9858 fi~
9859 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9860 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9861 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9862 emximp -o $lib $output_objdir/$libname.def'
9863 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9864 enable_shared_with_static_runtimes=yes
9865 ;;
9866
9867 interix[3-9]*)
9868 hardcode_direct=no
9869 hardcode_shlibpath_var=no
9870 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9871 export_dynamic_flag_spec='$wl-E'
9872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9873 # Instead, shared libraries are loaded at an image base (0x10000000 by
9874 # default) and relocated if they conflict, which is a slow very memory
9875 # consuming and fragmenting process. To avoid this, we pick a random,
9876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9879 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'
9880 ;;
9881
9882 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9883 tmp_diet=no
9884 if test linux-dietlibc = "$host_os"; then
9885 case $cc_basename in
9886 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9887 esac
9888 fi
9889 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9890 && test no = "$tmp_diet"
9891 then
9892 tmp_addflag=' $pic_flag'
9893 tmp_sharedflag='-shared'
9894 case $cc_basename,$host_cpu in
9895 pgcc*) # Portland Group C compiler
9896 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'
9897 tmp_addflag=' $pic_flag'
9898 ;;
9899 pgf77* | pgf90* | pgf95* | pgfortran*)
9900 # Portland Group f77 and f90 compilers
9901 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'
9902 tmp_addflag=' $pic_flag -Mnomain' ;;
9903 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9904 tmp_addflag=' -i_dynamic' ;;
9905 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9906 tmp_addflag=' -i_dynamic -nofor_main' ;;
9907 ifc* | ifort*) # Intel Fortran compiler
9908 tmp_addflag=' -nofor_main' ;;
9909 lf95*) # Lahey Fortran 8.1
9910 whole_archive_flag_spec=
9911 tmp_sharedflag='--shared' ;;
9912 nagfor*) # NAGFOR 5.3
9913 tmp_sharedflag='-Wl,-shared' ;;
9914 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9915 tmp_sharedflag='-qmkshrobj'
9916 tmp_addflag= ;;
9917 nvcc*) # Cuda Compiler Driver 2.2
9918 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'
9919 compiler_needs_object=yes
9920 ;;
9921 esac
9922 case `$CC -V 2>&1 | sed 5q` in
9923 *Sun\ C*) # Sun C 5.9
9924 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'
9925 compiler_needs_object=yes
9926 tmp_sharedflag='-G' ;;
9927 *Sun\ F*) # Sun Fortran 8.3
9928 tmp_sharedflag='-G' ;;
9929 esac
9930 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9931
9932 if test yes = "$supports_anon_versioning"; then
9933 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9935 echo "local: *; };" >> $output_objdir/$libname.ver~
9936 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9937 fi
9938
9939 case $cc_basename in
9940 tcc*)
9941 export_dynamic_flag_spec='-rdynamic'
9942 ;;
9943 xlf* | bgf* | bgxlf* | mpixlf*)
9944 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9945 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9946 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9947 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9948 if test yes = "$supports_anon_versioning"; then
9949 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9950 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9951 echo "local: *; };" >> $output_objdir/$libname.ver~
9952 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9953 fi
9954 ;;
9955 esac
9956 else
9957 ld_shlibs=no
9958 fi
9959 ;;
9960
9961 netbsd* | netbsdelf*-gnu)
9962 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9963 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9964 wlarc=
9965 else
9966 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9967 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9968 fi
9969 ;;
9970
9971 solaris*)
9972 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9973 ld_shlibs=no
9974 cat <<_LT_EOF 1>&2
9975
9976 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9977 *** create shared libraries on Solaris systems. Therefore, libtool
9978 *** is disabling shared libraries support. We urge you to upgrade GNU
9979 *** binutils to release 2.9.1 or newer. Another option is to modify
9980 *** your PATH or compiler configuration so that the native linker is
9981 *** used, and then restart.
9982
9983 _LT_EOF
9984 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9985 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9986 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9987 else
9988 ld_shlibs=no
9989 fi
9990 ;;
9991
9992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9993 case `$LD -v 2>&1` in
9994 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9995 ld_shlibs=no
9996 cat <<_LT_EOF 1>&2
9997
9998 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9999 *** reliably create shared libraries on SCO systems. Therefore, libtool
10000 *** is disabling shared libraries support. We urge you to upgrade GNU
10001 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10002 *** your PATH or compiler configuration so that the native linker is
10003 *** used, and then restart.
10004
10005 _LT_EOF
10006 ;;
10007 *)
10008 # For security reasons, it is highly recommended that you always
10009 # use absolute paths for naming shared libraries, and exclude the
10010 # DT_RUNPATH tag from executables and libraries. But doing so
10011 # requires that you compile everything twice, which is a pain.
10012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10013 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10016 else
10017 ld_shlibs=no
10018 fi
10019 ;;
10020 esac
10021 ;;
10022
10023 sunos4*)
10024 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10025 wlarc=
10026 hardcode_direct=yes
10027 hardcode_shlibpath_var=no
10028 ;;
10029
10030 *)
10031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10032 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10033 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10034 else
10035 ld_shlibs=no
10036 fi
10037 ;;
10038 esac
10039
10040 if test no = "$ld_shlibs"; then
10041 runpath_var=
10042 hardcode_libdir_flag_spec=
10043 export_dynamic_flag_spec=
10044 whole_archive_flag_spec=
10045 fi
10046 else
10047 # PORTME fill in a description of your system's linker (not GNU ld)
10048 case $host_os in
10049 aix3*)
10050 allow_undefined_flag=unsupported
10051 always_export_symbols=yes
10052 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'
10053 # Note: this linker hardcodes the directories in LIBPATH if there
10054 # are no directories specified by -L.
10055 hardcode_minus_L=yes
10056 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10057 # Neither direct hardcoding nor static linking is supported with a
10058 # broken collect2.
10059 hardcode_direct=unsupported
10060 fi
10061 ;;
10062
10063 aix[4-9]*)
10064 if test ia64 = "$host_cpu"; then
10065 # On IA64, the linker does run time linking by default, so we don't
10066 # have to do anything special.
10067 aix_use_runtimelinking=no
10068 exp_sym_flag='-Bexport'
10069 no_entry_flag=
10070 else
10071 # If we're using GNU nm, then we don't want the "-C" option.
10072 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10073 # Without the "-l" option, or with the "-B" option, AIX nm treats
10074 # weak defined symbols like other global defined symbols, whereas
10075 # GNU nm marks them as "W".
10076 # While the 'weak' keyword is ignored in the Export File, we need
10077 # it in the Import File for the 'aix-soname' feature, so we have
10078 # to replace the "-B" option with "-P" for AIX nm.
10079 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10080 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'
10081 else
10082 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10083 fi
10084 aix_use_runtimelinking=no
10085
10086 # Test if we are trying to use run time linking or normal
10087 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10088 # have runtime linking enabled, and use it for executables.
10089 # For shared libraries, we enable/disable runtime linking
10090 # depending on the kind of the shared library created -
10091 # when "with_aix_soname,aix_use_runtimelinking" is:
10092 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10093 # "aix,yes" lib.so shared, rtl:yes, for executables
10094 # lib.a static archive
10095 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10096 # lib.a(lib.so.V) shared, rtl:no, for executables
10097 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10098 # lib.a(lib.so.V) shared, rtl:no
10099 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10100 # lib.a static archive
10101 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10102 for ld_flag in $LDFLAGS; do
10103 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10104 aix_use_runtimelinking=yes
10105 break
10106 fi
10107 done
10108 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10109 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10110 # so we don't have lib.a shared libs to link our executables.
10111 # We have to force runtime linking in this case.
10112 aix_use_runtimelinking=yes
10113 LDFLAGS="$LDFLAGS -Wl,-brtl"
10114 fi
10115 ;;
10116 esac
10117
10118 exp_sym_flag='-bexport'
10119 no_entry_flag='-bnoentry'
10120 fi
10121
10122 # When large executables or shared objects are built, AIX ld can
10123 # have problems creating the table of contents. If linking a library
10124 # or program results in "error TOC overflow" add -mminimal-toc to
10125 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10126 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10127
10128 archive_cmds=''
10129 hardcode_direct=yes
10130 hardcode_direct_absolute=yes
10131 hardcode_libdir_separator=':'
10132 link_all_deplibs=yes
10133 file_list_spec='$wl-f,'
10134 case $with_aix_soname,$aix_use_runtimelinking in
10135 aix,*) ;; # traditional, no import file
10136 svr4,* | *,yes) # use import file
10137 # The Import File defines what to hardcode.
10138 hardcode_direct=no
10139 hardcode_direct_absolute=no
10140 ;;
10141 esac
10142
10143 if test yes = "$GCC"; then
10144 case $host_os in aix4.[012]|aix4.[012].*)
10145 # We only want to do this on AIX 4.2 and lower, the check
10146 # below for broken collect2 doesn't work under 4.3+
10147 collect2name=`$CC -print-prog-name=collect2`
10148 if test -f "$collect2name" &&
10149 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10150 then
10151 # We have reworked collect2
10152 :
10153 else
10154 # We have old collect2
10155 hardcode_direct=unsupported
10156 # It fails to find uninstalled libraries when the uninstalled
10157 # path is not listed in the libpath. Setting hardcode_minus_L
10158 # to unsupported forces relinking
10159 hardcode_minus_L=yes
10160 hardcode_libdir_flag_spec='-L$libdir'
10161 hardcode_libdir_separator=
10162 fi
10163 ;;
10164 esac
10165 shared_flag='-shared'
10166 if test yes = "$aix_use_runtimelinking"; then
10167 shared_flag="$shared_flag "'$wl-G'
10168 fi
10169 # Need to ensure runtime linking is disabled for the traditional
10170 # shared library, or the linker may eventually find shared libraries
10171 # /with/ Import File - we do not want to mix them.
10172 shared_flag_aix='-shared'
10173 shared_flag_svr4='-shared $wl-G'
10174 else
10175 # not using gcc
10176 if test ia64 = "$host_cpu"; then
10177 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10178 # chokes on -Wl,-G. The following line is correct:
10179 shared_flag='-G'
10180 else
10181 if test yes = "$aix_use_runtimelinking"; then
10182 shared_flag='$wl-G'
10183 else
10184 shared_flag='$wl-bM:SRE'
10185 fi
10186 shared_flag_aix='$wl-bM:SRE'
10187 shared_flag_svr4='$wl-G'
10188 fi
10189 fi
10190
10191 export_dynamic_flag_spec='$wl-bexpall'
10192 # It seems that -bexpall does not export symbols beginning with
10193 # underscore (_), so it is better to generate a list of symbols to export.
10194 always_export_symbols=yes
10195 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10196 # Warning - without using the other runtime loading flags (-brtl),
10197 # -berok will link without error, but may produce a broken library.
10198 allow_undefined_flag='-berok'
10199 # Determine the default libpath from the value encoded in an
10200 # empty executable.
10201 if test set = "${lt_cv_aix_libpath+set}"; then
10202 aix_libpath=$lt_cv_aix_libpath
10203 else
10204 if ${lt_cv_aix_libpath_+:} false; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10209
10210 int
10211 main ()
10212 {
10213
10214 ;
10215 return 0;
10216 }
10217 _ACEOF
10218 if ac_fn_c_try_link "$LINENO"; then :
10219
10220 lt_aix_libpath_sed='
10221 /Import File Strings/,/^$/ {
10222 /^0/ {
10223 s/^0 *\([^ ]*\) *$/\1/
10224 p
10225 }
10226 }'
10227 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10228 # Check for a 64-bit object if we didn't find anything.
10229 if test -z "$lt_cv_aix_libpath_"; then
10230 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10231 fi
10232 fi
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235 if test -z "$lt_cv_aix_libpath_"; then
10236 lt_cv_aix_libpath_=/usr/lib:/lib
10237 fi
10238
10239 fi
10240
10241 aix_libpath=$lt_cv_aix_libpath_
10242 fi
10243
10244 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10245 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
10246 else
10247 if test ia64 = "$host_cpu"; then
10248 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10249 allow_undefined_flag="-z nodefs"
10250 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"
10251 else
10252 # Determine the default libpath from the value encoded in an
10253 # empty executable.
10254 if test set = "${lt_cv_aix_libpath+set}"; then
10255 aix_libpath=$lt_cv_aix_libpath
10256 else
10257 if ${lt_cv_aix_libpath_+:} false; then :
10258 $as_echo_n "(cached) " >&6
10259 else
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10262
10263 int
10264 main ()
10265 {
10266
10267 ;
10268 return 0;
10269 }
10270 _ACEOF
10271 if ac_fn_c_try_link "$LINENO"; then :
10272
10273 lt_aix_libpath_sed='
10274 /Import File Strings/,/^$/ {
10275 /^0/ {
10276 s/^0 *\([^ ]*\) *$/\1/
10277 p
10278 }
10279 }'
10280 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10281 # Check for a 64-bit object if we didn't find anything.
10282 if test -z "$lt_cv_aix_libpath_"; then
10283 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10284 fi
10285 fi
10286 rm -f core conftest.err conftest.$ac_objext \
10287 conftest$ac_exeext conftest.$ac_ext
10288 if test -z "$lt_cv_aix_libpath_"; then
10289 lt_cv_aix_libpath_=/usr/lib:/lib
10290 fi
10291
10292 fi
10293
10294 aix_libpath=$lt_cv_aix_libpath_
10295 fi
10296
10297 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10298 # Warning - without using the other run time loading flags,
10299 # -berok will link without error, but may produce a broken library.
10300 no_undefined_flag=' $wl-bernotok'
10301 allow_undefined_flag=' $wl-berok'
10302 if test yes = "$with_gnu_ld"; then
10303 # We only use this code for GNU lds that support --whole-archive.
10304 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10305 else
10306 # Exported symbols can be pulled into shared objects from archives
10307 whole_archive_flag_spec='$convenience'
10308 fi
10309 archive_cmds_need_lc=yes
10310 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10311 # -brtl affects multiple linker settings, -berok does not and is overridden later
10312 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10313 if test svr4 != "$with_aix_soname"; then
10314 # This is similar to how AIX traditionally builds its shared libraries.
10315 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'
10316 fi
10317 if test aix != "$with_aix_soname"; then
10318 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'
10319 else
10320 # used by -dlpreopen to get the symbols
10321 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10322 fi
10323 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10324 fi
10325 fi
10326 ;;
10327
10328 amigaos*)
10329 case $host_cpu in
10330 powerpc)
10331 # see comment about AmigaOS4 .so support
10332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10333 archive_expsym_cmds=''
10334 ;;
10335 m68k)
10336 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)'
10337 hardcode_libdir_flag_spec='-L$libdir'
10338 hardcode_minus_L=yes
10339 ;;
10340 esac
10341 ;;
10342
10343 bsdi[45]*)
10344 export_dynamic_flag_spec=-rdynamic
10345 ;;
10346
10347 cygwin* | mingw* | pw32* | cegcc*)
10348 # When not using gcc, we currently assume that we are using
10349 # Microsoft Visual C++.
10350 # hardcode_libdir_flag_spec is actually meaningless, as there is
10351 # no search path for DLLs.
10352 case $cc_basename in
10353 cl*)
10354 # Native MSVC
10355 hardcode_libdir_flag_spec=' '
10356 allow_undefined_flag=unsupported
10357 always_export_symbols=yes
10358 file_list_spec='@'
10359 # Tell ltmain to make .lib files, not .a files.
10360 libext=lib
10361 # Tell ltmain to make .dll files, not .so files.
10362 shrext_cmds=.dll
10363 # FIXME: Setting linknames here is a bad hack.
10364 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10365 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10366 cp "$export_symbols" "$output_objdir/$soname.def";
10367 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10368 else
10369 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10370 fi~
10371 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10372 linknames='
10373 # The linker will not automatically build a static lib if we build a DLL.
10374 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10375 enable_shared_with_static_runtimes=yes
10376 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10377 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10378 # Don't use ranlib
10379 old_postinstall_cmds='chmod 644 $oldlib'
10380 postlink_cmds='lt_outputfile="@OUTPUT@"~
10381 lt_tool_outputfile="@TOOL_OUTPUT@"~
10382 case $lt_outputfile in
10383 *.exe|*.EXE) ;;
10384 *)
10385 lt_outputfile=$lt_outputfile.exe
10386 lt_tool_outputfile=$lt_tool_outputfile.exe
10387 ;;
10388 esac~
10389 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10390 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10391 $RM "$lt_outputfile.manifest";
10392 fi'
10393 ;;
10394 *)
10395 # Assume MSVC wrapper
10396 hardcode_libdir_flag_spec=' '
10397 allow_undefined_flag=unsupported
10398 # Tell ltmain to make .lib files, not .a files.
10399 libext=lib
10400 # Tell ltmain to make .dll files, not .so files.
10401 shrext_cmds=.dll
10402 # FIXME: Setting linknames here is a bad hack.
10403 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10404 # The linker will automatically build a .lib file if we build a DLL.
10405 old_archive_from_new_cmds='true'
10406 # FIXME: Should let the user specify the lib program.
10407 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10408 enable_shared_with_static_runtimes=yes
10409 ;;
10410 esac
10411 ;;
10412
10413 darwin* | rhapsody*)
10414
10415
10416 archive_cmds_need_lc=no
10417 hardcode_direct=no
10418 hardcode_automatic=yes
10419 hardcode_shlibpath_var=unsupported
10420 if test yes = "$lt_cv_ld_force_load"; then
10421 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\"`'
10422
10423 else
10424 whole_archive_flag_spec=''
10425 fi
10426 link_all_deplibs=yes
10427 allow_undefined_flag=$_lt_dar_allow_undefined
10428 case $cc_basename in
10429 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10430 *) _lt_dar_can_shared=$GCC ;;
10431 esac
10432 if test yes = "$_lt_dar_can_shared"; then
10433 output_verbose_link_cmd=func_echo_all
10434 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10435 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10436 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"
10437 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"
10438
10439 else
10440 ld_shlibs=no
10441 fi
10442
10443 ;;
10444
10445 dgux*)
10446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10447 hardcode_libdir_flag_spec='-L$libdir'
10448 hardcode_shlibpath_var=no
10449 ;;
10450
10451 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10452 # support. Future versions do this automatically, but an explicit c++rt0.o
10453 # does not break anything, and helps significantly (at the cost of a little
10454 # extra space).
10455 freebsd2.2*)
10456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10457 hardcode_libdir_flag_spec='-R$libdir'
10458 hardcode_direct=yes
10459 hardcode_shlibpath_var=no
10460 ;;
10461
10462 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10463 freebsd2.*)
10464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10465 hardcode_direct=yes
10466 hardcode_minus_L=yes
10467 hardcode_shlibpath_var=no
10468 ;;
10469
10470 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10471 freebsd* | dragonfly*)
10472 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10473 hardcode_libdir_flag_spec='-R$libdir'
10474 hardcode_direct=yes
10475 hardcode_shlibpath_var=no
10476 ;;
10477
10478 hpux9*)
10479 if test yes = "$GCC"; then
10480 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'
10481 else
10482 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'
10483 fi
10484 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10485 hardcode_libdir_separator=:
10486 hardcode_direct=yes
10487
10488 # hardcode_minus_L: Not really in the search PATH,
10489 # but as the default location of the library.
10490 hardcode_minus_L=yes
10491 export_dynamic_flag_spec='$wl-E'
10492 ;;
10493
10494 hpux10*)
10495 if test yes,no = "$GCC,$with_gnu_ld"; then
10496 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10497 else
10498 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10499 fi
10500 if test no = "$with_gnu_ld"; then
10501 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10502 hardcode_libdir_separator=:
10503 hardcode_direct=yes
10504 hardcode_direct_absolute=yes
10505 export_dynamic_flag_spec='$wl-E'
10506 # hardcode_minus_L: Not really in the search PATH,
10507 # but as the default location of the library.
10508 hardcode_minus_L=yes
10509 fi
10510 ;;
10511
10512 hpux11*)
10513 if test yes,no = "$GCC,$with_gnu_ld"; then
10514 case $host_cpu in
10515 hppa*64*)
10516 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10517 ;;
10518 ia64*)
10519 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10520 ;;
10521 *)
10522 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10523 ;;
10524 esac
10525 else
10526 case $host_cpu in
10527 hppa*64*)
10528 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10529 ;;
10530 ia64*)
10531 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10532 ;;
10533 *)
10534
10535 # Older versions of the 11.00 compiler do not understand -b yet
10536 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10538 $as_echo_n "checking if $CC understands -b... " >&6; }
10539 if ${lt_cv_prog_compiler__b+:} false; then :
10540 $as_echo_n "(cached) " >&6
10541 else
10542 lt_cv_prog_compiler__b=no
10543 save_LDFLAGS=$LDFLAGS
10544 LDFLAGS="$LDFLAGS -b"
10545 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10546 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10547 # The linker can only warn and ignore the option if not recognized
10548 # So say no if there are warnings
10549 if test -s conftest.err; then
10550 # Append any errors to the config.log.
10551 cat conftest.err 1>&5
10552 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10554 if diff conftest.exp conftest.er2 >/dev/null; then
10555 lt_cv_prog_compiler__b=yes
10556 fi
10557 else
10558 lt_cv_prog_compiler__b=yes
10559 fi
10560 fi
10561 $RM -r conftest*
10562 LDFLAGS=$save_LDFLAGS
10563
10564 fi
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10566 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10567
10568 if test yes = "$lt_cv_prog_compiler__b"; then
10569 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10570 else
10571 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10572 fi
10573
10574 ;;
10575 esac
10576 fi
10577 if test no = "$with_gnu_ld"; then
10578 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10579 hardcode_libdir_separator=:
10580
10581 case $host_cpu in
10582 hppa*64*|ia64*)
10583 hardcode_direct=no
10584 hardcode_shlibpath_var=no
10585 ;;
10586 *)
10587 hardcode_direct=yes
10588 hardcode_direct_absolute=yes
10589 export_dynamic_flag_spec='$wl-E'
10590
10591 # hardcode_minus_L: Not really in the search PATH,
10592 # but as the default location of the library.
10593 hardcode_minus_L=yes
10594 ;;
10595 esac
10596 fi
10597 ;;
10598
10599 irix5* | irix6* | nonstopux*)
10600 if test yes = "$GCC"; then
10601 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'
10602 # Try to use the -exported_symbol ld option, if it does not
10603 # work, assume that -exports_file does not work either and
10604 # implicitly export all symbols.
10605 # This should be the same for all languages, so no per-tag cache variable.
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10607 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10608 if ${lt_cv_irix_exported_symbol+:} false; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 save_LDFLAGS=$LDFLAGS
10612 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 int foo (void) { return 0; }
10616 _ACEOF
10617 if ac_fn_c_try_link "$LINENO"; then :
10618 lt_cv_irix_exported_symbol=yes
10619 else
10620 lt_cv_irix_exported_symbol=no
10621 fi
10622 rm -f core conftest.err conftest.$ac_objext \
10623 conftest$ac_exeext conftest.$ac_ext
10624 LDFLAGS=$save_LDFLAGS
10625 fi
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10627 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10628 if test yes = "$lt_cv_irix_exported_symbol"; then
10629 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'
10630 fi
10631 link_all_deplibs=no
10632 else
10633 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'
10634 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'
10635 fi
10636 archive_cmds_need_lc='no'
10637 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10638 hardcode_libdir_separator=:
10639 inherit_rpath=yes
10640 link_all_deplibs=yes
10641 ;;
10642
10643 linux*)
10644 case $cc_basename in
10645 tcc*)
10646 # Fabrice Bellard et al's Tiny C Compiler
10647 ld_shlibs=yes
10648 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10649 ;;
10650 esac
10651 ;;
10652
10653 netbsd* | netbsdelf*-gnu)
10654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10656 else
10657 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10658 fi
10659 hardcode_libdir_flag_spec='-R$libdir'
10660 hardcode_direct=yes
10661 hardcode_shlibpath_var=no
10662 ;;
10663
10664 newsos6)
10665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10666 hardcode_direct=yes
10667 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10668 hardcode_libdir_separator=:
10669 hardcode_shlibpath_var=no
10670 ;;
10671
10672 *nto* | *qnx*)
10673 ;;
10674
10675 openbsd* | bitrig*)
10676 if test -f /usr/libexec/ld.so; then
10677 hardcode_direct=yes
10678 hardcode_shlibpath_var=no
10679 hardcode_direct_absolute=yes
10680 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10681 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10682 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10683 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10684 export_dynamic_flag_spec='$wl-E'
10685 else
10686 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10687 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10688 fi
10689 else
10690 ld_shlibs=no
10691 fi
10692 ;;
10693
10694 os2*)
10695 hardcode_libdir_flag_spec='-L$libdir'
10696 hardcode_minus_L=yes
10697 allow_undefined_flag=unsupported
10698 shrext_cmds=.dll
10699 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10700 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10701 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10702 $ECHO EXPORTS >> $output_objdir/$libname.def~
10703 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10704 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10705 emximp -o $lib $output_objdir/$libname.def'
10706 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10707 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10708 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10709 $ECHO EXPORTS >> $output_objdir/$libname.def~
10710 prefix_cmds="$SED"~
10711 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10712 prefix_cmds="$prefix_cmds -e 1d";
10713 fi~
10714 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10715 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10716 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10717 emximp -o $lib $output_objdir/$libname.def'
10718 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10719 enable_shared_with_static_runtimes=yes
10720 ;;
10721
10722 osf3*)
10723 if test yes = "$GCC"; then
10724 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10725 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'
10726 else
10727 allow_undefined_flag=' -expect_unresolved \*'
10728 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'
10729 fi
10730 archive_cmds_need_lc='no'
10731 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10732 hardcode_libdir_separator=:
10733 ;;
10734
10735 osf4* | osf5*) # as osf3* with the addition of -msym flag
10736 if test yes = "$GCC"; then
10737 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10738 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'
10739 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10740 else
10741 allow_undefined_flag=' -expect_unresolved \*'
10742 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'
10743 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~
10744 $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'
10745
10746 # Both c and cxx compiler support -rpath directly
10747 hardcode_libdir_flag_spec='-rpath $libdir'
10748 fi
10749 archive_cmds_need_lc='no'
10750 hardcode_libdir_separator=:
10751 ;;
10752
10753 solaris*)
10754 no_undefined_flag=' -z defs'
10755 if test yes = "$GCC"; then
10756 wlarc='$wl'
10757 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10758 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10759 $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'
10760 else
10761 case `$CC -V 2>&1` in
10762 *"Compilers 5.0"*)
10763 wlarc=''
10764 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10765 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10766 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10767 ;;
10768 *)
10769 wlarc='$wl'
10770 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10771 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10772 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10773 ;;
10774 esac
10775 fi
10776 hardcode_libdir_flag_spec='-R$libdir'
10777 hardcode_shlibpath_var=no
10778 case $host_os in
10779 solaris2.[0-5] | solaris2.[0-5].*) ;;
10780 *)
10781 # The compiler driver will combine and reorder linker options,
10782 # but understands '-z linker_flag'. GCC discards it without '$wl',
10783 # but is careful enough not to reorder.
10784 # Supported since Solaris 2.6 (maybe 2.5.1?)
10785 if test yes = "$GCC"; then
10786 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10787 else
10788 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10789 fi
10790 ;;
10791 esac
10792 link_all_deplibs=yes
10793 ;;
10794
10795 sunos4*)
10796 if test sequent = "$host_vendor"; then
10797 # Use $CC to link under sequent, because it throws in some extra .o
10798 # files that make .init and .fini sections work.
10799 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10800 else
10801 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10802 fi
10803 hardcode_libdir_flag_spec='-L$libdir'
10804 hardcode_direct=yes
10805 hardcode_minus_L=yes
10806 hardcode_shlibpath_var=no
10807 ;;
10808
10809 sysv4)
10810 case $host_vendor in
10811 sni)
10812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10813 hardcode_direct=yes # is this really true???
10814 ;;
10815 siemens)
10816 ## LD is ld it makes a PLAMLIB
10817 ## CC just makes a GrossModule.
10818 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10819 reload_cmds='$CC -r -o $output$reload_objs'
10820 hardcode_direct=no
10821 ;;
10822 motorola)
10823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10824 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10825 ;;
10826 esac
10827 runpath_var='LD_RUN_PATH'
10828 hardcode_shlibpath_var=no
10829 ;;
10830
10831 sysv4.3*)
10832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10833 hardcode_shlibpath_var=no
10834 export_dynamic_flag_spec='-Bexport'
10835 ;;
10836
10837 sysv4*MP*)
10838 if test -d /usr/nec; then
10839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10840 hardcode_shlibpath_var=no
10841 runpath_var=LD_RUN_PATH
10842 hardcode_runpath_var=yes
10843 ld_shlibs=yes
10844 fi
10845 ;;
10846
10847 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10848 no_undefined_flag='$wl-z,text'
10849 archive_cmds_need_lc=no
10850 hardcode_shlibpath_var=no
10851 runpath_var='LD_RUN_PATH'
10852
10853 if test yes = "$GCC"; then
10854 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10855 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10856 else
10857 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10858 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10859 fi
10860 ;;
10861
10862 sysv5* | sco3.2v5* | sco5v6*)
10863 # Note: We CANNOT use -z defs as we might desire, because we do not
10864 # link with -lc, and that would cause any symbols used from libc to
10865 # always be unresolved, which means just about no library would
10866 # ever link correctly. If we're not using GNU ld we use -z text
10867 # though, which does catch some bad symbols but isn't as heavy-handed
10868 # as -z defs.
10869 no_undefined_flag='$wl-z,text'
10870 allow_undefined_flag='$wl-z,nodefs'
10871 archive_cmds_need_lc=no
10872 hardcode_shlibpath_var=no
10873 hardcode_libdir_flag_spec='$wl-R,$libdir'
10874 hardcode_libdir_separator=':'
10875 link_all_deplibs=yes
10876 export_dynamic_flag_spec='$wl-Bexport'
10877 runpath_var='LD_RUN_PATH'
10878
10879 if test yes = "$GCC"; then
10880 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10881 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10882 else
10883 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10884 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10885 fi
10886 ;;
10887
10888 uts4*)
10889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10890 hardcode_libdir_flag_spec='-L$libdir'
10891 hardcode_shlibpath_var=no
10892 ;;
10893
10894 *)
10895 ld_shlibs=no
10896 ;;
10897 esac
10898
10899 if test sni = "$host_vendor"; then
10900 case $host in
10901 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10902 export_dynamic_flag_spec='$wl-Blargedynsym'
10903 ;;
10904 esac
10905 fi
10906 fi
10907
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10909 $as_echo "$ld_shlibs" >&6; }
10910 test no = "$ld_shlibs" && can_build_shared=no
10911
10912 with_gnu_ld=$with_gnu_ld
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928 #
10929 # Do we need to explicitly link libc?
10930 #
10931 case "x$archive_cmds_need_lc" in
10932 x|xyes)
10933 # Assume -lc should be added
10934 archive_cmds_need_lc=yes
10935
10936 if test yes,yes = "$GCC,$enable_shared"; then
10937 case $archive_cmds in
10938 *'~'*)
10939 # FIXME: we may have to deal with multi-command sequences.
10940 ;;
10941 '$CC '*)
10942 # Test whether the compiler implicitly links with -lc since on some
10943 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10944 # to ld, don't add -lc before -lgcc.
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10946 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10947 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10948 $as_echo_n "(cached) " >&6
10949 else
10950 $RM conftest*
10951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10952
10953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10954 (eval $ac_compile) 2>&5
10955 ac_status=$?
10956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10957 test $ac_status = 0; } 2>conftest.err; then
10958 soname=conftest
10959 lib=conftest
10960 libobjs=conftest.$ac_objext
10961 deplibs=
10962 wl=$lt_prog_compiler_wl
10963 pic_flag=$lt_prog_compiler_pic
10964 compiler_flags=-v
10965 linker_flags=-v
10966 verstring=
10967 output_objdir=.
10968 libname=conftest
10969 lt_save_allow_undefined_flag=$allow_undefined_flag
10970 allow_undefined_flag=
10971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10972 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10973 ac_status=$?
10974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10975 test $ac_status = 0; }
10976 then
10977 lt_cv_archive_cmds_need_lc=no
10978 else
10979 lt_cv_archive_cmds_need_lc=yes
10980 fi
10981 allow_undefined_flag=$lt_save_allow_undefined_flag
10982 else
10983 cat conftest.err 1>&5
10984 fi
10985 $RM conftest*
10986
10987 fi
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10989 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10990 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10991 ;;
10992 esac
10993 fi
10994 ;;
10995 esac
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11149 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11150
11151 if test yes = "$GCC"; then
11152 case $host_os in
11153 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11154 *) lt_awk_arg='/^libraries:/' ;;
11155 esac
11156 case $host_os in
11157 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11158 *) lt_sed_strip_eq='s|=/|/|g' ;;
11159 esac
11160 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11161 case $lt_search_path_spec in
11162 *\;*)
11163 # if the path contains ";" then we assume it to be the separator
11164 # otherwise default to the standard path separator (i.e. ":") - it is
11165 # assumed that no part of a normal pathname contains ";" but that should
11166 # okay in the real world where ";" in dirpaths is itself problematic.
11167 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11168 ;;
11169 *)
11170 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11171 ;;
11172 esac
11173 # Ok, now we have the path, separated by spaces, we can step through it
11174 # and add multilib dir if necessary...
11175 lt_tmp_lt_search_path_spec=
11176 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11177 # ...but if some path component already ends with the multilib dir we assume
11178 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11179 case "$lt_multi_os_dir; $lt_search_path_spec " in
11180 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11181 lt_multi_os_dir=
11182 ;;
11183 esac
11184 for lt_sys_path in $lt_search_path_spec; do
11185 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11186 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11187 elif test -n "$lt_multi_os_dir"; then
11188 test -d "$lt_sys_path" && \
11189 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11190 fi
11191 done
11192 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11193 BEGIN {RS = " "; FS = "/|\n";} {
11194 lt_foo = "";
11195 lt_count = 0;
11196 for (lt_i = NF; lt_i > 0; lt_i--) {
11197 if ($lt_i != "" && $lt_i != ".") {
11198 if ($lt_i == "..") {
11199 lt_count++;
11200 } else {
11201 if (lt_count == 0) {
11202 lt_foo = "/" $lt_i lt_foo;
11203 } else {
11204 lt_count--;
11205 }
11206 }
11207 }
11208 }
11209 if (lt_foo != "") { lt_freq[lt_foo]++; }
11210 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11211 }'`
11212 # AWK program above erroneously prepends '/' to C:/dos/paths
11213 # for these hosts.
11214 case $host_os in
11215 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11216 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11217 esac
11218 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11219 else
11220 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11221 fi
11222 library_names_spec=
11223 libname_spec='lib$name'
11224 soname_spec=
11225 shrext_cmds=.so
11226 postinstall_cmds=
11227 postuninstall_cmds=
11228 finish_cmds=
11229 finish_eval=
11230 shlibpath_var=
11231 shlibpath_overrides_runpath=unknown
11232 version_type=none
11233 dynamic_linker="$host_os ld.so"
11234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11235 need_lib_prefix=unknown
11236 hardcode_into_libs=no
11237
11238 # when you set need_version to no, make sure it does not cause -set_version
11239 # flags to be left without arguments
11240 need_version=unknown
11241
11242
11243
11244 case $host_os in
11245 aix3*)
11246 version_type=linux # correct to gnu/linux during the next big refactor
11247 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11248 shlibpath_var=LIBPATH
11249
11250 # AIX 3 has no versioning support, so we append a major version to the name.
11251 soname_spec='$libname$release$shared_ext$major'
11252 ;;
11253
11254 aix[4-9]*)
11255 version_type=linux # correct to gnu/linux during the next big refactor
11256 need_lib_prefix=no
11257 need_version=no
11258 hardcode_into_libs=yes
11259 if test ia64 = "$host_cpu"; then
11260 # AIX 5 supports IA64
11261 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 else
11264 # With GCC up to 2.95.x, collect2 would create an import file
11265 # for dependence libraries. The import file would start with
11266 # the line '#! .'. This would cause the generated library to
11267 # depend on '.', always an invalid library. This was fixed in
11268 # development snapshots of GCC prior to 3.0.
11269 case $host_os in
11270 aix4 | aix4.[01] | aix4.[01].*)
11271 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11272 echo ' yes '
11273 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11274 :
11275 else
11276 can_build_shared=no
11277 fi
11278 ;;
11279 esac
11280 # Using Import Files as archive members, it is possible to support
11281 # filename-based versioning of shared library archives on AIX. While
11282 # this would work for both with and without runtime linking, it will
11283 # prevent static linking of such archives. So we do filename-based
11284 # shared library versioning with .so extension only, which is used
11285 # when both runtime linking and shared linking is enabled.
11286 # Unfortunately, runtime linking may impact performance, so we do
11287 # not want this to be the default eventually. Also, we use the
11288 # versioned .so libs for executables only if there is the -brtl
11289 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11290 # To allow for filename-based versioning support, we need to create
11291 # libNAME.so.V as an archive file, containing:
11292 # *) an Import File, referring to the versioned filename of the
11293 # archive as well as the shared archive member, telling the
11294 # bitwidth (32 or 64) of that shared object, and providing the
11295 # list of exported symbols of that shared object, eventually
11296 # decorated with the 'weak' keyword
11297 # *) the shared object with the F_LOADONLY flag set, to really avoid
11298 # it being seen by the linker.
11299 # At run time we better use the real file rather than another symlink,
11300 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11301
11302 case $with_aix_soname,$aix_use_runtimelinking in
11303 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11304 # soname into executable. Probably we can add versioning support to
11305 # collect2, so additional links can be useful in future.
11306 aix,yes) # traditional libtool
11307 dynamic_linker='AIX unversionable lib.so'
11308 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11309 # instead of lib<name>.a to let people know that these are not
11310 # typical AIX shared libraries.
11311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11312 ;;
11313 aix,no) # traditional AIX only
11314 dynamic_linker='AIX lib.a(lib.so.V)'
11315 # We preserve .a as extension for shared libraries through AIX4.2
11316 # and later when we are not doing run time linking.
11317 library_names_spec='$libname$release.a $libname.a'
11318 soname_spec='$libname$release$shared_ext$major'
11319 ;;
11320 svr4,*) # full svr4 only
11321 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11322 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11323 # We do not specify a path in Import Files, so LIBPATH fires.
11324 shlibpath_overrides_runpath=yes
11325 ;;
11326 *,yes) # both, prefer svr4
11327 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11328 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11329 # unpreferred sharedlib libNAME.a needs extra handling
11330 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"'
11331 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"'
11332 # We do not specify a path in Import Files, so LIBPATH fires.
11333 shlibpath_overrides_runpath=yes
11334 ;;
11335 *,no) # both, prefer aix
11336 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11337 library_names_spec='$libname$release.a $libname.a'
11338 soname_spec='$libname$release$shared_ext$major'
11339 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11340 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)'
11341 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"'
11342 ;;
11343 esac
11344 shlibpath_var=LIBPATH
11345 fi
11346 ;;
11347
11348 amigaos*)
11349 case $host_cpu in
11350 powerpc)
11351 # Since July 2007 AmigaOS4 officially supports .so libraries.
11352 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11354 ;;
11355 m68k)
11356 library_names_spec='$libname.ixlibrary $libname.a'
11357 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11358 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'
11359 ;;
11360 esac
11361 ;;
11362
11363 beos*)
11364 library_names_spec='$libname$shared_ext'
11365 dynamic_linker="$host_os ld.so"
11366 shlibpath_var=LIBRARY_PATH
11367 ;;
11368
11369 bsdi[45]*)
11370 version_type=linux # correct to gnu/linux during the next big refactor
11371 need_version=no
11372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11373 soname_spec='$libname$release$shared_ext$major'
11374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11375 shlibpath_var=LD_LIBRARY_PATH
11376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11378 # the default ld.so.conf also contains /usr/contrib/lib and
11379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11380 # libtool to hard-code these into programs
11381 ;;
11382
11383 cygwin* | mingw* | pw32* | cegcc*)
11384 version_type=windows
11385 shrext_cmds=.dll
11386 need_version=no
11387 need_lib_prefix=no
11388
11389 case $GCC,$cc_basename in
11390 yes,*)
11391 # gcc
11392 library_names_spec='$libname.dll.a'
11393 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11394 postinstall_cmds='base_file=`basename \$file`~
11395 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11396 dldir=$destdir/`dirname \$dlpath`~
11397 test -d \$dldir || mkdir -p \$dldir~
11398 $install_prog $dir/$dlname \$dldir/$dlname~
11399 chmod a+x \$dldir/$dlname~
11400 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11401 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11402 fi'
11403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11404 dlpath=$dir/\$dldll~
11405 $RM \$dlpath'
11406 shlibpath_overrides_runpath=yes
11407
11408 case $host_os in
11409 cygwin*)
11410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11411 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11412
11413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11414 ;;
11415 mingw* | cegcc*)
11416 # MinGW DLLs use traditional 'lib' prefix
11417 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11418 ;;
11419 pw32*)
11420 # pw32 DLLs use 'pw' prefix rather than 'lib'
11421 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11422 ;;
11423 esac
11424 dynamic_linker='Win32 ld.exe'
11425 ;;
11426
11427 *,cl*)
11428 # Native MSVC
11429 libname_spec='$name'
11430 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11431 library_names_spec='$libname.dll.lib'
11432
11433 case $build_os in
11434 mingw*)
11435 sys_lib_search_path_spec=
11436 lt_save_ifs=$IFS
11437 IFS=';'
11438 for lt_path in $LIB
11439 do
11440 IFS=$lt_save_ifs
11441 # Let DOS variable expansion print the short 8.3 style file name.
11442 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11443 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11444 done
11445 IFS=$lt_save_ifs
11446 # Convert to MSYS style.
11447 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11448 ;;
11449 cygwin*)
11450 # Convert to unix form, then to dos form, then back to unix form
11451 # but this time dos style (no spaces!) so that the unix form looks
11452 # like /cygdrive/c/PROGRA~1:/cygdr...
11453 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11454 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11455 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11456 ;;
11457 *)
11458 sys_lib_search_path_spec=$LIB
11459 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11460 # It is most probably a Windows format PATH.
11461 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11462 else
11463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11464 fi
11465 # FIXME: find the short name or the path components, as spaces are
11466 # common. (e.g. "Program Files" -> "PROGRA~1")
11467 ;;
11468 esac
11469
11470 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11471 postinstall_cmds='base_file=`basename \$file`~
11472 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11473 dldir=$destdir/`dirname \$dlpath`~
11474 test -d \$dldir || mkdir -p \$dldir~
11475 $install_prog $dir/$dlname \$dldir/$dlname'
11476 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11477 dlpath=$dir/\$dldll~
11478 $RM \$dlpath'
11479 shlibpath_overrides_runpath=yes
11480 dynamic_linker='Win32 link.exe'
11481 ;;
11482
11483 *)
11484 # Assume MSVC wrapper
11485 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11486 dynamic_linker='Win32 ld.exe'
11487 ;;
11488 esac
11489 # FIXME: first we should search . and the directory the executable is in
11490 shlibpath_var=PATH
11491 ;;
11492
11493 darwin* | rhapsody*)
11494 dynamic_linker="$host_os dyld"
11495 version_type=darwin
11496 need_lib_prefix=no
11497 need_version=no
11498 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11499 soname_spec='$libname$release$major$shared_ext'
11500 shlibpath_overrides_runpath=yes
11501 shlibpath_var=DYLD_LIBRARY_PATH
11502 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11503
11504 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11505 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11506 ;;
11507
11508 dgux*)
11509 version_type=linux # correct to gnu/linux during the next big refactor
11510 need_lib_prefix=no
11511 need_version=no
11512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11513 soname_spec='$libname$release$shared_ext$major'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 ;;
11516
11517 freebsd* | dragonfly*)
11518 # DragonFly does not have aout. When/if they implement a new
11519 # versioning mechanism, adjust this.
11520 if test -x /usr/bin/objformat; then
11521 objformat=`/usr/bin/objformat`
11522 else
11523 case $host_os in
11524 freebsd[23].*) objformat=aout ;;
11525 *) objformat=elf ;;
11526 esac
11527 fi
11528 version_type=freebsd-$objformat
11529 case $version_type in
11530 freebsd-elf*)
11531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11532 soname_spec='$libname$release$shared_ext$major'
11533 need_version=no
11534 need_lib_prefix=no
11535 ;;
11536 freebsd-*)
11537 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11538 need_version=yes
11539 ;;
11540 esac
11541 shlibpath_var=LD_LIBRARY_PATH
11542 case $host_os in
11543 freebsd2.*)
11544 shlibpath_overrides_runpath=yes
11545 ;;
11546 freebsd3.[01]* | freebsdelf3.[01]*)
11547 shlibpath_overrides_runpath=yes
11548 hardcode_into_libs=yes
11549 ;;
11550 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11551 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11552 shlibpath_overrides_runpath=no
11553 hardcode_into_libs=yes
11554 ;;
11555 *) # from 4.6 on, and DragonFly
11556 shlibpath_overrides_runpath=yes
11557 hardcode_into_libs=yes
11558 ;;
11559 esac
11560 ;;
11561
11562 haiku*)
11563 version_type=linux # correct to gnu/linux during the next big refactor
11564 need_lib_prefix=no
11565 need_version=no
11566 dynamic_linker="$host_os runtime_loader"
11567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11568 soname_spec='$libname$release$shared_ext$major'
11569 shlibpath_var=LIBRARY_PATH
11570 shlibpath_overrides_runpath=no
11571 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11572 hardcode_into_libs=yes
11573 ;;
11574
11575 hpux9* | hpux10* | hpux11*)
11576 # Give a soname corresponding to the major version so that dld.sl refuses to
11577 # link against other versions.
11578 version_type=sunos
11579 need_lib_prefix=no
11580 need_version=no
11581 case $host_cpu in
11582 ia64*)
11583 shrext_cmds='.so'
11584 hardcode_into_libs=yes
11585 dynamic_linker="$host_os dld.so"
11586 shlibpath_var=LD_LIBRARY_PATH
11587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11589 soname_spec='$libname$release$shared_ext$major'
11590 if test 32 = "$HPUX_IA64_MODE"; then
11591 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11592 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11593 else
11594 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11595 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11596 fi
11597 ;;
11598 hppa*64*)
11599 shrext_cmds='.sl'
11600 hardcode_into_libs=yes
11601 dynamic_linker="$host_os dld.sl"
11602 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11605 soname_spec='$libname$release$shared_ext$major'
11606 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11608 ;;
11609 *)
11610 shrext_cmds='.sl'
11611 dynamic_linker="$host_os dld.sl"
11612 shlibpath_var=SHLIB_PATH
11613 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11615 soname_spec='$libname$release$shared_ext$major'
11616 ;;
11617 esac
11618 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11619 postinstall_cmds='chmod 555 $lib'
11620 # or fails outright, so override atomically:
11621 install_override_mode=555
11622 ;;
11623
11624 interix[3-9]*)
11625 version_type=linux # correct to gnu/linux during the next big refactor
11626 need_lib_prefix=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11631 shlibpath_var=LD_LIBRARY_PATH
11632 shlibpath_overrides_runpath=no
11633 hardcode_into_libs=yes
11634 ;;
11635
11636 irix5* | irix6* | nonstopux*)
11637 case $host_os in
11638 nonstopux*) version_type=nonstopux ;;
11639 *)
11640 if test yes = "$lt_cv_prog_gnu_ld"; then
11641 version_type=linux # correct to gnu/linux during the next big refactor
11642 else
11643 version_type=irix
11644 fi ;;
11645 esac
11646 need_lib_prefix=no
11647 need_version=no
11648 soname_spec='$libname$release$shared_ext$major'
11649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11650 case $host_os in
11651 irix5* | nonstopux*)
11652 libsuff= shlibsuff=
11653 ;;
11654 *)
11655 case $LD in # libtool.m4 will add one of these switches to LD
11656 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11657 libsuff= shlibsuff= libmagic=32-bit;;
11658 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11659 libsuff=32 shlibsuff=N32 libmagic=N32;;
11660 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11661 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11662 *) libsuff= shlibsuff= libmagic=never-match;;
11663 esac
11664 ;;
11665 esac
11666 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11667 shlibpath_overrides_runpath=no
11668 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11669 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11670 hardcode_into_libs=yes
11671 ;;
11672
11673 # No shared lib support for Linux oldld, aout, or coff.
11674 linux*oldld* | linux*aout* | linux*coff*)
11675 dynamic_linker=no
11676 ;;
11677
11678 linux*android*)
11679 version_type=none # Android doesn't support versioned libraries.
11680 need_lib_prefix=no
11681 need_version=no
11682 library_names_spec='$libname$release$shared_ext'
11683 soname_spec='$libname$release$shared_ext'
11684 finish_cmds=
11685 shlibpath_var=LD_LIBRARY_PATH
11686 shlibpath_overrides_runpath=yes
11687
11688 # This implies no fast_install, which is unacceptable.
11689 # Some rework will be needed to allow for fast_install
11690 # before this can be enabled.
11691 hardcode_into_libs=yes
11692
11693 dynamic_linker='Android linker'
11694 # Don't embed -rpath directories since the linker doesn't support them.
11695 hardcode_libdir_flag_spec='-L$libdir'
11696 ;;
11697
11698 # This must be glibc/ELF.
11699 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11700 version_type=linux # correct to gnu/linux during the next big refactor
11701 need_lib_prefix=no
11702 need_version=no
11703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11704 soname_spec='$libname$release$shared_ext$major'
11705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 shlibpath_overrides_runpath=no
11708
11709 # Some binutils ld are patched to set DT_RUNPATH
11710 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11711 $as_echo_n "(cached) " >&6
11712 else
11713 lt_cv_shlibpath_overrides_runpath=no
11714 save_LDFLAGS=$LDFLAGS
11715 save_libdir=$libdir
11716 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11717 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11720
11721 int
11722 main ()
11723 {
11724
11725 ;
11726 return 0;
11727 }
11728 _ACEOF
11729 if ac_fn_c_try_link "$LINENO"; then :
11730 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11731 lt_cv_shlibpath_overrides_runpath=yes
11732 fi
11733 fi
11734 rm -f core conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11736 LDFLAGS=$save_LDFLAGS
11737 libdir=$save_libdir
11738
11739 fi
11740
11741 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11742
11743 # This implies no fast_install, which is unacceptable.
11744 # Some rework will be needed to allow for fast_install
11745 # before this can be enabled.
11746 hardcode_into_libs=yes
11747
11748 # Ideally, we could use ldconfig to report *all* directores which are
11749 # searched for libraries, however this is still not possible. Aside from not
11750 # being certain /sbin/ldconfig is available, command
11751 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11752 # even though it is searched at run-time. Try to do the best guess by
11753 # appending ld.so.conf contents (and includes) to the search path.
11754 if test -f /etc/ld.so.conf; then
11755 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' ' '`
11756 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11757 fi
11758
11759 # We used to test for /lib/ld.so.1 and disable shared libraries on
11760 # powerpc, because MkLinux only supported shared libraries with the
11761 # GNU dynamic linker. Since this was broken with cross compilers,
11762 # most powerpc-linux boxes support dynamic linking these days and
11763 # people can always --disable-shared, the test was removed, and we
11764 # assume the GNU/Linux dynamic linker is in use.
11765 dynamic_linker='GNU/Linux ld.so'
11766 ;;
11767
11768 netbsdelf*-gnu)
11769 version_type=linux
11770 need_lib_prefix=no
11771 need_version=no
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11773 soname_spec='${libname}${release}${shared_ext}$major'
11774 shlibpath_var=LD_LIBRARY_PATH
11775 shlibpath_overrides_runpath=no
11776 hardcode_into_libs=yes
11777 dynamic_linker='NetBSD ld.elf_so'
11778 ;;
11779
11780 netbsd*)
11781 version_type=sunos
11782 need_lib_prefix=no
11783 need_version=no
11784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11785 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11787 dynamic_linker='NetBSD (a.out) ld.so'
11788 else
11789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11790 soname_spec='$libname$release$shared_ext$major'
11791 dynamic_linker='NetBSD ld.elf_so'
11792 fi
11793 shlibpath_var=LD_LIBRARY_PATH
11794 shlibpath_overrides_runpath=yes
11795 hardcode_into_libs=yes
11796 ;;
11797
11798 newsos6)
11799 version_type=linux # correct to gnu/linux during the next big refactor
11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 shlibpath_overrides_runpath=yes
11803 ;;
11804
11805 *nto* | *qnx*)
11806 version_type=qnx
11807 need_lib_prefix=no
11808 need_version=no
11809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11810 soname_spec='$libname$release$shared_ext$major'
11811 shlibpath_var=LD_LIBRARY_PATH
11812 shlibpath_overrides_runpath=no
11813 hardcode_into_libs=yes
11814 dynamic_linker='ldqnx.so'
11815 ;;
11816
11817 openbsd* | bitrig*)
11818 version_type=sunos
11819 sys_lib_dlsearch_path_spec=/usr/lib
11820 need_lib_prefix=no
11821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11822 need_version=no
11823 else
11824 need_version=yes
11825 fi
11826 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 shlibpath_overrides_runpath=yes
11830 ;;
11831
11832 os2*)
11833 libname_spec='$name'
11834 version_type=windows
11835 shrext_cmds=.dll
11836 need_version=no
11837 need_lib_prefix=no
11838 # OS/2 can only load a DLL with a base name of 8 characters or less.
11839 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11840 v=$($ECHO $release$versuffix | tr -d .-);
11841 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11842 $ECHO $n$v`$shared_ext'
11843 library_names_spec='${libname}_dll.$libext'
11844 dynamic_linker='OS/2 ld.exe'
11845 shlibpath_var=BEGINLIBPATH
11846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11848 postinstall_cmds='base_file=`basename \$file`~
11849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11850 dldir=$destdir/`dirname \$dlpath`~
11851 test -d \$dldir || mkdir -p \$dldir~
11852 $install_prog $dir/$dlname \$dldir/$dlname~
11853 chmod a+x \$dldir/$dlname~
11854 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11855 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11856 fi'
11857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11858 dlpath=$dir/\$dldll~
11859 $RM \$dlpath'
11860 ;;
11861
11862 osf3* | osf4* | osf5*)
11863 version_type=osf
11864 need_lib_prefix=no
11865 need_version=no
11866 soname_spec='$libname$release$shared_ext$major'
11867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11868 shlibpath_var=LD_LIBRARY_PATH
11869 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11871 ;;
11872
11873 rdos*)
11874 dynamic_linker=no
11875 ;;
11876
11877 solaris*)
11878 version_type=linux # correct to gnu/linux during the next big refactor
11879 need_lib_prefix=no
11880 need_version=no
11881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11882 soname_spec='$libname$release$shared_ext$major'
11883 shlibpath_var=LD_LIBRARY_PATH
11884 shlibpath_overrides_runpath=yes
11885 hardcode_into_libs=yes
11886 # ldd complains unless libraries are executable
11887 postinstall_cmds='chmod +x $lib'
11888 ;;
11889
11890 sunos4*)
11891 version_type=sunos
11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11893 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11894 shlibpath_var=LD_LIBRARY_PATH
11895 shlibpath_overrides_runpath=yes
11896 if test yes = "$with_gnu_ld"; then
11897 need_lib_prefix=no
11898 fi
11899 need_version=yes
11900 ;;
11901
11902 sysv4 | sysv4.3*)
11903 version_type=linux # correct to gnu/linux during the next big refactor
11904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11905 soname_spec='$libname$release$shared_ext$major'
11906 shlibpath_var=LD_LIBRARY_PATH
11907 case $host_vendor in
11908 sni)
11909 shlibpath_overrides_runpath=no
11910 need_lib_prefix=no
11911 runpath_var=LD_RUN_PATH
11912 ;;
11913 siemens)
11914 need_lib_prefix=no
11915 ;;
11916 motorola)
11917 need_lib_prefix=no
11918 need_version=no
11919 shlibpath_overrides_runpath=no
11920 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11921 ;;
11922 esac
11923 ;;
11924
11925 sysv4*MP*)
11926 if test -d /usr/nec; then
11927 version_type=linux # correct to gnu/linux during the next big refactor
11928 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11929 soname_spec='$libname$shared_ext.$major'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 fi
11932 ;;
11933
11934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11935 version_type=sco
11936 need_lib_prefix=no
11937 need_version=no
11938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11939 soname_spec='$libname$release$shared_ext$major'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 shlibpath_overrides_runpath=yes
11942 hardcode_into_libs=yes
11943 if test yes = "$with_gnu_ld"; then
11944 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11945 else
11946 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11947 case $host_os in
11948 sco3.2v5*)
11949 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11950 ;;
11951 esac
11952 fi
11953 sys_lib_dlsearch_path_spec='/usr/lib'
11954 ;;
11955
11956 tpf*)
11957 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11958 version_type=linux # correct to gnu/linux during the next big refactor
11959 need_lib_prefix=no
11960 need_version=no
11961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 shlibpath_overrides_runpath=no
11964 hardcode_into_libs=yes
11965 ;;
11966
11967 uts4*)
11968 version_type=linux # correct to gnu/linux during the next big refactor
11969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11970 soname_spec='$libname$release$shared_ext$major'
11971 shlibpath_var=LD_LIBRARY_PATH
11972 ;;
11973
11974 *)
11975 dynamic_linker=no
11976 ;;
11977 esac
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11979 $as_echo "$dynamic_linker" >&6; }
11980 test no = "$dynamic_linker" && can_build_shared=no
11981
11982 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11983 if test yes = "$GCC"; then
11984 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11985 fi
11986
11987 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11988 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11989 fi
11990
11991 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11992 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11993 fi
11994
11995 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11996 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11997
11998 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11999 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12000
12001 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12002 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12101 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12102 hardcode_action=
12103 if test -n "$hardcode_libdir_flag_spec" ||
12104 test -n "$runpath_var" ||
12105 test yes = "$hardcode_automatic"; then
12106
12107 # We can hardcode non-existent directories.
12108 if test no != "$hardcode_direct" &&
12109 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12110 # have to relink, otherwise we might link with an installed library
12111 # when we should be linking with a yet-to-be-installed one
12112 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12113 test no != "$hardcode_minus_L"; then
12114 # Linking always hardcodes the temporary library directory.
12115 hardcode_action=relink
12116 else
12117 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12118 hardcode_action=immediate
12119 fi
12120 else
12121 # We cannot hardcode anything, or else we can only hardcode existing
12122 # directories.
12123 hardcode_action=unsupported
12124 fi
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12126 $as_echo "$hardcode_action" >&6; }
12127
12128 if test relink = "$hardcode_action" ||
12129 test yes = "$inherit_rpath"; then
12130 # Fast installation is not supported
12131 enable_fast_install=no
12132 elif test yes = "$shlibpath_overrides_runpath" ||
12133 test no = "$enable_shared"; then
12134 # Fast installation is not necessary
12135 enable_fast_install=needless
12136 fi
12137
12138
12139
12140
12141
12142
12143 if test yes != "$enable_dlopen"; then
12144 enable_dlopen=unknown
12145 enable_dlopen_self=unknown
12146 enable_dlopen_self_static=unknown
12147 else
12148 lt_cv_dlopen=no
12149 lt_cv_dlopen_libs=
12150
12151 case $host_os in
12152 beos*)
12153 lt_cv_dlopen=load_add_on
12154 lt_cv_dlopen_libs=
12155 lt_cv_dlopen_self=yes
12156 ;;
12157
12158 mingw* | pw32* | cegcc*)
12159 lt_cv_dlopen=LoadLibrary
12160 lt_cv_dlopen_libs=
12161 ;;
12162
12163 cygwin*)
12164 lt_cv_dlopen=dlopen
12165 lt_cv_dlopen_libs=
12166 ;;
12167
12168 darwin*)
12169 # if libdl is installed we need to link against it
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12171 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12172 if ${ac_cv_lib_dl_dlopen+:} false; then :
12173 $as_echo_n "(cached) " >&6
12174 else
12175 ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-ldl $LIBS"
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12179
12180 /* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
12183 #ifdef __cplusplus
12184 extern "C"
12185 #endif
12186 char dlopen ();
12187 int
12188 main ()
12189 {
12190 return dlopen ();
12191 ;
12192 return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_c_try_link "$LINENO"; then :
12196 ac_cv_lib_dl_dlopen=yes
12197 else
12198 ac_cv_lib_dl_dlopen=no
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 LIBS=$ac_check_lib_save_LIBS
12203 fi
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12205 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12206 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12207 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12208 else
12209
12210 lt_cv_dlopen=dyld
12211 lt_cv_dlopen_libs=
12212 lt_cv_dlopen_self=yes
12213
12214 fi
12215
12216 ;;
12217
12218 tpf*)
12219 # Don't try to run any link tests for TPF. We know it's impossible
12220 # because TPF is a cross-compiler, and we know how we open DSOs.
12221 lt_cv_dlopen=dlopen
12222 lt_cv_dlopen_libs=
12223 lt_cv_dlopen_self=no
12224 ;;
12225
12226 *)
12227 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12228 if test "x$ac_cv_func_shl_load" = xyes; then :
12229 lt_cv_dlopen=shl_load
12230 else
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12232 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12233 if ${ac_cv_lib_dld_shl_load+:} false; then :
12234 $as_echo_n "(cached) " >&6
12235 else
12236 ac_check_lib_save_LIBS=$LIBS
12237 LIBS="-ldld $LIBS"
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12240
12241 /* Override any GCC internal prototype to avoid an error.
12242 Use char because int might match the return type of a GCC
12243 builtin and then its argument prototype would still apply. */
12244 #ifdef __cplusplus
12245 extern "C"
12246 #endif
12247 char shl_load ();
12248 int
12249 main ()
12250 {
12251 return shl_load ();
12252 ;
12253 return 0;
12254 }
12255 _ACEOF
12256 if ac_fn_c_try_link "$LINENO"; then :
12257 ac_cv_lib_dld_shl_load=yes
12258 else
12259 ac_cv_lib_dld_shl_load=no
12260 fi
12261 rm -f core conftest.err conftest.$ac_objext \
12262 conftest$ac_exeext conftest.$ac_ext
12263 LIBS=$ac_check_lib_save_LIBS
12264 fi
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12266 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12267 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12268 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12269 else
12270 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12271 if test "x$ac_cv_func_dlopen" = xyes; then :
12272 lt_cv_dlopen=dlopen
12273 else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12275 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12276 if ${ac_cv_lib_dl_dlopen+:} false; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 ac_check_lib_save_LIBS=$LIBS
12280 LIBS="-ldl $LIBS"
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12283
12284 /* Override any GCC internal prototype to avoid an error.
12285 Use char because int might match the return type of a GCC
12286 builtin and then its argument prototype would still apply. */
12287 #ifdef __cplusplus
12288 extern "C"
12289 #endif
12290 char dlopen ();
12291 int
12292 main ()
12293 {
12294 return dlopen ();
12295 ;
12296 return 0;
12297 }
12298 _ACEOF
12299 if ac_fn_c_try_link "$LINENO"; then :
12300 ac_cv_lib_dl_dlopen=yes
12301 else
12302 ac_cv_lib_dl_dlopen=no
12303 fi
12304 rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12307 fi
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12309 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12310 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12311 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12312 else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12314 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12315 if ${ac_cv_lib_svld_dlopen+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318 ac_check_lib_save_LIBS=$LIBS
12319 LIBS="-lsvld $LIBS"
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12322
12323 /* Override any GCC internal prototype to avoid an error.
12324 Use char because int might match the return type of a GCC
12325 builtin and then its argument prototype would still apply. */
12326 #ifdef __cplusplus
12327 extern "C"
12328 #endif
12329 char dlopen ();
12330 int
12331 main ()
12332 {
12333 return dlopen ();
12334 ;
12335 return 0;
12336 }
12337 _ACEOF
12338 if ac_fn_c_try_link "$LINENO"; then :
12339 ac_cv_lib_svld_dlopen=yes
12340 else
12341 ac_cv_lib_svld_dlopen=no
12342 fi
12343 rm -f core conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345 LIBS=$ac_check_lib_save_LIBS
12346 fi
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12348 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12349 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12350 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12351 else
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12353 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12354 if ${ac_cv_lib_dld_dld_link+:} false; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 ac_check_lib_save_LIBS=$LIBS
12358 LIBS="-ldld $LIBS"
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361
12362 /* Override any GCC internal prototype to avoid an error.
12363 Use char because int might match the return type of a GCC
12364 builtin and then its argument prototype would still apply. */
12365 #ifdef __cplusplus
12366 extern "C"
12367 #endif
12368 char dld_link ();
12369 int
12370 main ()
12371 {
12372 return dld_link ();
12373 ;
12374 return 0;
12375 }
12376 _ACEOF
12377 if ac_fn_c_try_link "$LINENO"; then :
12378 ac_cv_lib_dld_dld_link=yes
12379 else
12380 ac_cv_lib_dld_dld_link=no
12381 fi
12382 rm -f core conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
12384 LIBS=$ac_check_lib_save_LIBS
12385 fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12387 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12388 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12389 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12390 fi
12391
12392
12393 fi
12394
12395
12396 fi
12397
12398
12399 fi
12400
12401
12402 fi
12403
12404
12405 fi
12406
12407 ;;
12408 esac
12409
12410 if test no = "$lt_cv_dlopen"; then
12411 enable_dlopen=no
12412 else
12413 enable_dlopen=yes
12414 fi
12415
12416 case $lt_cv_dlopen in
12417 dlopen)
12418 save_CPPFLAGS=$CPPFLAGS
12419 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12420
12421 save_LDFLAGS=$LDFLAGS
12422 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12423
12424 save_LIBS=$LIBS
12425 LIBS="$lt_cv_dlopen_libs $LIBS"
12426
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12428 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12429 if ${lt_cv_dlopen_self+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 if test yes = "$cross_compiling"; then :
12433 lt_cv_dlopen_self=cross
12434 else
12435 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12436 lt_status=$lt_dlunknown
12437 cat > conftest.$ac_ext <<_LT_EOF
12438 #line $LINENO "configure"
12439 #include "confdefs.h"
12440
12441 #if HAVE_DLFCN_H
12442 #include <dlfcn.h>
12443 #endif
12444
12445 #include <stdio.h>
12446
12447 #ifdef RTLD_GLOBAL
12448 # define LT_DLGLOBAL RTLD_GLOBAL
12449 #else
12450 # ifdef DL_GLOBAL
12451 # define LT_DLGLOBAL DL_GLOBAL
12452 # else
12453 # define LT_DLGLOBAL 0
12454 # endif
12455 #endif
12456
12457 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12458 find out it does not work in some platform. */
12459 #ifndef LT_DLLAZY_OR_NOW
12460 # ifdef RTLD_LAZY
12461 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12462 # else
12463 # ifdef DL_LAZY
12464 # define LT_DLLAZY_OR_NOW DL_LAZY
12465 # else
12466 # ifdef RTLD_NOW
12467 # define LT_DLLAZY_OR_NOW RTLD_NOW
12468 # else
12469 # ifdef DL_NOW
12470 # define LT_DLLAZY_OR_NOW DL_NOW
12471 # else
12472 # define LT_DLLAZY_OR_NOW 0
12473 # endif
12474 # endif
12475 # endif
12476 # endif
12477 #endif
12478
12479 /* When -fvisibility=hidden is used, assume the code has been annotated
12480 correspondingly for the symbols needed. */
12481 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12482 int fnord () __attribute__((visibility("default")));
12483 #endif
12484
12485 int fnord () { return 42; }
12486 int main ()
12487 {
12488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12489 int status = $lt_dlunknown;
12490
12491 if (self)
12492 {
12493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12494 else
12495 {
12496 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12497 else puts (dlerror ());
12498 }
12499 /* dlclose (self); */
12500 }
12501 else
12502 puts (dlerror ());
12503
12504 return status;
12505 }
12506 _LT_EOF
12507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12508 (eval $ac_link) 2>&5
12509 ac_status=$?
12510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12511 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12512 (./conftest; exit; ) >&5 2>/dev/null
12513 lt_status=$?
12514 case x$lt_status in
12515 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12516 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12517 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12518 esac
12519 else :
12520 # compilation failed
12521 lt_cv_dlopen_self=no
12522 fi
12523 fi
12524 rm -fr conftest*
12525
12526
12527 fi
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12529 $as_echo "$lt_cv_dlopen_self" >&6; }
12530
12531 if test yes = "$lt_cv_dlopen_self"; then
12532 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12534 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12535 if ${lt_cv_dlopen_self_static+:} false; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 if test yes = "$cross_compiling"; then :
12539 lt_cv_dlopen_self_static=cross
12540 else
12541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12542 lt_status=$lt_dlunknown
12543 cat > conftest.$ac_ext <<_LT_EOF
12544 #line $LINENO "configure"
12545 #include "confdefs.h"
12546
12547 #if HAVE_DLFCN_H
12548 #include <dlfcn.h>
12549 #endif
12550
12551 #include <stdio.h>
12552
12553 #ifdef RTLD_GLOBAL
12554 # define LT_DLGLOBAL RTLD_GLOBAL
12555 #else
12556 # ifdef DL_GLOBAL
12557 # define LT_DLGLOBAL DL_GLOBAL
12558 # else
12559 # define LT_DLGLOBAL 0
12560 # endif
12561 #endif
12562
12563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12564 find out it does not work in some platform. */
12565 #ifndef LT_DLLAZY_OR_NOW
12566 # ifdef RTLD_LAZY
12567 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12568 # else
12569 # ifdef DL_LAZY
12570 # define LT_DLLAZY_OR_NOW DL_LAZY
12571 # else
12572 # ifdef RTLD_NOW
12573 # define LT_DLLAZY_OR_NOW RTLD_NOW
12574 # else
12575 # ifdef DL_NOW
12576 # define LT_DLLAZY_OR_NOW DL_NOW
12577 # else
12578 # define LT_DLLAZY_OR_NOW 0
12579 # endif
12580 # endif
12581 # endif
12582 # endif
12583 #endif
12584
12585 /* When -fvisibility=hidden is used, assume the code has been annotated
12586 correspondingly for the symbols needed. */
12587 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12588 int fnord () __attribute__((visibility("default")));
12589 #endif
12590
12591 int fnord () { return 42; }
12592 int main ()
12593 {
12594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12595 int status = $lt_dlunknown;
12596
12597 if (self)
12598 {
12599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12600 else
12601 {
12602 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12603 else puts (dlerror ());
12604 }
12605 /* dlclose (self); */
12606 }
12607 else
12608 puts (dlerror ());
12609
12610 return status;
12611 }
12612 _LT_EOF
12613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12614 (eval $ac_link) 2>&5
12615 ac_status=$?
12616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12617 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12618 (./conftest; exit; ) >&5 2>/dev/null
12619 lt_status=$?
12620 case x$lt_status in
12621 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12622 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12623 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12624 esac
12625 else :
12626 # compilation failed
12627 lt_cv_dlopen_self_static=no
12628 fi
12629 fi
12630 rm -fr conftest*
12631
12632
12633 fi
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12635 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12636 fi
12637
12638 CPPFLAGS=$save_CPPFLAGS
12639 LDFLAGS=$save_LDFLAGS
12640 LIBS=$save_LIBS
12641 ;;
12642 esac
12643
12644 case $lt_cv_dlopen_self in
12645 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12646 *) enable_dlopen_self=unknown ;;
12647 esac
12648
12649 case $lt_cv_dlopen_self_static in
12650 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12651 *) enable_dlopen_self_static=unknown ;;
12652 esac
12653 fi
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671 striplib=
12672 old_striplib=
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12674 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12675 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12676 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12677 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12679 $as_echo "yes" >&6; }
12680 else
12681 # FIXME - insert some real tests, host_os isn't really good enough
12682 case $host_os in
12683 darwin*)
12684 if test -n "$STRIP"; then
12685 striplib="$STRIP -x"
12686 old_striplib="$STRIP -S"
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12688 $as_echo "yes" >&6; }
12689 else
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12692 fi
12693 ;;
12694 *)
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12697 ;;
12698 esac
12699 fi
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712 # Report what library types will actually be built
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12714 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12716 $as_echo "$can_build_shared" >&6; }
12717
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12719 $as_echo_n "checking whether to build shared libraries... " >&6; }
12720 test no = "$can_build_shared" && enable_shared=no
12721
12722 # On AIX, shared libraries and static libraries use the same namespace, and
12723 # are all built from PIC.
12724 case $host_os in
12725 aix3*)
12726 test yes = "$enable_shared" && enable_static=no
12727 if test -n "$RANLIB"; then
12728 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12729 postinstall_cmds='$RANLIB $lib'
12730 fi
12731 ;;
12732
12733 aix[4-9]*)
12734 if test ia64 != "$host_cpu"; then
12735 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12736 yes,aix,yes) ;; # shared object as lib.so file only
12737 yes,svr4,*) ;; # shared object as lib.so archive member only
12738 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12739 esac
12740 fi
12741 ;;
12742 esac
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12744 $as_echo "$enable_shared" >&6; }
12745
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12747 $as_echo_n "checking whether to build static libraries... " >&6; }
12748 # Make sure either enable_shared or enable_static is yes.
12749 test yes = "$enable_shared" || enable_static=yes
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12751 $as_echo "$enable_static" >&6; }
12752
12753
12754
12755
12756 fi
12757 ac_ext=c
12758 ac_cpp='$CPP $CPPFLAGS'
12759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12762
12763 CC=$lt_save_CC
12764
12765 if test -n "$CXX" && ( test no != "$CXX" &&
12766 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12767 (test g++ != "$CXX"))); then
12768 ac_ext=cpp
12769 ac_cpp='$CXXCPP $CPPFLAGS'
12770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12774 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12775 if test -z "$CXXCPP"; then
12776 if ${ac_cv_prog_CXXCPP+:} false; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 # Double quotes because CXXCPP needs to be expanded
12780 for CXXCPP in "$CXX -E" "/lib/cpp"
12781 do
12782 ac_preproc_ok=false
12783 for ac_cxx_preproc_warn_flag in '' yes
12784 do
12785 # Use a header file that comes with gcc, so configuring glibc
12786 # with a fresh cross-compiler works.
12787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12788 # <limits.h> exists even on freestanding compilers.
12789 # On the NeXT, cc -E runs the code through the compiler's parser,
12790 # not just through cpp. "Syntax error" is here to catch this case.
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12793 #ifdef __STDC__
12794 # include <limits.h>
12795 #else
12796 # include <assert.h>
12797 #endif
12798 Syntax error
12799 _ACEOF
12800 if ac_fn_cxx_try_cpp "$LINENO"; then :
12801
12802 else
12803 # Broken: fails on valid input.
12804 continue
12805 fi
12806 rm -f conftest.err conftest.i conftest.$ac_ext
12807
12808 # OK, works on sane cases. Now check whether nonexistent headers
12809 # can be detected and how.
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h. */
12812 #include <ac_nonexistent.h>
12813 _ACEOF
12814 if ac_fn_cxx_try_cpp "$LINENO"; then :
12815 # Broken: success on invalid input.
12816 continue
12817 else
12818 # Passes both tests.
12819 ac_preproc_ok=:
12820 break
12821 fi
12822 rm -f conftest.err conftest.i conftest.$ac_ext
12823
12824 done
12825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12826 rm -f conftest.i conftest.err conftest.$ac_ext
12827 if $ac_preproc_ok; then :
12828 break
12829 fi
12830
12831 done
12832 ac_cv_prog_CXXCPP=$CXXCPP
12833
12834 fi
12835 CXXCPP=$ac_cv_prog_CXXCPP
12836 else
12837 ac_cv_prog_CXXCPP=$CXXCPP
12838 fi
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12840 $as_echo "$CXXCPP" >&6; }
12841 ac_preproc_ok=false
12842 for ac_cxx_preproc_warn_flag in '' yes
12843 do
12844 # Use a header file that comes with gcc, so configuring glibc
12845 # with a fresh cross-compiler works.
12846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12847 # <limits.h> exists even on freestanding compilers.
12848 # On the NeXT, cc -E runs the code through the compiler's parser,
12849 # not just through cpp. "Syntax error" is here to catch this case.
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12852 #ifdef __STDC__
12853 # include <limits.h>
12854 #else
12855 # include <assert.h>
12856 #endif
12857 Syntax error
12858 _ACEOF
12859 if ac_fn_cxx_try_cpp "$LINENO"; then :
12860
12861 else
12862 # Broken: fails on valid input.
12863 continue
12864 fi
12865 rm -f conftest.err conftest.i conftest.$ac_ext
12866
12867 # OK, works on sane cases. Now check whether nonexistent headers
12868 # can be detected and how.
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871 #include <ac_nonexistent.h>
12872 _ACEOF
12873 if ac_fn_cxx_try_cpp "$LINENO"; then :
12874 # Broken: success on invalid input.
12875 continue
12876 else
12877 # Passes both tests.
12878 ac_preproc_ok=:
12879 break
12880 fi
12881 rm -f conftest.err conftest.i conftest.$ac_ext
12882
12883 done
12884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12885 rm -f conftest.i conftest.err conftest.$ac_ext
12886 if $ac_preproc_ok; then :
12887
12888 else
12889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12891 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12892 See \`config.log' for more details" "$LINENO" 5; }
12893 fi
12894
12895 ac_ext=c
12896 ac_cpp='$CPP $CPPFLAGS'
12897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12900
12901 else
12902 _lt_caught_CXX_error=yes
12903 fi
12904
12905 ac_ext=cpp
12906 ac_cpp='$CXXCPP $CPPFLAGS'
12907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12910
12911 archive_cmds_need_lc_CXX=no
12912 allow_undefined_flag_CXX=
12913 always_export_symbols_CXX=no
12914 archive_expsym_cmds_CXX=
12915 compiler_needs_object_CXX=no
12916 export_dynamic_flag_spec_CXX=
12917 hardcode_direct_CXX=no
12918 hardcode_direct_absolute_CXX=no
12919 hardcode_libdir_flag_spec_CXX=
12920 hardcode_libdir_separator_CXX=
12921 hardcode_minus_L_CXX=no
12922 hardcode_shlibpath_var_CXX=unsupported
12923 hardcode_automatic_CXX=no
12924 inherit_rpath_CXX=no
12925 module_cmds_CXX=
12926 module_expsym_cmds_CXX=
12927 link_all_deplibs_CXX=unknown
12928 old_archive_cmds_CXX=$old_archive_cmds
12929 reload_flag_CXX=$reload_flag
12930 reload_cmds_CXX=$reload_cmds
12931 no_undefined_flag_CXX=
12932 whole_archive_flag_spec_CXX=
12933 enable_shared_with_static_runtimes_CXX=no
12934
12935 # Source file extension for C++ test sources.
12936 ac_ext=cpp
12937
12938 # Object file extension for compiled C++ test sources.
12939 objext=o
12940 objext_CXX=$objext
12941
12942 # No sense in running all these tests if we already determined that
12943 # the CXX compiler isn't working. Some variables (like enable_shared)
12944 # are currently assumed to apply to all compilers on this platform,
12945 # and will be corrupted by setting them based on a non-working compiler.
12946 if test yes != "$_lt_caught_CXX_error"; then
12947 # Code to be used in simple compile tests
12948 lt_simple_compile_test_code="int some_variable = 0;"
12949
12950 # Code to be used in simple link tests
12951 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12952
12953 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12954
12955
12956
12957
12958
12959
12960 # If no C compiler was specified, use CC.
12961 LTCC=${LTCC-"$CC"}
12962
12963 # If no C compiler flags were specified, use CFLAGS.
12964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12965
12966 # Allow CC to be a program name with arguments.
12967 compiler=$CC
12968
12969
12970 # save warnings/boilerplate of simple test code
12971 ac_outfile=conftest.$ac_objext
12972 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12974 _lt_compiler_boilerplate=`cat conftest.err`
12975 $RM conftest*
12976
12977 ac_outfile=conftest.$ac_objext
12978 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12980 _lt_linker_boilerplate=`cat conftest.err`
12981 $RM -r conftest*
12982
12983
12984 # Allow CC to be a program name with arguments.
12985 lt_save_CC=$CC
12986 lt_save_CFLAGS=$CFLAGS
12987 lt_save_LD=$LD
12988 lt_save_GCC=$GCC
12989 GCC=$GXX
12990 lt_save_with_gnu_ld=$with_gnu_ld
12991 lt_save_path_LD=$lt_cv_path_LD
12992 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12993 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12994 else
12995 $as_unset lt_cv_prog_gnu_ld
12996 fi
12997 if test -n "${lt_cv_path_LDCXX+set}"; then
12998 lt_cv_path_LD=$lt_cv_path_LDCXX
12999 else
13000 $as_unset lt_cv_path_LD
13001 fi
13002 test -z "${LDCXX+set}" || LD=$LDCXX
13003 CC=${CXX-"c++"}
13004 CFLAGS=$CXXFLAGS
13005 compiler=$CC
13006 compiler_CXX=$CC
13007 func_cc_basename $compiler
13008 cc_basename=$func_cc_basename_result
13009
13010
13011 if test -n "$compiler"; then
13012 # We don't want -fno-exception when compiling C++ code, so set the
13013 # no_builtin_flag separately
13014 if test yes = "$GXX"; then
13015 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13016 else
13017 lt_prog_compiler_no_builtin_flag_CXX=
13018 fi
13019
13020 if test yes = "$GXX"; then
13021 # Set up default GNU C++ configuration
13022
13023
13024
13025 # Check whether --with-gnu-ld was given.
13026 if test "${with_gnu_ld+set}" = set; then :
13027 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13028 else
13029 with_gnu_ld=no
13030 fi
13031
13032 ac_prog=ld
13033 if test yes = "$GCC"; then
13034 # Check if gcc -print-prog-name=ld gives a path.
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13036 $as_echo_n "checking for ld used by $CC... " >&6; }
13037 case $host in
13038 *-*-mingw*)
13039 # gcc leaves a trailing carriage return, which upsets mingw
13040 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13041 *)
13042 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13043 esac
13044 case $ac_prog in
13045 # Accept absolute paths.
13046 [\\/]* | ?:[\\/]*)
13047 re_direlt='/[^/][^/]*/\.\./'
13048 # Canonicalize the pathname of ld
13049 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13050 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13051 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13052 done
13053 test -z "$LD" && LD=$ac_prog
13054 ;;
13055 "")
13056 # If it fails, then pretend we aren't using GCC.
13057 ac_prog=ld
13058 ;;
13059 *)
13060 # If it is relative, then search for the first ld in PATH.
13061 with_gnu_ld=unknown
13062 ;;
13063 esac
13064 elif test yes = "$with_gnu_ld"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13066 $as_echo_n "checking for GNU ld... " >&6; }
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13069 $as_echo_n "checking for non-GNU ld... " >&6; }
13070 fi
13071 if ${lt_cv_path_LD+:} false; then :
13072 $as_echo_n "(cached) " >&6
13073 else
13074 if test -z "$LD"; then
13075 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13076 for ac_dir in $PATH; do
13077 IFS=$lt_save_ifs
13078 test -z "$ac_dir" && ac_dir=.
13079 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13080 lt_cv_path_LD=$ac_dir/$ac_prog
13081 # Check to see if the program is GNU ld. I'd rather use --version,
13082 # but apparently some variants of GNU ld only accept -v.
13083 # Break only if it was the GNU/non-GNU ld that we prefer.
13084 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13085 *GNU* | *'with BFD'*)
13086 test no != "$with_gnu_ld" && break
13087 ;;
13088 *)
13089 test yes != "$with_gnu_ld" && break
13090 ;;
13091 esac
13092 fi
13093 done
13094 IFS=$lt_save_ifs
13095 else
13096 lt_cv_path_LD=$LD # Let the user override the test with a path.
13097 fi
13098 fi
13099
13100 LD=$lt_cv_path_LD
13101 if test -n "$LD"; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13103 $as_echo "$LD" >&6; }
13104 else
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13107 fi
13108 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13110 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13111 if ${lt_cv_prog_gnu_ld+:} false; then :
13112 $as_echo_n "(cached) " >&6
13113 else
13114 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13115 case `$LD -v 2>&1 </dev/null` in
13116 *GNU* | *'with BFD'*)
13117 lt_cv_prog_gnu_ld=yes
13118 ;;
13119 *)
13120 lt_cv_prog_gnu_ld=no
13121 ;;
13122 esac
13123 fi
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13125 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13126 with_gnu_ld=$lt_cv_prog_gnu_ld
13127
13128
13129
13130
13131
13132
13133
13134 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13135 # archiving commands below assume that GNU ld is being used.
13136 if test yes = "$with_gnu_ld"; then
13137 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13138 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'
13139
13140 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13141 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13142
13143 # If archive_cmds runs LD, not CC, wlarc should be empty
13144 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13145 # investigate it a little bit more. (MM)
13146 wlarc='$wl'
13147
13148 # ancient GNU ld didn't support --whole-archive et. al.
13149 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13150 $GREP 'no-whole-archive' > /dev/null; then
13151 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13152 else
13153 whole_archive_flag_spec_CXX=
13154 fi
13155 else
13156 with_gnu_ld=no
13157 wlarc=
13158
13159 # A generic and very simple default shared library creation
13160 # command for GNU C++ for the case where it uses the native
13161 # linker, instead of GNU ld. If possible, this setting should
13162 # overridden to take advantage of the native linker features on
13163 # the platform it is being used on.
13164 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13165 fi
13166
13167 # Commands to make compiler produce verbose output that lists
13168 # what "hidden" libraries, object files and flags are used when
13169 # linking a shared library.
13170 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
13171
13172 else
13173 GXX=no
13174 with_gnu_ld=no
13175 wlarc=
13176 fi
13177
13178 # PORTME: fill in a description of your system's C++ link characteristics
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13180 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13181 ld_shlibs_CXX=yes
13182 case $host_os in
13183 aix3*)
13184 # FIXME: insert proper C++ library support
13185 ld_shlibs_CXX=no
13186 ;;
13187 aix[4-9]*)
13188 if test ia64 = "$host_cpu"; then
13189 # On IA64, the linker does run time linking by default, so we don't
13190 # have to do anything special.
13191 aix_use_runtimelinking=no
13192 exp_sym_flag='-Bexport'
13193 no_entry_flag=
13194 else
13195 aix_use_runtimelinking=no
13196
13197 # Test if we are trying to use run time linking or normal
13198 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13199 # have runtime linking enabled, and use it for executables.
13200 # For shared libraries, we enable/disable runtime linking
13201 # depending on the kind of the shared library created -
13202 # when "with_aix_soname,aix_use_runtimelinking" is:
13203 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13204 # "aix,yes" lib.so shared, rtl:yes, for executables
13205 # lib.a static archive
13206 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13207 # lib.a(lib.so.V) shared, rtl:no, for executables
13208 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13209 # lib.a(lib.so.V) shared, rtl:no
13210 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13211 # lib.a static archive
13212 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13213 for ld_flag in $LDFLAGS; do
13214 case $ld_flag in
13215 *-brtl*)
13216 aix_use_runtimelinking=yes
13217 break
13218 ;;
13219 esac
13220 done
13221 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13222 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13223 # so we don't have lib.a shared libs to link our executables.
13224 # We have to force runtime linking in this case.
13225 aix_use_runtimelinking=yes
13226 LDFLAGS="$LDFLAGS -Wl,-brtl"
13227 fi
13228 ;;
13229 esac
13230
13231 exp_sym_flag='-bexport'
13232 no_entry_flag='-bnoentry'
13233 fi
13234
13235 # When large executables or shared objects are built, AIX ld can
13236 # have problems creating the table of contents. If linking a library
13237 # or program results in "error TOC overflow" add -mminimal-toc to
13238 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13239 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13240
13241 archive_cmds_CXX=''
13242 hardcode_direct_CXX=yes
13243 hardcode_direct_absolute_CXX=yes
13244 hardcode_libdir_separator_CXX=':'
13245 link_all_deplibs_CXX=yes
13246 file_list_spec_CXX='$wl-f,'
13247 case $with_aix_soname,$aix_use_runtimelinking in
13248 aix,*) ;; # no import file
13249 svr4,* | *,yes) # use import file
13250 # The Import File defines what to hardcode.
13251 hardcode_direct_CXX=no
13252 hardcode_direct_absolute_CXX=no
13253 ;;
13254 esac
13255
13256 if test yes = "$GXX"; then
13257 case $host_os in aix4.[012]|aix4.[012].*)
13258 # We only want to do this on AIX 4.2 and lower, the check
13259 # below for broken collect2 doesn't work under 4.3+
13260 collect2name=`$CC -print-prog-name=collect2`
13261 if test -f "$collect2name" &&
13262 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13263 then
13264 # We have reworked collect2
13265 :
13266 else
13267 # We have old collect2
13268 hardcode_direct_CXX=unsupported
13269 # It fails to find uninstalled libraries when the uninstalled
13270 # path is not listed in the libpath. Setting hardcode_minus_L
13271 # to unsupported forces relinking
13272 hardcode_minus_L_CXX=yes
13273 hardcode_libdir_flag_spec_CXX='-L$libdir'
13274 hardcode_libdir_separator_CXX=
13275 fi
13276 esac
13277 shared_flag='-shared'
13278 if test yes = "$aix_use_runtimelinking"; then
13279 shared_flag=$shared_flag' $wl-G'
13280 fi
13281 # Need to ensure runtime linking is disabled for the traditional
13282 # shared library, or the linker may eventually find shared libraries
13283 # /with/ Import File - we do not want to mix them.
13284 shared_flag_aix='-shared'
13285 shared_flag_svr4='-shared $wl-G'
13286 else
13287 # not using gcc
13288 if test ia64 = "$host_cpu"; then
13289 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13290 # chokes on -Wl,-G. The following line is correct:
13291 shared_flag='-G'
13292 else
13293 if test yes = "$aix_use_runtimelinking"; then
13294 shared_flag='$wl-G'
13295 else
13296 shared_flag='$wl-bM:SRE'
13297 fi
13298 shared_flag_aix='$wl-bM:SRE'
13299 shared_flag_svr4='$wl-G'
13300 fi
13301 fi
13302
13303 export_dynamic_flag_spec_CXX='$wl-bexpall'
13304 # It seems that -bexpall does not export symbols beginning with
13305 # underscore (_), so it is better to generate a list of symbols to
13306 # export.
13307 always_export_symbols_CXX=yes
13308 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13309 # Warning - without using the other runtime loading flags (-brtl),
13310 # -berok will link without error, but may produce a broken library.
13311 # The "-G" linker flag allows undefined symbols.
13312 no_undefined_flag_CXX='-bernotok'
13313 # Determine the default libpath from the value encoded in an empty
13314 # executable.
13315 if test set = "${lt_cv_aix_libpath+set}"; then
13316 aix_libpath=$lt_cv_aix_libpath
13317 else
13318 if ${lt_cv_aix_libpath__CXX+:} false; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13323
13324 int
13325 main ()
13326 {
13327
13328 ;
13329 return 0;
13330 }
13331 _ACEOF
13332 if ac_fn_cxx_try_link "$LINENO"; then :
13333
13334 lt_aix_libpath_sed='
13335 /Import File Strings/,/^$/ {
13336 /^0/ {
13337 s/^0 *\([^ ]*\) *$/\1/
13338 p
13339 }
13340 }'
13341 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13342 # Check for a 64-bit object if we didn't find anything.
13343 if test -z "$lt_cv_aix_libpath__CXX"; then
13344 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13345 fi
13346 fi
13347 rm -f core conftest.err conftest.$ac_objext \
13348 conftest$ac_exeext conftest.$ac_ext
13349 if test -z "$lt_cv_aix_libpath__CXX"; then
13350 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13351 fi
13352
13353 fi
13354
13355 aix_libpath=$lt_cv_aix_libpath__CXX
13356 fi
13357
13358 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13359
13360 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
13361 else
13362 if test ia64 = "$host_cpu"; then
13363 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13364 allow_undefined_flag_CXX="-z nodefs"
13365 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"
13366 else
13367 # Determine the default libpath from the value encoded in an
13368 # empty executable.
13369 if test set = "${lt_cv_aix_libpath+set}"; then
13370 aix_libpath=$lt_cv_aix_libpath
13371 else
13372 if ${lt_cv_aix_libpath__CXX+:} false; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13376 /* end confdefs.h. */
13377
13378 int
13379 main ()
13380 {
13381
13382 ;
13383 return 0;
13384 }
13385 _ACEOF
13386 if ac_fn_cxx_try_link "$LINENO"; then :
13387
13388 lt_aix_libpath_sed='
13389 /Import File Strings/,/^$/ {
13390 /^0/ {
13391 s/^0 *\([^ ]*\) *$/\1/
13392 p
13393 }
13394 }'
13395 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13396 # Check for a 64-bit object if we didn't find anything.
13397 if test -z "$lt_cv_aix_libpath__CXX"; then
13398 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13399 fi
13400 fi
13401 rm -f core conftest.err conftest.$ac_objext \
13402 conftest$ac_exeext conftest.$ac_ext
13403 if test -z "$lt_cv_aix_libpath__CXX"; then
13404 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13405 fi
13406
13407 fi
13408
13409 aix_libpath=$lt_cv_aix_libpath__CXX
13410 fi
13411
13412 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13413 # Warning - without using the other run time loading flags,
13414 # -berok will link without error, but may produce a broken library.
13415 no_undefined_flag_CXX=' $wl-bernotok'
13416 allow_undefined_flag_CXX=' $wl-berok'
13417 if test yes = "$with_gnu_ld"; then
13418 # We only use this code for GNU lds that support --whole-archive.
13419 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13420 else
13421 # Exported symbols can be pulled into shared objects from archives
13422 whole_archive_flag_spec_CXX='$convenience'
13423 fi
13424 archive_cmds_need_lc_CXX=yes
13425 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13426 # -brtl affects multiple linker settings, -berok does not and is overridden later
13427 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13428 if test svr4 != "$with_aix_soname"; then
13429 # This is similar to how AIX traditionally builds its shared
13430 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13431 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'
13432 fi
13433 if test aix != "$with_aix_soname"; then
13434 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'
13435 else
13436 # used by -dlpreopen to get the symbols
13437 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13438 fi
13439 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13440 fi
13441 fi
13442 ;;
13443
13444 beos*)
13445 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13446 allow_undefined_flag_CXX=unsupported
13447 # Joseph Beckenbach <[email protected]> says some releases of gcc
13448 # support --undefined. This deserves some investigation. FIXME
13449 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13450 else
13451 ld_shlibs_CXX=no
13452 fi
13453 ;;
13454
13455 chorus*)
13456 case $cc_basename in
13457 *)
13458 # FIXME: insert proper C++ library support
13459 ld_shlibs_CXX=no
13460 ;;
13461 esac
13462 ;;
13463
13464 cygwin* | mingw* | pw32* | cegcc*)
13465 case $GXX,$cc_basename in
13466 ,cl* | no,cl*)
13467 # Native MSVC
13468 # hardcode_libdir_flag_spec is actually meaningless, as there is
13469 # no search path for DLLs.
13470 hardcode_libdir_flag_spec_CXX=' '
13471 allow_undefined_flag_CXX=unsupported
13472 always_export_symbols_CXX=yes
13473 file_list_spec_CXX='@'
13474 # Tell ltmain to make .lib files, not .a files.
13475 libext=lib
13476 # Tell ltmain to make .dll files, not .so files.
13477 shrext_cmds=.dll
13478 # FIXME: Setting linknames here is a bad hack.
13479 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13480 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13481 cp "$export_symbols" "$output_objdir/$soname.def";
13482 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13483 else
13484 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13485 fi~
13486 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13487 linknames='
13488 # The linker will not automatically build a static lib if we build a DLL.
13489 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13490 enable_shared_with_static_runtimes_CXX=yes
13491 # Don't use ranlib
13492 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13493 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13494 lt_tool_outputfile="@TOOL_OUTPUT@"~
13495 case $lt_outputfile in
13496 *.exe|*.EXE) ;;
13497 *)
13498 lt_outputfile=$lt_outputfile.exe
13499 lt_tool_outputfile=$lt_tool_outputfile.exe
13500 ;;
13501 esac~
13502 func_to_tool_file "$lt_outputfile"~
13503 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13504 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13505 $RM "$lt_outputfile.manifest";
13506 fi'
13507 ;;
13508 *)
13509 # g++
13510 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13511 # as there is no search path for DLLs.
13512 hardcode_libdir_flag_spec_CXX='-L$libdir'
13513 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13514 allow_undefined_flag_CXX=unsupported
13515 always_export_symbols_CXX=no
13516 enable_shared_with_static_runtimes_CXX=yes
13517
13518 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13519 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'
13520 # If the export-symbols file already is a .def file, use it as
13521 # is; otherwise, prepend EXPORTS...
13522 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13523 cp $export_symbols $output_objdir/$soname.def;
13524 else
13525 echo EXPORTS > $output_objdir/$soname.def;
13526 cat $export_symbols >> $output_objdir/$soname.def;
13527 fi~
13528 $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'
13529 else
13530 ld_shlibs_CXX=no
13531 fi
13532 ;;
13533 esac
13534 ;;
13535 darwin* | rhapsody*)
13536
13537
13538 archive_cmds_need_lc_CXX=no
13539 hardcode_direct_CXX=no
13540 hardcode_automatic_CXX=yes
13541 hardcode_shlibpath_var_CXX=unsupported
13542 if test yes = "$lt_cv_ld_force_load"; then
13543 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\"`'
13544
13545 else
13546 whole_archive_flag_spec_CXX=''
13547 fi
13548 link_all_deplibs_CXX=yes
13549 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13550 case $cc_basename in
13551 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13552 *) _lt_dar_can_shared=$GCC ;;
13553 esac
13554 if test yes = "$_lt_dar_can_shared"; then
13555 output_verbose_link_cmd=func_echo_all
13556 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"
13557 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13558 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"
13559 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"
13560 if test yes != "$lt_cv_apple_cc_single_mod"; then
13561 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"
13562 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"
13563 fi
13564
13565 else
13566 ld_shlibs_CXX=no
13567 fi
13568
13569 ;;
13570
13571 os2*)
13572 hardcode_libdir_flag_spec_CXX='-L$libdir'
13573 hardcode_minus_L_CXX=yes
13574 allow_undefined_flag_CXX=unsupported
13575 shrext_cmds=.dll
13576 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13577 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13578 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13579 $ECHO EXPORTS >> $output_objdir/$libname.def~
13580 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13581 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13582 emximp -o $lib $output_objdir/$libname.def'
13583 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13584 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13585 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13586 $ECHO EXPORTS >> $output_objdir/$libname.def~
13587 prefix_cmds="$SED"~
13588 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13589 prefix_cmds="$prefix_cmds -e 1d";
13590 fi~
13591 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13592 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13593 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13594 emximp -o $lib $output_objdir/$libname.def'
13595 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13596 enable_shared_with_static_runtimes_CXX=yes
13597 ;;
13598
13599 dgux*)
13600 case $cc_basename in
13601 ec++*)
13602 # FIXME: insert proper C++ library support
13603 ld_shlibs_CXX=no
13604 ;;
13605 ghcx*)
13606 # Green Hills C++ Compiler
13607 # FIXME: insert proper C++ library support
13608 ld_shlibs_CXX=no
13609 ;;
13610 *)
13611 # FIXME: insert proper C++ library support
13612 ld_shlibs_CXX=no
13613 ;;
13614 esac
13615 ;;
13616
13617 freebsd2.*)
13618 # C++ shared libraries reported to be fairly broken before
13619 # switch to ELF
13620 ld_shlibs_CXX=no
13621 ;;
13622
13623 freebsd-elf*)
13624 archive_cmds_need_lc_CXX=no
13625 ;;
13626
13627 freebsd* | dragonfly*)
13628 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13629 # conventions
13630 ld_shlibs_CXX=yes
13631 ;;
13632
13633 haiku*)
13634 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13635 link_all_deplibs_CXX=yes
13636 ;;
13637
13638 hpux9*)
13639 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13640 hardcode_libdir_separator_CXX=:
13641 export_dynamic_flag_spec_CXX='$wl-E'
13642 hardcode_direct_CXX=yes
13643 hardcode_minus_L_CXX=yes # Not in the search PATH,
13644 # but as the default
13645 # location of the library.
13646
13647 case $cc_basename in
13648 CC*)
13649 # FIXME: insert proper C++ library support
13650 ld_shlibs_CXX=no
13651 ;;
13652 aCC*)
13653 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'
13654 # Commands to make compiler produce verbose output that lists
13655 # what "hidden" libraries, object files and flags are used when
13656 # linking a shared library.
13657 #
13658 # There doesn't appear to be a way to prevent this compiler from
13659 # explicitly linking system object files so we need to strip them
13660 # from the output so that they don't get included in the library
13661 # dependencies.
13662 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"'
13663 ;;
13664 *)
13665 if test yes = "$GXX"; then
13666 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'
13667 else
13668 # FIXME: insert proper C++ library support
13669 ld_shlibs_CXX=no
13670 fi
13671 ;;
13672 esac
13673 ;;
13674
13675 hpux10*|hpux11*)
13676 if test no = "$with_gnu_ld"; then
13677 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13678 hardcode_libdir_separator_CXX=:
13679
13680 case $host_cpu in
13681 hppa*64*|ia64*)
13682 ;;
13683 *)
13684 export_dynamic_flag_spec_CXX='$wl-E'
13685 ;;
13686 esac
13687 fi
13688 case $host_cpu in
13689 hppa*64*|ia64*)
13690 hardcode_direct_CXX=no
13691 hardcode_shlibpath_var_CXX=no
13692 ;;
13693 *)
13694 hardcode_direct_CXX=yes
13695 hardcode_direct_absolute_CXX=yes
13696 hardcode_minus_L_CXX=yes # Not in the search PATH,
13697 # but as the default
13698 # location of the library.
13699 ;;
13700 esac
13701
13702 case $cc_basename in
13703 CC*)
13704 # FIXME: insert proper C++ library support
13705 ld_shlibs_CXX=no
13706 ;;
13707 aCC*)
13708 case $host_cpu in
13709 hppa*64*)
13710 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13711 ;;
13712 ia64*)
13713 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13714 ;;
13715 *)
13716 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13717 ;;
13718 esac
13719 # Commands to make compiler produce verbose output that lists
13720 # what "hidden" libraries, object files and flags are used when
13721 # linking a shared library.
13722 #
13723 # There doesn't appear to be a way to prevent this compiler from
13724 # explicitly linking system object files so we need to strip them
13725 # from the output so that they don't get included in the library
13726 # dependencies.
13727 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"'
13728 ;;
13729 *)
13730 if test yes = "$GXX"; then
13731 if test no = "$with_gnu_ld"; then
13732 case $host_cpu in
13733 hppa*64*)
13734 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13735 ;;
13736 ia64*)
13737 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13738 ;;
13739 *)
13740 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'
13741 ;;
13742 esac
13743 fi
13744 else
13745 # FIXME: insert proper C++ library support
13746 ld_shlibs_CXX=no
13747 fi
13748 ;;
13749 esac
13750 ;;
13751
13752 interix[3-9]*)
13753 hardcode_direct_CXX=no
13754 hardcode_shlibpath_var_CXX=no
13755 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13756 export_dynamic_flag_spec_CXX='$wl-E'
13757 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13758 # Instead, shared libraries are loaded at an image base (0x10000000 by
13759 # default) and relocated if they conflict, which is a slow very memory
13760 # consuming and fragmenting process. To avoid this, we pick a random,
13761 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13762 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13763 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'
13764 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'
13765 ;;
13766 irix5* | irix6*)
13767 case $cc_basename in
13768 CC*)
13769 # SGI C++
13770 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'
13771
13772 # Archives containing C++ object files must be created using
13773 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13774 # necessary to make sure instantiated templates are included
13775 # in the archive.
13776 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13777 ;;
13778 *)
13779 if test yes = "$GXX"; then
13780 if test no = "$with_gnu_ld"; then
13781 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'
13782 else
13783 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'
13784 fi
13785 fi
13786 link_all_deplibs_CXX=yes
13787 ;;
13788 esac
13789 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13790 hardcode_libdir_separator_CXX=:
13791 inherit_rpath_CXX=yes
13792 ;;
13793
13794 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13795 case $cc_basename in
13796 KCC*)
13797 # Kuck and Associates, Inc. (KAI) C++ Compiler
13798
13799 # KCC will only create a shared library if the output file
13800 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13801 # to its proper name (with version) after linking.
13802 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'
13803 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'
13804 # Commands to make compiler produce verbose output that lists
13805 # what "hidden" libraries, object files and flags are used when
13806 # linking a shared library.
13807 #
13808 # There doesn't appear to be a way to prevent this compiler from
13809 # explicitly linking system object files so we need to strip them
13810 # from the output so that they don't get included in the library
13811 # dependencies.
13812 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"'
13813
13814 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13815 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13816
13817 # Archives containing C++ object files must be created using
13818 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13819 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13820 ;;
13821 icpc* | ecpc* )
13822 # Intel C++
13823 with_gnu_ld=yes
13824 # version 8.0 and above of icpc choke on multiply defined symbols
13825 # if we add $predep_objects and $postdep_objects, however 7.1 and
13826 # earlier do not add the objects themselves.
13827 case `$CC -V 2>&1` in
13828 *"Version 7."*)
13829 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13830 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'
13831 ;;
13832 *) # Version 8.0 or newer
13833 tmp_idyn=
13834 case $host_cpu in
13835 ia64*) tmp_idyn=' -i_dynamic';;
13836 esac
13837 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13838 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'
13839 ;;
13840 esac
13841 archive_cmds_need_lc_CXX=no
13842 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13843 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13844 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13845 ;;
13846 pgCC* | pgcpp*)
13847 # Portland Group C++ compiler
13848 case `$CC -V` in
13849 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13850 prelink_cmds_CXX='tpldir=Template.dir~
13851 rm -rf $tpldir~
13852 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13853 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13854 old_archive_cmds_CXX='tpldir=Template.dir~
13855 rm -rf $tpldir~
13856 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13857 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13858 $RANLIB $oldlib'
13859 archive_cmds_CXX='tpldir=Template.dir~
13860 rm -rf $tpldir~
13861 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13862 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13863 archive_expsym_cmds_CXX='tpldir=Template.dir~
13864 rm -rf $tpldir~
13865 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13866 $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'
13867 ;;
13868 *) # Version 6 and above use weak symbols
13869 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13870 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'
13871 ;;
13872 esac
13873
13874 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13875 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13876 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'
13877 ;;
13878 cxx*)
13879 # Compaq C++
13880 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13881 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'
13882
13883 runpath_var=LD_RUN_PATH
13884 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13885 hardcode_libdir_separator_CXX=:
13886
13887 # Commands to make compiler produce verbose output that lists
13888 # what "hidden" libraries, object files and flags are used when
13889 # linking a shared library.
13890 #
13891 # There doesn't appear to be a way to prevent this compiler from
13892 # explicitly linking system object files so we need to strip them
13893 # from the output so that they don't get included in the library
13894 # dependencies.
13895 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'
13896 ;;
13897 xl* | mpixl* | bgxl*)
13898 # IBM XL 8.0 on PPC, with GNU ld
13899 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13900 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13901 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13902 if test yes = "$supports_anon_versioning"; then
13903 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13904 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13905 echo "local: *; };" >> $output_objdir/$libname.ver~
13906 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13907 fi
13908 ;;
13909 *)
13910 case `$CC -V 2>&1 | sed 5q` in
13911 *Sun\ C*)
13912 # Sun C++ 5.9
13913 no_undefined_flag_CXX=' -zdefs'
13914 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13915 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'
13916 hardcode_libdir_flag_spec_CXX='-R$libdir'
13917 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'
13918 compiler_needs_object_CXX=yes
13919
13920 # Not sure whether something based on
13921 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13922 # would be better.
13923 output_verbose_link_cmd='func_echo_all'
13924
13925 # Archives containing C++ object files must be created using
13926 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13927 # necessary to make sure instantiated templates are included
13928 # in the archive.
13929 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13930 ;;
13931 esac
13932 ;;
13933 esac
13934 ;;
13935
13936 lynxos*)
13937 # FIXME: insert proper C++ library support
13938 ld_shlibs_CXX=no
13939 ;;
13940
13941 m88k*)
13942 # FIXME: insert proper C++ library support
13943 ld_shlibs_CXX=no
13944 ;;
13945
13946 mvs*)
13947 case $cc_basename in
13948 cxx*)
13949 # FIXME: insert proper C++ library support
13950 ld_shlibs_CXX=no
13951 ;;
13952 *)
13953 # FIXME: insert proper C++ library support
13954 ld_shlibs_CXX=no
13955 ;;
13956 esac
13957 ;;
13958
13959 netbsd*)
13960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13961 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13962 wlarc=
13963 hardcode_libdir_flag_spec_CXX='-R$libdir'
13964 hardcode_direct_CXX=yes
13965 hardcode_shlibpath_var_CXX=no
13966 fi
13967 # Workaround some broken pre-1.5 toolchains
13968 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13969 ;;
13970
13971 *nto* | *qnx*)
13972 ld_shlibs_CXX=yes
13973 ;;
13974
13975 openbsd* | bitrig*)
13976 if test -f /usr/libexec/ld.so; then
13977 hardcode_direct_CXX=yes
13978 hardcode_shlibpath_var_CXX=no
13979 hardcode_direct_absolute_CXX=yes
13980 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13981 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13983 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13984 export_dynamic_flag_spec_CXX='$wl-E'
13985 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13986 fi
13987 output_verbose_link_cmd=func_echo_all
13988 else
13989 ld_shlibs_CXX=no
13990 fi
13991 ;;
13992
13993 osf3* | osf4* | osf5*)
13994 case $cc_basename in
13995 KCC*)
13996 # Kuck and Associates, Inc. (KAI) C++ Compiler
13997
13998 # KCC will only create a shared library if the output file
13999 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14000 # to its proper name (with version) after linking.
14001 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'
14002
14003 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14004 hardcode_libdir_separator_CXX=:
14005
14006 # Archives containing C++ object files must be created using
14007 # the KAI C++ compiler.
14008 case $host in
14009 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14010 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14011 esac
14012 ;;
14013 RCC*)
14014 # Rational C++ 2.4.1
14015 # FIXME: insert proper C++ library support
14016 ld_shlibs_CXX=no
14017 ;;
14018 cxx*)
14019 case $host in
14020 osf3*)
14021 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14022 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'
14023 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14024 ;;
14025 *)
14026 allow_undefined_flag_CXX=' -expect_unresolved \*'
14027 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'
14028 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14029 echo "-hidden">> $lib.exp~
14030 $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~
14031 $RM $lib.exp'
14032 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14033 ;;
14034 esac
14035
14036 hardcode_libdir_separator_CXX=:
14037
14038 # Commands to make compiler produce verbose output that lists
14039 # what "hidden" libraries, object files and flags are used when
14040 # linking a shared library.
14041 #
14042 # There doesn't appear to be a way to prevent this compiler from
14043 # explicitly linking system object files so we need to strip them
14044 # from the output so that they don't get included in the library
14045 # dependencies.
14046 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"'
14047 ;;
14048 *)
14049 if test yes,no = "$GXX,$with_gnu_ld"; then
14050 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14051 case $host in
14052 osf3*)
14053 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'
14054 ;;
14055 *)
14056 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'
14057 ;;
14058 esac
14059
14060 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14061 hardcode_libdir_separator_CXX=:
14062
14063 # Commands to make compiler produce verbose output that lists
14064 # what "hidden" libraries, object files and flags are used when
14065 # linking a shared library.
14066 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14067
14068 else
14069 # FIXME: insert proper C++ library support
14070 ld_shlibs_CXX=no
14071 fi
14072 ;;
14073 esac
14074 ;;
14075
14076 psos*)
14077 # FIXME: insert proper C++ library support
14078 ld_shlibs_CXX=no
14079 ;;
14080
14081 sunos4*)
14082 case $cc_basename in
14083 CC*)
14084 # Sun C++ 4.x
14085 # FIXME: insert proper C++ library support
14086 ld_shlibs_CXX=no
14087 ;;
14088 lcc*)
14089 # Lucid
14090 # FIXME: insert proper C++ library support
14091 ld_shlibs_CXX=no
14092 ;;
14093 *)
14094 # FIXME: insert proper C++ library support
14095 ld_shlibs_CXX=no
14096 ;;
14097 esac
14098 ;;
14099
14100 solaris*)
14101 case $cc_basename in
14102 CC* | sunCC*)
14103 # Sun C++ 4.2, 5.x and Centerline C++
14104 archive_cmds_need_lc_CXX=yes
14105 no_undefined_flag_CXX=' -zdefs'
14106 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14107 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14108 $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'
14109
14110 hardcode_libdir_flag_spec_CXX='-R$libdir'
14111 hardcode_shlibpath_var_CXX=no
14112 case $host_os in
14113 solaris2.[0-5] | solaris2.[0-5].*) ;;
14114 *)
14115 # The compiler driver will combine and reorder linker options,
14116 # but understands '-z linker_flag'.
14117 # Supported since Solaris 2.6 (maybe 2.5.1?)
14118 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14119 ;;
14120 esac
14121 link_all_deplibs_CXX=yes
14122
14123 output_verbose_link_cmd='func_echo_all'
14124
14125 # Archives containing C++ object files must be created using
14126 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14127 # necessary to make sure instantiated templates are included
14128 # in the archive.
14129 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14130 ;;
14131 gcx*)
14132 # Green Hills C++ Compiler
14133 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14134
14135 # The C++ compiler must be used to create the archive.
14136 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14137 ;;
14138 *)
14139 # GNU C++ compiler with Solaris linker
14140 if test yes,no = "$GXX,$with_gnu_ld"; then
14141 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14142 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14143 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14144 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14145 $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'
14146
14147 # Commands to make compiler produce verbose output that lists
14148 # what "hidden" libraries, object files and flags are used when
14149 # linking a shared library.
14150 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14151 else
14152 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14153 # platform.
14154 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14155 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14156 $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'
14157
14158 # Commands to make compiler produce verbose output that lists
14159 # what "hidden" libraries, object files and flags are used when
14160 # linking a shared library.
14161 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14162 fi
14163
14164 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14165 case $host_os in
14166 solaris2.[0-5] | solaris2.[0-5].*) ;;
14167 *)
14168 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14169 ;;
14170 esac
14171 fi
14172 ;;
14173 esac
14174 ;;
14175
14176 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14177 no_undefined_flag_CXX='$wl-z,text'
14178 archive_cmds_need_lc_CXX=no
14179 hardcode_shlibpath_var_CXX=no
14180 runpath_var='LD_RUN_PATH'
14181
14182 case $cc_basename in
14183 CC*)
14184 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14185 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14186 ;;
14187 *)
14188 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14189 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14190 ;;
14191 esac
14192 ;;
14193
14194 sysv5* | sco3.2v5* | sco5v6*)
14195 # Note: We CANNOT use -z defs as we might desire, because we do not
14196 # link with -lc, and that would cause any symbols used from libc to
14197 # always be unresolved, which means just about no library would
14198 # ever link correctly. If we're not using GNU ld we use -z text
14199 # though, which does catch some bad symbols but isn't as heavy-handed
14200 # as -z defs.
14201 no_undefined_flag_CXX='$wl-z,text'
14202 allow_undefined_flag_CXX='$wl-z,nodefs'
14203 archive_cmds_need_lc_CXX=no
14204 hardcode_shlibpath_var_CXX=no
14205 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14206 hardcode_libdir_separator_CXX=':'
14207 link_all_deplibs_CXX=yes
14208 export_dynamic_flag_spec_CXX='$wl-Bexport'
14209 runpath_var='LD_RUN_PATH'
14210
14211 case $cc_basename in
14212 CC*)
14213 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14214 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14215 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14216 '"$old_archive_cmds_CXX"
14217 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14218 '"$reload_cmds_CXX"
14219 ;;
14220 *)
14221 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14222 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14223 ;;
14224 esac
14225 ;;
14226
14227 tandem*)
14228 case $cc_basename in
14229 NCC*)
14230 # NonStop-UX NCC 3.20
14231 # FIXME: insert proper C++ library support
14232 ld_shlibs_CXX=no
14233 ;;
14234 *)
14235 # FIXME: insert proper C++ library support
14236 ld_shlibs_CXX=no
14237 ;;
14238 esac
14239 ;;
14240
14241 vxworks*)
14242 # FIXME: insert proper C++ library support
14243 ld_shlibs_CXX=no
14244 ;;
14245
14246 *)
14247 # FIXME: insert proper C++ library support
14248 ld_shlibs_CXX=no
14249 ;;
14250 esac
14251
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14253 $as_echo "$ld_shlibs_CXX" >&6; }
14254 test no = "$ld_shlibs_CXX" && can_build_shared=no
14255
14256 GCC_CXX=$GXX
14257 LD_CXX=$LD
14258
14259 ## CAVEAT EMPTOR:
14260 ## There is no encapsulation within the following macros, do not change
14261 ## the running order or otherwise move them around unless you know exactly
14262 ## what you are doing...
14263 # Dependencies to place before and after the object being linked:
14264 predep_objects_CXX=
14265 postdep_objects_CXX=
14266 predeps_CXX=
14267 postdeps_CXX=
14268 compiler_lib_search_path_CXX=
14269
14270 cat > conftest.$ac_ext <<_LT_EOF
14271 class Foo
14272 {
14273 public:
14274 Foo (void) { a = 0; }
14275 private:
14276 int a;
14277 };
14278 _LT_EOF
14279
14280
14281 _lt_libdeps_save_CFLAGS=$CFLAGS
14282 case "$CC $CFLAGS " in #(
14283 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14284 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14285 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14286 esac
14287
14288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14289 (eval $ac_compile) 2>&5
14290 ac_status=$?
14291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14292 test $ac_status = 0; }; then
14293 # Parse the compiler output and extract the necessary
14294 # objects, libraries and library flags.
14295
14296 # Sentinel used to keep track of whether or not we are before
14297 # the conftest object file.
14298 pre_test_object_deps_done=no
14299
14300 for p in `eval "$output_verbose_link_cmd"`; do
14301 case $prev$p in
14302
14303 -L* | -R* | -l*)
14304 # Some compilers place space between "-{L,R}" and the path.
14305 # Remove the space.
14306 if test x-L = "$p" ||
14307 test x-R = "$p"; then
14308 prev=$p
14309 continue
14310 fi
14311
14312 # Expand the sysroot to ease extracting the directories later.
14313 if test -z "$prev"; then
14314 case $p in
14315 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14316 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14317 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14318 esac
14319 fi
14320 case $p in
14321 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14322 esac
14323 if test no = "$pre_test_object_deps_done"; then
14324 case $prev in
14325 -L | -R)
14326 # Internal compiler library paths should come after those
14327 # provided the user. The postdeps already come after the
14328 # user supplied libs so there is no need to process them.
14329 if test -z "$compiler_lib_search_path_CXX"; then
14330 compiler_lib_search_path_CXX=$prev$p
14331 else
14332 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14333 fi
14334 ;;
14335 # The "-l" case would never come before the object being
14336 # linked, so don't bother handling this case.
14337 esac
14338 else
14339 if test -z "$postdeps_CXX"; then
14340 postdeps_CXX=$prev$p
14341 else
14342 postdeps_CXX="${postdeps_CXX} $prev$p"
14343 fi
14344 fi
14345 prev=
14346 ;;
14347
14348 *.lto.$objext) ;; # Ignore GCC LTO objects
14349 *.$objext)
14350 # This assumes that the test object file only shows up
14351 # once in the compiler output.
14352 if test "$p" = "conftest.$objext"; then
14353 pre_test_object_deps_done=yes
14354 continue
14355 fi
14356
14357 if test no = "$pre_test_object_deps_done"; then
14358 if test -z "$predep_objects_CXX"; then
14359 predep_objects_CXX=$p
14360 else
14361 predep_objects_CXX="$predep_objects_CXX $p"
14362 fi
14363 else
14364 if test -z "$postdep_objects_CXX"; then
14365 postdep_objects_CXX=$p
14366 else
14367 postdep_objects_CXX="$postdep_objects_CXX $p"
14368 fi
14369 fi
14370 ;;
14371
14372 *) ;; # Ignore the rest.
14373
14374 esac
14375 done
14376
14377 # Clean up.
14378 rm -f a.out a.exe
14379 else
14380 echo "libtool.m4: error: problem compiling CXX test program"
14381 fi
14382
14383 $RM -f confest.$objext
14384 CFLAGS=$_lt_libdeps_save_CFLAGS
14385
14386 # PORTME: override above test on systems where it is broken
14387 case $host_os in
14388 interix[3-9]*)
14389 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14390 # hack all around it, let's just trust "g++" to DTRT.
14391 predep_objects_CXX=
14392 postdep_objects_CXX=
14393 postdeps_CXX=
14394 ;;
14395 esac
14396
14397
14398 case " $postdeps_CXX " in
14399 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14400 esac
14401 compiler_lib_search_dirs_CXX=
14402 if test -n "${compiler_lib_search_path_CXX}"; then
14403 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14404 fi
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436 lt_prog_compiler_wl_CXX=
14437 lt_prog_compiler_pic_CXX=
14438 lt_prog_compiler_static_CXX=
14439
14440
14441 # C++ specific cases for pic, static, wl, etc.
14442 if test yes = "$GXX"; then
14443 lt_prog_compiler_wl_CXX='-Wl,'
14444 lt_prog_compiler_static_CXX='-static'
14445
14446 case $host_os in
14447 aix*)
14448 # All AIX code is PIC.
14449 if test ia64 = "$host_cpu"; then
14450 # AIX 5 now supports IA64 processor
14451 lt_prog_compiler_static_CXX='-Bstatic'
14452 fi
14453 lt_prog_compiler_pic_CXX='-fPIC'
14454 ;;
14455
14456 amigaos*)
14457 case $host_cpu in
14458 powerpc)
14459 # see comment about AmigaOS4 .so support
14460 lt_prog_compiler_pic_CXX='-fPIC'
14461 ;;
14462 m68k)
14463 # FIXME: we need at least 68020 code to build shared libraries, but
14464 # adding the '-m68020' flag to GCC prevents building anything better,
14465 # like '-m68040'.
14466 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14467 ;;
14468 esac
14469 ;;
14470
14471 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14472 # PIC is the default for these OSes.
14473 ;;
14474 mingw* | cygwin* | os2* | pw32* | cegcc*)
14475 # This hack is so that the source file can tell whether it is being
14476 # built for inclusion in a dll (and should export symbols for example).
14477 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14478 # (--disable-auto-import) libraries
14479 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14480 case $host_os in
14481 os2*)
14482 lt_prog_compiler_static_CXX='$wl-static'
14483 ;;
14484 esac
14485 ;;
14486 darwin* | rhapsody*)
14487 # PIC is the default on this platform
14488 # Common symbols not allowed in MH_DYLIB files
14489 lt_prog_compiler_pic_CXX='-fno-common'
14490 ;;
14491 *djgpp*)
14492 # DJGPP does not support shared libraries at all
14493 lt_prog_compiler_pic_CXX=
14494 ;;
14495 haiku*)
14496 # PIC is the default for Haiku.
14497 # The "-static" flag exists, but is broken.
14498 lt_prog_compiler_static_CXX=
14499 ;;
14500 interix[3-9]*)
14501 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14502 # Instead, we relocate shared libraries at runtime.
14503 ;;
14504 sysv4*MP*)
14505 if test -d /usr/nec; then
14506 lt_prog_compiler_pic_CXX=-Kconform_pic
14507 fi
14508 ;;
14509 hpux*)
14510 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14511 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14512 # sets the default TLS model and affects inlining.
14513 case $host_cpu in
14514 hppa*64*)
14515 ;;
14516 *)
14517 lt_prog_compiler_pic_CXX='-fPIC'
14518 ;;
14519 esac
14520 ;;
14521 *qnx* | *nto*)
14522 # QNX uses GNU C++, but need to define -shared option too, otherwise
14523 # it will coredump.
14524 lt_prog_compiler_pic_CXX='-fPIC -shared'
14525 ;;
14526 *)
14527 lt_prog_compiler_pic_CXX='-fPIC'
14528 ;;
14529 esac
14530 else
14531 case $host_os in
14532 aix[4-9]*)
14533 # All AIX code is PIC.
14534 if test ia64 = "$host_cpu"; then
14535 # AIX 5 now supports IA64 processor
14536 lt_prog_compiler_static_CXX='-Bstatic'
14537 else
14538 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14539 fi
14540 ;;
14541 chorus*)
14542 case $cc_basename in
14543 cxch68*)
14544 # Green Hills C++ Compiler
14545 # _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"
14546 ;;
14547 esac
14548 ;;
14549 mingw* | cygwin* | os2* | pw32* | cegcc*)
14550 # This hack is so that the source file can tell whether it is being
14551 # built for inclusion in a dll (and should export symbols for example).
14552 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14553 ;;
14554 dgux*)
14555 case $cc_basename in
14556 ec++*)
14557 lt_prog_compiler_pic_CXX='-KPIC'
14558 ;;
14559 ghcx*)
14560 # Green Hills C++ Compiler
14561 lt_prog_compiler_pic_CXX='-pic'
14562 ;;
14563 *)
14564 ;;
14565 esac
14566 ;;
14567 freebsd* | dragonfly*)
14568 # FreeBSD uses GNU C++
14569 ;;
14570 hpux9* | hpux10* | hpux11*)
14571 case $cc_basename in
14572 CC*)
14573 lt_prog_compiler_wl_CXX='-Wl,'
14574 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14575 if test ia64 != "$host_cpu"; then
14576 lt_prog_compiler_pic_CXX='+Z'
14577 fi
14578 ;;
14579 aCC*)
14580 lt_prog_compiler_wl_CXX='-Wl,'
14581 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14582 case $host_cpu in
14583 hppa*64*|ia64*)
14584 # +Z the default
14585 ;;
14586 *)
14587 lt_prog_compiler_pic_CXX='+Z'
14588 ;;
14589 esac
14590 ;;
14591 *)
14592 ;;
14593 esac
14594 ;;
14595 interix*)
14596 # This is c89, which is MS Visual C++ (no shared libs)
14597 # Anyone wants to do a port?
14598 ;;
14599 irix5* | irix6* | nonstopux*)
14600 case $cc_basename in
14601 CC*)
14602 lt_prog_compiler_wl_CXX='-Wl,'
14603 lt_prog_compiler_static_CXX='-non_shared'
14604 # CC pic flag -KPIC is the default.
14605 ;;
14606 *)
14607 ;;
14608 esac
14609 ;;
14610 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14611 case $cc_basename in
14612 KCC*)
14613 # KAI C++ Compiler
14614 lt_prog_compiler_wl_CXX='--backend -Wl,'
14615 lt_prog_compiler_pic_CXX='-fPIC'
14616 ;;
14617 ecpc* )
14618 # old Intel C++ for x86_64, which still supported -KPIC.
14619 lt_prog_compiler_wl_CXX='-Wl,'
14620 lt_prog_compiler_pic_CXX='-KPIC'
14621 lt_prog_compiler_static_CXX='-static'
14622 ;;
14623 icpc* )
14624 # Intel C++, used to be incompatible with GCC.
14625 # ICC 10 doesn't accept -KPIC any more.
14626 lt_prog_compiler_wl_CXX='-Wl,'
14627 lt_prog_compiler_pic_CXX='-fPIC'
14628 lt_prog_compiler_static_CXX='-static'
14629 ;;
14630 pgCC* | pgcpp*)
14631 # Portland Group C++ compiler
14632 lt_prog_compiler_wl_CXX='-Wl,'
14633 lt_prog_compiler_pic_CXX='-fpic'
14634 lt_prog_compiler_static_CXX='-Bstatic'
14635 ;;
14636 cxx*)
14637 # Compaq C++
14638 # Make sure the PIC flag is empty. It appears that all Alpha
14639 # Linux and Compaq Tru64 Unix objects are PIC.
14640 lt_prog_compiler_pic_CXX=
14641 lt_prog_compiler_static_CXX='-non_shared'
14642 ;;
14643 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14644 # IBM XL 8.0, 9.0 on PPC and BlueGene
14645 lt_prog_compiler_wl_CXX='-Wl,'
14646 lt_prog_compiler_pic_CXX='-qpic'
14647 lt_prog_compiler_static_CXX='-qstaticlink'
14648 ;;
14649 *)
14650 case `$CC -V 2>&1 | sed 5q` in
14651 *Sun\ C*)
14652 # Sun C++ 5.9
14653 lt_prog_compiler_pic_CXX='-KPIC'
14654 lt_prog_compiler_static_CXX='-Bstatic'
14655 lt_prog_compiler_wl_CXX='-Qoption ld '
14656 ;;
14657 esac
14658 ;;
14659 esac
14660 ;;
14661 lynxos*)
14662 ;;
14663 m88k*)
14664 ;;
14665 mvs*)
14666 case $cc_basename in
14667 cxx*)
14668 lt_prog_compiler_pic_CXX='-W c,exportall'
14669 ;;
14670 *)
14671 ;;
14672 esac
14673 ;;
14674 netbsd* | netbsdelf*-gnu)
14675 ;;
14676 *qnx* | *nto*)
14677 # QNX uses GNU C++, but need to define -shared option too, otherwise
14678 # it will coredump.
14679 lt_prog_compiler_pic_CXX='-fPIC -shared'
14680 ;;
14681 osf3* | osf4* | osf5*)
14682 case $cc_basename in
14683 KCC*)
14684 lt_prog_compiler_wl_CXX='--backend -Wl,'
14685 ;;
14686 RCC*)
14687 # Rational C++ 2.4.1
14688 lt_prog_compiler_pic_CXX='-pic'
14689 ;;
14690 cxx*)
14691 # Digital/Compaq C++
14692 lt_prog_compiler_wl_CXX='-Wl,'
14693 # Make sure the PIC flag is empty. It appears that all Alpha
14694 # Linux and Compaq Tru64 Unix objects are PIC.
14695 lt_prog_compiler_pic_CXX=
14696 lt_prog_compiler_static_CXX='-non_shared'
14697 ;;
14698 *)
14699 ;;
14700 esac
14701 ;;
14702 psos*)
14703 ;;
14704 solaris*)
14705 case $cc_basename in
14706 CC* | sunCC*)
14707 # Sun C++ 4.2, 5.x and Centerline C++
14708 lt_prog_compiler_pic_CXX='-KPIC'
14709 lt_prog_compiler_static_CXX='-Bstatic'
14710 lt_prog_compiler_wl_CXX='-Qoption ld '
14711 ;;
14712 gcx*)
14713 # Green Hills C++ Compiler
14714 lt_prog_compiler_pic_CXX='-PIC'
14715 ;;
14716 *)
14717 ;;
14718 esac
14719 ;;
14720 sunos4*)
14721 case $cc_basename in
14722 CC*)
14723 # Sun C++ 4.x
14724 lt_prog_compiler_pic_CXX='-pic'
14725 lt_prog_compiler_static_CXX='-Bstatic'
14726 ;;
14727 lcc*)
14728 # Lucid
14729 lt_prog_compiler_pic_CXX='-pic'
14730 ;;
14731 *)
14732 ;;
14733 esac
14734 ;;
14735 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14736 case $cc_basename in
14737 CC*)
14738 lt_prog_compiler_wl_CXX='-Wl,'
14739 lt_prog_compiler_pic_CXX='-KPIC'
14740 lt_prog_compiler_static_CXX='-Bstatic'
14741 ;;
14742 esac
14743 ;;
14744 tandem*)
14745 case $cc_basename in
14746 NCC*)
14747 # NonStop-UX NCC 3.20
14748 lt_prog_compiler_pic_CXX='-KPIC'
14749 ;;
14750 *)
14751 ;;
14752 esac
14753 ;;
14754 vxworks*)
14755 ;;
14756 *)
14757 lt_prog_compiler_can_build_shared_CXX=no
14758 ;;
14759 esac
14760 fi
14761
14762 case $host_os in
14763 # For platforms that do not support PIC, -DPIC is meaningless:
14764 *djgpp*)
14765 lt_prog_compiler_pic_CXX=
14766 ;;
14767 *)
14768 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14769 ;;
14770 esac
14771
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14773 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14774 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14775 $as_echo_n "(cached) " >&6
14776 else
14777 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14778 fi
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14780 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14781 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14782
14783 #
14784 # Check to make sure the PIC flag actually works.
14785 #
14786 if test -n "$lt_prog_compiler_pic_CXX"; then
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14788 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14789 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14790 $as_echo_n "(cached) " >&6
14791 else
14792 lt_cv_prog_compiler_pic_works_CXX=no
14793 ac_outfile=conftest.$ac_objext
14794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14795 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14796 # Insert the option either (1) after the last *FLAGS variable, or
14797 # (2) before a word containing "conftest.", or (3) at the end.
14798 # Note that $ac_compile itself does not contain backslashes and begins
14799 # with a dollar sign (not a hyphen), so the echo should work correctly.
14800 # The option is referenced via a variable to avoid confusing sed.
14801 lt_compile=`echo "$ac_compile" | $SED \
14802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14804 -e 's:$: $lt_compiler_flag:'`
14805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14806 (eval "$lt_compile" 2>conftest.err)
14807 ac_status=$?
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 if (exit $ac_status) && test -s "$ac_outfile"; then
14811 # The compiler can only warn and ignore the option if not recognized
14812 # So say no if there are warnings other than the usual output.
14813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14816 lt_cv_prog_compiler_pic_works_CXX=yes
14817 fi
14818 fi
14819 $RM conftest*
14820
14821 fi
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14823 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14824
14825 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14826 case $lt_prog_compiler_pic_CXX in
14827 "" | " "*) ;;
14828 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14829 esac
14830 else
14831 lt_prog_compiler_pic_CXX=
14832 lt_prog_compiler_can_build_shared_CXX=no
14833 fi
14834
14835 fi
14836
14837
14838
14839
14840
14841 #
14842 # Check to make sure the static flag actually works.
14843 #
14844 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14846 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14847 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14848 $as_echo_n "(cached) " >&6
14849 else
14850 lt_cv_prog_compiler_static_works_CXX=no
14851 save_LDFLAGS=$LDFLAGS
14852 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14853 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14854 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14855 # The linker can only warn and ignore the option if not recognized
14856 # So say no if there are warnings
14857 if test -s conftest.err; then
14858 # Append any errors to the config.log.
14859 cat conftest.err 1>&5
14860 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14862 if diff conftest.exp conftest.er2 >/dev/null; then
14863 lt_cv_prog_compiler_static_works_CXX=yes
14864 fi
14865 else
14866 lt_cv_prog_compiler_static_works_CXX=yes
14867 fi
14868 fi
14869 $RM -r conftest*
14870 LDFLAGS=$save_LDFLAGS
14871
14872 fi
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14874 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14875
14876 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14877 :
14878 else
14879 lt_prog_compiler_static_CXX=
14880 fi
14881
14882
14883
14884
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14886 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14887 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14888 $as_echo_n "(cached) " >&6
14889 else
14890 lt_cv_prog_compiler_c_o_CXX=no
14891 $RM -r conftest 2>/dev/null
14892 mkdir conftest
14893 cd conftest
14894 mkdir out
14895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14896
14897 lt_compiler_flag="-o out/conftest2.$ac_objext"
14898 # Insert the option either (1) after the last *FLAGS variable, or
14899 # (2) before a word containing "conftest.", or (3) at the end.
14900 # Note that $ac_compile itself does not contain backslashes and begins
14901 # with a dollar sign (not a hyphen), so the echo should work correctly.
14902 lt_compile=`echo "$ac_compile" | $SED \
14903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14905 -e 's:$: $lt_compiler_flag:'`
14906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14907 (eval "$lt_compile" 2>out/conftest.err)
14908 ac_status=$?
14909 cat out/conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14912 then
14913 # The compiler can only warn and ignore the option if not recognized
14914 # So say no if there are warnings
14915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14916 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14917 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14918 lt_cv_prog_compiler_c_o_CXX=yes
14919 fi
14920 fi
14921 chmod u+w . 2>&5
14922 $RM conftest*
14923 # SGI C++ compiler will create directory out/ii_files/ for
14924 # template instantiation
14925 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14926 $RM out/* && rmdir out
14927 cd ..
14928 $RM -r conftest
14929 $RM conftest*
14930
14931 fi
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14933 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14934
14935
14936
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14938 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14939 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14940 $as_echo_n "(cached) " >&6
14941 else
14942 lt_cv_prog_compiler_c_o_CXX=no
14943 $RM -r conftest 2>/dev/null
14944 mkdir conftest
14945 cd conftest
14946 mkdir out
14947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14948
14949 lt_compiler_flag="-o out/conftest2.$ac_objext"
14950 # Insert the option either (1) after the last *FLAGS variable, or
14951 # (2) before a word containing "conftest.", or (3) at the end.
14952 # Note that $ac_compile itself does not contain backslashes and begins
14953 # with a dollar sign (not a hyphen), so the echo should work correctly.
14954 lt_compile=`echo "$ac_compile" | $SED \
14955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14957 -e 's:$: $lt_compiler_flag:'`
14958 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14959 (eval "$lt_compile" 2>out/conftest.err)
14960 ac_status=$?
14961 cat out/conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14964 then
14965 # The compiler can only warn and ignore the option if not recognized
14966 # So say no if there are warnings
14967 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14968 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14969 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14970 lt_cv_prog_compiler_c_o_CXX=yes
14971 fi
14972 fi
14973 chmod u+w . 2>&5
14974 $RM conftest*
14975 # SGI C++ compiler will create directory out/ii_files/ for
14976 # template instantiation
14977 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14978 $RM out/* && rmdir out
14979 cd ..
14980 $RM -r conftest
14981 $RM conftest*
14982
14983 fi
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14985 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14986
14987
14988
14989
14990 hard_links=nottested
14991 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14992 # do not overwrite the value of need_locks provided by the user
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14994 $as_echo_n "checking if we can lock with hard links... " >&6; }
14995 hard_links=yes
14996 $RM conftest*
14997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14998 touch conftest.a
14999 ln conftest.a conftest.b 2>&5 || hard_links=no
15000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15002 $as_echo "$hard_links" >&6; }
15003 if test no = "$hard_links"; then
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15005 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15006 need_locks=warn
15007 fi
15008 else
15009 need_locks=no
15010 fi
15011
15012
15013
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15015 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15016
15017 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15018 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15019 case $host_os in
15020 aix[4-9]*)
15021 # If we're using GNU nm, then we don't want the "-C" option.
15022 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15023 # Without the "-l" option, or with the "-B" option, AIX nm treats
15024 # weak defined symbols like other global defined symbols, whereas
15025 # GNU nm marks them as "W".
15026 # While the 'weak' keyword is ignored in the Export File, we need
15027 # it in the Import File for the 'aix-soname' feature, so we have
15028 # to replace the "-B" option with "-P" for AIX nm.
15029 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15030 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'
15031 else
15032 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15033 fi
15034 ;;
15035 pw32*)
15036 export_symbols_cmds_CXX=$ltdll_cmds
15037 ;;
15038 cygwin* | mingw* | cegcc*)
15039 case $cc_basename in
15040 cl*)
15041 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15042 ;;
15043 *)
15044 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'
15045 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15046 ;;
15047 esac
15048 ;;
15049 linux* | k*bsd*-gnu | gnu*)
15050 link_all_deplibs_CXX=no
15051 ;;
15052 *)
15053 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15054 ;;
15055 esac
15056
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15058 $as_echo "$ld_shlibs_CXX" >&6; }
15059 test no = "$ld_shlibs_CXX" && can_build_shared=no
15060
15061 with_gnu_ld_CXX=$with_gnu_ld
15062
15063
15064
15065
15066
15067
15068 #
15069 # Do we need to explicitly link libc?
15070 #
15071 case "x$archive_cmds_need_lc_CXX" in
15072 x|xyes)
15073 # Assume -lc should be added
15074 archive_cmds_need_lc_CXX=yes
15075
15076 if test yes,yes = "$GCC,$enable_shared"; then
15077 case $archive_cmds_CXX in
15078 *'~'*)
15079 # FIXME: we may have to deal with multi-command sequences.
15080 ;;
15081 '$CC '*)
15082 # Test whether the compiler implicitly links with -lc since on some
15083 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15084 # to ld, don't add -lc before -lgcc.
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15086 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15087 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15088 $as_echo_n "(cached) " >&6
15089 else
15090 $RM conftest*
15091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15092
15093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15094 (eval $ac_compile) 2>&5
15095 ac_status=$?
15096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15097 test $ac_status = 0; } 2>conftest.err; then
15098 soname=conftest
15099 lib=conftest
15100 libobjs=conftest.$ac_objext
15101 deplibs=
15102 wl=$lt_prog_compiler_wl_CXX
15103 pic_flag=$lt_prog_compiler_pic_CXX
15104 compiler_flags=-v
15105 linker_flags=-v
15106 verstring=
15107 output_objdir=.
15108 libname=conftest
15109 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15110 allow_undefined_flag_CXX=
15111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15112 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15113 ac_status=$?
15114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15115 test $ac_status = 0; }
15116 then
15117 lt_cv_archive_cmds_need_lc_CXX=no
15118 else
15119 lt_cv_archive_cmds_need_lc_CXX=yes
15120 fi
15121 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15122 else
15123 cat conftest.err 1>&5
15124 fi
15125 $RM conftest*
15126
15127 fi
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15129 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15130 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15131 ;;
15132 esac
15133 fi
15134 ;;
15135 esac
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15199 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15200
15201 library_names_spec=
15202 libname_spec='lib$name'
15203 soname_spec=
15204 shrext_cmds=.so
15205 postinstall_cmds=
15206 postuninstall_cmds=
15207 finish_cmds=
15208 finish_eval=
15209 shlibpath_var=
15210 shlibpath_overrides_runpath=unknown
15211 version_type=none
15212 dynamic_linker="$host_os ld.so"
15213 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15214 need_lib_prefix=unknown
15215 hardcode_into_libs=no
15216
15217 # when you set need_version to no, make sure it does not cause -set_version
15218 # flags to be left without arguments
15219 need_version=unknown
15220
15221
15222
15223 case $host_os in
15224 aix3*)
15225 version_type=linux # correct to gnu/linux during the next big refactor
15226 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15227 shlibpath_var=LIBPATH
15228
15229 # AIX 3 has no versioning support, so we append a major version to the name.
15230 soname_spec='$libname$release$shared_ext$major'
15231 ;;
15232
15233 aix[4-9]*)
15234 version_type=linux # correct to gnu/linux during the next big refactor
15235 need_lib_prefix=no
15236 need_version=no
15237 hardcode_into_libs=yes
15238 if test ia64 = "$host_cpu"; then
15239 # AIX 5 supports IA64
15240 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 else
15243 # With GCC up to 2.95.x, collect2 would create an import file
15244 # for dependence libraries. The import file would start with
15245 # the line '#! .'. This would cause the generated library to
15246 # depend on '.', always an invalid library. This was fixed in
15247 # development snapshots of GCC prior to 3.0.
15248 case $host_os in
15249 aix4 | aix4.[01] | aix4.[01].*)
15250 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15251 echo ' yes '
15252 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15253 :
15254 else
15255 can_build_shared=no
15256 fi
15257 ;;
15258 esac
15259 # Using Import Files as archive members, it is possible to support
15260 # filename-based versioning of shared library archives on AIX. While
15261 # this would work for both with and without runtime linking, it will
15262 # prevent static linking of such archives. So we do filename-based
15263 # shared library versioning with .so extension only, which is used
15264 # when both runtime linking and shared linking is enabled.
15265 # Unfortunately, runtime linking may impact performance, so we do
15266 # not want this to be the default eventually. Also, we use the
15267 # versioned .so libs for executables only if there is the -brtl
15268 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15269 # To allow for filename-based versioning support, we need to create
15270 # libNAME.so.V as an archive file, containing:
15271 # *) an Import File, referring to the versioned filename of the
15272 # archive as well as the shared archive member, telling the
15273 # bitwidth (32 or 64) of that shared object, and providing the
15274 # list of exported symbols of that shared object, eventually
15275 # decorated with the 'weak' keyword
15276 # *) the shared object with the F_LOADONLY flag set, to really avoid
15277 # it being seen by the linker.
15278 # At run time we better use the real file rather than another symlink,
15279 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15280
15281 case $with_aix_soname,$aix_use_runtimelinking in
15282 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15283 # soname into executable. Probably we can add versioning support to
15284 # collect2, so additional links can be useful in future.
15285 aix,yes) # traditional libtool
15286 dynamic_linker='AIX unversionable lib.so'
15287 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15288 # instead of lib<name>.a to let people know that these are not
15289 # typical AIX shared libraries.
15290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15291 ;;
15292 aix,no) # traditional AIX only
15293 dynamic_linker='AIX lib.a(lib.so.V)'
15294 # We preserve .a as extension for shared libraries through AIX4.2
15295 # and later when we are not doing run time linking.
15296 library_names_spec='$libname$release.a $libname.a'
15297 soname_spec='$libname$release$shared_ext$major'
15298 ;;
15299 svr4,*) # full svr4 only
15300 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15301 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15302 # We do not specify a path in Import Files, so LIBPATH fires.
15303 shlibpath_overrides_runpath=yes
15304 ;;
15305 *,yes) # both, prefer svr4
15306 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15307 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15308 # unpreferred sharedlib libNAME.a needs extra handling
15309 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"'
15310 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"'
15311 # We do not specify a path in Import Files, so LIBPATH fires.
15312 shlibpath_overrides_runpath=yes
15313 ;;
15314 *,no) # both, prefer aix
15315 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15316 library_names_spec='$libname$release.a $libname.a'
15317 soname_spec='$libname$release$shared_ext$major'
15318 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15319 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)'
15320 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"'
15321 ;;
15322 esac
15323 shlibpath_var=LIBPATH
15324 fi
15325 ;;
15326
15327 amigaos*)
15328 case $host_cpu in
15329 powerpc)
15330 # Since July 2007 AmigaOS4 officially supports .so libraries.
15331 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15333 ;;
15334 m68k)
15335 library_names_spec='$libname.ixlibrary $libname.a'
15336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15337 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'
15338 ;;
15339 esac
15340 ;;
15341
15342 beos*)
15343 library_names_spec='$libname$shared_ext'
15344 dynamic_linker="$host_os ld.so"
15345 shlibpath_var=LIBRARY_PATH
15346 ;;
15347
15348 bsdi[45]*)
15349 version_type=linux # correct to gnu/linux during the next big refactor
15350 need_version=no
15351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15352 soname_spec='$libname$release$shared_ext$major'
15353 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15356 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15357 # the default ld.so.conf also contains /usr/contrib/lib and
15358 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15359 # libtool to hard-code these into programs
15360 ;;
15361
15362 cygwin* | mingw* | pw32* | cegcc*)
15363 version_type=windows
15364 shrext_cmds=.dll
15365 need_version=no
15366 need_lib_prefix=no
15367
15368 case $GCC,$cc_basename in
15369 yes,*)
15370 # gcc
15371 library_names_spec='$libname.dll.a'
15372 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15373 postinstall_cmds='base_file=`basename \$file`~
15374 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15375 dldir=$destdir/`dirname \$dlpath`~
15376 test -d \$dldir || mkdir -p \$dldir~
15377 $install_prog $dir/$dlname \$dldir/$dlname~
15378 chmod a+x \$dldir/$dlname~
15379 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15380 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15381 fi'
15382 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15383 dlpath=$dir/\$dldll~
15384 $RM \$dlpath'
15385 shlibpath_overrides_runpath=yes
15386
15387 case $host_os in
15388 cygwin*)
15389 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15390 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15391
15392 ;;
15393 mingw* | cegcc*)
15394 # MinGW DLLs use traditional 'lib' prefix
15395 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15396 ;;
15397 pw32*)
15398 # pw32 DLLs use 'pw' prefix rather than 'lib'
15399 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15400 ;;
15401 esac
15402 dynamic_linker='Win32 ld.exe'
15403 ;;
15404
15405 *,cl*)
15406 # Native MSVC
15407 libname_spec='$name'
15408 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15409 library_names_spec='$libname.dll.lib'
15410
15411 case $build_os in
15412 mingw*)
15413 sys_lib_search_path_spec=
15414 lt_save_ifs=$IFS
15415 IFS=';'
15416 for lt_path in $LIB
15417 do
15418 IFS=$lt_save_ifs
15419 # Let DOS variable expansion print the short 8.3 style file name.
15420 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15421 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15422 done
15423 IFS=$lt_save_ifs
15424 # Convert to MSYS style.
15425 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15426 ;;
15427 cygwin*)
15428 # Convert to unix form, then to dos form, then back to unix form
15429 # but this time dos style (no spaces!) so that the unix form looks
15430 # like /cygdrive/c/PROGRA~1:/cygdr...
15431 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15432 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15433 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15434 ;;
15435 *)
15436 sys_lib_search_path_spec=$LIB
15437 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15438 # It is most probably a Windows format PATH.
15439 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15440 else
15441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15442 fi
15443 # FIXME: find the short name or the path components, as spaces are
15444 # common. (e.g. "Program Files" -> "PROGRA~1")
15445 ;;
15446 esac
15447
15448 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15449 postinstall_cmds='base_file=`basename \$file`~
15450 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15451 dldir=$destdir/`dirname \$dlpath`~
15452 test -d \$dldir || mkdir -p \$dldir~
15453 $install_prog $dir/$dlname \$dldir/$dlname'
15454 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15455 dlpath=$dir/\$dldll~
15456 $RM \$dlpath'
15457 shlibpath_overrides_runpath=yes
15458 dynamic_linker='Win32 link.exe'
15459 ;;
15460
15461 *)
15462 # Assume MSVC wrapper
15463 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15464 dynamic_linker='Win32 ld.exe'
15465 ;;
15466 esac
15467 # FIXME: first we should search . and the directory the executable is in
15468 shlibpath_var=PATH
15469 ;;
15470
15471 darwin* | rhapsody*)
15472 dynamic_linker="$host_os dyld"
15473 version_type=darwin
15474 need_lib_prefix=no
15475 need_version=no
15476 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15477 soname_spec='$libname$release$major$shared_ext'
15478 shlibpath_overrides_runpath=yes
15479 shlibpath_var=DYLD_LIBRARY_PATH
15480 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15481
15482 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15483 ;;
15484
15485 dgux*)
15486 version_type=linux # correct to gnu/linux during the next big refactor
15487 need_lib_prefix=no
15488 need_version=no
15489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15490 soname_spec='$libname$release$shared_ext$major'
15491 shlibpath_var=LD_LIBRARY_PATH
15492 ;;
15493
15494 freebsd* | dragonfly*)
15495 # DragonFly does not have aout. When/if they implement a new
15496 # versioning mechanism, adjust this.
15497 if test -x /usr/bin/objformat; then
15498 objformat=`/usr/bin/objformat`
15499 else
15500 case $host_os in
15501 freebsd[23].*) objformat=aout ;;
15502 *) objformat=elf ;;
15503 esac
15504 fi
15505 version_type=freebsd-$objformat
15506 case $version_type in
15507 freebsd-elf*)
15508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15509 soname_spec='$libname$release$shared_ext$major'
15510 need_version=no
15511 need_lib_prefix=no
15512 ;;
15513 freebsd-*)
15514 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15515 need_version=yes
15516 ;;
15517 esac
15518 shlibpath_var=LD_LIBRARY_PATH
15519 case $host_os in
15520 freebsd2.*)
15521 shlibpath_overrides_runpath=yes
15522 ;;
15523 freebsd3.[01]* | freebsdelf3.[01]*)
15524 shlibpath_overrides_runpath=yes
15525 hardcode_into_libs=yes
15526 ;;
15527 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15528 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15529 shlibpath_overrides_runpath=no
15530 hardcode_into_libs=yes
15531 ;;
15532 *) # from 4.6 on, and DragonFly
15533 shlibpath_overrides_runpath=yes
15534 hardcode_into_libs=yes
15535 ;;
15536 esac
15537 ;;
15538
15539 haiku*)
15540 version_type=linux # correct to gnu/linux during the next big refactor
15541 need_lib_prefix=no
15542 need_version=no
15543 dynamic_linker="$host_os runtime_loader"
15544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15545 soname_spec='$libname$release$shared_ext$major'
15546 shlibpath_var=LIBRARY_PATH
15547 shlibpath_overrides_runpath=no
15548 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15549 hardcode_into_libs=yes
15550 ;;
15551
15552 hpux9* | hpux10* | hpux11*)
15553 # Give a soname corresponding to the major version so that dld.sl refuses to
15554 # link against other versions.
15555 version_type=sunos
15556 need_lib_prefix=no
15557 need_version=no
15558 case $host_cpu in
15559 ia64*)
15560 shrext_cmds='.so'
15561 hardcode_into_libs=yes
15562 dynamic_linker="$host_os dld.so"
15563 shlibpath_var=LD_LIBRARY_PATH
15564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15566 soname_spec='$libname$release$shared_ext$major'
15567 if test 32 = "$HPUX_IA64_MODE"; then
15568 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15569 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15570 else
15571 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15572 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15573 fi
15574 ;;
15575 hppa*64*)
15576 shrext_cmds='.sl'
15577 hardcode_into_libs=yes
15578 dynamic_linker="$host_os dld.sl"
15579 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15582 soname_spec='$libname$release$shared_ext$major'
15583 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15585 ;;
15586 *)
15587 shrext_cmds='.sl'
15588 dynamic_linker="$host_os dld.sl"
15589 shlibpath_var=SHLIB_PATH
15590 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15592 soname_spec='$libname$release$shared_ext$major'
15593 ;;
15594 esac
15595 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15596 postinstall_cmds='chmod 555 $lib'
15597 # or fails outright, so override atomically:
15598 install_override_mode=555
15599 ;;
15600
15601 interix[3-9]*)
15602 version_type=linux # correct to gnu/linux during the next big refactor
15603 need_lib_prefix=no
15604 need_version=no
15605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15606 soname_spec='$libname$release$shared_ext$major'
15607 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15608 shlibpath_var=LD_LIBRARY_PATH
15609 shlibpath_overrides_runpath=no
15610 hardcode_into_libs=yes
15611 ;;
15612
15613 irix5* | irix6* | nonstopux*)
15614 case $host_os in
15615 nonstopux*) version_type=nonstopux ;;
15616 *)
15617 if test yes = "$lt_cv_prog_gnu_ld"; then
15618 version_type=linux # correct to gnu/linux during the next big refactor
15619 else
15620 version_type=irix
15621 fi ;;
15622 esac
15623 need_lib_prefix=no
15624 need_version=no
15625 soname_spec='$libname$release$shared_ext$major'
15626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15627 case $host_os in
15628 irix5* | nonstopux*)
15629 libsuff= shlibsuff=
15630 ;;
15631 *)
15632 case $LD in # libtool.m4 will add one of these switches to LD
15633 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15634 libsuff= shlibsuff= libmagic=32-bit;;
15635 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15636 libsuff=32 shlibsuff=N32 libmagic=N32;;
15637 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15638 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15639 *) libsuff= shlibsuff= libmagic=never-match;;
15640 esac
15641 ;;
15642 esac
15643 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15644 shlibpath_overrides_runpath=no
15645 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15646 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15647 hardcode_into_libs=yes
15648 ;;
15649
15650 # No shared lib support for Linux oldld, aout, or coff.
15651 linux*oldld* | linux*aout* | linux*coff*)
15652 dynamic_linker=no
15653 ;;
15654
15655 linux*android*)
15656 version_type=none # Android doesn't support versioned libraries.
15657 need_lib_prefix=no
15658 need_version=no
15659 library_names_spec='$libname$release$shared_ext'
15660 soname_spec='$libname$release$shared_ext'
15661 finish_cmds=
15662 shlibpath_var=LD_LIBRARY_PATH
15663 shlibpath_overrides_runpath=yes
15664
15665 # This implies no fast_install, which is unacceptable.
15666 # Some rework will be needed to allow for fast_install
15667 # before this can be enabled.
15668 hardcode_into_libs=yes
15669
15670 dynamic_linker='Android linker'
15671 # Don't embed -rpath directories since the linker doesn't support them.
15672 hardcode_libdir_flag_spec_CXX='-L$libdir'
15673 ;;
15674
15675 # This must be glibc/ELF.
15676 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15677 version_type=linux # correct to gnu/linux during the next big refactor
15678 need_lib_prefix=no
15679 need_version=no
15680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15681 soname_spec='$libname$release$shared_ext$major'
15682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 shlibpath_overrides_runpath=no
15685
15686 # Some binutils ld are patched to set DT_RUNPATH
15687 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15688 $as_echo_n "(cached) " >&6
15689 else
15690 lt_cv_shlibpath_overrides_runpath=no
15691 save_LDFLAGS=$LDFLAGS
15692 save_libdir=$libdir
15693 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15694 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h. */
15697
15698 int
15699 main ()
15700 {
15701
15702 ;
15703 return 0;
15704 }
15705 _ACEOF
15706 if ac_fn_cxx_try_link "$LINENO"; then :
15707 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15708 lt_cv_shlibpath_overrides_runpath=yes
15709 fi
15710 fi
15711 rm -f core conftest.err conftest.$ac_objext \
15712 conftest$ac_exeext conftest.$ac_ext
15713 LDFLAGS=$save_LDFLAGS
15714 libdir=$save_libdir
15715
15716 fi
15717
15718 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15719
15720 # This implies no fast_install, which is unacceptable.
15721 # Some rework will be needed to allow for fast_install
15722 # before this can be enabled.
15723 hardcode_into_libs=yes
15724
15725 # Ideally, we could use ldconfig to report *all* directores which are
15726 # searched for libraries, however this is still not possible. Aside from not
15727 # being certain /sbin/ldconfig is available, command
15728 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15729 # even though it is searched at run-time. Try to do the best guess by
15730 # appending ld.so.conf contents (and includes) to the search path.
15731 if test -f /etc/ld.so.conf; then
15732 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' ' '`
15733 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15734 fi
15735
15736 # We used to test for /lib/ld.so.1 and disable shared libraries on
15737 # powerpc, because MkLinux only supported shared libraries with the
15738 # GNU dynamic linker. Since this was broken with cross compilers,
15739 # most powerpc-linux boxes support dynamic linking these days and
15740 # people can always --disable-shared, the test was removed, and we
15741 # assume the GNU/Linux dynamic linker is in use.
15742 dynamic_linker='GNU/Linux ld.so'
15743 ;;
15744
15745 netbsdelf*-gnu)
15746 version_type=linux
15747 need_lib_prefix=no
15748 need_version=no
15749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15750 soname_spec='${libname}${release}${shared_ext}$major'
15751 shlibpath_var=LD_LIBRARY_PATH
15752 shlibpath_overrides_runpath=no
15753 hardcode_into_libs=yes
15754 dynamic_linker='NetBSD ld.elf_so'
15755 ;;
15756
15757 netbsd*)
15758 version_type=sunos
15759 need_lib_prefix=no
15760 need_version=no
15761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15762 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15764 dynamic_linker='NetBSD (a.out) ld.so'
15765 else
15766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15767 soname_spec='$libname$release$shared_ext$major'
15768 dynamic_linker='NetBSD ld.elf_so'
15769 fi
15770 shlibpath_var=LD_LIBRARY_PATH
15771 shlibpath_overrides_runpath=yes
15772 hardcode_into_libs=yes
15773 ;;
15774
15775 newsos6)
15776 version_type=linux # correct to gnu/linux during the next big refactor
15777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15778 shlibpath_var=LD_LIBRARY_PATH
15779 shlibpath_overrides_runpath=yes
15780 ;;
15781
15782 *nto* | *qnx*)
15783 version_type=qnx
15784 need_lib_prefix=no
15785 need_version=no
15786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15787 soname_spec='$libname$release$shared_ext$major'
15788 shlibpath_var=LD_LIBRARY_PATH
15789 shlibpath_overrides_runpath=no
15790 hardcode_into_libs=yes
15791 dynamic_linker='ldqnx.so'
15792 ;;
15793
15794 openbsd* | bitrig*)
15795 version_type=sunos
15796 sys_lib_dlsearch_path_spec=/usr/lib
15797 need_lib_prefix=no
15798 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15799 need_version=no
15800 else
15801 need_version=yes
15802 fi
15803 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15805 shlibpath_var=LD_LIBRARY_PATH
15806 shlibpath_overrides_runpath=yes
15807 ;;
15808
15809 os2*)
15810 libname_spec='$name'
15811 version_type=windows
15812 shrext_cmds=.dll
15813 need_version=no
15814 need_lib_prefix=no
15815 # OS/2 can only load a DLL with a base name of 8 characters or less.
15816 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15817 v=$($ECHO $release$versuffix | tr -d .-);
15818 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15819 $ECHO $n$v`$shared_ext'
15820 library_names_spec='${libname}_dll.$libext'
15821 dynamic_linker='OS/2 ld.exe'
15822 shlibpath_var=BEGINLIBPATH
15823 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15825 postinstall_cmds='base_file=`basename \$file`~
15826 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15827 dldir=$destdir/`dirname \$dlpath`~
15828 test -d \$dldir || mkdir -p \$dldir~
15829 $install_prog $dir/$dlname \$dldir/$dlname~
15830 chmod a+x \$dldir/$dlname~
15831 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15832 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15833 fi'
15834 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15835 dlpath=$dir/\$dldll~
15836 $RM \$dlpath'
15837 ;;
15838
15839 osf3* | osf4* | osf5*)
15840 version_type=osf
15841 need_lib_prefix=no
15842 need_version=no
15843 soname_spec='$libname$release$shared_ext$major'
15844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15845 shlibpath_var=LD_LIBRARY_PATH
15846 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15848 ;;
15849
15850 rdos*)
15851 dynamic_linker=no
15852 ;;
15853
15854 solaris*)
15855 version_type=linux # correct to gnu/linux during the next big refactor
15856 need_lib_prefix=no
15857 need_version=no
15858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15859 soname_spec='$libname$release$shared_ext$major'
15860 shlibpath_var=LD_LIBRARY_PATH
15861 shlibpath_overrides_runpath=yes
15862 hardcode_into_libs=yes
15863 # ldd complains unless libraries are executable
15864 postinstall_cmds='chmod +x $lib'
15865 ;;
15866
15867 sunos4*)
15868 version_type=sunos
15869 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15870 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15871 shlibpath_var=LD_LIBRARY_PATH
15872 shlibpath_overrides_runpath=yes
15873 if test yes = "$with_gnu_ld"; then
15874 need_lib_prefix=no
15875 fi
15876 need_version=yes
15877 ;;
15878
15879 sysv4 | sysv4.3*)
15880 version_type=linux # correct to gnu/linux during the next big refactor
15881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15882 soname_spec='$libname$release$shared_ext$major'
15883 shlibpath_var=LD_LIBRARY_PATH
15884 case $host_vendor in
15885 sni)
15886 shlibpath_overrides_runpath=no
15887 need_lib_prefix=no
15888 runpath_var=LD_RUN_PATH
15889 ;;
15890 siemens)
15891 need_lib_prefix=no
15892 ;;
15893 motorola)
15894 need_lib_prefix=no
15895 need_version=no
15896 shlibpath_overrides_runpath=no
15897 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15898 ;;
15899 esac
15900 ;;
15901
15902 sysv4*MP*)
15903 if test -d /usr/nec; then
15904 version_type=linux # correct to gnu/linux during the next big refactor
15905 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15906 soname_spec='$libname$shared_ext.$major'
15907 shlibpath_var=LD_LIBRARY_PATH
15908 fi
15909 ;;
15910
15911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15912 version_type=sco
15913 need_lib_prefix=no
15914 need_version=no
15915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15916 soname_spec='$libname$release$shared_ext$major'
15917 shlibpath_var=LD_LIBRARY_PATH
15918 shlibpath_overrides_runpath=yes
15919 hardcode_into_libs=yes
15920 if test yes = "$with_gnu_ld"; then
15921 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15922 else
15923 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15924 case $host_os in
15925 sco3.2v5*)
15926 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15927 ;;
15928 esac
15929 fi
15930 sys_lib_dlsearch_path_spec='/usr/lib'
15931 ;;
15932
15933 tpf*)
15934 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15935 version_type=linux # correct to gnu/linux during the next big refactor
15936 need_lib_prefix=no
15937 need_version=no
15938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15939 shlibpath_var=LD_LIBRARY_PATH
15940 shlibpath_overrides_runpath=no
15941 hardcode_into_libs=yes
15942 ;;
15943
15944 uts4*)
15945 version_type=linux # correct to gnu/linux during the next big refactor
15946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15947 soname_spec='$libname$release$shared_ext$major'
15948 shlibpath_var=LD_LIBRARY_PATH
15949 ;;
15950
15951 *)
15952 dynamic_linker=no
15953 ;;
15954 esac
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15956 $as_echo "$dynamic_linker" >&6; }
15957 test no = "$dynamic_linker" && can_build_shared=no
15958
15959 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15960 if test yes = "$GCC"; then
15961 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15962 fi
15963
15964 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15965 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15966 fi
15967
15968 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15969 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15970 fi
15971
15972 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15973 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15974
15975 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15976 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15977
15978 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15979 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16021 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16022 hardcode_action_CXX=
16023 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16024 test -n "$runpath_var_CXX" ||
16025 test yes = "$hardcode_automatic_CXX"; then
16026
16027 # We can hardcode non-existent directories.
16028 if test no != "$hardcode_direct_CXX" &&
16029 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16030 # have to relink, otherwise we might link with an installed library
16031 # when we should be linking with a yet-to-be-installed one
16032 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16033 test no != "$hardcode_minus_L_CXX"; then
16034 # Linking always hardcodes the temporary library directory.
16035 hardcode_action_CXX=relink
16036 else
16037 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16038 hardcode_action_CXX=immediate
16039 fi
16040 else
16041 # We cannot hardcode anything, or else we can only hardcode existing
16042 # directories.
16043 hardcode_action_CXX=unsupported
16044 fi
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16046 $as_echo "$hardcode_action_CXX" >&6; }
16047
16048 if test relink = "$hardcode_action_CXX" ||
16049 test yes = "$inherit_rpath_CXX"; then
16050 # Fast installation is not supported
16051 enable_fast_install=no
16052 elif test yes = "$shlibpath_overrides_runpath" ||
16053 test no = "$enable_shared"; then
16054 # Fast installation is not necessary
16055 enable_fast_install=needless
16056 fi
16057
16058
16059
16060
16061
16062
16063
16064 fi # test -n "$compiler"
16065
16066 CC=$lt_save_CC
16067 CFLAGS=$lt_save_CFLAGS
16068 LDCXX=$LD
16069 LD=$lt_save_LD
16070 GCC=$lt_save_GCC
16071 with_gnu_ld=$lt_save_with_gnu_ld
16072 lt_cv_path_LDCXX=$lt_cv_path_LD
16073 lt_cv_path_LD=$lt_save_path_LD
16074 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16075 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16076 fi # test yes != "$_lt_caught_CXX_error"
16077
16078 ac_ext=c
16079 ac_cpp='$CPP $CPPFLAGS'
16080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098 ac_config_commands="$ac_config_commands libtool"
16099
16100
16101
16102
16103 # Only expand once:
16104
16105
16106
16107 # Check whether --enable-silent-rules was given.
16108 if test "${enable_silent_rules+set}" = set; then :
16109 enableval=$enable_silent_rules;
16110 fi
16111
16112 case $enable_silent_rules in # (((
16113 yes) AM_DEFAULT_VERBOSITY=0;;
16114 no) AM_DEFAULT_VERBOSITY=1;;
16115 *) AM_DEFAULT_VERBOSITY=0;;
16116 esac
16117 am_make=${MAKE-make}
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16119 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16120 if ${am_cv_make_support_nested_variables+:} false; then :
16121 $as_echo_n "(cached) " >&6
16122 else
16123 if $as_echo 'TRUE=$(BAR$(V))
16124 BAR0=false
16125 BAR1=true
16126 V=1
16127 am__doit:
16128 @$(TRUE)
16129 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16130 am_cv_make_support_nested_variables=yes
16131 else
16132 am_cv_make_support_nested_variables=no
16133 fi
16134 fi
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16136 $as_echo "$am_cv_make_support_nested_variables" >&6; }
16137 if test $am_cv_make_support_nested_variables = yes; then
16138 AM_V='$(V)'
16139 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16140 else
16141 AM_V=$AM_DEFAULT_VERBOSITY
16142 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16143 fi
16144 AM_BACKSLASH='\'
16145
16146
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16148 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16149 if ${ac_cv_c_bigendian+:} false; then :
16150 $as_echo_n "(cached) " >&6
16151 else
16152 ac_cv_c_bigendian=unknown
16153 # See if we're dealing with a universal compiler.
16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16156 #ifndef __APPLE_CC__
16157 not a universal capable compiler
16158 #endif
16159 typedef int dummy;
16160
16161 _ACEOF
16162 if ac_fn_c_try_compile "$LINENO"; then :
16163
16164 # Check for potential -arch flags. It is not universal unless
16165 # there are at least two -arch flags with different values.
16166 ac_arch=
16167 ac_prev=
16168 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16169 if test -n "$ac_prev"; then
16170 case $ac_word in
16171 i?86 | x86_64 | ppc | ppc64)
16172 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16173 ac_arch=$ac_word
16174 else
16175 ac_cv_c_bigendian=universal
16176 break
16177 fi
16178 ;;
16179 esac
16180 ac_prev=
16181 elif test "x$ac_word" = "x-arch"; then
16182 ac_prev=arch
16183 fi
16184 done
16185 fi
16186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16187 if test $ac_cv_c_bigendian = unknown; then
16188 # See if sys/param.h defines the BYTE_ORDER macro.
16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190 /* end confdefs.h. */
16191 #include <sys/types.h>
16192 #include <sys/param.h>
16193
16194 int
16195 main ()
16196 {
16197 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16198 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16199 && LITTLE_ENDIAN)
16200 bogus endian macros
16201 #endif
16202
16203 ;
16204 return 0;
16205 }
16206 _ACEOF
16207 if ac_fn_c_try_compile "$LINENO"; then :
16208 # It does; now see whether it defined to BIG_ENDIAN or not.
16209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210 /* end confdefs.h. */
16211 #include <sys/types.h>
16212 #include <sys/param.h>
16213
16214 int
16215 main ()
16216 {
16217 #if BYTE_ORDER != BIG_ENDIAN
16218 not big endian
16219 #endif
16220
16221 ;
16222 return 0;
16223 }
16224 _ACEOF
16225 if ac_fn_c_try_compile "$LINENO"; then :
16226 ac_cv_c_bigendian=yes
16227 else
16228 ac_cv_c_bigendian=no
16229 fi
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 fi
16232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16233 fi
16234 if test $ac_cv_c_bigendian = unknown; then
16235 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16237 /* end confdefs.h. */
16238 #include <limits.h>
16239
16240 int
16241 main ()
16242 {
16243 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16244 bogus endian macros
16245 #endif
16246
16247 ;
16248 return 0;
16249 }
16250 _ACEOF
16251 if ac_fn_c_try_compile "$LINENO"; then :
16252 # It does; now see whether it defined to _BIG_ENDIAN or not.
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16255 #include <limits.h>
16256
16257 int
16258 main ()
16259 {
16260 #ifndef _BIG_ENDIAN
16261 not big endian
16262 #endif
16263
16264 ;
16265 return 0;
16266 }
16267 _ACEOF
16268 if ac_fn_c_try_compile "$LINENO"; then :
16269 ac_cv_c_bigendian=yes
16270 else
16271 ac_cv_c_bigendian=no
16272 fi
16273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16274 fi
16275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276 fi
16277 if test $ac_cv_c_bigendian = unknown; then
16278 # Compile a test program.
16279 if test "$cross_compiling" = yes; then :
16280 # Try to guess by grepping values from an object file.
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16283 short int ascii_mm[] =
16284 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16285 short int ascii_ii[] =
16286 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16287 int use_ascii (int i) {
16288 return ascii_mm[i] + ascii_ii[i];
16289 }
16290 short int ebcdic_ii[] =
16291 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16292 short int ebcdic_mm[] =
16293 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16294 int use_ebcdic (int i) {
16295 return ebcdic_mm[i] + ebcdic_ii[i];
16296 }
16297 extern int foo;
16298
16299 int
16300 main ()
16301 {
16302 return use_ascii (foo) == use_ebcdic (foo);
16303 ;
16304 return 0;
16305 }
16306 _ACEOF
16307 if ac_fn_c_try_compile "$LINENO"; then :
16308 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16309 ac_cv_c_bigendian=yes
16310 fi
16311 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16312 if test "$ac_cv_c_bigendian" = unknown; then
16313 ac_cv_c_bigendian=no
16314 else
16315 # finding both strings is unlikely to happen, but who knows?
16316 ac_cv_c_bigendian=unknown
16317 fi
16318 fi
16319 fi
16320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16321 else
16322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323 /* end confdefs.h. */
16324 $ac_includes_default
16325 int
16326 main ()
16327 {
16328
16329 /* Are we little or big endian? From Harbison&Steele. */
16330 union
16331 {
16332 long int l;
16333 char c[sizeof (long int)];
16334 } u;
16335 u.l = 1;
16336 return u.c[sizeof (long int) - 1] == 1;
16337
16338 ;
16339 return 0;
16340 }
16341 _ACEOF
16342 if ac_fn_c_try_run "$LINENO"; then :
16343 ac_cv_c_bigendian=no
16344 else
16345 ac_cv_c_bigendian=yes
16346 fi
16347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16348 conftest.$ac_objext conftest.beam conftest.$ac_ext
16349 fi
16350
16351 fi
16352 fi
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16354 $as_echo "$ac_cv_c_bigendian" >&6; }
16355 case $ac_cv_c_bigendian in #(
16356 yes)
16357 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16358 ;; #(
16359 no)
16360 ;; #(
16361 universal)
16362
16363 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16364
16365 ;; #(
16366 *)
16367 as_fn_error $? "unknown endianness
16368 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16369 esac
16370
16371
16372 # Extract the first word of "pkg-config", so it can be a program name with args.
16373 set dummy pkg-config; ac_word=$2
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16375 $as_echo_n "checking for $ac_word... " >&6; }
16376 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16377 $as_echo_n "(cached) " >&6
16378 else
16379 case $PKG_CONFIG in
16380 [\\/]* | ?:[\\/]*)
16381 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16382 ;;
16383 *)
16384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16385 for as_dir in $PATH
16386 do
16387 IFS=$as_save_IFS
16388 test -z "$as_dir" && as_dir=.
16389 for ac_exec_ext in '' $ac_executable_extensions; do
16390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16391 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16393 break 2
16394 fi
16395 done
16396 done
16397 IFS=$as_save_IFS
16398
16399 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16400 ;;
16401 esac
16402 fi
16403 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16404 if test -n "$PKG_CONFIG"; then
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16406 $as_echo "$PKG_CONFIG" >&6; }
16407 else
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16409 $as_echo "no" >&6; }
16410 fi
16411
16412
16413 if test "x$PKG_CONFIG" = "xno"; then
16414 as_fn_error $? "You need to install pkg-config" "$LINENO" 5
16415 fi
16416 GLIB_REQUIRED_VERSION="2.2.3"
16417
16418
16419
16420
16421
16422
16423
16424 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16425 if test -n "$ac_tool_prefix"; then
16426 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16427 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16429 $as_echo_n "checking for $ac_word... " >&6; }
16430 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16431 $as_echo_n "(cached) " >&6
16432 else
16433 case $PKG_CONFIG in
16434 [\\/]* | ?:[\\/]*)
16435 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16436 ;;
16437 *)
16438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16439 for as_dir in $PATH
16440 do
16441 IFS=$as_save_IFS
16442 test -z "$as_dir" && as_dir=.
16443 for ac_exec_ext in '' $ac_executable_extensions; do
16444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16445 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16447 break 2
16448 fi
16449 done
16450 done
16451 IFS=$as_save_IFS
16452
16453 ;;
16454 esac
16455 fi
16456 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16457 if test -n "$PKG_CONFIG"; then
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16459 $as_echo "$PKG_CONFIG" >&6; }
16460 else
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16462 $as_echo "no" >&6; }
16463 fi
16464
16465
16466 fi
16467 if test -z "$ac_cv_path_PKG_CONFIG"; then
16468 ac_pt_PKG_CONFIG=$PKG_CONFIG
16469 # Extract the first word of "pkg-config", so it can be a program name with args.
16470 set dummy pkg-config; ac_word=$2
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16472 $as_echo_n "checking for $ac_word... " >&6; }
16473 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16474 $as_echo_n "(cached) " >&6
16475 else
16476 case $ac_pt_PKG_CONFIG in
16477 [\\/]* | ?:[\\/]*)
16478 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16479 ;;
16480 *)
16481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16482 for as_dir in $PATH
16483 do
16484 IFS=$as_save_IFS
16485 test -z "$as_dir" && as_dir=.
16486 for ac_exec_ext in '' $ac_executable_extensions; do
16487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16488 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16490 break 2
16491 fi
16492 done
16493 done
16494 IFS=$as_save_IFS
16495
16496 ;;
16497 esac
16498 fi
16499 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16500 if test -n "$ac_pt_PKG_CONFIG"; then
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16502 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16503 else
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16505 $as_echo "no" >&6; }
16506 fi
16507
16508 if test "x$ac_pt_PKG_CONFIG" = x; then
16509 PKG_CONFIG=""
16510 else
16511 case $cross_compiling:$ac_tool_warned in
16512 yes:)
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16515 ac_tool_warned=yes ;;
16516 esac
16517 PKG_CONFIG=$ac_pt_PKG_CONFIG
16518 fi
16519 else
16520 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16521 fi
16522
16523 fi
16524 if test -n "$PKG_CONFIG"; then
16525 _pkg_min_version=0.9.0
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16527 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16528 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16530 $as_echo "yes" >&6; }
16531 else
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16533 $as_echo "no" >&6; }
16534 PKG_CONFIG=""
16535 fi
16536 fi
16537
16538 pkg_failed=no
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASE_DEPENDENCIES" >&5
16540 $as_echo_n "checking for BASE_DEPENDENCIES... " >&6; }
16541
16542 if test -n "$BASE_DEPENDENCIES_CFLAGS"; then
16543 pkg_cv_BASE_DEPENDENCIES_CFLAGS="$BASE_DEPENDENCIES_CFLAGS"
16544 elif test -n "$PKG_CONFIG"; then
16545 if test -n "$PKG_CONFIG" && \
16546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION\""; } >&5
16547 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
16548 ac_status=$?
16549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16550 test $ac_status = 0; }; then
16551 pkg_cv_BASE_DEPENDENCIES_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
16552 test "x$?" != "x0" && pkg_failed=yes
16553 else
16554 pkg_failed=yes
16555 fi
16556 else
16557 pkg_failed=untried
16558 fi
16559 if test -n "$BASE_DEPENDENCIES_LIBS"; then
16560 pkg_cv_BASE_DEPENDENCIES_LIBS="$BASE_DEPENDENCIES_LIBS"
16561 elif test -n "$PKG_CONFIG"; then
16562 if test -n "$PKG_CONFIG" && \
16563 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION\""; } >&5
16564 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
16565 ac_status=$?
16566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16567 test $ac_status = 0; }; then
16568 pkg_cv_BASE_DEPENDENCIES_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
16569 test "x$?" != "x0" && pkg_failed=yes
16570 else
16571 pkg_failed=yes
16572 fi
16573 else
16574 pkg_failed=untried
16575 fi
16576
16577
16578
16579 if test $pkg_failed = yes; then
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16581 $as_echo "no" >&6; }
16582
16583 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16584 _pkg_short_errors_supported=yes
16585 else
16586 _pkg_short_errors_supported=no
16587 fi
16588 if test $_pkg_short_errors_supported = yes; then
16589 BASE_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>&1`
16590 else
16591 BASE_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>&1`
16592 fi
16593 # Put the nasty error message in config.log where it belongs
16594 echo "$BASE_DEPENDENCIES_PKG_ERRORS" >&5
16595
16596 as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQUIRED_VERSION) were not met:
16597
16598 $BASE_DEPENDENCIES_PKG_ERRORS
16599
16600 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16601 installed software in a non-standard prefix.
16602
16603 Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
16604 and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
16605 See the pkg-config man page for more details." "$LINENO" 5
16606 elif test $pkg_failed = untried; then
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16608 $as_echo "no" >&6; }
16609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16611 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16612 is in your PATH or set the PKG_CONFIG environment variable to the full
16613 path to pkg-config.
16614
16615 Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
16616 and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
16617 See the pkg-config man page for more details.
16618
16619 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16620 See \`config.log' for more details" "$LINENO" 5; }
16621 else
16622 BASE_DEPENDENCIES_CFLAGS=$pkg_cv_BASE_DEPENDENCIES_CFLAGS
16623 BASE_DEPENDENCIES_LIBS=$pkg_cv_BASE_DEPENDENCIES_LIBS
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16625 $as_echo "yes" >&6; }
16626
16627 fi
16628
16629 GDIPLUS_LIBS="`$PKG_CONFIG --libs glib-2.0 `"
16630 GDIPLUS_INCLUDES="`$PKG_CONFIG --cflags-only-I glib-2.0 `"
16631 GDIPLUS_CFLAGS="$GDIPLUS_INCLUDES `$PKG_CONFIG --cflags-only-other glib-2.0 `"
16632
16633 # Extract the first word of "cmake", so it can be a program name with args.
16634 set dummy cmake; ac_word=$2
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16636 $as_echo_n "checking for $ac_word... " >&6; }
16637 if ${ac_cv_path_CMAKE+:} false; then :
16638 $as_echo_n "(cached) " >&6
16639 else
16640 case $CMAKE in
16641 [\\/]* | ?:[\\/]*)
16642 ac_cv_path_CMAKE="$CMAKE" # Let the user override the test with a path.
16643 ;;
16644 *)
16645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16646 as_dummy="$PATH:/Applications/CMake.app/Contents/bin:/usr/local/bin"
16647 for as_dir in $as_dummy
16648 do
16649 IFS=$as_save_IFS
16650 test -z "$as_dir" && as_dir=.
16651 for ac_exec_ext in '' $ac_executable_extensions; do
16652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16653 ac_cv_path_CMAKE="$as_dir/$ac_word$ac_exec_ext"
16654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16655 break 2
16656 fi
16657 done
16658 done
16659 IFS=$as_save_IFS
16660
16661 test -z "$ac_cv_path_CMAKE" && ac_cv_path_CMAKE="no"
16662 ;;
16663 esac
16664 fi
16665 CMAKE=$ac_cv_path_CMAKE
16666 if test -n "$CMAKE"; then
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMAKE" >&5
16668 $as_echo "$CMAKE" >&6; }
16669 else
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16671 $as_echo "no" >&6; }
16672 fi
16673
16674
16675 if test "x$CMAKE" = "xno"; then
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** cmake not found, won't build googletest-based tests." >&5
16677 $as_echo "$as_me: WARNING: *** cmake not found, won't build googletest-based tests." >&2;}
16678 fi
16679 if test x$CMAKE != "xno"; then
16680 HAVE_CMAKE_TRUE=
16681 HAVE_CMAKE_FALSE='#'
16682 else
16683 HAVE_CMAKE_TRUE='#'
16684 HAVE_CMAKE_FALSE=
16685 fi
16686
16687
16688 CAIRO_REQUIRED_VERSION="1.6.4"
16689
16690 pkg_failed=no
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
16692 $as_echo_n "checking for CAIRO... " >&6; }
16693
16694 if test -n "$CAIRO_CFLAGS"; then
16695 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
16696 elif test -n "$PKG_CONFIG"; then
16697 if test -n "$PKG_CONFIG" && \
16698 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= \$CAIRO_REQUIRED_VERSION\""; } >&5
16699 ($PKG_CONFIG --exists --print-errors "cairo >= $CAIRO_REQUIRED_VERSION") 2>&5
16700 ac_status=$?
16701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16702 test $ac_status = 0; }; then
16703 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= $CAIRO_REQUIRED_VERSION" 2>/dev/null`
16704 test "x$?" != "x0" && pkg_failed=yes
16705 else
16706 pkg_failed=yes
16707 fi
16708 else
16709 pkg_failed=untried
16710 fi
16711 if test -n "$CAIRO_LIBS"; then
16712 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
16713 elif test -n "$PKG_CONFIG"; then
16714 if test -n "$PKG_CONFIG" && \
16715 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= \$CAIRO_REQUIRED_VERSION\""; } >&5
16716 ($PKG_CONFIG --exists --print-errors "cairo >= $CAIRO_REQUIRED_VERSION") 2>&5
16717 ac_status=$?
16718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16719 test $ac_status = 0; }; then
16720 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= $CAIRO_REQUIRED_VERSION" 2>/dev/null`
16721 test "x$?" != "x0" && pkg_failed=yes
16722 else
16723 pkg_failed=yes
16724 fi
16725 else
16726 pkg_failed=untried
16727 fi
16728
16729
16730
16731 if test $pkg_failed = yes; then
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16733 $as_echo "no" >&6; }
16734
16735 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16736 _pkg_short_errors_supported=yes
16737 else
16738 _pkg_short_errors_supported=no
16739 fi
16740 if test $_pkg_short_errors_supported = yes; then
16741 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= $CAIRO_REQUIRED_VERSION" 2>&1`
16742 else
16743 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= $CAIRO_REQUIRED_VERSION" 2>&1`
16744 fi
16745 # Put the nasty error message in config.log where it belongs
16746 echo "$CAIRO_PKG_ERRORS" >&5
16747
16748 as_fn_error $? "Package requirements (cairo >= $CAIRO_REQUIRED_VERSION) were not met:
16749
16750 $CAIRO_PKG_ERRORS
16751
16752 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16753 installed software in a non-standard prefix.
16754
16755 Alternatively, you may set the environment variables CAIRO_CFLAGS
16756 and CAIRO_LIBS to avoid the need to call pkg-config.
16757 See the pkg-config man page for more details." "$LINENO" 5
16758 elif test $pkg_failed = untried; then
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16760 $as_echo "no" >&6; }
16761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16763 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16764 is in your PATH or set the PKG_CONFIG environment variable to the full
16765 path to pkg-config.
16766
16767 Alternatively, you may set the environment variables CAIRO_CFLAGS
16768 and CAIRO_LIBS to avoid the need to call pkg-config.
16769 See the pkg-config man page for more details.
16770
16771 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16772 See \`config.log' for more details" "$LINENO" 5; }
16773 else
16774 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
16775 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16777 $as_echo "yes" >&6; }
16778
16779 fi
16780
16781 # Optional use of Pango's text rendering on top of Cairo
16782
16783 # Check whether --with-pango was given.
16784 if test "${with_pango+set}" = set; then :
16785 withval=$with_pango; text_v=pango
16786 else
16787 text_v=default
16788 fi
16789
16790
16791 GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -std=gnu11"
16792
16793 # Check whether --enable-warnaserror was given.
16794 if test "${enable_warnaserror+set}" = set; then :
16795 enableval=$enable_warnaserror; warnaserror=yes
16796 else
16797 warnaserror=no
16798 fi
16799
16800
16801 if test $warnaserror = "yes"; then
16802 GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS -Werror -Wno-unknown-warning-option -Wno-clobbered"
16803 fi
16804
16805 # Check whether --enable-asan was given.
16806 if test "${enable_asan+set}" = set; then :
16807 enableval=$enable_asan; asan=yes
16808 else
16809 asan=no
16810 fi
16811
16812
16813 if test $asan = "yes"; then
16814 GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS -fsanitize=address,signed-integer-overflow,undefined -g -O1 -fno-omit-frame-pointer"
16815 LDFLAGS="$LDFLAGS -fsanitize=address,signed-integer-overflow,undefined"
16816 fi
16817
16818 # Check whether --enable-coverage was given.
16819 if test "${enable_coverage+set}" = set; then :
16820 enableval=$enable_coverage; coverage=yes
16821 else
16822 coverage=no
16823 fi
16824
16825
16826 if test $coverage = "yes"; then
16827 GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS --coverage -g"
16828 LDFLAGS="$LDFLAGS --coverage"
16829 fi
16830
16831 CAIRO_LIBS="`$PKG_CONFIG --libs cairo `"
16832 CAIRO_CFLAGS="`$PKG_CONFIG --cflags cairo `"
16833 cairo_info="`$PKG_CONFIG --modversion cairo ` (system)"
16834 GDIPLUS_PKG_REQ="cairo"
16835
16836 PANGO_REQUIRED_VERSION="1.40.14"
16837 if test $text_v = "pango"; then
16838
16839 pkg_failed=no
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
16841 $as_echo_n "checking for PANGO... " >&6; }
16842
16843 if test -n "$PANGO_CFLAGS"; then
16844 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
16845 elif test -n "$PKG_CONFIG"; then
16846 if test -n "$PKG_CONFIG" && \
16847 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= \$PANGO_REQUIRED_VERSION\""; } >&5
16848 ($PKG_CONFIG --exists --print-errors "pango >= $PANGO_REQUIRED_VERSION") 2>&5
16849 ac_status=$?
16850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16851 test $ac_status = 0; }; then
16852 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= $PANGO_REQUIRED_VERSION" 2>/dev/null`
16853 test "x$?" != "x0" && pkg_failed=yes
16854 else
16855 pkg_failed=yes
16856 fi
16857 else
16858 pkg_failed=untried
16859 fi
16860 if test -n "$PANGO_LIBS"; then
16861 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
16862 elif test -n "$PKG_CONFIG"; then
16863 if test -n "$PKG_CONFIG" && \
16864 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= \$PANGO_REQUIRED_VERSION\""; } >&5
16865 ($PKG_CONFIG --exists --print-errors "pango >= $PANGO_REQUIRED_VERSION") 2>&5
16866 ac_status=$?
16867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16868 test $ac_status = 0; }; then
16869 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= $PANGO_REQUIRED_VERSION" 2>/dev/null`
16870 test "x$?" != "x0" && pkg_failed=yes
16871 else
16872 pkg_failed=yes
16873 fi
16874 else
16875 pkg_failed=untried
16876 fi
16877
16878
16879
16880 if test $pkg_failed = yes; then
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16882 $as_echo "no" >&6; }
16883
16884 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16885 _pkg_short_errors_supported=yes
16886 else
16887 _pkg_short_errors_supported=no
16888 fi
16889 if test $_pkg_short_errors_supported = yes; then
16890 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= $PANGO_REQUIRED_VERSION" 2>&1`
16891 else
16892 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= $PANGO_REQUIRED_VERSION" 2>&1`
16893 fi
16894 # Put the nasty error message in config.log where it belongs
16895 echo "$PANGO_PKG_ERRORS" >&5
16896
16897 as_fn_error $? "Package requirements (pango >= $PANGO_REQUIRED_VERSION) were not met:
16898
16899 $PANGO_PKG_ERRORS
16900
16901 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16902 installed software in a non-standard prefix.
16903
16904 Alternatively, you may set the environment variables PANGO_CFLAGS
16905 and PANGO_LIBS to avoid the need to call pkg-config.
16906 See the pkg-config man page for more details." "$LINENO" 5
16907 elif test $pkg_failed = untried; then
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16909 $as_echo "no" >&6; }
16910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16912 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16913 is in your PATH or set the PKG_CONFIG environment variable to the full
16914 path to pkg-config.
16915
16916 Alternatively, you may set the environment variables PANGO_CFLAGS
16917 and PANGO_LIBS to avoid the need to call pkg-config.
16918 See the pkg-config man page for more details.
16919
16920 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16921 See \`config.log' for more details" "$LINENO" 5; }
16922 else
16923 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
16924 PANGO_LIBS=$pkg_cv_PANGO_LIBS
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16926 $as_echo "yes" >&6; }
16927
16928 fi
16929 fi
16930 if test $text_v = "default"; then
16931
16932 pkg_failed=no
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
16934 $as_echo_n "checking for PANGO... " >&6; }
16935
16936 if test -n "$PANGO_CFLAGS"; then
16937 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
16938 elif test -n "$PKG_CONFIG"; then
16939 if test -n "$PKG_CONFIG" && \
16940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= \$PANGO_REQUIRED_VERSION\""; } >&5
16941 ($PKG_CONFIG --exists --print-errors "pango >= $PANGO_REQUIRED_VERSION") 2>&5
16942 ac_status=$?
16943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16944 test $ac_status = 0; }; then
16945 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= $PANGO_REQUIRED_VERSION" 2>/dev/null`
16946 test "x$?" != "x0" && pkg_failed=yes
16947 else
16948 pkg_failed=yes
16949 fi
16950 else
16951 pkg_failed=untried
16952 fi
16953 if test -n "$PANGO_LIBS"; then
16954 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
16955 elif test -n "$PKG_CONFIG"; then
16956 if test -n "$PKG_CONFIG" && \
16957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= \$PANGO_REQUIRED_VERSION\""; } >&5
16958 ($PKG_CONFIG --exists --print-errors "pango >= $PANGO_REQUIRED_VERSION") 2>&5
16959 ac_status=$?
16960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16961 test $ac_status = 0; }; then
16962 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= $PANGO_REQUIRED_VERSION" 2>/dev/null`
16963 test "x$?" != "x0" && pkg_failed=yes
16964 else
16965 pkg_failed=yes
16966 fi
16967 else
16968 pkg_failed=untried
16969 fi
16970
16971
16972
16973 if test $pkg_failed = yes; then
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16975 $as_echo "no" >&6; }
16976
16977 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16978 _pkg_short_errors_supported=yes
16979 else
16980 _pkg_short_errors_supported=no
16981 fi
16982 if test $_pkg_short_errors_supported = yes; then
16983 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= $PANGO_REQUIRED_VERSION" 2>&1`
16984 else
16985 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= $PANGO_REQUIRED_VERSION" 2>&1`
16986 fi
16987 # Put the nasty error message in config.log where it belongs
16988 echo "$PANGO_PKG_ERRORS" >&5
16989
16990 text_v=cairo
16991 elif test $pkg_failed = untried; then
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16993 $as_echo "no" >&6; }
16994 text_v=cairo
16995 else
16996 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
16997 PANGO_LIBS=$pkg_cv_PANGO_LIBS
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16999 $as_echo "yes" >&6; }
17000 text_v=pango
17001 fi
17002 fi
17003 if test $text_v = "pango"; then
17004 PANGO_LIBS="`$PKG_CONFIG --libs pangocairo `"
17005 PANGO_CFLAGS="`$PKG_CONFIG --cflags pangocairo `"
17006
17007 $as_echo "#define USE_PANGO_RENDERING 1" >>confdefs.h
17008
17009 GDIPLUS_PKG_REQ="$GDIPLUS_PKG_REQ pangocairo-1.0"
17010 fi
17011
17012 if test $text_v = "pango"; then
17013 USE_PANGO_RENDERING_TRUE=
17014 USE_PANGO_RENDERING_FALSE='#'
17015 else
17016 USE_PANGO_RENDERING_TRUE='#'
17017 USE_PANGO_RENDERING_FALSE=
17018 fi
17019
17020
17021 GDIPLUS_LIBS="$GDIPLUS_LIBS $CAIRO_LIBS $PANGO_LIBS"
17022 GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS $CAIRO_CFLAGS $PANGO_CFLAGS"
17023
17024 # Fall back to using fontconfig/freetype-config if their .pc is not found
17025
17026 pkg_failed=no
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
17028 $as_echo_n "checking for FONTCONFIG... " >&6; }
17029
17030 if test -n "$FONTCONFIG_CFLAGS"; then
17031 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
17032 elif test -n "$PKG_CONFIG"; then
17033 if test -n "$PKG_CONFIG" && \
17034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
17035 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
17036 ac_status=$?
17037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17038 test $ac_status = 0; }; then
17039 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
17040 test "x$?" != "x0" && pkg_failed=yes
17041 else
17042 pkg_failed=yes
17043 fi
17044 else
17045 pkg_failed=untried
17046 fi
17047 if test -n "$FONTCONFIG_LIBS"; then
17048 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
17049 elif test -n "$PKG_CONFIG"; then
17050 if test -n "$PKG_CONFIG" && \
17051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
17052 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
17053 ac_status=$?
17054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17055 test $ac_status = 0; }; then
17056 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
17057 test "x$?" != "x0" && pkg_failed=yes
17058 else
17059 pkg_failed=yes
17060 fi
17061 else
17062 pkg_failed=untried
17063 fi
17064
17065
17066
17067 if test $pkg_failed = yes; then
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17069 $as_echo "no" >&6; }
17070
17071 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17072 _pkg_short_errors_supported=yes
17073 else
17074 _pkg_short_errors_supported=no
17075 fi
17076 if test $_pkg_short_errors_supported = yes; then
17077 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
17078 else
17079 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
17080 fi
17081 # Put the nasty error message in config.log where it belongs
17082 echo "$FONTCONFIG_PKG_ERRORS" >&5
17083
17084 fontconfig_pkgconfig=no
17085 elif test $pkg_failed = untried; then
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17087 $as_echo "no" >&6; }
17088 fontconfig_pkgconfig=no
17089 else
17090 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
17091 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17093 $as_echo "yes" >&6; }
17094 fontconfig_pkgconfig=yes
17095 fi
17096 if test "x$FONTCONFIG" = "xno"; then
17097 # Extract the first word of "fontconfig-config", so it can be a program name with args.
17098 set dummy fontconfig-config; ac_word=$2
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17100 $as_echo_n "checking for $ac_word... " >&6; }
17101 if ${ac_cv_path_FONTCONFIG_CONFIG+:} false; then :
17102 $as_echo_n "(cached) " >&6
17103 else
17104 case $FONTCONFIG_CONFIG in
17105 [\\/]* | ?:[\\/]*)
17106 ac_cv_path_FONTCONFIG_CONFIG="$FONTCONFIG_CONFIG" # Let the user override the test with a path.
17107 ;;
17108 *)
17109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17110 for as_dir in $PATH
17111 do
17112 IFS=$as_save_IFS
17113 test -z "$as_dir" && as_dir=.
17114 for ac_exec_ext in '' $ac_executable_extensions; do
17115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17116 ac_cv_path_FONTCONFIG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17118 break 2
17119 fi
17120 done
17121 done
17122 IFS=$as_save_IFS
17123
17124 test -z "$ac_cv_path_FONTCONFIG_CONFIG" && ac_cv_path_FONTCONFIG_CONFIG="no"
17125 ;;
17126 esac
17127 fi
17128 FONTCONFIG_CONFIG=$ac_cv_path_FONTCONFIG_CONFIG
17129 if test -n "$FONTCONFIG_CONFIG"; then
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CONFIG" >&5
17131 $as_echo "$FONTCONFIG_CONFIG" >&6; }
17132 else
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17134 $as_echo "no" >&6; }
17135 fi
17136
17137
17138 if test "x$FONTCONFIG_CONFIG" = "xyes"; then
17139 FONTCONFIG_CFLAGS="`fontconfig-config --cflags`"
17140 FONTCONFIG_LIBS="`fontconfig-config --libs`"
17141 fi
17142 fi
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcInit in -lfontconfig" >&5
17144 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
17145 if ${ac_cv_lib_fontconfig_FcInit+:} false; then :
17146 $as_echo_n "(cached) " >&6
17147 else
17148 ac_check_lib_save_LIBS=$LIBS
17149 LIBS="-lfontconfig $LIBS"
17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h. */
17152
17153 /* Override any GCC internal prototype to avoid an error.
17154 Use char because int might match the return type of a GCC
17155 builtin and then its argument prototype would still apply. */
17156 #ifdef __cplusplus
17157 extern "C"
17158 #endif
17159 char FcInit ();
17160 int
17161 main ()
17162 {
17163 return FcInit ();
17164 ;
17165 return 0;
17166 }
17167 _ACEOF
17168 if ac_fn_c_try_link "$LINENO"; then :
17169 ac_cv_lib_fontconfig_FcInit=yes
17170 else
17171 ac_cv_lib_fontconfig_FcInit=no
17172 fi
17173 rm -f core conftest.err conftest.$ac_objext \
17174 conftest$ac_exeext conftest.$ac_ext
17175 LIBS=$ac_check_lib_save_LIBS
17176 fi
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcInit" >&5
17178 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
17179 if test "x$ac_cv_lib_fontconfig_FcInit" = xyes; then :
17180 cat >>confdefs.h <<_ACEOF
17181 #define HAVE_LIBFONTCONFIG 1
17182 _ACEOF
17183
17184 LIBS="-lfontconfig $LIBS"
17185
17186 fi
17187
17188 for ac_func in FcFini
17189 do :
17190 ac_fn_c_check_func "$LINENO" "FcFini" "ac_cv_func_FcFini"
17191 if test "x$ac_cv_func_FcFini" = xyes; then :
17192 cat >>confdefs.h <<_ACEOF
17193 #define HAVE_FCFINI 1
17194 _ACEOF
17195
17196 fi
17197 done
17198
17199
17200
17201 pkg_failed=no
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5
17203 $as_echo_n "checking for FREETYPE2... " >&6; }
17204
17205 if test -n "$FREETYPE2_CFLAGS"; then
17206 pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS"
17207 elif test -n "$PKG_CONFIG"; then
17208 if test -n "$PKG_CONFIG" && \
17209 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
17210 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
17211 ac_status=$?
17212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17213 test $ac_status = 0; }; then
17214 pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
17215 test "x$?" != "x0" && pkg_failed=yes
17216 else
17217 pkg_failed=yes
17218 fi
17219 else
17220 pkg_failed=untried
17221 fi
17222 if test -n "$FREETYPE2_LIBS"; then
17223 pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS"
17224 elif test -n "$PKG_CONFIG"; then
17225 if test -n "$PKG_CONFIG" && \
17226 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
17227 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
17228 ac_status=$?
17229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17230 test $ac_status = 0; }; then
17231 pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
17232 test "x$?" != "x0" && pkg_failed=yes
17233 else
17234 pkg_failed=yes
17235 fi
17236 else
17237 pkg_failed=untried
17238 fi
17239
17240
17241
17242 if test $pkg_failed = yes; then
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244 $as_echo "no" >&6; }
17245
17246 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17247 _pkg_short_errors_supported=yes
17248 else
17249 _pkg_short_errors_supported=no
17250 fi
17251 if test $_pkg_short_errors_supported = yes; then
17252 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
17253 else
17254 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
17255 fi
17256 # Put the nasty error message in config.log where it belongs
17257 echo "$FREETYPE2_PKG_ERRORS" >&5
17258
17259 freetype2_pkgconfig=no]
17260 elif test $pkg_failed = untried; then
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17262 $as_echo "no" >&6; }
17263 freetype2_pkgconfig=no]
17264 else
17265 FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS
17266 FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17268 $as_echo "yes" >&6; }
17269 freetype2_pkgconfig=yes
17270 fi
17271 if test "x$FREETYPE2" = "xno"; then
17272 # Extract the first word of "freetype-config", so it can be a program name with args.
17273 set dummy freetype-config; ac_word=$2
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17275 $as_echo_n "checking for $ac_word... " >&6; }
17276 if ${ac_cv_path_FREETYPE_CONFIG+:} false; then :
17277 $as_echo_n "(cached) " >&6
17278 else
17279 case $FREETYPE_CONFIG in
17280 [\\/]* | ?:[\\/]*)
17281 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
17282 ;;
17283 *)
17284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17285 for as_dir in $PATH
17286 do
17287 IFS=$as_save_IFS
17288 test -z "$as_dir" && as_dir=.
17289 for ac_exec_ext in '' $ac_executable_extensions; do
17290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17291 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17293 break 2
17294 fi
17295 done
17296 done
17297 IFS=$as_save_IFS
17298
17299 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no"
17300 ;;
17301 esac
17302 fi
17303 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
17304 if test -n "$FREETYPE_CONFIG"; then
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CONFIG" >&5
17306 $as_echo "$FREETYPE_CONFIG" >&6; }
17307 else
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17309 $as_echo "no" >&6; }
17310 fi
17311
17312
17313 if test "x$FREETYPE_CONFIG" = "xyes"; then
17314 FREETYPE2_CFLAGS="`freetype-config --cflags`"
17315 FREETYPE2_LIBS="`freetype-config --libs`"
17316 fi
17317 fi
17318
17319 GDIPLUS_LIBS="$GDIPLUS_LIBS $FONTCONFIG_LIBS $FREETYPE2_LIBS"
17320 GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS $FONTCONFIG_CFLAGS $FREETYPE2_CFLAGS"
17321
17322 for ac_header in byteswap.h
17323 do :
17324 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
17325 if test "x$ac_cv_header_byteswap_h" = xyes; then :
17326 cat >>confdefs.h <<_ACEOF
17327 #define HAVE_BYTESWAP_H 1
17328 _ACEOF
17329
17330 fi
17331
17332 done
17333
17334
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
17336 $as_echo_n "checking for library containing sqrt... " >&6; }
17337 if ${ac_cv_search_sqrt+:} false; then :
17338 $as_echo_n "(cached) " >&6
17339 else
17340 ac_func_search_save_LIBS=$LIBS
17341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342 /* end confdefs.h. */
17343
17344 /* Override any GCC internal prototype to avoid an error.
17345 Use char because int might match the return type of a GCC
17346 builtin and then its argument prototype would still apply. */
17347 #ifdef __cplusplus
17348 extern "C"
17349 #endif
17350 char sqrt ();
17351 int
17352 main ()
17353 {
17354 return sqrt ();
17355 ;
17356 return 0;
17357 }
17358 _ACEOF
17359 for ac_lib in '' m; do
17360 if test -z "$ac_lib"; then
17361 ac_res="none required"
17362 else
17363 ac_res=-l$ac_lib
17364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17365 fi
17366 if ac_fn_c_try_link "$LINENO"; then :
17367 ac_cv_search_sqrt=$ac_res
17368 fi
17369 rm -f core conftest.err conftest.$ac_objext \
17370 conftest$ac_exeext
17371 if ${ac_cv_search_sqrt+:} false; then :
17372 break
17373 fi
17374 done
17375 if ${ac_cv_search_sqrt+:} false; then :
17376
17377 else
17378 ac_cv_search_sqrt=no
17379 fi
17380 rm conftest.$ac_ext
17381 LIBS=$ac_func_search_save_LIBS
17382 fi
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
17384 $as_echo "$ac_cv_search_sqrt" >&6; }
17385 ac_res=$ac_cv_search_sqrt
17386 if test "$ac_res" != no; then :
17387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17388
17389 fi
17390
17391
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host threading settings" >&5
17393 $as_echo_n "checking host threading settings... " >&6; }
17394 case "$host" in
17395 *-*-mingw*|*-*-cygwin*)
17396
17397 cat >>confdefs.h <<_ACEOF
17398 #define CYGWIN 1
17399 _ACEOF
17400
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
17402 $as_echo_n "checking for gettext in -lintl... " >&6; }
17403 if ${ac_cv_lib_intl_gettext+:} false; then :
17404 $as_echo_n "(cached) " >&6
17405 else
17406 ac_check_lib_save_LIBS=$LIBS
17407 LIBS="-lintl $LIBS"
17408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409 /* end confdefs.h. */
17410
17411 /* Override any GCC internal prototype to avoid an error.
17412 Use char because int might match the return type of a GCC
17413 builtin and then its argument prototype would still apply. */
17414 #ifdef __cplusplus
17415 extern "C"
17416 #endif
17417 char gettext ();
17418 int
17419 main ()
17420 {
17421 return gettext ();
17422 ;
17423 return 0;
17424 }
17425 _ACEOF
17426 if ac_fn_c_try_link "$LINENO"; then :
17427 ac_cv_lib_intl_gettext=yes
17428 else
17429 ac_cv_lib_intl_gettext=no
17430 fi
17431 rm -f core conftest.err conftest.$ac_objext \
17432 conftest$ac_exeext conftest.$ac_ext
17433 LIBS=$ac_check_lib_save_LIBS
17434 fi
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
17436 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
17437 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
17438 cat >>confdefs.h <<_ACEOF
17439 #define HAVE_LIBINTL 1
17440 _ACEOF
17441
17442 LIBS="-lintl $LIBS"
17443
17444 fi
17445
17446 ;;
17447
17448 *-*-*netbsd*)
17449
17450 cat >>confdefs.h <<_ACEOF
17451 #define BSDOS 1
17452 _ACEOF
17453
17454 ;;
17455
17456 *-*-*freebsd*)
17457
17458 cat >>confdefs.h <<_ACEOF
17459 #define BSDOS 1
17460 _ACEOF
17461
17462 CFLAGS="-D_THREAD_SAFE $CFLAGS"
17463 ;;
17464
17465 *-*-*openbsd*)
17466
17467 cat >>confdefs.h <<_ACEOF
17468 #define BSDOS 1
17469 _ACEOF
17470
17471 CFLAGS="$CFLAGS"
17472 LIBS="$LIBS"
17473 ;;
17474
17475 *-*-linux*)
17476
17477 cat >>confdefs.h <<_ACEOF
17478 #define LINUX 1
17479 _ACEOF
17480
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17482 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17483 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17484 $as_echo_n "(cached) " >&6
17485 else
17486 ac_check_lib_save_LIBS=$LIBS
17487 LIBS="-lpthread $LIBS"
17488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17489 /* end confdefs.h. */
17490
17491 /* Override any GCC internal prototype to avoid an error.
17492 Use char because int might match the return type of a GCC
17493 builtin and then its argument prototype would still apply. */
17494 #ifdef __cplusplus
17495 extern "C"
17496 #endif
17497 char pthread_create ();
17498 int
17499 main ()
17500 {
17501 return pthread_create ();
17502 ;
17503 return 0;
17504 }
17505 _ACEOF
17506 if ac_fn_c_try_link "$LINENO"; then :
17507 ac_cv_lib_pthread_pthread_create=yes
17508 else
17509 ac_cv_lib_pthread_pthread_create=no
17510 fi
17511 rm -f core conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17513 LIBS=$ac_check_lib_save_LIBS
17514 fi
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17516 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17517 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17518 cat >>confdefs.h <<_ACEOF
17519 #define HAVE_LIBPTHREAD 1
17520 _ACEOF
17521
17522 LIBS="-lpthread $LIBS"
17523
17524 fi
17525
17526 ;;
17527
17528 *-*-solaris*)
17529
17530 cat >>confdefs.h <<_ACEOF
17531 #define SOLARIS 1
17532 _ACEOF
17533
17534
17535 cat >>confdefs.h <<_ACEOF
17536 #define _REENTRANT 1
17537 _ACEOF
17538
17539 CFLAGS="-pthreads $CFLAGS"
17540 ;;
17541
17542 *-*-aix*|*-*-os400)
17543
17544 cat >>confdefs.h <<_ACEOF
17545 #define AIX 1
17546 _ACEOF
17547
17548 # Specify a 64-bit build via GCC, as Mono is always 64-bit on AIX/PASE
17549 CFLAGS="-D_THREAD_SAFE -maix64 $CFLAGS"
17550 LDFLAGS="-maix64 $LDFLAGS"
17551 # Like mono, don't use `OBJECT_MODE=64`, but specify 64-bit mode IBM binutils
17552 # explictly instead.
17553 AR="/usr/bin/ar -X64"
17554 NM="/usr/bin/nm -X64"
17555 ;;
17556
17557 *-*-darwin*)
17558
17559 cat >>confdefs.h <<_ACEOF
17560 #define OSX 1
17561 _ACEOF
17562
17563 no_libpng16=yes # workaround until we can upgrade the libpng used by bockbuild
17564 ;;
17565
17566 *)
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unrecognized host $host" >&5
17568 $as_echo "Unrecognized host $host" >&6; }
17569
17570 cat >>confdefs.h <<_ACEOF
17571 #define OTHEROS 1
17572 _ACEOF
17573
17574 ;;
17575 esac
17576
17577 # Apparently for BSD special handling needs to happen
17578 # See http://archives/neohapsis.com/archives/openbsd/2001-11/2142.html
17579 # by Miod Vallat <[email protected]>
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler recognizes -pthread" >&5
17581 $as_echo_n "checking if compiler recognizes -pthread... " >&6; }
17582 if ${myapp_cv_gcc_pthread+:} false; then :
17583 $as_echo_n "(cached) " >&6
17584 else
17585 ac_save_CFLAGS=$CFLAGS
17586 CFLAGS="$CFLAGS -pthread"
17587
17588 ac_ext=c
17589 ac_cpp='$CPP $CPPFLAGS'
17590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17593
17594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595 /* end confdefs.h. */
17596 #include <pthread.h>
17597 int
17598 main ()
17599 {
17600 void *p = pthread_create;
17601 ;
17602 return 0;
17603 }
17604 _ACEOF
17605 if ac_fn_c_try_link "$LINENO"; then :
17606 myapp_cv_gcc_pthread=yes
17607 else
17608 myapp_cv_gcc_pthread=no
17609 fi
17610 rm -f core conftest.err conftest.$ac_objext \
17611 conftest$ac_exeext conftest.$ac_ext
17612 ac_ext=c
17613 ac_cpp='$CPP $CPPFLAGS'
17614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17617
17618 CFLAGS=$ac_save_CFLAGS
17619
17620 fi
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $myapp_cv_gcc_pthread" >&5
17622 $as_echo "$myapp_cv_gcc_pthread" >&6; }
17623 if test $myapp_cv_gcc_pthread = yes
17624 then
17625 myapp_threads=""
17626 CFLAGS="$CFLAGS -pthread"
17627 else
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17629 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17630 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17631 $as_echo_n "(cached) " >&6
17632 else
17633 ac_check_lib_save_LIBS=$LIBS
17634 LIBS="-lpthread $LIBS"
17635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17636 /* end confdefs.h. */
17637
17638 /* Override any GCC internal prototype to avoid an error.
17639 Use char because int might match the return type of a GCC
17640 builtin and then its argument prototype would still apply. */
17641 #ifdef __cplusplus
17642 extern "C"
17643 #endif
17644 char pthread_create ();
17645 int
17646 main ()
17647 {
17648 return pthread_create ();
17649 ;
17650 return 0;
17651 }
17652 _ACEOF
17653 if ac_fn_c_try_link "$LINENO"; then :
17654 ac_cv_lib_pthread_pthread_create=yes
17655 else
17656 ac_cv_lib_pthread_pthread_create=no
17657 fi
17658 rm -f core conftest.err conftest.$ac_objext \
17659 conftest$ac_exeext conftest.$ac_ext
17660 LIBS=$ac_check_lib_save_LIBS
17661 fi
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17663 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17664 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17665 myapp_threads=-lpthread
17666 else
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
17668 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
17669 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
17670 $as_echo_n "(cached) " >&6
17671 else
17672 ac_check_lib_save_LIBS=$LIBS
17673 LIBS="-lc_r $LIBS"
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17676
17677 /* Override any GCC internal prototype to avoid an error.
17678 Use char because int might match the return type of a GCC
17679 builtin and then its argument prototype would still apply. */
17680 #ifdef __cplusplus
17681 extern "C"
17682 #endif
17683 char pthread_create ();
17684 int
17685 main ()
17686 {
17687 return pthread_create ();
17688 ;
17689 return 0;
17690 }
17691 _ACEOF
17692 if ac_fn_c_try_link "$LINENO"; then :
17693 ac_cv_lib_c_r_pthread_create=yes
17694 else
17695 ac_cv_lib_c_r_pthread_create=no
17696 fi
17697 rm -f core conftest.err conftest.$ac_objext \
17698 conftest$ac_exeext conftest.$ac_ext
17699 LIBS=$ac_check_lib_save_LIBS
17700 fi
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
17702 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
17703 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
17704 myapp_threads=-lc_r
17705 fi
17706
17707 fi
17708
17709 fi
17710
17711
17712 # sigsetjmp is a macro on some platforms, so can't use AC_CHECK_FUNCS
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
17714 $as_echo_n "checking for sigsetjmp... " >&6; }
17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17717 #include <setjmp.h>
17718 int
17719 main ()
17720 {
17721
17722 sigjmp_buf env;
17723 sigsetjmp(env, 0);
17724
17725 ;
17726 return 0;
17727 }
17728 _ACEOF
17729 if ac_fn_c_try_link "$LINENO"; then :
17730 gdip_ok=yes
17731 else
17732 gdip_ok=no
17733 fi
17734 rm -f core conftest.err conftest.$ac_objext \
17735 conftest$ac_exeext conftest.$ac_ext
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdip_ok" >&5
17737 $as_echo "$gdip_ok" >&6; }
17738 if test "$gdip_ok" = "yes"; then
17739
17740 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
17741
17742 fi
17743
17744
17745 # when possible hide stuff we don't want to export
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility __attribute__" >&5
17747 $as_echo_n "checking for visibility __attribute__... " >&6; }
17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h. */
17750
17751 int
17752 main ()
17753 {
17754
17755 void __attribute__ ((visibility ("hidden"))) doit (void) {}
17756 void main () { doit (); }
17757
17758 ;
17759 return 0;
17760 }
17761 _ACEOF
17762 if ac_fn_c_try_compile "$LINENO"; then :
17763
17764 have_visibility_hidden=yes
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17766 $as_echo "yes" >&6; }
17767
17768 else
17769
17770 have_visibility_hidden=no
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17772 $as_echo "no" >&6; }
17773
17774 fi
17775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17776
17777 case "$host" in
17778 i*86-*-*)
17779 case $host_os in
17780 solaris*)
17781 # On solaris 10 x86, gcc prints a warning saying 'visibility attribute not supported on this configuration; ignored', but linking fails.
17782 have_visibility_hidden=no
17783 esac
17784 ;;
17785 powerpc-*-*)
17786 case $host_os in
17787 aix*|os400*)
17788 # XCOFF doesn't have this, but somehow it appears anyways
17789 have_visibility_hidden=no
17790 esac
17791 ;;
17792 esac
17793
17794 if test "x$have_visibility_hidden" = "xyes"; then
17795
17796 $as_echo "#define HAVE_VISIBILITY_HIDDEN 1" >>confdefs.h
17797
17798 fi
17799
17800
17801
17802 # Check whether --with-libexif was given.
17803 if test "${with_libexif+set}" = set; then :
17804 withval=$with_libexif;
17805 fi
17806
17807
17808 case $prefix in
17809 NONE) prefix=$ac_default_prefix ;;
17810 esac
17811
17812
17813 # Check whether --with-libjpeg was given.
17814 if test "${with_libjpeg+set}" = set; then :
17815 withval=$with_libjpeg; libjpeg_prefix="$withval"
17816 else
17817 libjpeg_prefix="${prefix}"
17818 fi
17819
17820
17821 if test x$with_libjpeg != xno && test -z "$LIBJPEG"; then
17822 JPEG_CFLAGS="-I${libjpeg_prefix}/include"
17823 JPEG_LIBS="-L${libjpeg_prefix}/lib"
17824 save_cflags=$CFLAGS; CFLAGS=$JPEG_CFLAGS
17825 save_libs=$LIBS; LIBS=$JPEG_LIBS
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5
17827 $as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; }
17828 if ${ac_cv_lib_jpeg_jpeg_destroy_decompress+:} false; then :
17829 $as_echo_n "(cached) " >&6
17830 else
17831 ac_check_lib_save_LIBS=$LIBS
17832 LIBS="-ljpeg $LIBS"
17833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834 /* end confdefs.h. */
17835
17836 /* Override any GCC internal prototype to avoid an error.
17837 Use char because int might match the return type of a GCC
17838 builtin and then its argument prototype would still apply. */
17839 #ifdef __cplusplus
17840 extern "C"
17841 #endif
17842 char jpeg_destroy_decompress ();
17843 int
17844 main ()
17845 {
17846 return jpeg_destroy_decompress ();
17847 ;
17848 return 0;
17849 }
17850 _ACEOF
17851 if ac_fn_c_try_link "$LINENO"; then :
17852 ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
17853 else
17854 ac_cv_lib_jpeg_jpeg_destroy_decompress=no
17855 fi
17856 rm -f core conftest.err conftest.$ac_objext \
17857 conftest$ac_exeext conftest.$ac_ext
17858 LIBS=$ac_check_lib_save_LIBS
17859 fi
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
17861 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
17862 if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = xyes; then :
17863 jpeg_ok=yes
17864 else
17865 jpeg_ok=no
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** JPEG loader will not be built (JPEG library not found) ***" >&5
17867 $as_echo "$as_me: WARNING: *** JPEG loader will not be built (JPEG library not found) ***" >&2;}
17868 fi
17869
17870 if test "$jpeg_ok" = yes; then
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeglib.h" >&5
17872 $as_echo_n "checking for jpeglib.h... " >&6; }
17873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874 /* end confdefs.h. */
17875 #include <stdio.h>
17876 #undef PACKAGE
17877 #undef VERSION
17878 #undef HAVE_STDLIB_H
17879 #include <jpeglib.h>
17880 _ACEOF
17881 if ac_fn_c_try_cpp "$LINENO"; then :
17882 jpeg_ok=yes
17883 else
17884 jpeg_ok=no
17885 fi
17886 rm -f conftest.err conftest.i conftest.$ac_ext
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jpeg_ok" >&5
17888 $as_echo "$jpeg_ok" >&6; }
17889 if test "$jpeg_ok" = yes; then
17890 JPEG='jpeg'; LIBJPEG="-ljpeg"
17891
17892 if test "$libjpeg_prefix" != "NONE"; then
17893 LIBJPEG="$LIBJPEG -L$libjpeg_prefix"
17894 fi
17895
17896 else
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** JPEG loader will not be built (JPEG header file not found) ***" >&5
17898 $as_echo "$as_me: WARNING: *** JPEG loader will not be built (JPEG header file not found) ***" >&2;}
17899 fi
17900 fi
17901 CFLAGS=$save_cflags
17902 LIBS=$save_libs
17903 fi
17904
17905 if test x$JPEG != x; then
17906 GDIPLUS_LIBS="$GDIPLUS_LIBS $LIBJPEG"
17907
17908 $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
17909
17910 else
17911 jpeg_ok="no (Get it from http://freshmeat.net/projects/libjpeg)"
17912 fi
17913 if test x$JPEG != x; then
17914 HAVE_LIBJPEG_TRUE=
17915 HAVE_LIBJPEG_FALSE='#'
17916 else
17917 HAVE_LIBJPEG_TRUE='#'
17918 HAVE_LIBJPEG_FALSE=
17919 fi
17920
17921
17922
17923 # Check whether --with-libtiff was given.
17924 if test "${with_libtiff+set}" = set; then :
17925 withval=$with_libtiff; libtiff_prefix="$withval"
17926 else
17927 libtiff_prefix="${prefix}"
17928 fi
17929
17930
17931 if test x$with_libtiff != xno && test -z "$LIBTIFF"; then
17932 TIFF_CFLAGS="-I${libjpeg_prefix}/include -I${libtiff_prefix}/include"
17933 TIFF_LIBS="-L${libjpeg_prefix}/lib -L${libtiff_prefix}/lib"
17934 save_cflags=$CFLAGS; CFLAGS=$TIFF_CFLAGS
17935 save_libs=$LIBS; LIBS=$TIFF_LIBS
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5
17937 $as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; }
17938 if ${ac_cv_lib_tiff_TIFFReadScanline+:} false; then :
17939 $as_echo_n "(cached) " >&6
17940 else
17941 ac_check_lib_save_LIBS=$LIBS
17942 LIBS="-ltiff -lm $LIBS"
17943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17944 /* end confdefs.h. */
17945
17946 /* Override any GCC internal prototype to avoid an error.
17947 Use char because int might match the return type of a GCC
17948 builtin and then its argument prototype would still apply. */
17949 #ifdef __cplusplus
17950 extern "C"
17951 #endif
17952 char TIFFReadScanline ();
17953 int
17954 main ()
17955 {
17956 return TIFFReadScanline ();
17957 ;
17958 return 0;
17959 }
17960 _ACEOF
17961 if ac_fn_c_try_link "$LINENO"; then :
17962 ac_cv_lib_tiff_TIFFReadScanline=yes
17963 else
17964 ac_cv_lib_tiff_TIFFReadScanline=no
17965 fi
17966 rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
17968 LIBS=$ac_check_lib_save_LIBS
17969 fi
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5
17971 $as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; }
17972 if test "x$ac_cv_lib_tiff_TIFFReadScanline" = xyes; then :
17973 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
17974 if test "x$ac_cv_header_tiffio_h" = xyes; then :
17975 TIFF='tiff'; LIBTIFF='-ltiff'; tiff_ok=yes
17976 else
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** TIFF loader will not be built (TIFF header files not found) ***" >&5
17978 $as_echo "$as_me: WARNING: *** TIFF loader will not be built (TIFF header files not found) ***" >&2;}
17979 fi
17980
17981
17982 else
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFWriteScanline in -ltiff" >&5
17984 $as_echo_n "checking for TIFFWriteScanline in -ltiff... " >&6; }
17985 if ${ac_cv_lib_tiff_TIFFWriteScanline+:} false; then :
17986 $as_echo_n "(cached) " >&6
17987 else
17988 ac_check_lib_save_LIBS=$LIBS
17989 LIBS="-ltiff -ljpeg -lz -lm $LIBS"
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17992
17993 /* Override any GCC internal prototype to avoid an error.
17994 Use char because int might match the return type of a GCC
17995 builtin and then its argument prototype would still apply. */
17996 #ifdef __cplusplus
17997 extern "C"
17998 #endif
17999 char TIFFWriteScanline ();
18000 int
18001 main ()
18002 {
18003 return TIFFWriteScanline ();
18004 ;
18005 return 0;
18006 }
18007 _ACEOF
18008 if ac_fn_c_try_link "$LINENO"; then :
18009 ac_cv_lib_tiff_TIFFWriteScanline=yes
18010 else
18011 ac_cv_lib_tiff_TIFFWriteScanline=no
18012 fi
18013 rm -f core conftest.err conftest.$ac_objext \
18014 conftest$ac_exeext conftest.$ac_ext
18015 LIBS=$ac_check_lib_save_LIBS
18016 fi
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFWriteScanline" >&5
18018 $as_echo "$ac_cv_lib_tiff_TIFFWriteScanline" >&6; }
18019 if test "x$ac_cv_lib_tiff_TIFFWriteScanline" = xyes; then :
18020 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
18021 if test "x$ac_cv_header_tiffio_h" = xyes; then :
18022 TIFF='tiff'; LIBTIFF='-ltiff -ljpeg -lz'; tiff_ok=yes
18023 else
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** TIFF loader will not be built (TIFF header files not found) ***" >&5
18025 $as_echo "$as_me: WARNING: *** TIFF loader will not be built (TIFF header files not found) ***" >&2;}
18026 fi
18027
18028
18029 else
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFFlushData in -ltiff34" >&5
18031 $as_echo_n "checking for TIFFFlushData in -ltiff34... " >&6; }
18032 if ${ac_cv_lib_tiff34_TIFFFlushData+:} false; then :
18033 $as_echo_n "(cached) " >&6
18034 else
18035 ac_check_lib_save_LIBS=$LIBS
18036 LIBS="-ltiff34 -lz -lm $LIBS"
18037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18038 /* end confdefs.h. */
18039
18040 /* Override any GCC internal prototype to avoid an error.
18041 Use char because int might match the return type of a GCC
18042 builtin and then its argument prototype would still apply. */
18043 #ifdef __cplusplus
18044 extern "C"
18045 #endif
18046 char TIFFFlushData ();
18047 int
18048 main ()
18049 {
18050 return TIFFFlushData ();
18051 ;
18052 return 0;
18053 }
18054 _ACEOF
18055 if ac_fn_c_try_link "$LINENO"; then :
18056 ac_cv_lib_tiff34_TIFFFlushData=yes
18057 else
18058 ac_cv_lib_tiff34_TIFFFlushData=no
18059 fi
18060 rm -f core conftest.err conftest.$ac_objext \
18061 conftest$ac_exeext conftest.$ac_ext
18062 LIBS=$ac_check_lib_save_LIBS
18063 fi
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff34_TIFFFlushData" >&5
18065 $as_echo "$ac_cv_lib_tiff34_TIFFFlushData" >&6; }
18066 if test "x$ac_cv_lib_tiff34_TIFFFlushData" = xyes; then :
18067 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
18068 if test "x$ac_cv_header_tiffio_h" = xyes; then :
18069 TIFF='tiff'; LIBTIFF='-ltiff34 -ljpeg -lz'; tiff_ok=yes
18070 else
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** TIFF loader will not be built (TIFF header files not found) ***" >&5
18072 $as_echo "$as_me: WARNING: *** TIFF loader will not be built (TIFF header files not found) ***" >&2;}
18073 fi
18074
18075
18076 else
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** TIFF plug-in will not be built (TIFF library not found) ***" >&5
18078 $as_echo "$as_me: WARNING: *** TIFF plug-in will not be built (TIFF library not found) ***" >&2;}
18079 fi
18080
18081 fi
18082
18083 fi
18084
18085 CFLAGS=$save_cflags
18086 LIBS=$save_libs
18087 fi
18088
18089 if test x$TIFF != x; then
18090 GDIPLUS_LIBS="$GDIPLUS_LIBS $LIBTIFF"
18091
18092 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
18093
18094 else
18095 tiff_ok="no (Get it from http://www.libtiff.org/)"
18096 fi
18097 if test x$TIFF != x; then
18098 HAVE_LIBTIFF_TRUE=
18099 HAVE_LIBTIFF_FALSE='#'
18100 else
18101 HAVE_LIBTIFF_TRUE='#'
18102 HAVE_LIBTIFF_FALSE=
18103 fi
18104
18105
18106
18107 # Check whether --with-libgif was given.
18108 if test "${with_libgif+set}" = set; then :
18109 withval=$with_libgif; libgif_prefix="$withval"
18110 else
18111 libgif_prefix="${prefix}"
18112 fi
18113
18114
18115 if test x$with_libgif != xno && test -z "$LIBGIF"; then
18116 GIF_CFLAGS="-I${libgif_prefix}/include"
18117 GIF_LIBS="-L${libgif_prefix}/lib"
18118 save_cflags=$CFLAGS; CFLAGS=$GIF_CFLAGS
18119 save_libs=$LIBS; LIBS=$GIF_LIBS
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileName in -lgif" >&5
18121 $as_echo_n "checking for DGifOpenFileName in -lgif... " >&6; }
18122 if ${ac_cv_lib_gif_DGifOpenFileName+:} false; then :
18123 $as_echo_n "(cached) " >&6
18124 else
18125 ac_check_lib_save_LIBS=$LIBS
18126 LIBS="-lgif $LIBS"
18127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18128 /* end confdefs.h. */
18129
18130 /* Override any GCC internal prototype to avoid an error.
18131 Use char because int might match the return type of a GCC
18132 builtin and then its argument prototype would still apply. */
18133 #ifdef __cplusplus
18134 extern "C"
18135 #endif
18136 char DGifOpenFileName ();
18137 int
18138 main ()
18139 {
18140 return DGifOpenFileName ();
18141 ;
18142 return 0;
18143 }
18144 _ACEOF
18145 if ac_fn_c_try_link "$LINENO"; then :
18146 ac_cv_lib_gif_DGifOpenFileName=yes
18147 else
18148 ac_cv_lib_gif_DGifOpenFileName=no
18149 fi
18150 rm -f core conftest.err conftest.$ac_objext \
18151 conftest$ac_exeext conftest.$ac_ext
18152 LIBS=$ac_check_lib_save_LIBS
18153 fi
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpenFileName" >&5
18155 $as_echo "$ac_cv_lib_gif_DGifOpenFileName" >&6; }
18156 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then :
18157 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
18158 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
18159 GIF='gif'; LIBGIF='-lgif'; gif_ok=yes
18160 else
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** GIF loader will not be built (giflibrary not found) ***" >&5
18162 $as_echo "$as_me: WARNING: *** GIF loader will not be built (giflibrary not found) ***" >&2;}
18163 fi
18164
18165
18166 else
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** GIF loader will not be built (giflibrary not found) ***" >&5
18168 $as_echo "$as_me: WARNING: *** GIF loader will not be built (giflibrary not found) ***" >&2;}
18169 fi
18170
18171
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileName in -lungif" >&5
18173 $as_echo_n "checking for DGifOpenFileName in -lungif... " >&6; }
18174 if ${ac_cv_lib_ungif_DGifOpenFileName+:} false; then :
18175 $as_echo_n "(cached) " >&6
18176 else
18177 ac_check_lib_save_LIBS=$LIBS
18178 LIBS="-lungif $LIBS"
18179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180 /* end confdefs.h. */
18181
18182 /* Override any GCC internal prototype to avoid an error.
18183 Use char because int might match the return type of a GCC
18184 builtin and then its argument prototype would still apply. */
18185 #ifdef __cplusplus
18186 extern "C"
18187 #endif
18188 char DGifOpenFileName ();
18189 int
18190 main ()
18191 {
18192 return DGifOpenFileName ();
18193 ;
18194 return 0;
18195 }
18196 _ACEOF
18197 if ac_fn_c_try_link "$LINENO"; then :
18198 ac_cv_lib_ungif_DGifOpenFileName=yes
18199 else
18200 ac_cv_lib_ungif_DGifOpenFileName=no
18201 fi
18202 rm -f core conftest.err conftest.$ac_objext \
18203 conftest$ac_exeext conftest.$ac_ext
18204 LIBS=$ac_check_lib_save_LIBS
18205 fi
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_DGifOpenFileName" >&5
18207 $as_echo "$ac_cv_lib_ungif_DGifOpenFileName" >&6; }
18208 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then :
18209 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
18210 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
18211 GIF='ungif'; LIBGIF='-lungif'; gif_ok=yes
18212 else
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** GIF loader will not be built (ungiflibrary not found) ***" >&5
18214 $as_echo "$as_me: WARNING: *** GIF loader will not be built (ungiflibrary not found) ***" >&2;}
18215 fi
18216
18217
18218 else
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** GIF loader will not be built (ungiflibrary not found) ***" >&5
18220 $as_echo "$as_me: WARNING: *** GIF loader will not be built (ungiflibrary not found) ***" >&2;}
18221 fi
18222
18223 CFLAGS=$save_cflags
18224 LIBS=$save_libs
18225 fi
18226
18227 if test x$GIF != x; then
18228 GDIPLUS_LIBS="$GDIPLUS_LIBS $LIBGIF"
18229
18230 $as_echo "#define HAVE_LIBGIF 1" >>confdefs.h
18231
18232 else
18233 gif_ok="no (See http://sourceforge.net/projects/libgif)"
18234 fi
18235
18236 libpng_found=no
18237
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng16" >&5
18239 $as_echo_n "checking for libpng16... " >&6; }
18240 if test "x$no_libpng16" != "x"; then
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
18242 $as_echo "skipped" >&6; }
18243 elif $PKG_CONFIG --exists libpng16 ; then
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18245 $as_echo "yes" >&6; }
18246 PNG='png'
18247 PNG_DEP_CFLAGS_PACKAGES=libpng16
18248 LIBPNG=`$PKG_CONFIG --libs libpng16`
18249 libpng_found=yes
18250 else
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18252 $as_echo "no" >&6; }
18253 fi
18254
18255 if test "x$libpng_found" != "xyes"; then
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng14" >&5
18257 $as_echo_n "checking for libpng14... " >&6; }
18258 if $PKG_CONFIG --exists libpng14 ; then
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18260 $as_echo "yes" >&6; }
18261 PNG='png'
18262 PNG_DEP_CFLAGS_PACKAGES=libpng14
18263 LIBPNG=`$PKG_CONFIG --libs libpng14`
18264 libpng_found=yes
18265 else
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18267 $as_echo "no" >&6; }
18268 fi
18269 fi
18270
18271 if test "x$libpng_found" != "xyes"; then
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng12" >&5
18273 $as_echo_n "checking for libpng12... " >&6; }
18274 if $PKG_CONFIG --exists libpng12 ; then
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18276 $as_echo "yes" >&6; }
18277 PNG='png'
18278 PNG_DEP_CFLAGS_PACKAGES=libpng12
18279 LIBPNG=`$PKG_CONFIG --libs libpng12`
18280 libpng_found=yes
18281 else
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18283 $as_echo "no" >&6; }
18284 fi
18285 fi
18286
18287 if test "x$libpng_found" != "xyes"; then
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png" >&5
18289 $as_echo_n "checking for png... " >&6; }
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_info in -lpng" >&5
18291 $as_echo_n "checking for png_read_info in -lpng... " >&6; }
18292 if ${ac_cv_lib_png_png_read_info+:} false; then :
18293 $as_echo_n "(cached) " >&6
18294 else
18295 ac_check_lib_save_LIBS=$LIBS
18296 LIBS="-lpng -lz -lm $LIBS"
18297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h. */
18299
18300 /* Override any GCC internal prototype to avoid an error.
18301 Use char because int might match the return type of a GCC
18302 builtin and then its argument prototype would still apply. */
18303 #ifdef __cplusplus
18304 extern "C"
18305 #endif
18306 char png_read_info ();
18307 int
18308 main ()
18309 {
18310 return png_read_info ();
18311 ;
18312 return 0;
18313 }
18314 _ACEOF
18315 if ac_fn_c_try_link "$LINENO"; then :
18316 ac_cv_lib_png_png_read_info=yes
18317 else
18318 ac_cv_lib_png_png_read_info=no
18319 fi
18320 rm -f core conftest.err conftest.$ac_objext \
18321 conftest$ac_exeext conftest.$ac_ext
18322 LIBS=$ac_check_lib_save_LIBS
18323 fi
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_info" >&5
18325 $as_echo "$ac_cv_lib_png_png_read_info" >&6; }
18326 if test "x$ac_cv_lib_png_png_read_info" = xyes; then :
18327 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
18328 if test "x$ac_cv_header_png_h" = xyes; then :
18329 png_ok=yes
18330 else
18331 png_ok=no
18332 fi
18333
18334
18335 else
18336 as_fn_error $? "*** libpng12 not found. See http://www.libpng.org/pub/png/libpng.html." "$LINENO" 5
18337 fi
18338
18339 if test "$png_ok" = yes; then
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_structp in png.h" >&5
18341 $as_echo_n "checking for png_structp in png.h... " >&6; }
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h. */
18344 #include <png.h>
18345 int
18346 main ()
18347 {
18348 png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;
18349 ;
18350 return 0;
18351 }
18352 _ACEOF
18353 if ac_fn_c_try_compile "$LINENO"; then :
18354 png_ok=yes
18355 else
18356 png_ok=no
18357 fi
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $png_ok" >&5
18360 $as_echo "$png_ok" >&6; }
18361 if test "$png_ok" = yes; then
18362 PNG='png'; LIBPNG='-lpng -lz'
18363 else
18364 as_fn_error but it is too old. See http://www.libpng.org/pub/png/libpng.html. "*** libpng12 found" "$LINENO" 5
18365 fi
18366 else
18367 as_fn_error $? "*** libpng12 not found. See http://www.libpng.org/pub/png/libpng.html." "$LINENO" 5
18368 fi
18369 fi
18370
18371
18372 GDIPLUS_LIBS="$GDIPLUS_LIBS $LIBPNG"
18373
18374 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
18375
18376
18377
18378
18379 # Check whether --with-x11 was given.
18380 if test "${with_x11+set}" = set; then :
18381 withval=$with_x11; disable_x11=yes
18382 fi
18383
18384
18385 if test x$disable_x11 != xyes; then
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 support" >&5
18387 $as_echo_n "checking X11 support... " >&6; }
18388 if $PKG_CONFIG --exists x11 ; then
18389 GDIPLUS_LIBS="$GDIPLUS_LIBS `$PKG_CONFIG --libs x11`"
18390 GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS `$PKG_CONFIG --cflags x11`"
18391 x11_available=yes
18392 else
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18395 #include <X11/Xlib.h>
18396 int
18397 main ()
18398 {
18399
18400 ;
18401 return 0;
18402 }
18403 _ACEOF
18404 if ac_fn_c_try_compile "$LINENO"; then :
18405 x11_available=yes
18406 else
18407 x11_available=no
18408 fi
18409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18410 fi
18411
18412 if test "x$x11_available" != "xyes"; then
18413 as_fn_error $? " Failed to compile with X11/Xlib.h include. You must fix your compiler paths " "$LINENO" 5
18414 else
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18416 $as_echo "yes" >&6; }
18417 fi
18418 else
18419 x11_available=no
18420 fi
18421
18422 if test x$x11_available = xyes; then
18423
18424 $as_echo "#define HAVE_X11 1" >>confdefs.h
18425
18426 fi
18427 if test x$x11_available = xyes; then
18428 HAVE_X11_TRUE=
18429 HAVE_X11_FALSE='#'
18430 else
18431 HAVE_X11_TRUE='#'
18432 HAVE_X11_FALSE=
18433 fi
18434
18435
18436 if test x$with_libexif != xno && test -z "$LIBEXIF"; then
18437
18438 pkg_failed=no
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEXIF" >&5
18440 $as_echo_n "checking for LIBEXIF... " >&6; }
18441
18442 if test -n "$LIBEXIF_CFLAGS"; then
18443 pkg_cv_LIBEXIF_CFLAGS="$LIBEXIF_CFLAGS"
18444 elif test -n "$PKG_CONFIG"; then
18445 if test -n "$PKG_CONFIG" && \
18446 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexif\""; } >&5
18447 ($PKG_CONFIG --exists --print-errors "libexif") 2>&5
18448 ac_status=$?
18449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18450 test $ac_status = 0; }; then
18451 pkg_cv_LIBEXIF_CFLAGS=`$PKG_CONFIG --cflags "libexif" 2>/dev/null`
18452 test "x$?" != "x0" && pkg_failed=yes
18453 else
18454 pkg_failed=yes
18455 fi
18456 else
18457 pkg_failed=untried
18458 fi
18459 if test -n "$LIBEXIF_LIBS"; then
18460 pkg_cv_LIBEXIF_LIBS="$LIBEXIF_LIBS"
18461 elif test -n "$PKG_CONFIG"; then
18462 if test -n "$PKG_CONFIG" && \
18463 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexif\""; } >&5
18464 ($PKG_CONFIG --exists --print-errors "libexif") 2>&5
18465 ac_status=$?
18466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18467 test $ac_status = 0; }; then
18468 pkg_cv_LIBEXIF_LIBS=`$PKG_CONFIG --libs "libexif" 2>/dev/null`
18469 test "x$?" != "x0" && pkg_failed=yes
18470 else
18471 pkg_failed=yes
18472 fi
18473 else
18474 pkg_failed=untried
18475 fi
18476
18477
18478
18479 if test $pkg_failed = yes; then
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18481 $as_echo "no" >&6; }
18482
18483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18484 _pkg_short_errors_supported=yes
18485 else
18486 _pkg_short_errors_supported=no
18487 fi
18488 if test $_pkg_short_errors_supported = yes; then
18489 LIBEXIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libexif" 2>&1`
18490 else
18491 LIBEXIF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libexif" 2>&1`
18492 fi
18493 # Put the nasty error message in config.log where it belongs
18494 echo "$LIBEXIF_PKG_ERRORS" >&5
18495
18496 libexif_pkgconfig=no]
18497 elif test $pkg_failed = untried; then
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18499 $as_echo "no" >&6; }
18500 libexif_pkgconfig=no]
18501 else
18502 LIBEXIF_CFLAGS=$pkg_cv_LIBEXIF_CFLAGS
18503 LIBEXIF_LIBS=$pkg_cv_LIBEXIF_LIBS
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18505 $as_echo "yes" >&6; }
18506 libexif_pkgconfig=yes
18507 fi
18508 if test x$libexif_pkgconfig = xyes ; then
18509 GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS $LIBEXIF_CFLAGS"
18510 GDIPLUS_LIBS="$GDIPLUS_LIBS $LIBEXIF_LIBS"
18511
18512 $as_echo "#define HAVE_LIBEXIF 1" >>confdefs.h
18513
18514 else
18515 libexif_pkgconfig="No. Get it from http://libexif.sourceforge.net/"
18516 fi
18517 else
18518 libexif_pkgconfig="No. You disabled it."
18519 fi
18520 if test x$libexif_pkgconfig = xyes; then
18521 HAVE_LIBEXIF_TRUE=
18522 HAVE_LIBEXIF_FALSE='#'
18523 else
18524 HAVE_LIBEXIF_TRUE='#'
18525 HAVE_LIBEXIF_FALSE=
18526 fi
18527
18528
18529 GDIPLUS_PKG_LIBS="$GDIPLUS_LIBS"
18530 GDIPLUS_PKG_CFLAGS="$GDIPLUS_CFLAGS"
18531
18532
18533
18534
18535
18536
18537
18538
18539 ac_config_files="$ac_config_files Makefile libgdiplus.pc libgdiplus0.spec src/Makefile tests/Makefile"
18540
18541 cat >confcache <<\_ACEOF
18542 # This file is a shell script that caches the results of configure
18543 # tests run on this system so they can be shared between configure
18544 # scripts and configure runs, see configure's option --config-cache.
18545 # It is not useful on other systems. If it contains results you don't
18546 # want to keep, you may remove or edit it.
18547 #
18548 # config.status only pays attention to the cache file if you give it
18549 # the --recheck option to rerun configure.
18550 #
18551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18553 # following values.
18554
18555 _ACEOF
18556
18557 # The following way of writing the cache mishandles newlines in values,
18558 # but we know of no workaround that is simple, portable, and efficient.
18559 # So, we kill variables containing newlines.
18560 # Ultrix sh set writes to stderr and can't be redirected directly,
18561 # and sets the high bit in the cache file unless we assign to the vars.
18562 (
18563 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18564 eval ac_val=\$$ac_var
18565 case $ac_val in #(
18566 *${as_nl}*)
18567 case $ac_var in #(
18568 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18569 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18570 esac
18571 case $ac_var in #(
18572 _ | IFS | as_nl) ;; #(
18573 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18574 *) { eval $ac_var=; unset $ac_var;} ;;
18575 esac ;;
18576 esac
18577 done
18578
18579 (set) 2>&1 |
18580 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18581 *${as_nl}ac_space=\ *)
18582 # `set' does not quote correctly, so add quotes: double-quote
18583 # substitution turns \\\\ into \\, and sed turns \\ into \.
18584 sed -n \
18585 "s/'/'\\\\''/g;
18586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18587 ;; #(
18588 *)
18589 # `set' quotes correctly as required by POSIX, so do not add quotes.
18590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18591 ;;
18592 esac |
18593 sort
18594 ) |
18595 sed '
18596 /^ac_cv_env_/b end
18597 t clear
18598 :clear
18599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18600 t end
18601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18602 :end' >>confcache
18603 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18604 if test -w "$cache_file"; then
18605 if test "x$cache_file" != "x/dev/null"; then
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18607 $as_echo "$as_me: updating cache $cache_file" >&6;}
18608 if test ! -f "$cache_file" || test -h "$cache_file"; then
18609 cat confcache >"$cache_file"
18610 else
18611 case $cache_file in #(
18612 */* | ?:*)
18613 mv -f confcache "$cache_file"$$ &&
18614 mv -f "$cache_file"$$ "$cache_file" ;; #(
18615 *)
18616 mv -f confcache "$cache_file" ;;
18617 esac
18618 fi
18619 fi
18620 else
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18623 fi
18624 fi
18625 rm -f confcache
18626
18627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18628 # Let make expand exec_prefix.
18629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18630
18631 DEFS=-DHAVE_CONFIG_H
18632
18633 ac_libobjs=
18634 ac_ltlibobjs=
18635 U=
18636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18637 # 1. Remove the extension, and $U if already installed.
18638 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18639 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18640 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18641 # will be set to the directory where LIBOBJS objects are built.
18642 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18643 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18644 done
18645 LIBOBJS=$ac_libobjs
18646
18647 LTLIBOBJS=$ac_ltlibobjs
18648
18649
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18651 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18652 if test -n "$am_sleep_pid"; then
18653 # Hide warnings about reused PIDs.
18654 wait $am_sleep_pid 2>/dev/null
18655 fi
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18657 $as_echo "done" >&6; }
18658 if test -n "$EXEEXT"; then
18659 am__EXEEXT_TRUE=
18660 am__EXEEXT_FALSE='#'
18661 else
18662 am__EXEEXT_TRUE='#'
18663 am__EXEEXT_FALSE=
18664 fi
18665
18666 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18667 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18669 fi
18670 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18671 as_fn_error $? "conditional \"AMDEP\" was never defined.
18672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18673 fi
18674 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18675 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18677 fi
18678 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18679 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18681 fi
18682
18683 if test -z "${HAVE_CMAKE_TRUE}" && test -z "${HAVE_CMAKE_FALSE}"; then
18684 as_fn_error $? "conditional \"HAVE_CMAKE\" was never defined.
18685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18686 fi
18687 if test -z "${USE_PANGO_RENDERING_TRUE}" && test -z "${USE_PANGO_RENDERING_FALSE}"; then
18688 as_fn_error $? "conditional \"USE_PANGO_RENDERING\" was never defined.
18689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18690 fi
18691 if test -z "${HAVE_LIBJPEG_TRUE}" && test -z "${HAVE_LIBJPEG_FALSE}"; then
18692 as_fn_error $? "conditional \"HAVE_LIBJPEG\" was never defined.
18693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18694 fi
18695 if test -z "${HAVE_LIBTIFF_TRUE}" && test -z "${HAVE_LIBTIFF_FALSE}"; then
18696 as_fn_error $? "conditional \"HAVE_LIBTIFF\" was never defined.
18697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18698 fi
18699 if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then
18700 as_fn_error $? "conditional \"HAVE_X11\" was never defined.
18701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18702 fi
18703 if test -z "${HAVE_LIBEXIF_TRUE}" && test -z "${HAVE_LIBEXIF_FALSE}"; then
18704 as_fn_error $? "conditional \"HAVE_LIBEXIF\" was never defined.
18705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18706 fi
18707
18708 : "${CONFIG_STATUS=./config.status}"
18709 ac_write_fail=0
18710 ac_clean_files_save=$ac_clean_files
18711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18713 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18714 as_write_fail=0
18715 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18716 #! $SHELL
18717 # Generated by $as_me.
18718 # Run this file to recreate the current configuration.
18719 # Compiler output produced by configure, useful for debugging
18720 # configure, is in config.log if it exists.
18721
18722 debug=false
18723 ac_cs_recheck=false
18724 ac_cs_silent=false
18725
18726 SHELL=\${CONFIG_SHELL-$SHELL}
18727 export SHELL
18728 _ASEOF
18729 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18730 ## -------------------- ##
18731 ## M4sh Initialization. ##
18732 ## -------------------- ##
18733
18734 # Be more Bourne compatible
18735 DUALCASE=1; export DUALCASE # for MKS sh
18736 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18737 emulate sh
18738 NULLCMD=:
18739 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18740 # is contrary to our usage. Disable this feature.
18741 alias -g '${1+"$@"}'='"$@"'
18742 setopt NO_GLOB_SUBST
18743 else
18744 case `(set -o) 2>/dev/null` in #(
18745 *posix*) :
18746 set -o posix ;; #(
18747 *) :
18748 ;;
18749 esac
18750 fi
18751
18752
18753 as_nl='
18754 '
18755 export as_nl
18756 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18757 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18758 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18759 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18760 # Prefer a ksh shell builtin over an external printf program on Solaris,
18761 # but without wasting forks for bash or zsh.
18762 if test -z "$BASH_VERSION$ZSH_VERSION" \
18763 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18764 as_echo='print -r --'
18765 as_echo_n='print -rn --'
18766 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18767 as_echo='printf %s\n'
18768 as_echo_n='printf %s'
18769 else
18770 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18771 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18772 as_echo_n='/usr/ucb/echo -n'
18773 else
18774 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18775 as_echo_n_body='eval
18776 arg=$1;
18777 case $arg in #(
18778 *"$as_nl"*)
18779 expr "X$arg" : "X\\(.*\\)$as_nl";
18780 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18781 esac;
18782 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18783 '
18784 export as_echo_n_body
18785 as_echo_n='sh -c $as_echo_n_body as_echo'
18786 fi
18787 export as_echo_body
18788 as_echo='sh -c $as_echo_body as_echo'
18789 fi
18790
18791 # The user is always right.
18792 if test "${PATH_SEPARATOR+set}" != set; then
18793 PATH_SEPARATOR=:
18794 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18795 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18796 PATH_SEPARATOR=';'
18797 }
18798 fi
18799
18800
18801 # IFS
18802 # We need space, tab and new line, in precisely that order. Quoting is
18803 # there to prevent editors from complaining about space-tab.
18804 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18805 # splitting by setting IFS to empty value.)
18806 IFS=" "" $as_nl"
18807
18808 # Find who we are. Look in the path if we contain no directory separator.
18809 as_myself=
18810 case $0 in #((
18811 *[\\/]* ) as_myself=$0 ;;
18812 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18813 for as_dir in $PATH
18814 do
18815 IFS=$as_save_IFS
18816 test -z "$as_dir" && as_dir=.
18817 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18818 done
18819 IFS=$as_save_IFS
18820
18821 ;;
18822 esac
18823 # We did not find ourselves, most probably we were run as `sh COMMAND'
18824 # in which case we are not to be found in the path.
18825 if test "x$as_myself" = x; then
18826 as_myself=$0
18827 fi
18828 if test ! -f "$as_myself"; then
18829 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18830 exit 1
18831 fi
18832
18833 # Unset variables that we do not need and which cause bugs (e.g. in
18834 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18835 # suppresses any "Segmentation fault" message there. '((' could
18836 # trigger a bug in pdksh 5.2.14.
18837 for as_var in BASH_ENV ENV MAIL MAILPATH
18838 do eval test x\${$as_var+set} = xset \
18839 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18840 done
18841 PS1='$ '
18842 PS2='> '
18843 PS4='+ '
18844
18845 # NLS nuisances.
18846 LC_ALL=C
18847 export LC_ALL
18848 LANGUAGE=C
18849 export LANGUAGE
18850
18851 # CDPATH.
18852 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18853
18854
18855 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18856 # ----------------------------------------
18857 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18858 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18859 # script with STATUS, using 1 if that was 0.
18860 as_fn_error ()
18861 {
18862 as_status=$1; test $as_status -eq 0 && as_status=1
18863 if test "$4"; then
18864 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18865 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18866 fi
18867 $as_echo "$as_me: error: $2" >&2
18868 as_fn_exit $as_status
18869 } # as_fn_error
18870
18871
18872 # as_fn_set_status STATUS
18873 # -----------------------
18874 # Set $? to STATUS, without forking.
18875 as_fn_set_status ()
18876 {
18877 return $1
18878 } # as_fn_set_status
18879
18880 # as_fn_exit STATUS
18881 # -----------------
18882 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18883 as_fn_exit ()
18884 {
18885 set +e
18886 as_fn_set_status $1
18887 exit $1
18888 } # as_fn_exit
18889
18890 # as_fn_unset VAR
18891 # ---------------
18892 # Portably unset VAR.
18893 as_fn_unset ()
18894 {
18895 { eval $1=; unset $1;}
18896 }
18897 as_unset=as_fn_unset
18898 # as_fn_append VAR VALUE
18899 # ----------------------
18900 # Append the text in VALUE to the end of the definition contained in VAR. Take
18901 # advantage of any shell optimizations that allow amortized linear growth over
18902 # repeated appends, instead of the typical quadratic growth present in naive
18903 # implementations.
18904 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18905 eval 'as_fn_append ()
18906 {
18907 eval $1+=\$2
18908 }'
18909 else
18910 as_fn_append ()
18911 {
18912 eval $1=\$$1\$2
18913 }
18914 fi # as_fn_append
18915
18916 # as_fn_arith ARG...
18917 # ------------------
18918 # Perform arithmetic evaluation on the ARGs, and store the result in the
18919 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18920 # must be portable across $(()) and expr.
18921 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18922 eval 'as_fn_arith ()
18923 {
18924 as_val=$(( $* ))
18925 }'
18926 else
18927 as_fn_arith ()
18928 {
18929 as_val=`expr "$@" || test $? -eq 1`
18930 }
18931 fi # as_fn_arith
18932
18933
18934 if expr a : '\(a\)' >/dev/null 2>&1 &&
18935 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18936 as_expr=expr
18937 else
18938 as_expr=false
18939 fi
18940
18941 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18942 as_basename=basename
18943 else
18944 as_basename=false
18945 fi
18946
18947 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18948 as_dirname=dirname
18949 else
18950 as_dirname=false
18951 fi
18952
18953 as_me=`$as_basename -- "$0" ||
18954 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18955 X"$0" : 'X\(//\)$' \| \
18956 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18957 $as_echo X/"$0" |
18958 sed '/^.*\/\([^/][^/]*\)\/*$/{
18959 s//\1/
18960 q
18961 }
18962 /^X\/\(\/\/\)$/{
18963 s//\1/
18964 q
18965 }
18966 /^X\/\(\/\).*/{
18967 s//\1/
18968 q
18969 }
18970 s/.*/./; q'`
18971
18972 # Avoid depending upon Character Ranges.
18973 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18974 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18975 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18976 as_cr_digits='0123456789'
18977 as_cr_alnum=$as_cr_Letters$as_cr_digits
18978
18979 ECHO_C= ECHO_N= ECHO_T=
18980 case `echo -n x` in #(((((
18981 -n*)
18982 case `echo 'xy\c'` in
18983 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18984 xy) ECHO_C='\c';;
18985 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18986 ECHO_T=' ';;
18987 esac;;
18988 *)
18989 ECHO_N='-n';;
18990 esac
18991
18992 rm -f conf$$ conf$$.exe conf$$.file
18993 if test -d conf$$.dir; then
18994 rm -f conf$$.dir/conf$$.file
18995 else
18996 rm -f conf$$.dir
18997 mkdir conf$$.dir 2>/dev/null
18998 fi
18999 if (echo >conf$$.file) 2>/dev/null; then
19000 if ln -s conf$$.file conf$$ 2>/dev/null; then
19001 as_ln_s='ln -s'
19002 # ... but there are two gotchas:
19003 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19004 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19005 # In both cases, we have to default to `cp -pR'.
19006 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19007 as_ln_s='cp -pR'
19008 elif ln conf$$.file conf$$ 2>/dev/null; then
19009 as_ln_s=ln
19010 else
19011 as_ln_s='cp -pR'
19012 fi
19013 else
19014 as_ln_s='cp -pR'
19015 fi
19016 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19017 rmdir conf$$.dir 2>/dev/null
19018
19019
19020 # as_fn_mkdir_p
19021 # -------------
19022 # Create "$as_dir" as a directory, including parents if necessary.
19023 as_fn_mkdir_p ()
19024 {
19025
19026 case $as_dir in #(
19027 -*) as_dir=./$as_dir;;
19028 esac
19029 test -d "$as_dir" || eval $as_mkdir_p || {
19030 as_dirs=
19031 while :; do
19032 case $as_dir in #(
19033 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19034 *) as_qdir=$as_dir;;
19035 esac
19036 as_dirs="'$as_qdir' $as_dirs"
19037 as_dir=`$as_dirname -- "$as_dir" ||
19038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19039 X"$as_dir" : 'X\(//\)[^/]' \| \
19040 X"$as_dir" : 'X\(//\)$' \| \
19041 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19042 $as_echo X"$as_dir" |
19043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19044 s//\1/
19045 q
19046 }
19047 /^X\(\/\/\)[^/].*/{
19048 s//\1/
19049 q
19050 }
19051 /^X\(\/\/\)$/{
19052 s//\1/
19053 q
19054 }
19055 /^X\(\/\).*/{
19056 s//\1/
19057 q
19058 }
19059 s/.*/./; q'`
19060 test -d "$as_dir" && break
19061 done
19062 test -z "$as_dirs" || eval "mkdir $as_dirs"
19063 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19064
19065
19066 } # as_fn_mkdir_p
19067 if mkdir -p . 2>/dev/null; then
19068 as_mkdir_p='mkdir -p "$as_dir"'
19069 else
19070 test -d ./-p && rmdir ./-p
19071 as_mkdir_p=false
19072 fi
19073
19074
19075 # as_fn_executable_p FILE
19076 # -----------------------
19077 # Test if FILE is an executable regular file.
19078 as_fn_executable_p ()
19079 {
19080 test -f "$1" && test -x "$1"
19081 } # as_fn_executable_p
19082 as_test_x='test -x'
19083 as_executable_p=as_fn_executable_p
19084
19085 # Sed expression to map a string onto a valid CPP name.
19086 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19087
19088 # Sed expression to map a string onto a valid variable name.
19089 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19090
19091
19092 exec 6>&1
19093 ## ----------------------------------- ##
19094 ## Main body of $CONFIG_STATUS script. ##
19095 ## ----------------------------------- ##
19096 _ASEOF
19097 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19098
19099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19100 # Save the log message, to keep $0 and so on meaningful, and to
19101 # report actual input values of CONFIG_FILES etc. instead of their
19102 # values after options handling.
19103 ac_log="
19104 This file was extended by libgdiplus $as_me 6.1, which was
19105 generated by GNU Autoconf 2.69. Invocation command line was
19106
19107 CONFIG_FILES = $CONFIG_FILES
19108 CONFIG_HEADERS = $CONFIG_HEADERS
19109 CONFIG_LINKS = $CONFIG_LINKS
19110 CONFIG_COMMANDS = $CONFIG_COMMANDS
19111 $ $0 $@
19112
19113 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19114 "
19115
19116 _ACEOF
19117
19118 case $ac_config_files in *"
19119 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19120 esac
19121
19122 case $ac_config_headers in *"
19123 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19124 esac
19125
19126
19127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19128 # Files that config.status was made for.
19129 config_files="$ac_config_files"
19130 config_headers="$ac_config_headers"
19131 config_commands="$ac_config_commands"
19132
19133 _ACEOF
19134
19135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19136 ac_cs_usage="\
19137 \`$as_me' instantiates files and other configuration actions
19138 from templates according to the current configuration. Unless the files
19139 and actions are specified as TAGs, all are instantiated by default.
19140
19141 Usage: $0 [OPTION]... [TAG]...
19142
19143 -h, --help print this help, then exit
19144 -V, --version print version number and configuration settings, then exit
19145 --config print configuration, then exit
19146 -q, --quiet, --silent
19147 do not print progress messages
19148 -d, --debug don't remove temporary files
19149 --recheck update $as_me by reconfiguring in the same conditions
19150 --file=FILE[:TEMPLATE]
19151 instantiate the configuration file FILE
19152 --header=FILE[:TEMPLATE]
19153 instantiate the configuration header FILE
19154
19155 Configuration files:
19156 $config_files
19157
19158 Configuration headers:
19159 $config_headers
19160
19161 Configuration commands:
19162 $config_commands
19163
19164 Report bugs to <https://github.com/mono/mono/issues/new>."
19165
19166 _ACEOF
19167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19168 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19169 ac_cs_version="\\
19170 libgdiplus config.status 6.1
19171 configured by $0, generated by GNU Autoconf 2.69,
19172 with options \\"\$ac_cs_config\\"
19173
19174 Copyright (C) 2012 Free Software Foundation, Inc.
19175 This config.status script is free software; the Free Software Foundation
19176 gives unlimited permission to copy, distribute and modify it."
19177
19178 ac_pwd='$ac_pwd'
19179 srcdir='$srcdir'
19180 INSTALL='$INSTALL'
19181 MKDIR_P='$MKDIR_P'
19182 AWK='$AWK'
19183 test -n "\$AWK" || AWK=awk
19184 _ACEOF
19185
19186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19187 # The default lists apply if the user does not specify any file.
19188 ac_need_defaults=:
19189 while test $# != 0
19190 do
19191 case $1 in
19192 --*=?*)
19193 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19194 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19195 ac_shift=:
19196 ;;
19197 --*=)
19198 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19199 ac_optarg=
19200 ac_shift=:
19201 ;;
19202 *)
19203 ac_option=$1
19204 ac_optarg=$2
19205 ac_shift=shift
19206 ;;
19207 esac
19208
19209 case $ac_option in
19210 # Handling of the options.
19211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19212 ac_cs_recheck=: ;;
19213 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19214 $as_echo "$ac_cs_version"; exit ;;
19215 --config | --confi | --conf | --con | --co | --c )
19216 $as_echo "$ac_cs_config"; exit ;;
19217 --debug | --debu | --deb | --de | --d | -d )
19218 debug=: ;;
19219 --file | --fil | --fi | --f )
19220 $ac_shift
19221 case $ac_optarg in
19222 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19223 '') as_fn_error $? "missing file argument" ;;
19224 esac
19225 as_fn_append CONFIG_FILES " '$ac_optarg'"
19226 ac_need_defaults=false;;
19227 --header | --heade | --head | --hea )
19228 $ac_shift
19229 case $ac_optarg in
19230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19231 esac
19232 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19233 ac_need_defaults=false;;
19234 --he | --h)
19235 # Conflict between --help and --header
19236 as_fn_error $? "ambiguous option: \`$1'
19237 Try \`$0 --help' for more information.";;
19238 --help | --hel | -h )
19239 $as_echo "$ac_cs_usage"; exit ;;
19240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19241 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19242 ac_cs_silent=: ;;
19243
19244 # This is an error.
19245 -*) as_fn_error $? "unrecognized option: \`$1'
19246 Try \`$0 --help' for more information." ;;
19247
19248 *) as_fn_append ac_config_targets " $1"
19249 ac_need_defaults=false ;;
19250
19251 esac
19252 shift
19253 done
19254
19255 ac_configure_extra_args=
19256
19257 if $ac_cs_silent; then
19258 exec 6>/dev/null
19259 ac_configure_extra_args="$ac_configure_extra_args --silent"
19260 fi
19261
19262 _ACEOF
19263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19264 if \$ac_cs_recheck; then
19265 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19266 shift
19267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19268 CONFIG_SHELL='$SHELL'
19269 export CONFIG_SHELL
19270 exec "\$@"
19271 fi
19272
19273 _ACEOF
19274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19275 exec 5>>config.log
19276 {
19277 echo
19278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19279 ## Running $as_me. ##
19280 _ASBOX
19281 $as_echo "$ac_log"
19282 } >&5
19283
19284 _ACEOF
19285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19286 #
19287 # INIT-COMMANDS
19288 #
19289 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19290
19291
19292 # The HP-UX ksh and POSIX shell print the target directory to stdout
19293 # if CDPATH is set.
19294 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19295
19296 sed_quote_subst='$sed_quote_subst'
19297 double_quote_subst='$double_quote_subst'
19298 delay_variable_subst='$delay_variable_subst'
19299 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19300 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19301 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19302 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19303 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19304 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19305 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19306 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19307 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19308 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19309 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19310 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19311 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19312 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19313 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19314 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19315 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19316 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19317 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19318 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19319 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19320 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19321 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19322 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19323 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19324 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19325 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19326 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19327 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19328 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19329 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19330 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19331 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19332 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19333 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19334 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19335 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19336 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19337 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19338 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19339 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19340 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19341 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19342 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19343 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19344 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19345 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19346 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19347 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19348 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19349 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19350 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19351 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19352 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19353 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19354 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19355 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19356 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19357 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"`'
19358 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19359 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19360 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19361 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19362 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19363 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19364 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19365 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19366 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19367 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19368 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19369 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19370 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19371 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19372 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19373 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19374 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19375 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19376 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19377 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19378 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19379 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19380 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19381 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19382 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19383 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19384 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19385 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19386 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19387 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19388 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19389 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19390 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19391 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19392 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19393 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19394 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19395 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19396 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19397 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19398 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19399 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19400 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19401 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19402 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19403 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19404 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19405 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19406 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19407 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19408 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19409 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19410 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19411 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19412 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19413 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19414 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19415 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19416 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19417 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19418 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19419 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19420 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19421 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19422 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19423 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19424 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19425 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19426 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19427 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19428 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19429 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19430 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19431 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19432 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19433 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19434 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19435 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19436 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19437 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19438 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19439 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19440 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19441 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19442 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19443 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19444 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19445 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19446 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19447 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19448 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19449 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19450 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19451 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19452 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19453 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19454 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19455 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19456 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19457 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19458 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19459 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19460 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19461 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19462 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19463 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19464 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19465 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19466 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19467 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19468 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19469 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19470 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19471 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19472 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19473 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19474 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19475 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19476 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19477 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19478 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19479 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19480 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19481 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19482 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19483 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19484 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19485 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19486 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19487 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19488
19489 LTCC='$LTCC'
19490 LTCFLAGS='$LTCFLAGS'
19491 compiler='$compiler_DEFAULT'
19492
19493 # A function that is used when there is no print builtin or printf.
19494 func_fallback_echo ()
19495 {
19496 eval 'cat <<_LTECHO_EOF
19497 \$1
19498 _LTECHO_EOF'
19499 }
19500
19501 # Quote evaled strings.
19502 for var in SHELL \
19503 ECHO \
19504 PATH_SEPARATOR \
19505 SED \
19506 GREP \
19507 EGREP \
19508 FGREP \
19509 LD \
19510 NM \
19511 LN_S \
19512 lt_SP2NL \
19513 lt_NL2SP \
19514 reload_flag \
19515 OBJDUMP \
19516 deplibs_check_method \
19517 file_magic_cmd \
19518 file_magic_glob \
19519 want_nocaseglob \
19520 DLLTOOL \
19521 sharedlib_from_linklib_cmd \
19522 AR \
19523 AR_FLAGS \
19524 archiver_list_spec \
19525 STRIP \
19526 RANLIB \
19527 CC \
19528 CFLAGS \
19529 compiler \
19530 lt_cv_sys_global_symbol_pipe \
19531 lt_cv_sys_global_symbol_to_cdecl \
19532 lt_cv_sys_global_symbol_to_import \
19533 lt_cv_sys_global_symbol_to_c_name_address \
19534 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19535 lt_cv_nm_interface \
19536 nm_file_list_spec \
19537 lt_cv_truncate_bin \
19538 lt_prog_compiler_no_builtin_flag \
19539 lt_prog_compiler_pic \
19540 lt_prog_compiler_wl \
19541 lt_prog_compiler_static \
19542 lt_cv_prog_compiler_c_o \
19543 need_locks \
19544 MANIFEST_TOOL \
19545 DSYMUTIL \
19546 NMEDIT \
19547 LIPO \
19548 OTOOL \
19549 OTOOL64 \
19550 shrext_cmds \
19551 export_dynamic_flag_spec \
19552 whole_archive_flag_spec \
19553 compiler_needs_object \
19554 with_gnu_ld \
19555 allow_undefined_flag \
19556 no_undefined_flag \
19557 hardcode_libdir_flag_spec \
19558 hardcode_libdir_separator \
19559 exclude_expsyms \
19560 include_expsyms \
19561 file_list_spec \
19562 variables_saved_for_relink \
19563 libname_spec \
19564 library_names_spec \
19565 soname_spec \
19566 install_override_mode \
19567 finish_eval \
19568 old_striplib \
19569 striplib \
19570 compiler_lib_search_dirs \
19571 predep_objects \
19572 postdep_objects \
19573 predeps \
19574 postdeps \
19575 compiler_lib_search_path \
19576 LD_CXX \
19577 reload_flag_CXX \
19578 compiler_CXX \
19579 lt_prog_compiler_no_builtin_flag_CXX \
19580 lt_prog_compiler_pic_CXX \
19581 lt_prog_compiler_wl_CXX \
19582 lt_prog_compiler_static_CXX \
19583 lt_cv_prog_compiler_c_o_CXX \
19584 export_dynamic_flag_spec_CXX \
19585 whole_archive_flag_spec_CXX \
19586 compiler_needs_object_CXX \
19587 with_gnu_ld_CXX \
19588 allow_undefined_flag_CXX \
19589 no_undefined_flag_CXX \
19590 hardcode_libdir_flag_spec_CXX \
19591 hardcode_libdir_separator_CXX \
19592 exclude_expsyms_CXX \
19593 include_expsyms_CXX \
19594 file_list_spec_CXX \
19595 compiler_lib_search_dirs_CXX \
19596 predep_objects_CXX \
19597 postdep_objects_CXX \
19598 predeps_CXX \
19599 postdeps_CXX \
19600 compiler_lib_search_path_CXX; do
19601 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19602 *[\\\\\\\`\\"\\\$]*)
19603 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19604 ;;
19605 *)
19606 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19607 ;;
19608 esac
19609 done
19610
19611 # Double-quote double-evaled strings.
19612 for var in reload_cmds \
19613 old_postinstall_cmds \
19614 old_postuninstall_cmds \
19615 old_archive_cmds \
19616 extract_expsyms_cmds \
19617 old_archive_from_new_cmds \
19618 old_archive_from_expsyms_cmds \
19619 archive_cmds \
19620 archive_expsym_cmds \
19621 module_cmds \
19622 module_expsym_cmds \
19623 export_symbols_cmds \
19624 prelink_cmds \
19625 postlink_cmds \
19626 postinstall_cmds \
19627 postuninstall_cmds \
19628 finish_cmds \
19629 sys_lib_search_path_spec \
19630 configure_time_dlsearch_path \
19631 configure_time_lt_sys_library_path \
19632 reload_cmds_CXX \
19633 old_archive_cmds_CXX \
19634 old_archive_from_new_cmds_CXX \
19635 old_archive_from_expsyms_cmds_CXX \
19636 archive_cmds_CXX \
19637 archive_expsym_cmds_CXX \
19638 module_cmds_CXX \
19639 module_expsym_cmds_CXX \
19640 export_symbols_cmds_CXX \
19641 prelink_cmds_CXX \
19642 postlink_cmds_CXX; do
19643 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19644 *[\\\\\\\`\\"\\\$]*)
19645 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19646 ;;
19647 *)
19648 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19649 ;;
19650 esac
19651 done
19652
19653 ac_aux_dir='$ac_aux_dir'
19654
19655 # See if we are running on zsh, and set the options that allow our
19656 # commands through without removal of \ escapes INIT.
19657 if test -n "\${ZSH_VERSION+set}"; then
19658 setopt NO_GLOB_SUBST
19659 fi
19660
19661
19662 PACKAGE='$PACKAGE'
19663 VERSION='$VERSION'
19664 RM='$RM'
19665 ofile='$ofile'
19666
19667
19668
19669
19670
19671
19672 _ACEOF
19673
19674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19675
19676 # Handling of arguments.
19677 for ac_config_target in $ac_config_targets
19678 do
19679 case $ac_config_target in
19680 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19681 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19682 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19683 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19684 "libgdiplus.pc") CONFIG_FILES="$CONFIG_FILES libgdiplus.pc" ;;
19685 "libgdiplus0.spec") CONFIG_FILES="$CONFIG_FILES libgdiplus0.spec" ;;
19686 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19687 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19688
19689 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19690 esac
19691 done
19692
19693
19694 # If the user did not use the arguments to specify the items to instantiate,
19695 # then the envvar interface is used. Set only those that are not.
19696 # We use the long form for the default assignment because of an extremely
19697 # bizarre bug on SunOS 4.1.3.
19698 if $ac_need_defaults; then
19699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19701 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19702 fi
19703
19704 # Have a temporary directory for convenience. Make it in the build tree
19705 # simply because there is no reason against having it here, and in addition,
19706 # creating and moving files from /tmp can sometimes cause problems.
19707 # Hook for its removal unless debugging.
19708 # Note that there is a small window in which the directory will not be cleaned:
19709 # after its creation but before its name has been assigned to `$tmp'.
19710 $debug ||
19711 {
19712 tmp= ac_tmp=
19713 trap 'exit_status=$?
19714 : "${ac_tmp:=$tmp}"
19715 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19716 ' 0
19717 trap 'as_fn_exit 1' 1 2 13 15
19718 }
19719 # Create a (secure) tmp directory for tmp files.
19720
19721 {
19722 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19723 test -d "$tmp"
19724 } ||
19725 {
19726 tmp=./conf$$-$RANDOM
19727 (umask 077 && mkdir "$tmp")
19728 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19729 ac_tmp=$tmp
19730
19731 # Set up the scripts for CONFIG_FILES section.
19732 # No need to generate them if there are no CONFIG_FILES.
19733 # This happens for instance with `./config.status config.h'.
19734 if test -n "$CONFIG_FILES"; then
19735
19736
19737 ac_cr=`echo X | tr X '\015'`
19738 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19739 # But we know of no other shell where ac_cr would be empty at this
19740 # point, so we can use a bashism as a fallback.
19741 if test "x$ac_cr" = x; then
19742 eval ac_cr=\$\'\\r\'
19743 fi
19744 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19745 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19746 ac_cs_awk_cr='\\r'
19747 else
19748 ac_cs_awk_cr=$ac_cr
19749 fi
19750
19751 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19752 _ACEOF
19753
19754
19755 {
19756 echo "cat >conf$$subs.awk <<_ACEOF" &&
19757 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19758 echo "_ACEOF"
19759 } >conf$$subs.sh ||
19760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19761 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19762 ac_delim='%!_!# '
19763 for ac_last_try in false false false false false :; do
19764 . ./conf$$subs.sh ||
19765 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19766
19767 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19768 if test $ac_delim_n = $ac_delim_num; then
19769 break
19770 elif $ac_last_try; then
19771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19772 else
19773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19774 fi
19775 done
19776 rm -f conf$$subs.sh
19777
19778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19779 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19780 _ACEOF
19781 sed -n '
19782 h
19783 s/^/S["/; s/!.*/"]=/
19784 p
19785 g
19786 s/^[^!]*!//
19787 :repl
19788 t repl
19789 s/'"$ac_delim"'$//
19790 t delim
19791 :nl
19792 h
19793 s/\(.\{148\}\)..*/\1/
19794 t more1
19795 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19796 p
19797 n
19798 b repl
19799 :more1
19800 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19801 p
19802 g
19803 s/.\{148\}//
19804 t nl
19805 :delim
19806 h
19807 s/\(.\{148\}\)..*/\1/
19808 t more2
19809 s/["\\]/\\&/g; s/^/"/; s/$/"/
19810 p
19811 b
19812 :more2
19813 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19814 p
19815 g
19816 s/.\{148\}//
19817 t delim
19818 ' <conf$$subs.awk | sed '
19819 /^[^""]/{
19820 N
19821 s/\n//
19822 }
19823 ' >>$CONFIG_STATUS || ac_write_fail=1
19824 rm -f conf$$subs.awk
19825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19826 _ACAWK
19827 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19828 for (key in S) S_is_set[key] = 1
19829 FS = ""
19830
19831 }
19832 {
19833 line = $ 0
19834 nfields = split(line, field, "@")
19835 substed = 0
19836 len = length(field[1])
19837 for (i = 2; i < nfields; i++) {
19838 key = field[i]
19839 keylen = length(key)
19840 if (S_is_set[key]) {
19841 value = S[key]
19842 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19843 len += length(value) + length(field[++i])
19844 substed = 1
19845 } else
19846 len += 1 + keylen
19847 }
19848
19849 print line
19850 }
19851
19852 _ACAWK
19853 _ACEOF
19854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19855 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19856 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19857 else
19858 cat
19859 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19860 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19861 _ACEOF
19862
19863 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19864 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19865 # trailing colons and then remove the whole line if VPATH becomes empty
19866 # (actually we leave an empty line to preserve line numbers).
19867 if test "x$srcdir" = x.; then
19868 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19869 h
19870 s///
19871 s/^/:/
19872 s/[ ]*$/:/
19873 s/:\$(srcdir):/:/g
19874 s/:\${srcdir}:/:/g
19875 s/:@srcdir@:/:/g
19876 s/^:*//
19877 s/:*$//
19878 x
19879 s/\(=[ ]*\).*/\1/
19880 G
19881 s/\n//
19882 s/^[^=]*=[ ]*$//
19883 }'
19884 fi
19885
19886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19887 fi # test -n "$CONFIG_FILES"
19888
19889 # Set up the scripts for CONFIG_HEADERS section.
19890 # No need to generate them if there are no CONFIG_HEADERS.
19891 # This happens for instance with `./config.status Makefile'.
19892 if test -n "$CONFIG_HEADERS"; then
19893 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19894 BEGIN {
19895 _ACEOF
19896
19897 # Transform confdefs.h into an awk script `defines.awk', embedded as
19898 # here-document in config.status, that substitutes the proper values into
19899 # config.h.in to produce config.h.
19900
19901 # Create a delimiter string that does not exist in confdefs.h, to ease
19902 # handling of long lines.
19903 ac_delim='%!_!# '
19904 for ac_last_try in false false :; do
19905 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19906 if test -z "$ac_tt"; then
19907 break
19908 elif $ac_last_try; then
19909 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19910 else
19911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19912 fi
19913 done
19914
19915 # For the awk script, D is an array of macro values keyed by name,
19916 # likewise P contains macro parameters if any. Preserve backslash
19917 # newline sequences.
19918
19919 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19920 sed -n '
19921 s/.\{148\}/&'"$ac_delim"'/g
19922 t rset
19923 :rset
19924 s/^[ ]*#[ ]*define[ ][ ]*/ /
19925 t def
19926 d
19927 :def
19928 s/\\$//
19929 t bsnl
19930 s/["\\]/\\&/g
19931 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19932 D["\1"]=" \3"/p
19933 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19934 d
19935 :bsnl
19936 s/["\\]/\\&/g
19937 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19938 D["\1"]=" \3\\\\\\n"\\/p
19939 t cont
19940 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19941 t cont
19942 d
19943 :cont
19944 n
19945 s/.\{148\}/&'"$ac_delim"'/g
19946 t clear
19947 :clear
19948 s/\\$//
19949 t bsnlc
19950 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19951 d
19952 :bsnlc
19953 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19954 b cont
19955 ' <confdefs.h | sed '
19956 s/'"$ac_delim"'/"\\\
19957 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19958
19959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19960 for (key in D) D_is_set[key] = 1
19961 FS = ""
19962 }
19963 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19964 line = \$ 0
19965 split(line, arg, " ")
19966 if (arg[1] == "#") {
19967 defundef = arg[2]
19968 mac1 = arg[3]
19969 } else {
19970 defundef = substr(arg[1], 2)
19971 mac1 = arg[2]
19972 }
19973 split(mac1, mac2, "(") #)
19974 macro = mac2[1]
19975 prefix = substr(line, 1, index(line, defundef) - 1)
19976 if (D_is_set[macro]) {
19977 # Preserve the white space surrounding the "#".
19978 print prefix "define", macro P[macro] D[macro]
19979 next
19980 } else {
19981 # Replace #undef with comments. This is necessary, for example,
19982 # in the case of _POSIX_SOURCE, which is predefined and required
19983 # on some systems where configure will not decide to define it.
19984 if (defundef == "undef") {
19985 print "/*", prefix defundef, macro, "*/"
19986 next
19987 }
19988 }
19989 }
19990 { print }
19991 _ACAWK
19992 _ACEOF
19993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19994 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19995 fi # test -n "$CONFIG_HEADERS"
19996
19997
19998 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19999 shift
20000 for ac_tag
20001 do
20002 case $ac_tag in
20003 :[FHLC]) ac_mode=$ac_tag; continue;;
20004 esac
20005 case $ac_mode$ac_tag in
20006 :[FHL]*:*);;
20007 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20008 :[FH]-) ac_tag=-:-;;
20009 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20010 esac
20011 ac_save_IFS=$IFS
20012 IFS=:
20013 set x $ac_tag
20014 IFS=$ac_save_IFS
20015 shift
20016 ac_file=$1
20017 shift
20018
20019 case $ac_mode in
20020 :L) ac_source=$1;;
20021 :[FH])
20022 ac_file_inputs=
20023 for ac_f
20024 do
20025 case $ac_f in
20026 -) ac_f="$ac_tmp/stdin";;
20027 *) # Look for the file first in the build tree, then in the source tree
20028 # (if the path is not absolute). The absolute path cannot be DOS-style,
20029 # because $ac_f cannot contain `:'.
20030 test -f "$ac_f" ||
20031 case $ac_f in
20032 [\\/$]*) false;;
20033 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20034 esac ||
20035 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20036 esac
20037 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20038 as_fn_append ac_file_inputs " '$ac_f'"
20039 done
20040
20041 # Let's still pretend it is `configure' which instantiates (i.e., don't
20042 # use $as_me), people would be surprised to read:
20043 # /* config.h. Generated by config.status. */
20044 configure_input='Generated from '`
20045 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20046 `' by configure.'
20047 if test x"$ac_file" != x-; then
20048 configure_input="$ac_file. $configure_input"
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20050 $as_echo "$as_me: creating $ac_file" >&6;}
20051 fi
20052 # Neutralize special characters interpreted by sed in replacement strings.
20053 case $configure_input in #(
20054 *\&* | *\|* | *\\* )
20055 ac_sed_conf_input=`$as_echo "$configure_input" |
20056 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20057 *) ac_sed_conf_input=$configure_input;;
20058 esac
20059
20060 case $ac_tag in
20061 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20063 esac
20064 ;;
20065 esac
20066
20067 ac_dir=`$as_dirname -- "$ac_file" ||
20068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20069 X"$ac_file" : 'X\(//\)[^/]' \| \
20070 X"$ac_file" : 'X\(//\)$' \| \
20071 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20072 $as_echo X"$ac_file" |
20073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20074 s//\1/
20075 q
20076 }
20077 /^X\(\/\/\)[^/].*/{
20078 s//\1/
20079 q
20080 }
20081 /^X\(\/\/\)$/{
20082 s//\1/
20083 q
20084 }
20085 /^X\(\/\).*/{
20086 s//\1/
20087 q
20088 }
20089 s/.*/./; q'`
20090 as_dir="$ac_dir"; as_fn_mkdir_p
20091 ac_builddir=.
20092
20093 case "$ac_dir" in
20094 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20095 *)
20096 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20097 # A ".." for each directory in $ac_dir_suffix.
20098 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20099 case $ac_top_builddir_sub in
20100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20102 esac ;;
20103 esac
20104 ac_abs_top_builddir=$ac_pwd
20105 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20106 # for backward compatibility:
20107 ac_top_builddir=$ac_top_build_prefix
20108
20109 case $srcdir in
20110 .) # We are building in place.
20111 ac_srcdir=.
20112 ac_top_srcdir=$ac_top_builddir_sub
20113 ac_abs_top_srcdir=$ac_pwd ;;
20114 [\\/]* | ?:[\\/]* ) # Absolute name.
20115 ac_srcdir=$srcdir$ac_dir_suffix;
20116 ac_top_srcdir=$srcdir
20117 ac_abs_top_srcdir=$srcdir ;;
20118 *) # Relative name.
20119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20120 ac_top_srcdir=$ac_top_build_prefix$srcdir
20121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20122 esac
20123 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20124
20125
20126 case $ac_mode in
20127 :F)
20128 #
20129 # CONFIG_FILE
20130 #
20131
20132 case $INSTALL in
20133 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20134 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20135 esac
20136 ac_MKDIR_P=$MKDIR_P
20137 case $MKDIR_P in
20138 [\\/$]* | ?:[\\/]* ) ;;
20139 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20140 esac
20141 _ACEOF
20142
20143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20144 # If the template does not know about datarootdir, expand it.
20145 # FIXME: This hack should be removed a few years after 2.60.
20146 ac_datarootdir_hack=; ac_datarootdir_seen=
20147 ac_sed_dataroot='
20148 /datarootdir/ {
20149 p
20150 q
20151 }
20152 /@datadir@/p
20153 /@docdir@/p
20154 /@infodir@/p
20155 /@localedir@/p
20156 /@mandir@/p'
20157 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20158 *datarootdir*) ac_datarootdir_seen=yes;;
20159 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20161 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20162 _ACEOF
20163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20164 ac_datarootdir_hack='
20165 s&@datadir@&$datadir&g
20166 s&@docdir@&$docdir&g
20167 s&@infodir@&$infodir&g
20168 s&@localedir@&$localedir&g
20169 s&@mandir@&$mandir&g
20170 s&\\\${datarootdir}&$datarootdir&g' ;;
20171 esac
20172 _ACEOF
20173
20174 # Neutralize VPATH when `$srcdir' = `.'.
20175 # Shell code in configure.ac might set extrasub.
20176 # FIXME: do we really want to maintain this feature?
20177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20178 ac_sed_extra="$ac_vpsub
20179 $extrasub
20180 _ACEOF
20181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20182 :t
20183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20184 s|@configure_input@|$ac_sed_conf_input|;t t
20185 s&@top_builddir@&$ac_top_builddir_sub&;t t
20186 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20187 s&@srcdir@&$ac_srcdir&;t t
20188 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20189 s&@top_srcdir@&$ac_top_srcdir&;t t
20190 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20191 s&@builddir@&$ac_builddir&;t t
20192 s&@abs_builddir@&$ac_abs_builddir&;t t
20193 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20194 s&@INSTALL@&$ac_INSTALL&;t t
20195 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20196 $ac_datarootdir_hack
20197 "
20198 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20199 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20200
20201 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20202 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20203 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20204 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20206 which seems to be undefined. Please make sure it is defined" >&5
20207 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20208 which seems to be undefined. Please make sure it is defined" >&2;}
20209
20210 rm -f "$ac_tmp/stdin"
20211 case $ac_file in
20212 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20213 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20214 esac \
20215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20216 ;;
20217 :H)
20218 #
20219 # CONFIG_HEADER
20220 #
20221 if test x"$ac_file" != x-; then
20222 {
20223 $as_echo "/* $configure_input */" \
20224 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20225 } >"$ac_tmp/config.h" \
20226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20227 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20229 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20230 else
20231 rm -f "$ac_file"
20232 mv "$ac_tmp/config.h" "$ac_file" \
20233 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20234 fi
20235 else
20236 $as_echo "/* $configure_input */" \
20237 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20238 || as_fn_error $? "could not create -" "$LINENO" 5
20239 fi
20240 # Compute "$ac_file"'s index in $config_headers.
20241 _am_arg="$ac_file"
20242 _am_stamp_count=1
20243 for _am_header in $config_headers :; do
20244 case $_am_header in
20245 $_am_arg | $_am_arg:* )
20246 break ;;
20247 * )
20248 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20249 esac
20250 done
20251 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20252 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20253 X"$_am_arg" : 'X\(//\)[^/]' \| \
20254 X"$_am_arg" : 'X\(//\)$' \| \
20255 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20256 $as_echo X"$_am_arg" |
20257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20258 s//\1/
20259 q
20260 }
20261 /^X\(\/\/\)[^/].*/{
20262 s//\1/
20263 q
20264 }
20265 /^X\(\/\/\)$/{
20266 s//\1/
20267 q
20268 }
20269 /^X\(\/\).*/{
20270 s//\1/
20271 q
20272 }
20273 s/.*/./; q'`/stamp-h$_am_stamp_count
20274 ;;
20275
20276 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20277 $as_echo "$as_me: executing $ac_file commands" >&6;}
20278 ;;
20279 esac
20280
20281
20282 case $ac_file$ac_mode in
20283 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20284 # Older Autoconf quotes --file arguments for eval, but not when files
20285 # are listed without --file. Let's play safe and only enable the eval
20286 # if we detect the quoting.
20287 # TODO: see whether this extra hack can be removed once we start
20288 # requiring Autoconf 2.70 or later.
20289 case $CONFIG_FILES in #(
20290 *\'*) :
20291 eval set x "$CONFIG_FILES" ;; #(
20292 *) :
20293 set x $CONFIG_FILES ;; #(
20294 *) :
20295 ;;
20296 esac
20297 shift
20298 # Used to flag and report bootstrapping failures.
20299 am_rc=0
20300 for am_mf
20301 do
20302 # Strip MF so we end up with the name of the file.
20303 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20304 # Check whether this is an Automake generated Makefile which includes
20305 # dependency-tracking related rules and includes.
20306 # Grep'ing the whole file directly is not great: AIX grep has a line
20307 # limit of 2048, but all sed's we know have understand at least 4000.
20308 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20309 || continue
20310 am_dirpart=`$as_dirname -- "$am_mf" ||
20311 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20312 X"$am_mf" : 'X\(//\)[^/]' \| \
20313 X"$am_mf" : 'X\(//\)$' \| \
20314 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20315 $as_echo X"$am_mf" |
20316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20317 s//\1/
20318 q
20319 }
20320 /^X\(\/\/\)[^/].*/{
20321 s//\1/
20322 q
20323 }
20324 /^X\(\/\/\)$/{
20325 s//\1/
20326 q
20327 }
20328 /^X\(\/\).*/{
20329 s//\1/
20330 q
20331 }
20332 s/.*/./; q'`
20333 am_filepart=`$as_basename -- "$am_mf" ||
20334 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20335 X"$am_mf" : 'X\(//\)$' \| \
20336 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20337 $as_echo X/"$am_mf" |
20338 sed '/^.*\/\([^/][^/]*\)\/*$/{
20339 s//\1/
20340 q
20341 }
20342 /^X\/\(\/\/\)$/{
20343 s//\1/
20344 q
20345 }
20346 /^X\/\(\/\).*/{
20347 s//\1/
20348 q
20349 }
20350 s/.*/./; q'`
20351 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20352 && sed -e '/# am--include-marker/d' "$am_filepart" \
20353 | $MAKE -f - am--depfiles" >&5
20354 (cd "$am_dirpart" \
20355 && sed -e '/# am--include-marker/d' "$am_filepart" \
20356 | $MAKE -f - am--depfiles) >&5 2>&5
20357 ac_status=$?
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } || am_rc=$?
20360 done
20361 if test $am_rc -ne 0; then
20362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20364 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20365 for automatic dependency tracking. Try re-running configure with the
20366 '--disable-dependency-tracking' option to at least be able to build
20367 the package (albeit without support for automatic dependency tracking).
20368 See \`config.log' for more details" "$LINENO" 5; }
20369 fi
20370 { am_dirpart=; unset am_dirpart;}
20371 { am_filepart=; unset am_filepart;}
20372 { am_mf=; unset am_mf;}
20373 { am_rc=; unset am_rc;}
20374 rm -f conftest-deps.mk
20375 }
20376 ;;
20377 "libtool":C)
20378
20379 # See if we are running on zsh, and set the options that allow our
20380 # commands through without removal of \ escapes.
20381 if test -n "${ZSH_VERSION+set}"; then
20382 setopt NO_GLOB_SUBST
20383 fi
20384
20385 cfgfile=${ofile}T
20386 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20387 $RM "$cfgfile"
20388
20389 cat <<_LT_EOF >> "$cfgfile"
20390 #! $SHELL
20391 # Generated automatically by $as_me ($PACKAGE) $VERSION
20392 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20393
20394 # Provide generalized library-building support services.
20395 # Written by Gordon Matzigkeit, 1996
20396
20397 # Copyright (C) 2014 Free Software Foundation, Inc.
20398 # This is free software; see the source for copying conditions. There is NO
20399 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20400
20401 # GNU Libtool is free software; you can redistribute it and/or modify
20402 # it under the terms of the GNU General Public License as published by
20403 # the Free Software Foundation; either version 2 of of the License, or
20404 # (at your option) any later version.
20405 #
20406 # As a special exception to the GNU General Public License, if you
20407 # distribute this file as part of a program or library that is built
20408 # using GNU Libtool, you may include this file under the same
20409 # distribution terms that you use for the rest of that program.
20410 #
20411 # GNU Libtool is distributed in the hope that it will be useful, but
20412 # WITHOUT ANY WARRANTY; without even the implied warranty of
20413 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20414 # GNU General Public License for more details.
20415 #
20416 # You should have received a copy of the GNU General Public License
20417 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20418
20419
20420 # The names of the tagged configurations supported by this script.
20421 available_tags='CXX '
20422
20423 # Configured defaults for sys_lib_dlsearch_path munging.
20424 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20425
20426 # ### BEGIN LIBTOOL CONFIG
20427
20428 # Which release of libtool.m4 was used?
20429 macro_version=$macro_version
20430 macro_revision=$macro_revision
20431
20432 # Whether or not to build shared libraries.
20433 build_libtool_libs=$enable_shared
20434
20435 # Whether or not to build static libraries.
20436 build_old_libs=$enable_static
20437
20438 # What type of objects to build.
20439 pic_mode=$pic_mode
20440
20441 # Whether or not to optimize for fast installation.
20442 fast_install=$enable_fast_install
20443
20444 # Shared archive member basename,for filename based shared library versioning on AIX.
20445 shared_archive_member_spec=$shared_archive_member_spec
20446
20447 # Shell to use when invoking shell scripts.
20448 SHELL=$lt_SHELL
20449
20450 # An echo program that protects backslashes.
20451 ECHO=$lt_ECHO
20452
20453 # The PATH separator for the build system.
20454 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20455
20456 # The host system.
20457 host_alias=$host_alias
20458 host=$host
20459 host_os=$host_os
20460
20461 # The build system.
20462 build_alias=$build_alias
20463 build=$build
20464 build_os=$build_os
20465
20466 # A sed program that does not truncate output.
20467 SED=$lt_SED
20468
20469 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20470 Xsed="\$SED -e 1s/^X//"
20471
20472 # A grep program that handles long lines.
20473 GREP=$lt_GREP
20474
20475 # An ERE matcher.
20476 EGREP=$lt_EGREP
20477
20478 # A literal string matcher.
20479 FGREP=$lt_FGREP
20480
20481 # A BSD- or MS-compatible name lister.
20482 NM=$lt_NM
20483
20484 # Whether we need soft or hard links.
20485 LN_S=$lt_LN_S
20486
20487 # What is the maximum length of a command?
20488 max_cmd_len=$max_cmd_len
20489
20490 # Object file suffix (normally "o").
20491 objext=$ac_objext
20492
20493 # Executable file suffix (normally "").
20494 exeext=$exeext
20495
20496 # whether the shell understands "unset".
20497 lt_unset=$lt_unset
20498
20499 # turn spaces into newlines.
20500 SP2NL=$lt_lt_SP2NL
20501
20502 # turn newlines into spaces.
20503 NL2SP=$lt_lt_NL2SP
20504
20505 # convert \$build file names to \$host format.
20506 to_host_file_cmd=$lt_cv_to_host_file_cmd
20507
20508 # convert \$build files to toolchain format.
20509 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20510
20511 # An object symbol dumper.
20512 OBJDUMP=$lt_OBJDUMP
20513
20514 # Method to check whether dependent libraries are shared objects.
20515 deplibs_check_method=$lt_deplibs_check_method
20516
20517 # Command to use when deplibs_check_method = "file_magic".
20518 file_magic_cmd=$lt_file_magic_cmd
20519
20520 # How to find potential files when deplibs_check_method = "file_magic".
20521 file_magic_glob=$lt_file_magic_glob
20522
20523 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20524 want_nocaseglob=$lt_want_nocaseglob
20525
20526 # DLL creation program.
20527 DLLTOOL=$lt_DLLTOOL
20528
20529 # Command to associate shared and link libraries.
20530 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20531
20532 # The archiver.
20533 AR=$lt_AR
20534
20535 # Flags to create an archive.
20536 AR_FLAGS=$lt_AR_FLAGS
20537
20538 # How to feed a file listing to the archiver.
20539 archiver_list_spec=$lt_archiver_list_spec
20540
20541 # A symbol stripping program.
20542 STRIP=$lt_STRIP
20543
20544 # Commands used to install an old-style archive.
20545 RANLIB=$lt_RANLIB
20546 old_postinstall_cmds=$lt_old_postinstall_cmds
20547 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20548
20549 # Whether to use a lock for old archive extraction.
20550 lock_old_archive_extraction=$lock_old_archive_extraction
20551
20552 # A C compiler.
20553 LTCC=$lt_CC
20554
20555 # LTCC compiler flags.
20556 LTCFLAGS=$lt_CFLAGS
20557
20558 # Take the output of nm and produce a listing of raw symbols and C names.
20559 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20560
20561 # Transform the output of nm in a proper C declaration.
20562 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20563
20564 # Transform the output of nm into a list of symbols to manually relocate.
20565 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20566
20567 # Transform the output of nm in a C name address pair.
20568 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20569
20570 # Transform the output of nm in a C name address pair when lib prefix is needed.
20571 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20572
20573 # The name lister interface.
20574 nm_interface=$lt_lt_cv_nm_interface
20575
20576 # Specify filename containing input files for \$NM.
20577 nm_file_list_spec=$lt_nm_file_list_spec
20578
20579 # The root where to search for dependent libraries,and where our libraries should be installed.
20580 lt_sysroot=$lt_sysroot
20581
20582 # Command to truncate a binary pipe.
20583 lt_truncate_bin=$lt_lt_cv_truncate_bin
20584
20585 # The name of the directory that contains temporary libtool files.
20586 objdir=$objdir
20587
20588 # Used to examine libraries when file_magic_cmd begins with "file".
20589 MAGIC_CMD=$MAGIC_CMD
20590
20591 # Must we lock files when doing compilation?
20592 need_locks=$lt_need_locks
20593
20594 # Manifest tool.
20595 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20596
20597 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20598 DSYMUTIL=$lt_DSYMUTIL
20599
20600 # Tool to change global to local symbols on Mac OS X.
20601 NMEDIT=$lt_NMEDIT
20602
20603 # Tool to manipulate fat objects and archives on Mac OS X.
20604 LIPO=$lt_LIPO
20605
20606 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20607 OTOOL=$lt_OTOOL
20608
20609 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20610 OTOOL64=$lt_OTOOL64
20611
20612 # Old archive suffix (normally "a").
20613 libext=$libext
20614
20615 # Shared library suffix (normally ".so").
20616 shrext_cmds=$lt_shrext_cmds
20617
20618 # The commands to extract the exported symbol list from a shared archive.
20619 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20620
20621 # Variables whose values should be saved in libtool wrapper scripts and
20622 # restored at link time.
20623 variables_saved_for_relink=$lt_variables_saved_for_relink
20624
20625 # Do we need the "lib" prefix for modules?
20626 need_lib_prefix=$need_lib_prefix
20627
20628 # Do we need a version for libraries?
20629 need_version=$need_version
20630
20631 # Library versioning type.
20632 version_type=$version_type
20633
20634 # Shared library runtime path variable.
20635 runpath_var=$runpath_var
20636
20637 # Shared library path variable.
20638 shlibpath_var=$shlibpath_var
20639
20640 # Is shlibpath searched before the hard-coded library search path?
20641 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20642
20643 # Format of library name prefix.
20644 libname_spec=$lt_libname_spec
20645
20646 # List of archive names. First name is the real one, the rest are links.
20647 # The last name is the one that the linker finds with -lNAME
20648 library_names_spec=$lt_library_names_spec
20649
20650 # The coded name of the library, if different from the real name.
20651 soname_spec=$lt_soname_spec
20652
20653 # Permission mode override for installation of shared libraries.
20654 install_override_mode=$lt_install_override_mode
20655
20656 # Command to use after installation of a shared archive.
20657 postinstall_cmds=$lt_postinstall_cmds
20658
20659 # Command to use after uninstallation of a shared archive.
20660 postuninstall_cmds=$lt_postuninstall_cmds
20661
20662 # Commands used to finish a libtool library installation in a directory.
20663 finish_cmds=$lt_finish_cmds
20664
20665 # As "finish_cmds", except a single script fragment to be evaled but
20666 # not shown.
20667 finish_eval=$lt_finish_eval
20668
20669 # Whether we should hardcode library paths into libraries.
20670 hardcode_into_libs=$hardcode_into_libs
20671
20672 # Compile-time system search path for libraries.
20673 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20674
20675 # Detected run-time system search path for libraries.
20676 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20677
20678 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20679 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20680
20681 # Whether dlopen is supported.
20682 dlopen_support=$enable_dlopen
20683
20684 # Whether dlopen of programs is supported.
20685 dlopen_self=$enable_dlopen_self
20686
20687 # Whether dlopen of statically linked programs is supported.
20688 dlopen_self_static=$enable_dlopen_self_static
20689
20690 # Commands to strip libraries.
20691 old_striplib=$lt_old_striplib
20692 striplib=$lt_striplib
20693
20694
20695 # The linker used to build libraries.
20696 LD=$lt_LD
20697
20698 # How to create reloadable object files.
20699 reload_flag=$lt_reload_flag
20700 reload_cmds=$lt_reload_cmds
20701
20702 # Commands used to build an old-style archive.
20703 old_archive_cmds=$lt_old_archive_cmds
20704
20705 # A language specific compiler.
20706 CC=$lt_compiler
20707
20708 # Is the compiler the GNU compiler?
20709 with_gcc=$GCC
20710
20711 # Compiler flag to turn off builtin functions.
20712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20713
20714 # Additional compiler flags for building library objects.
20715 pic_flag=$lt_lt_prog_compiler_pic
20716
20717 # How to pass a linker flag through the compiler.
20718 wl=$lt_lt_prog_compiler_wl
20719
20720 # Compiler flag to prevent dynamic linking.
20721 link_static_flag=$lt_lt_prog_compiler_static
20722
20723 # Does compiler simultaneously support -c and -o options?
20724 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20725
20726 # Whether or not to add -lc for building shared libraries.
20727 build_libtool_need_lc=$archive_cmds_need_lc
20728
20729 # Whether or not to disallow shared libs when runtime libs are static.
20730 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20731
20732 # Compiler flag to allow reflexive dlopens.
20733 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20734
20735 # Compiler flag to generate shared objects directly from archives.
20736 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20737
20738 # Whether the compiler copes with passing no objects directly.
20739 compiler_needs_object=$lt_compiler_needs_object
20740
20741 # Create an old-style archive from a shared archive.
20742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20743
20744 # Create a temporary old-style archive to link instead of a shared archive.
20745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20746
20747 # Commands used to build a shared archive.
20748 archive_cmds=$lt_archive_cmds
20749 archive_expsym_cmds=$lt_archive_expsym_cmds
20750
20751 # Commands used to build a loadable module if different from building
20752 # a shared archive.
20753 module_cmds=$lt_module_cmds
20754 module_expsym_cmds=$lt_module_expsym_cmds
20755
20756 # Whether we are building with GNU ld or not.
20757 with_gnu_ld=$lt_with_gnu_ld
20758
20759 # Flag that allows shared libraries with undefined symbols to be built.
20760 allow_undefined_flag=$lt_allow_undefined_flag
20761
20762 # Flag that enforces no undefined symbols.
20763 no_undefined_flag=$lt_no_undefined_flag
20764
20765 # Flag to hardcode \$libdir into a binary during linking.
20766 # This must work even if \$libdir does not exist
20767 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20768
20769 # Whether we need a single "-rpath" flag with a separated argument.
20770 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20771
20772 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20773 # DIR into the resulting binary.
20774 hardcode_direct=$hardcode_direct
20775
20776 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20777 # DIR into the resulting binary and the resulting library dependency is
20778 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20779 # library is relocated.
20780 hardcode_direct_absolute=$hardcode_direct_absolute
20781
20782 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20783 # into the resulting binary.
20784 hardcode_minus_L=$hardcode_minus_L
20785
20786 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20787 # into the resulting binary.
20788 hardcode_shlibpath_var=$hardcode_shlibpath_var
20789
20790 # Set to "yes" if building a shared library automatically hardcodes DIR
20791 # into the library and all subsequent libraries and executables linked
20792 # against it.
20793 hardcode_automatic=$hardcode_automatic
20794
20795 # Set to yes if linker adds runtime paths of dependent libraries
20796 # to runtime path list.
20797 inherit_rpath=$inherit_rpath
20798
20799 # Whether libtool must link a program against all its dependency libraries.
20800 link_all_deplibs=$link_all_deplibs
20801
20802 # Set to "yes" if exported symbols are required.
20803 always_export_symbols=$always_export_symbols
20804
20805 # The commands to list exported symbols.
20806 export_symbols_cmds=$lt_export_symbols_cmds
20807
20808 # Symbols that should not be listed in the preloaded symbols.
20809 exclude_expsyms=$lt_exclude_expsyms
20810
20811 # Symbols that must always be exported.
20812 include_expsyms=$lt_include_expsyms
20813
20814 # Commands necessary for linking programs (against libraries) with templates.
20815 prelink_cmds=$lt_prelink_cmds
20816
20817 # Commands necessary for finishing linking programs.
20818 postlink_cmds=$lt_postlink_cmds
20819
20820 # Specify filename containing input files.
20821 file_list_spec=$lt_file_list_spec
20822
20823 # How to hardcode a shared library path into an executable.
20824 hardcode_action=$hardcode_action
20825
20826 # The directories searched by this compiler when creating a shared library.
20827 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20828
20829 # Dependencies to place before and after the objects being linked to
20830 # create a shared library.
20831 predep_objects=$lt_predep_objects
20832 postdep_objects=$lt_postdep_objects
20833 predeps=$lt_predeps
20834 postdeps=$lt_postdeps
20835
20836 # The library search path used internally by the compiler when linking
20837 # a shared library.
20838 compiler_lib_search_path=$lt_compiler_lib_search_path
20839
20840 # ### END LIBTOOL CONFIG
20841
20842 _LT_EOF
20843
20844 cat <<'_LT_EOF' >> "$cfgfile"
20845
20846 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20847
20848 # func_munge_path_list VARIABLE PATH
20849 # -----------------------------------
20850 # VARIABLE is name of variable containing _space_ separated list of
20851 # directories to be munged by the contents of PATH, which is string
20852 # having a format:
20853 # "DIR[:DIR]:"
20854 # string "DIR[ DIR]" will be prepended to VARIABLE
20855 # ":DIR[:DIR]"
20856 # string "DIR[ DIR]" will be appended to VARIABLE
20857 # "DIRP[:DIRP]::[DIRA:]DIRA"
20858 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20859 # "DIRA[ DIRA]" will be appended to VARIABLE
20860 # "DIR[:DIR]"
20861 # VARIABLE will be replaced by "DIR[ DIR]"
20862 func_munge_path_list ()
20863 {
20864 case x$2 in
20865 x)
20866 ;;
20867 *:)
20868 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20869 ;;
20870 x:*)
20871 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20872 ;;
20873 *::*)
20874 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20875 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20876 ;;
20877 *)
20878 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20879 ;;
20880 esac
20881 }
20882
20883
20884 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20885 func_cc_basename ()
20886 {
20887 for cc_temp in $*""; do
20888 case $cc_temp in
20889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20891 \-*) ;;
20892 *) break;;
20893 esac
20894 done
20895 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20896 }
20897
20898
20899 # ### END FUNCTIONS SHARED WITH CONFIGURE
20900
20901 _LT_EOF
20902
20903 case $host_os in
20904 aix3*)
20905 cat <<\_LT_EOF >> "$cfgfile"
20906 # AIX sometimes has problems with the GCC collect2 program. For some
20907 # reason, if we set the COLLECT_NAMES environment variable, the problems
20908 # vanish in a puff of smoke.
20909 if test set != "${COLLECT_NAMES+set}"; then
20910 COLLECT_NAMES=
20911 export COLLECT_NAMES
20912 fi
20913 _LT_EOF
20914 ;;
20915 esac
20916
20917
20918 ltmain=$ac_aux_dir/ltmain.sh
20919
20920
20921 # We use sed instead of cat because bash on DJGPP gets confused if
20922 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20923 # text mode, it properly converts lines to CR/LF. This bash problem
20924 # is reportedly fixed, but why not run on old versions too?
20925 sed '$q' "$ltmain" >> "$cfgfile" \
20926 || (rm -f "$cfgfile"; exit 1)
20927
20928 mv -f "$cfgfile" "$ofile" ||
20929 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20930 chmod +x "$ofile"
20931
20932
20933 cat <<_LT_EOF >> "$ofile"
20934
20935 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20936
20937 # The linker used to build libraries.
20938 LD=$lt_LD_CXX
20939
20940 # How to create reloadable object files.
20941 reload_flag=$lt_reload_flag_CXX
20942 reload_cmds=$lt_reload_cmds_CXX
20943
20944 # Commands used to build an old-style archive.
20945 old_archive_cmds=$lt_old_archive_cmds_CXX
20946
20947 # A language specific compiler.
20948 CC=$lt_compiler_CXX
20949
20950 # Is the compiler the GNU compiler?
20951 with_gcc=$GCC_CXX
20952
20953 # Compiler flag to turn off builtin functions.
20954 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20955
20956 # Additional compiler flags for building library objects.
20957 pic_flag=$lt_lt_prog_compiler_pic_CXX
20958
20959 # How to pass a linker flag through the compiler.
20960 wl=$lt_lt_prog_compiler_wl_CXX
20961
20962 # Compiler flag to prevent dynamic linking.
20963 link_static_flag=$lt_lt_prog_compiler_static_CXX
20964
20965 # Does compiler simultaneously support -c and -o options?
20966 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20967
20968 # Whether or not to add -lc for building shared libraries.
20969 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20970
20971 # Whether or not to disallow shared libs when runtime libs are static.
20972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20973
20974 # Compiler flag to allow reflexive dlopens.
20975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20976
20977 # Compiler flag to generate shared objects directly from archives.
20978 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20979
20980 # Whether the compiler copes with passing no objects directly.
20981 compiler_needs_object=$lt_compiler_needs_object_CXX
20982
20983 # Create an old-style archive from a shared archive.
20984 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20985
20986 # Create a temporary old-style archive to link instead of a shared archive.
20987 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20988
20989 # Commands used to build a shared archive.
20990 archive_cmds=$lt_archive_cmds_CXX
20991 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20992
20993 # Commands used to build a loadable module if different from building
20994 # a shared archive.
20995 module_cmds=$lt_module_cmds_CXX
20996 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20997
20998 # Whether we are building with GNU ld or not.
20999 with_gnu_ld=$lt_with_gnu_ld_CXX
21000
21001 # Flag that allows shared libraries with undefined symbols to be built.
21002 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21003
21004 # Flag that enforces no undefined symbols.
21005 no_undefined_flag=$lt_no_undefined_flag_CXX
21006
21007 # Flag to hardcode \$libdir into a binary during linking.
21008 # This must work even if \$libdir does not exist
21009 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21010
21011 # Whether we need a single "-rpath" flag with a separated argument.
21012 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21013
21014 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21015 # DIR into the resulting binary.
21016 hardcode_direct=$hardcode_direct_CXX
21017
21018 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21019 # DIR into the resulting binary and the resulting library dependency is
21020 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21021 # library is relocated.
21022 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21023
21024 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21025 # into the resulting binary.
21026 hardcode_minus_L=$hardcode_minus_L_CXX
21027
21028 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21029 # into the resulting binary.
21030 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21031
21032 # Set to "yes" if building a shared library automatically hardcodes DIR
21033 # into the library and all subsequent libraries and executables linked
21034 # against it.
21035 hardcode_automatic=$hardcode_automatic_CXX
21036
21037 # Set to yes if linker adds runtime paths of dependent libraries
21038 # to runtime path list.
21039 inherit_rpath=$inherit_rpath_CXX
21040
21041 # Whether libtool must link a program against all its dependency libraries.
21042 link_all_deplibs=$link_all_deplibs_CXX
21043
21044 # Set to "yes" if exported symbols are required.
21045 always_export_symbols=$always_export_symbols_CXX
21046
21047 # The commands to list exported symbols.
21048 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21049
21050 # Symbols that should not be listed in the preloaded symbols.
21051 exclude_expsyms=$lt_exclude_expsyms_CXX
21052
21053 # Symbols that must always be exported.
21054 include_expsyms=$lt_include_expsyms_CXX
21055
21056 # Commands necessary for linking programs (against libraries) with templates.
21057 prelink_cmds=$lt_prelink_cmds_CXX
21058
21059 # Commands necessary for finishing linking programs.
21060 postlink_cmds=$lt_postlink_cmds_CXX
21061
21062 # Specify filename containing input files.
21063 file_list_spec=$lt_file_list_spec_CXX
21064
21065 # How to hardcode a shared library path into an executable.
21066 hardcode_action=$hardcode_action_CXX
21067
21068 # The directories searched by this compiler when creating a shared library.
21069 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21070
21071 # Dependencies to place before and after the objects being linked to
21072 # create a shared library.
21073 predep_objects=$lt_predep_objects_CXX
21074 postdep_objects=$lt_postdep_objects_CXX
21075 predeps=$lt_predeps_CXX
21076 postdeps=$lt_postdeps_CXX
21077
21078 # The library search path used internally by the compiler when linking
21079 # a shared library.
21080 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21081
21082 # ### END LIBTOOL TAG CONFIG: CXX
21083 _LT_EOF
21084
21085 ;;
21086
21087 esac
21088 done # for ac_tag
21089
21090
21091 as_fn_exit 0
21092 _ACEOF
21093 ac_clean_files=$ac_clean_files_save
21094
21095 test $ac_write_fail = 0 ||
21096 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21097
21098
21099 # configure is writing to config.log, and then calls config.status.
21100 # config.status does its own redirection, appending to config.log.
21101 # Unfortunately, on DOS this fails, as config.log is still kept open
21102 # by configure, so config.status won't be able to write to it; its
21103 # output is simply discarded. So we exec the FD to /dev/null,
21104 # effectively closing config.log, so it can be properly (re)opened and
21105 # appended to by config.status. When coming back to configure, we
21106 # need to make the FD available again.
21107 if test "$no_create" != yes; then
21108 ac_cs_success=:
21109 ac_config_status_args=
21110 test "$silent" = yes &&
21111 ac_config_status_args="$ac_config_status_args --quiet"
21112 exec 5>/dev/null
21113 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21114 exec 5>>config.log
21115 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21116 # would make configure fail if this is the last instruction.
21117 $ac_cs_success || as_fn_exit 1
21118 fi
21119 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21121 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21122 fi
21123
21124
21125 echo "---"
21126 echo "Configuration summary"
21127 echo ""
21128 echo " * Installation prefix = $prefix"
21129 echo " * Cairo = $cairo_info"
21130 echo " * Text = $text_v"
21131 echo " * EXIF tags = $libexif_pkgconfig"
21132 echo " * X11 = $x11_available"
21133 echo " * Codecs supported:"
21134 echo ""
21135 echo " - TIFF: $tiff_ok"
21136 echo " - JPEG: $jpeg_ok"
21137 echo " - GIF: $gif_ok"
21138 echo " - PNG: yes"
21139 echo ""
21140 echo " NOTE: if any of the above say 'no' you may install the"
21141 echo " corresponding development packages for them, rerun"
21142 echo " autogen.sh to include them in the build."
21143 echo ""
21144 echo "---"