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 libgfshare 2.0.0.
4 #
5 # Report bugs to <[email protected]>.
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: [email protected] about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: 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='libgfshare'
592 PACKAGE_TARNAME='libgfshare'
593 PACKAGE_VERSION='2.0.0'
594 PACKAGE_STRING='libgfshare 2.0.0'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="include/libgfshare.h"
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 CXXCPP
640 OTOOL64
641 OTOOL
642 LIPO
643 NMEDIT
644 DSYMUTIL
645 MANIFEST_TOOL
646 RANLIB
647 ac_ct_AR
648 AR
649 DLLTOOL
650 OBJDUMP
651 NM
652 ac_ct_DUMPBIN
653 DUMPBIN
654 LD
655 FGREP
656 EGREP
657 GREP
658 SED
659 host_os
660 host_vendor
661 host_cpu
662 host
663 build_os
664 build_vendor
665 build_cpu
666 build
667 LIBTOOL
668 LN_S
669 am__fastdepCXX_FALSE
670 am__fastdepCXX_TRUE
671 CXXDEPMODE
672 ac_ct_CXX
673 CXXFLAGS
674 CXX
675 CPP
676 am__fastdepCC_FALSE
677 am__fastdepCC_TRUE
678 CCDEPMODE
679 am__nodep
680 AMDEPBACKSLASH
681 AMDEP_FALSE
682 AMDEP_TRUE
683 am__quote
684 am__include
685 DEPDIR
686 OBJEXT
687 EXEEXT
688 ac_ct_CC
689 CPPFLAGS
690 LDFLAGS
691 CFLAGS
692 CC
693 MAINT
694 MAINTAINER_MODE_FALSE
695 MAINTAINER_MODE_TRUE
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 LTLIBVER
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 enable_maintainer_mode
762 enable_dependency_tracking
763 enable_shared
764 enable_static
765 with_pic
766 enable_fast_install
767 with_gnu_ld
768 with_sysroot
769 enable_libtool_lock
770 enable_compiler_coverage
771 enable_linker_optimisations
772 enable_compiler_warnings
773 enable_compiler_optimisations
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CPP
784 CXX
785 CXXFLAGS
786 CCC
787 CXXCPP'
788
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
847 fi
848
849 case $ac_option in
850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *=) ac_optarg= ;;
852 *) ac_optarg=yes ;;
853 esac
854
855 # Accept the important Cygnus configure options, so we can diagnose typos.
856
857 case $ac_dashdash$ac_option in
858 --)
859 ac_dashdash=yes ;;
860
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
865
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
870
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
877
878 --config-cache | -C)
879 cache_file=config.cache ;;
880
881 -datadir | --datadir | --datadi | --datad)
882 ac_prev=datadir ;;
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
885
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
892
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
908
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
913
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
918
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=\$ac_optarg ;;
934
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
943
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
947
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
954
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
959
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
965
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
972
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
977
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 libdir=$ac_optarg ;;
982
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
989
990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
994
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1001
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1006
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1010
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1013 no_create=yes ;;
1014
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1018
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1027
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1032
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1039
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1046
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1063
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1068
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1073
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1099
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1122
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1138
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 ;;
1194
1195 esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $? "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1216 do
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1292 fi
1293 else
1294 ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 \`configure' configures libgfshare 2.0.0 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfshare]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381 _ACEOF
1382
1383 cat <<\_ACEOF
1384
1385 Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of libgfshare 2.0.0:";;
1399 esac
1400 cat <<\_ACEOF
1401
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-maintainer-mode enable make rules and dependencies not useful
1407 (and sometimes confusing) to the casual installer
1408 --disable-dependency-tracking speeds up one-time build
1409 --enable-dependency-tracking do not reject slow dependency extractors
1410 --enable-shared[=PKGS] build shared libraries [default=yes]
1411 --enable-static[=PKGS] build static libraries [default=yes]
1412 --enable-fast-install[=PKGS]
1413 optimize for fast installation [default=yes]
1414 --disable-libtool-lock avoid locking (might break parallel builds)
1415 --enable-compiler-coverage
1416 Enable generation of coverage data
1417 --disable-linker-optimisations
1418 Disable linker optimisations
1419 --enable-compiler-warnings
1420 Enable additional compiler warnings
1421 --disable-compiler-optimisations
1422 Disable compiler optimisations
1423
1424 Optional Packages:
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1427 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1428 both]
1429 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1430 --with-sysroot=DIR Search for dependent libraries within DIR
1431 (or the compiler's sysroot if not specified).
1432
1433 Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1441 CPP C preprocessor
1442 CXX C++ compiler command
1443 CXXFLAGS C++ compiler flags
1444 CXXCPP C++ preprocessor
1445
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1448
1449 Report bugs to <[email protected]>.
1450 _ACEOF
1451 ac_status=$?
1452 fi
1453
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
1460 ac_builddir=.
1461
1462 case "$ac_dir" in
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *)
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472 esac
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1477
1478 case $srcdir in
1479 .) # We are building in place.
1480 ac_srcdir=.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 esac
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1502 else
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1506 done
1507 fi
1508
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1511 cat <<\_ACEOF
1512 libgfshare configure 2.0.0
1513 generated by GNU Autoconf 2.69
1514
1515 Copyright (C) 2012 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1518 _ACEOF
1519 exit
1520 fi
1521
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1525
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1530 {
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557 ac_retval=1
1558 fi
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status $ac_retval
1561
1562 } # ac_fn_c_try_compile
1563
1564 # ac_fn_c_try_cpp LINENO
1565 # ----------------------
1566 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_cpp ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 if { { ac_try="$ac_cpp conftest.$ac_ext"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } > conftest.i && {
1586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 }; then :
1589 ac_retval=0
1590 else
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1593
1594 ac_retval=1
1595 fi
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 as_fn_set_status $ac_retval
1598
1599 } # ac_fn_c_try_cpp
1600
1601 # ac_fn_cxx_try_compile LINENO
1602 # ----------------------------
1603 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_cxx_try_compile ()
1605 {
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext
1608 if { { ac_try="$ac_compile"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_compile") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1621 fi
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_cxx_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest.$ac_objext; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=1
1633 fi
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1636
1637 } # ac_fn_cxx_try_compile
1638
1639 # ac_fn_c_try_link LINENO
1640 # -----------------------
1641 # Try to link conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_link ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 rm -f conftest.$ac_objext conftest$ac_exeext
1646 if { { ac_try="$ac_link"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_link") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1659 fi
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && {
1662 test -z "$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 } && test -s conftest$ac_exeext && {
1665 test "$cross_compiling" = yes ||
1666 test -x conftest$ac_exeext
1667 }; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673 ac_retval=1
1674 fi
1675 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1676 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1677 # interfere with the next link command; also delete a directory that is
1678 # left behind by Apple's compiler. We do this before executing the actions.
1679 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1682
1683 } # ac_fn_c_try_link
1684
1685 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1686 # -------------------------------------------------------
1687 # Tests whether HEADER exists and can be compiled using the include files in
1688 # INCLUDES, setting the cache variable VAR accordingly.
1689 ac_fn_c_check_header_compile ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1696 else
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1699 $4
1700 #include <$2>
1701 _ACEOF
1702 if ac_fn_c_try_compile "$LINENO"; then :
1703 eval "$3=yes"
1704 else
1705 eval "$3=no"
1706 fi
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 fi
1709 eval ac_res=\$$3
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713
1714 } # ac_fn_c_check_header_compile
1715
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1720 ac_fn_c_try_run ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734 { { case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_try") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: program exited with status $ac_status" >&5
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750 ac_retval=$ac_status
1751 fi
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_run
1757
1758 # ac_fn_c_check_func LINENO FUNC VAR
1759 # ----------------------------------
1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1761 ac_fn_c_check_func ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768 else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1773 #define $2 innocuous_$2
1774
1775 /* System header to define __stub macros and hopefully few prototypes,
1776 which can conflict with char $2 (); below.
1777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1778 <limits.h> exists even on freestanding compilers. */
1779
1780 #ifdef __STDC__
1781 # include <limits.h>
1782 #else
1783 # include <assert.h>
1784 #endif
1785
1786 #undef $2
1787
1788 /* Override any GCC internal prototype to avoid an error.
1789 Use char because int might match the return type of a GCC
1790 builtin and then its argument prototype would still apply. */
1791 #ifdef __cplusplus
1792 extern "C"
1793 #endif
1794 char $2 ();
1795 /* The GNU C library defines this for functions which it implements
1796 to always fail with ENOSYS. Some functions are actually named
1797 something starting with __ and the normal name is an alias. */
1798 #if defined __stub_$2 || defined __stub___$2
1799 choke me
1800 #endif
1801
1802 int
1803 main ()
1804 {
1805 return $2 ();
1806 ;
1807 return 0;
1808 }
1809 _ACEOF
1810 if ac_fn_c_try_link "$LINENO"; then :
1811 eval "$3=yes"
1812 else
1813 eval "$3=no"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext \
1816 conftest$ac_exeext conftest.$ac_ext
1817 fi
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823 } # ac_fn_c_check_func
1824
1825 # ac_fn_cxx_try_cpp LINENO
1826 # ------------------------
1827 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_cpp ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { { ac_try="$ac_cpp conftest.$ac_ext"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1839 ac_status=$?
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1844 fi
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } > conftest.i && {
1847 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1848 test ! -s conftest.err
1849 }; then :
1850 ac_retval=0
1851 else
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1854
1855 ac_retval=1
1856 fi
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1859
1860 } # ac_fn_cxx_try_cpp
1861
1862 # ac_fn_cxx_try_link LINENO
1863 # -------------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_cxx_try_link ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext conftest$ac_exeext
1869 if { { ac_try="$ac_link"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1882 fi
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest$ac_exeext && {
1888 test "$cross_compiling" = yes ||
1889 test -x conftest$ac_exeext
1890 }; then :
1891 ac_retval=0
1892 else
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896 ac_retval=1
1897 fi
1898 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1899 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1900 # interfere with the next link command; also delete a directory that is
1901 # left behind by Apple's compiler. We do this before executing the actions.
1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1905
1906 } # ac_fn_cxx_try_link
1907 cat >config.log <<_ACEOF
1908 This file contains any messages produced by compilers while
1909 running configure, to aid debugging if configure makes a mistake.
1910
1911 It was created by libgfshare $as_me 2.0.0, which was
1912 generated by GNU Autoconf 2.69. Invocation command line was
1913
1914 $ $0 $@
1915
1916 _ACEOF
1917 exec 5>>config.log
1918 {
1919 cat <<_ASUNAME
1920 ## --------- ##
1921 ## Platform. ##
1922 ## --------- ##
1923
1924 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1925 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1926 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1927 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1928 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1929
1930 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1931 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1932
1933 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1934 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1935 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1936 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1937 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1938 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1939 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1940
1941 _ASUNAME
1942
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 $as_echo "PATH: $as_dir"
1949 done
1950 IFS=$as_save_IFS
1951
1952 } >&5
1953
1954 cat >&5 <<_ACEOF
1955
1956
1957 ## ----------- ##
1958 ## Core tests. ##
1959 ## ----------- ##
1960
1961 _ACEOF
1962
1963
1964 # Keep a trace of the command line.
1965 # Strip out --no-create and --no-recursion so they do not pile up.
1966 # Strip out --silent because we don't want to record it for future runs.
1967 # Also quote any args containing shell meta-characters.
1968 # Make two passes to allow for proper duplicate-argument suppression.
1969 ac_configure_args=
1970 ac_configure_args0=
1971 ac_configure_args1=
1972 ac_must_keep_next=false
1973 for ac_pass in 1 2
1974 do
1975 for ac_arg
1976 do
1977 case $ac_arg in
1978 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1980 | -silent | --silent | --silen | --sile | --sil)
1981 continue ;;
1982 *\'*)
1983 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1984 esac
1985 case $ac_pass in
1986 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1987 2)
1988 as_fn_append ac_configure_args1 " '$ac_arg'"
1989 if test $ac_must_keep_next = true; then
1990 ac_must_keep_next=false # Got value, back to normal.
1991 else
1992 case $ac_arg in
1993 *=* | --config-cache | -C | -disable-* | --disable-* \
1994 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1995 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1996 | -with-* | --with-* | -without-* | --without-* | --x)
1997 case "$ac_configure_args0 " in
1998 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1999 esac
2000 ;;
2001 -* ) ac_must_keep_next=true ;;
2002 esac
2003 fi
2004 as_fn_append ac_configure_args " '$ac_arg'"
2005 ;;
2006 esac
2007 done
2008 done
2009 { ac_configure_args0=; unset ac_configure_args0;}
2010 { ac_configure_args1=; unset ac_configure_args1;}
2011
2012 # When interrupted or exit'd, cleanup temporary files, and complete
2013 # config.log. We remove comments because anyway the quotes in there
2014 # would cause problems or look ugly.
2015 # WARNING: Use '\'' to represent an apostrophe within the trap.
2016 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2017 trap 'exit_status=$?
2018 # Save into config.log some information that might help in debugging.
2019 {
2020 echo
2021
2022 $as_echo "## ---------------- ##
2023 ## Cache variables. ##
2024 ## ---------------- ##"
2025 echo
2026 # The following way of writing the cache mishandles newlines in values,
2027 (
2028 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2029 eval ac_val=\$$ac_var
2030 case $ac_val in #(
2031 *${as_nl}*)
2032 case $ac_var in #(
2033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2034 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2035 esac
2036 case $ac_var in #(
2037 _ | IFS | as_nl) ;; #(
2038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2039 *) { eval $ac_var=; unset $ac_var;} ;;
2040 esac ;;
2041 esac
2042 done
2043 (set) 2>&1 |
2044 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2045 *${as_nl}ac_space=\ *)
2046 sed -n \
2047 "s/'\''/'\''\\\\'\'''\''/g;
2048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2049 ;; #(
2050 *)
2051 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2052 ;;
2053 esac |
2054 sort
2055 )
2056 echo
2057
2058 $as_echo "## ----------------- ##
2059 ## Output variables. ##
2060 ## ----------------- ##"
2061 echo
2062 for ac_var in $ac_subst_vars
2063 do
2064 eval ac_val=\$$ac_var
2065 case $ac_val in
2066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067 esac
2068 $as_echo "$ac_var='\''$ac_val'\''"
2069 done | sort
2070 echo
2071
2072 if test -n "$ac_subst_files"; then
2073 $as_echo "## ------------------- ##
2074 ## File substitutions. ##
2075 ## ------------------- ##"
2076 echo
2077 for ac_var in $ac_subst_files
2078 do
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 $as_echo "$ac_var='\''$ac_val'\''"
2084 done | sort
2085 echo
2086 fi
2087
2088 if test -s confdefs.h; then
2089 $as_echo "## ----------- ##
2090 ## confdefs.h. ##
2091 ## ----------- ##"
2092 echo
2093 cat confdefs.h
2094 echo
2095 fi
2096 test "$ac_signal" != 0 &&
2097 $as_echo "$as_me: caught signal $ac_signal"
2098 $as_echo "$as_me: exit $exit_status"
2099 } >&5
2100 rm -f core *.core core.conftest.* &&
2101 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2102 exit $exit_status
2103 ' 0
2104 for ac_signal in 1 2 13 15; do
2105 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2106 done
2107 ac_signal=0
2108
2109 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2110 rm -f -r conftest* confdefs.h
2111
2112 $as_echo "/* confdefs.h */" > confdefs.h
2113
2114 # Predefined preprocessor variables.
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_NAME "$PACKAGE_NAME"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_STRING "$PACKAGE_STRING"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_URL "$PACKAGE_URL"
2138 _ACEOF
2139
2140
2141 # Let the site file select an alternate cache file if it wants to.
2142 # Prefer an explicitly selected file to automatically selected ones.
2143 ac_site_file1=NONE
2144 ac_site_file2=NONE
2145 if test -n "$CONFIG_SITE"; then
2146 # We do not want a PATH search for config.site.
2147 case $CONFIG_SITE in #((
2148 -*) ac_site_file1=./$CONFIG_SITE;;
2149 */*) ac_site_file1=$CONFIG_SITE;;
2150 *) ac_site_file1=./$CONFIG_SITE;;
2151 esac
2152 elif test "x$prefix" != xNONE; then
2153 ac_site_file1=$prefix/share/config.site
2154 ac_site_file2=$prefix/etc/config.site
2155 else
2156 ac_site_file1=$ac_default_prefix/share/config.site
2157 ac_site_file2=$ac_default_prefix/etc/config.site
2158 fi
2159 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2160 do
2161 test "x$ac_site_file" = xNONE && continue
2162 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2164 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2165 sed 's/^/| /' "$ac_site_file" >&5
2166 . "$ac_site_file" \
2167 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2169 as_fn_error $? "failed to load site script $ac_site_file
2170 See \`config.log' for more details" "$LINENO" 5; }
2171 fi
2172 done
2173
2174 if test -r "$cache_file"; then
2175 # Some versions of bash will fail to source /dev/null (special files
2176 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2177 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2179 $as_echo "$as_me: loading cache $cache_file" >&6;}
2180 case $cache_file in
2181 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2182 *) . "./$cache_file";;
2183 esac
2184 fi
2185 else
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2187 $as_echo "$as_me: creating cache $cache_file" >&6;}
2188 >$cache_file
2189 fi
2190
2191 # Check that the precious variables saved in the cache have kept the same
2192 # value.
2193 ac_cache_corrupted=false
2194 for ac_var in $ac_precious_vars; do
2195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2196 eval ac_new_set=\$ac_env_${ac_var}_set
2197 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2198 eval ac_new_val=\$ac_env_${ac_var}_value
2199 case $ac_old_set,$ac_new_set in
2200 set,)
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2202 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2203 ac_cache_corrupted=: ;;
2204 ,set)
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2207 ac_cache_corrupted=: ;;
2208 ,);;
2209 *)
2210 if test "x$ac_old_val" != "x$ac_new_val"; then
2211 # differences in whitespace do not lead to failure.
2212 ac_old_val_w=`echo x $ac_old_val`
2213 ac_new_val_w=`echo x $ac_new_val`
2214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2216 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2217 ac_cache_corrupted=:
2218 else
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2220 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2221 eval $ac_var=\$ac_old_val
2222 fi
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2224 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2226 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2227 fi;;
2228 esac
2229 # Pass precious variables to config.status.
2230 if test "$ac_new_set" = set; then
2231 case $ac_new_val in
2232 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 *) ac_arg=$ac_var=$ac_new_val ;;
2234 esac
2235 case " $ac_configure_args " in
2236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2237 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2238 esac
2239 fi
2240 done
2241 if $ac_cache_corrupted; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2245 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2246 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2247 fi
2248 ## -------------------- ##
2249 ## Main body of script. ##
2250 ## -------------------- ##
2251
2252 ac_ext=c
2253 ac_cpp='$CPP $CPPFLAGS'
2254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2257
2258
2259 LTLIBVER=2:0:0
2260
2261
2262
2263
2264
2265
2266 am__api_version='1.11'
2267
2268 ac_aux_dir=
2269 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2270 if test -f "$ac_dir/install-sh"; then
2271 ac_aux_dir=$ac_dir
2272 ac_install_sh="$ac_aux_dir/install-sh -c"
2273 break
2274 elif test -f "$ac_dir/install.sh"; then
2275 ac_aux_dir=$ac_dir
2276 ac_install_sh="$ac_aux_dir/install.sh -c"
2277 break
2278 elif test -f "$ac_dir/shtool"; then
2279 ac_aux_dir=$ac_dir
2280 ac_install_sh="$ac_aux_dir/shtool install -c"
2281 break
2282 fi
2283 done
2284 if test -z "$ac_aux_dir"; then
2285 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2286 fi
2287
2288 # These three variables are undocumented and unsupported,
2289 # and are intended to be withdrawn in a future Autoconf release.
2290 # They can cause serious problems if a builder's source tree is in a directory
2291 # whose full name contains unusual characters.
2292 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2295
2296
2297 # Find a good install program. We prefer a C program (faster),
2298 # so one script is as good as another. But avoid the broken or
2299 # incompatible versions:
2300 # SysV /etc/install, /usr/sbin/install
2301 # SunOS /usr/etc/install
2302 # IRIX /sbin/install
2303 # AIX /bin/install
2304 # AmigaOS /C/install, which installs bootblocks on floppy discs
2305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2308 # OS/2's system install, which has a completely different semantic
2309 # ./install, which can be erroneously created by make from ./install.sh.
2310 # Reject install programs that cannot install multiple files.
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2312 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2313 if test -z "$INSTALL"; then
2314 if ${ac_cv_path_install+:} false; then :
2315 $as_echo_n "(cached) " >&6
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 # Account for people who put trailing slashes in PATH elements.
2323 case $as_dir/ in #((
2324 ./ | .// | /[cC]/* | \
2325 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2326 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2327 /usr/ucb/* ) ;;
2328 *)
2329 # OSF1 and SCO ODT 3.0 have their own names for install.
2330 # Don't use installbsd from OSF since it installs stuff as root
2331 # by default.
2332 for ac_prog in ginstall scoinst install; do
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2335 if test $ac_prog = install &&
2336 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2337 # AIX install. It has an incompatible calling convention.
2338 :
2339 elif test $ac_prog = install &&
2340 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2341 # program-specific install script used by HP pwplus--don't use.
2342 :
2343 else
2344 rm -rf conftest.one conftest.two conftest.dir
2345 echo one > conftest.one
2346 echo two > conftest.two
2347 mkdir conftest.dir
2348 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2349 test -s conftest.one && test -s conftest.two &&
2350 test -s conftest.dir/conftest.one &&
2351 test -s conftest.dir/conftest.two
2352 then
2353 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2354 break 3
2355 fi
2356 fi
2357 fi
2358 done
2359 done
2360 ;;
2361 esac
2362
2363 done
2364 IFS=$as_save_IFS
2365
2366 rm -rf conftest.one conftest.two conftest.dir
2367
2368 fi
2369 if test "${ac_cv_path_install+set}" = set; then
2370 INSTALL=$ac_cv_path_install
2371 else
2372 # As a last resort, use the slow shell script. Don't cache a
2373 # value for INSTALL within a source directory, because that will
2374 # break other packages using the cache if that directory is
2375 # removed, or if the value is a relative name.
2376 INSTALL=$ac_install_sh
2377 fi
2378 fi
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2380 $as_echo "$INSTALL" >&6; }
2381
2382 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2383 # It thinks the first close brace ends the variable substitution.
2384 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2385
2386 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2387
2388 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2389
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2391 $as_echo_n "checking whether build environment is sane... " >&6; }
2392 # Just in case
2393 sleep 1
2394 echo timestamp > conftest.file
2395 # Reject unsafe characters in $srcdir or the absolute working directory
2396 # name. Accept space and tab only in the latter.
2397 am_lf='
2398 '
2399 case `pwd` in
2400 *[\\\"\#\$\&\'\`$am_lf]*)
2401 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2402 esac
2403 case $srcdir in
2404 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2405 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2406 esac
2407
2408 # Do `set' in a subshell so we don't clobber the current shell's
2409 # arguments. Must try -L first in case configure is actually a
2410 # symlink; some systems play weird games with the mod time of symlinks
2411 # (eg FreeBSD returns the mod time of the symlink's containing
2412 # directory).
2413 if (
2414 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2415 if test "$*" = "X"; then
2416 # -L didn't work.
2417 set X `ls -t "$srcdir/configure" conftest.file`
2418 fi
2419 rm -f conftest.file
2420 if test "$*" != "X $srcdir/configure conftest.file" \
2421 && test "$*" != "X conftest.file $srcdir/configure"; then
2422
2423 # If neither matched, then we have a broken ls. This can happen
2424 # if, for instance, CONFIG_SHELL is bash and it inherits a
2425 # broken ls alias from the environment. This has actually
2426 # happened. Such a system could not be considered "sane".
2427 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2428 alias in your environment" "$LINENO" 5
2429 fi
2430
2431 test "$2" = conftest.file
2432 )
2433 then
2434 # Ok.
2435 :
2436 else
2437 as_fn_error $? "newly created file is older than distributed files!
2438 Check your system clock" "$LINENO" 5
2439 fi
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2441 $as_echo "yes" >&6; }
2442 test "$program_prefix" != NONE &&
2443 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2444 # Use a double $ so make ignores it.
2445 test "$program_suffix" != NONE &&
2446 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2447 # Double any \ or $.
2448 # By default was `s,x,x', remove it if useless.
2449 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2450 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2451
2452 # expand $ac_aux_dir to an absolute path
2453 am_aux_dir=`cd $ac_aux_dir && pwd`
2454
2455 if test x"${MISSING+set}" != xset; then
2456 case $am_aux_dir in
2457 *\ * | *\ *)
2458 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2459 *)
2460 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2461 esac
2462 fi
2463 # Use eval to expand $SHELL
2464 if eval "$MISSING --run true"; then
2465 am_missing_run="$MISSING --run "
2466 else
2467 am_missing_run=
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2469 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2470 fi
2471
2472 if test x"${install_sh}" != xset; then
2473 case $am_aux_dir in
2474 *\ * | *\ *)
2475 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2476 *)
2477 install_sh="\${SHELL} $am_aux_dir/install-sh"
2478 esac
2479 fi
2480
2481 # Installed binaries are usually stripped using `strip' when the user
2482 # run `make install-strip'. However `strip' might not be the right
2483 # tool to use in cross-compilation environments, therefore Automake
2484 # will honor the `STRIP' environment variable to overrule this program.
2485 if test "$cross_compiling" != no; then
2486 if test -n "$ac_tool_prefix"; then
2487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2488 set dummy ${ac_tool_prefix}strip; ac_word=$2
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2490 $as_echo_n "checking for $ac_word... " >&6; }
2491 if ${ac_cv_prog_STRIP+:} false; then :
2492 $as_echo_n "(cached) " >&6
2493 else
2494 if test -n "$STRIP"; then
2495 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2496 else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2499 do
2500 IFS=$as_save_IFS
2501 test -z "$as_dir" && as_dir=.
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2504 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 break 2
2507 fi
2508 done
2509 done
2510 IFS=$as_save_IFS
2511
2512 fi
2513 fi
2514 STRIP=$ac_cv_prog_STRIP
2515 if test -n "$STRIP"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2517 $as_echo "$STRIP" >&6; }
2518 else
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520 $as_echo "no" >&6; }
2521 fi
2522
2523
2524 fi
2525 if test -z "$ac_cv_prog_STRIP"; then
2526 ac_ct_STRIP=$STRIP
2527 # Extract the first word of "strip", so it can be a program name with args.
2528 set dummy strip; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test -n "$ac_ct_STRIP"; then
2535 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2544 ac_cv_prog_ac_ct_STRIP="strip"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2547 fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 fi
2553 fi
2554 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2555 if test -n "$ac_ct_STRIP"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2557 $as_echo "$ac_ct_STRIP" >&6; }
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2561 fi
2562
2563 if test "x$ac_ct_STRIP" = x; then
2564 STRIP=":"
2565 else
2566 case $cross_compiling:$ac_tool_warned in
2567 yes:)
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2570 ac_tool_warned=yes ;;
2571 esac
2572 STRIP=$ac_ct_STRIP
2573 fi
2574 else
2575 STRIP="$ac_cv_prog_STRIP"
2576 fi
2577
2578 fi
2579 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2580
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2582 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2583 if test -z "$MKDIR_P"; then
2584 if ${ac_cv_path_mkdir+:} false; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2589 do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_prog in mkdir gmkdir; do
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2595 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2596 'mkdir (GNU coreutils) '* | \
2597 'mkdir (coreutils) '* | \
2598 'mkdir (fileutils) '4.1*)
2599 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2600 break 3;;
2601 esac
2602 done
2603 done
2604 done
2605 IFS=$as_save_IFS
2606
2607 fi
2608
2609 test -d ./--version && rmdir ./--version
2610 if test "${ac_cv_path_mkdir+set}" = set; then
2611 MKDIR_P="$ac_cv_path_mkdir -p"
2612 else
2613 # As a last resort, use the slow shell script. Don't cache a
2614 # value for MKDIR_P within a source directory, because that will
2615 # break other packages using the cache if that directory is
2616 # removed, or if the value is a relative name.
2617 MKDIR_P="$ac_install_sh -d"
2618 fi
2619 fi
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2621 $as_echo "$MKDIR_P" >&6; }
2622
2623 mkdir_p="$MKDIR_P"
2624 case $mkdir_p in
2625 [\\/$]* | ?:[\\/]*) ;;
2626 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2627 esac
2628
2629 for ac_prog in gawk mawk nawk awk
2630 do
2631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2632 set dummy $ac_prog; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if ${ac_cv_prog_AWK+:} false; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 if test -n "$AWK"; then
2639 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648 ac_cv_prog_AWK="$ac_prog"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2651 fi
2652 done
2653 done
2654 IFS=$as_save_IFS
2655
2656 fi
2657 fi
2658 AWK=$ac_cv_prog_AWK
2659 if test -n "$AWK"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2661 $as_echo "$AWK" >&6; }
2662 else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 $as_echo "no" >&6; }
2665 fi
2666
2667
2668 test -n "$AWK" && break
2669 done
2670
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2672 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2673 set x ${MAKE-make}
2674 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2675 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 cat >conftest.make <<\_ACEOF
2679 SHELL = /bin/sh
2680 all:
2681 @echo '@@@%%%=$(MAKE)=@@@%%%'
2682 _ACEOF
2683 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2684 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2685 *@@@%%%=?*=@@@%%%*)
2686 eval ac_cv_prog_make_${ac_make}_set=yes;;
2687 *)
2688 eval ac_cv_prog_make_${ac_make}_set=no;;
2689 esac
2690 rm -f conftest.make
2691 fi
2692 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2694 $as_echo "yes" >&6; }
2695 SET_MAKE=
2696 else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2699 SET_MAKE="MAKE=${MAKE-make}"
2700 fi
2701
2702 rm -rf .tst 2>/dev/null
2703 mkdir .tst 2>/dev/null
2704 if test -d .tst; then
2705 am__leading_dot=.
2706 else
2707 am__leading_dot=_
2708 fi
2709 rmdir .tst 2>/dev/null
2710
2711 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2712 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2713 # is not polluted with repeated "-I."
2714 am__isrc=' -I$(srcdir)'
2715 # test to see if srcdir already configured
2716 if test -f $srcdir/config.status; then
2717 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2718 fi
2719 fi
2720
2721 # test whether we have cygpath
2722 if test -z "$CYGPATH_W"; then
2723 if (cygpath --version) >/dev/null 2>/dev/null; then
2724 CYGPATH_W='cygpath -w'
2725 else
2726 CYGPATH_W=echo
2727 fi
2728 fi
2729
2730
2731 # Define the identity of the package.
2732 PACKAGE='libgfshare'
2733 VERSION='2.0.0'
2734
2735
2736 cat >>confdefs.h <<_ACEOF
2737 #define PACKAGE "$PACKAGE"
2738 _ACEOF
2739
2740
2741 cat >>confdefs.h <<_ACEOF
2742 #define VERSION "$VERSION"
2743 _ACEOF
2744
2745 # Some tools Automake needs.
2746
2747 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2748
2749
2750 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2751
2752
2753 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2754
2755
2756 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2757
2758
2759 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2760
2761 # We need awk for the "check" target. The system "awk" is bad on
2762 # some platforms.
2763 # Always define AMTAR for backward compatibility. Yes, it's still used
2764 # in the wild :-( We should find a proper way to deprecate it ...
2765 AMTAR='$${TAR-tar}'
2766
2767
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2769 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2770 # Loop over all known methods to create a tar archive until one works.
2771 _am_tools='gnutar plaintar pax cpio none'
2772 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2773 # Do not fold the above two line into one, because Tru64 sh and
2774 # Solaris sh will not grok spaces in the rhs of `-'.
2775 for _am_tool in $_am_tools
2776 do
2777 case $_am_tool in
2778 gnutar)
2779 for _am_tar in tar gnutar gtar;
2780 do
2781 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2782 ($_am_tar --version) >&5 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } && break
2786 done
2787 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2788 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2789 am__untar="$_am_tar -xf -"
2790 ;;
2791 plaintar)
2792 # Must skip GNU tar: if it does not support --format= it doesn't create
2793 # ustar tarball either.
2794 (tar --version) >/dev/null 2>&1 && continue
2795 am__tar='tar chf - "$$tardir"'
2796 am__tar_='tar chf - "$tardir"'
2797 am__untar='tar xf -'
2798 ;;
2799 pax)
2800 am__tar='pax -L -x ustar -w "$$tardir"'
2801 am__tar_='pax -L -x ustar -w "$tardir"'
2802 am__untar='pax -r'
2803 ;;
2804 cpio)
2805 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2806 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2807 am__untar='cpio -i -H ustar -d'
2808 ;;
2809 none)
2810 am__tar=false
2811 am__tar_=false
2812 am__untar=false
2813 ;;
2814 esac
2815
2816 # If the value was cached, stop now. We just wanted to have am__tar
2817 # and am__untar set.
2818 test -n "${am_cv_prog_tar_ustar}" && break
2819
2820 # tar/untar a dummy directory, and stop if the command works
2821 rm -rf conftest.dir
2822 mkdir conftest.dir
2823 echo GrepMe > conftest.dir/file
2824 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2825 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }
2829 rm -rf conftest.dir
2830 if test -s conftest.tar; then
2831 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2832 ($am__untar <conftest.tar) >&5 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }
2836 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2837 fi
2838 done
2839 rm -rf conftest.dir
2840
2841 if ${am_cv_prog_tar_ustar+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 am_cv_prog_tar_ustar=$_am_tool
2845 fi
2846
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2848 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2849
2850
2851
2852
2853
2854
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2856 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2857 # Check whether --enable-maintainer-mode was given.
2858 if test "${enable_maintainer_mode+set}" = set; then :
2859 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2860 else
2861 USE_MAINTAINER_MODE=no
2862 fi
2863
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2865 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2866 if test $USE_MAINTAINER_MODE = yes; then
2867 MAINTAINER_MODE_TRUE=
2868 MAINTAINER_MODE_FALSE='#'
2869 else
2870 MAINTAINER_MODE_TRUE='#'
2871 MAINTAINER_MODE_FALSE=
2872 fi
2873
2874 MAINT=$MAINTAINER_MODE_TRUE
2875
2876
2877
2878 DEPDIR="${am__leading_dot}deps"
2879
2880 ac_config_commands="$ac_config_commands depfiles"
2881
2882
2883 am_make=${MAKE-make}
2884 cat > confinc << 'END'
2885 am__doit:
2886 @echo this is the am__doit target
2887 .PHONY: am__doit
2888 END
2889 # If we don't find an include directive, just comment out the code.
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2891 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2892 am__include="#"
2893 am__quote=
2894 _am_result=none
2895 # First try GNU make style include.
2896 echo "include confinc" > confmf
2897 # Ignore all kinds of additional output from `make'.
2898 case `$am_make -s -f confmf 2> /dev/null` in #(
2899 *the\ am__doit\ target*)
2900 am__include=include
2901 am__quote=
2902 _am_result=GNU
2903 ;;
2904 esac
2905 # Now try BSD make style include.
2906 if test "$am__include" = "#"; then
2907 echo '.include "confinc"' > confmf
2908 case `$am_make -s -f confmf 2> /dev/null` in #(
2909 *the\ am__doit\ target*)
2910 am__include=.include
2911 am__quote="\""
2912 _am_result=BSD
2913 ;;
2914 esac
2915 fi
2916
2917
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2919 $as_echo "$_am_result" >&6; }
2920 rm -f confinc confmf
2921
2922 # Check whether --enable-dependency-tracking was given.
2923 if test "${enable_dependency_tracking+set}" = set; then :
2924 enableval=$enable_dependency_tracking;
2925 fi
2926
2927 if test "x$enable_dependency_tracking" != xno; then
2928 am_depcomp="$ac_aux_dir/depcomp"
2929 AMDEPBACKSLASH='\'
2930 am__nodep='_no'
2931 fi
2932 if test "x$enable_dependency_tracking" != xno; then
2933 AMDEP_TRUE=
2934 AMDEP_FALSE='#'
2935 else
2936 AMDEP_TRUE='#'
2937 AMDEP_FALSE=
2938 fi
2939
2940
2941 ac_ext=c
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 if test -n "$ac_tool_prefix"; then
2947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2948 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_CC+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 if test -n "$CC"; then
2955 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 break 2
2967 fi
2968 done
2969 done
2970 IFS=$as_save_IFS
2971
2972 fi
2973 fi
2974 CC=$ac_cv_prog_CC
2975 if test -n "$CC"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977 $as_echo "$CC" >&6; }
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 fi
2982
2983
2984 fi
2985 if test -z "$ac_cv_prog_CC"; then
2986 ac_ct_CC=$CC
2987 # Extract the first word of "gcc", so it can be a program name with args.
2988 set dummy gcc; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_ac_ct_CC="gcc"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3007 fi
3008 done
3009 done
3010 IFS=$as_save_IFS
3011
3012 fi
3013 fi
3014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015 if test -n "$ac_ct_CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3017 $as_echo "$ac_ct_CC" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023 if test "x$ac_ct_CC" = x; then
3024 CC=""
3025 else
3026 case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030 ac_tool_warned=yes ;;
3031 esac
3032 CC=$ac_ct_CC
3033 fi
3034 else
3035 CC="$ac_cv_prog_CC"
3036 fi
3037
3038 if test -z "$CC"; then
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3041 set dummy ${ac_tool_prefix}cc; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_CC+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_CC="${ac_tool_prefix}cc"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 CC=$ac_cv_prog_CC
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077 fi
3078 fi
3079 if test -z "$CC"; then
3080 # Extract the first word of "cc", so it can be a program name with args.
3081 set dummy cc; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_CC+:} false; then :
3085 $as_echo_n "(cached) " >&6
3086 else
3087 if test -n "$CC"; then
3088 ac_cv_prog_CC="$CC" # Let the user override the test.
3089 else
3090 ac_prog_rejected=no
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3099 ac_prog_rejected=yes
3100 continue
3101 fi
3102 ac_cv_prog_CC="cc"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3105 fi
3106 done
3107 done
3108 IFS=$as_save_IFS
3109
3110 if test $ac_prog_rejected = yes; then
3111 # We found a bogon in the path, so make sure we never use it.
3112 set dummy $ac_cv_prog_CC
3113 shift
3114 if test $# != 0; then
3115 # We chose a different compiler from the bogus one.
3116 # However, it has the same basename, so the bogon will be chosen
3117 # first if we set CC to just the basename; use the full file name.
3118 shift
3119 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3120 fi
3121 fi
3122 fi
3123 fi
3124 CC=$ac_cv_prog_CC
3125 if test -n "$CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127 $as_echo "$CC" >&6; }
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133
3134 fi
3135 if test -z "$CC"; then
3136 if test -n "$ac_tool_prefix"; then
3137 for ac_prog in cl.exe
3138 do
3139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_CC+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160 done
3161 done
3162 IFS=$as_save_IFS
3163
3164 fi
3165 fi
3166 CC=$ac_cv_prog_CC
3167 if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169 $as_echo "$CC" >&6; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 fi
3174
3175
3176 test -n "$CC" && break
3177 done
3178 fi
3179 if test -z "$CC"; then
3180 ac_ct_CC=$CC
3181 for ac_prog in cl.exe
3182 do
3183 # Extract the first word of "$ac_prog", so it can be a program name with args.
3184 set dummy $ac_prog; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 if test -n "$ac_ct_CC"; then
3191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3192 else
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_ac_ct_CC="$ac_prog"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204 done
3205 done
3206 IFS=$as_save_IFS
3207
3208 fi
3209 fi
3210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211 if test -n "$ac_ct_CC"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3213 $as_echo "$ac_ct_CC" >&6; }
3214 else
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219
3220 test -n "$ac_ct_CC" && break
3221 done
3222
3223 if test "x$ac_ct_CC" = x; then
3224 CC=""
3225 else
3226 case $cross_compiling:$ac_tool_warned in
3227 yes:)
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3230 ac_tool_warned=yes ;;
3231 esac
3232 CC=$ac_ct_CC
3233 fi
3234 fi
3235
3236 fi
3237
3238
3239 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241 as_fn_error $? "no acceptable C compiler found in \$PATH
3242 See \`config.log' for more details" "$LINENO" 5; }
3243
3244 # Provide some information about the compiler.
3245 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3246 set X $ac_compile
3247 ac_compiler=$2
3248 for ac_option in --version -v -V -qversion; do
3249 { { ac_try="$ac_compiler $ac_option >&5"
3250 case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253 esac
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 $as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3257 ac_status=$?
3258 if test -s conftest.err; then
3259 sed '10a\
3260 ... rest of stderr output deleted ...
3261 10q' conftest.err >conftest.er1
3262 cat conftest.er1 >&5
3263 fi
3264 rm -f conftest.er1 conftest.err
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }
3267 done
3268
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3271
3272 int
3273 main ()
3274 {
3275
3276 ;
3277 return 0;
3278 }
3279 _ACEOF
3280 ac_clean_files_save=$ac_clean_files
3281 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3282 # Try to create an executable without -o first, disregard a.out.
3283 # It will help us diagnose broken compilers, and finding out an intuition
3284 # of exeext.
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3286 $as_echo_n "checking whether the C compiler works... " >&6; }
3287 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3288
3289 # The possible output files:
3290 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3291
3292 ac_rmfiles=
3293 for ac_file in $ac_files
3294 do
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3297 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3298 esac
3299 done
3300 rm -f $ac_rmfiles
3301
3302 if { { ac_try="$ac_link_default"
3303 case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_link_default") 2>&5
3310 ac_status=$?
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; then :
3313 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3314 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3315 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3316 # so that the user can short-circuit this test for compilers unknown to
3317 # Autoconf.
3318 for ac_file in $ac_files ''
3319 do
3320 test -f "$ac_file" || continue
3321 case $ac_file in
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3323 ;;
3324 [ab].out )
3325 # We found the default executable, but exeext='' is most
3326 # certainly right.
3327 break;;
3328 *.* )
3329 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3330 then :; else
3331 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 fi
3333 # We set ac_cv_exeext here because the later test for it is not
3334 # safe: cross compilers may not add the suffix if given an `-o'
3335 # argument, so we may need to know it at that point already.
3336 # Even if this section looks crufty: it has the advantage of
3337 # actually working.
3338 break;;
3339 * )
3340 break;;
3341 esac
3342 done
3343 test "$ac_cv_exeext" = no && ac_cv_exeext=
3344
3345 else
3346 ac_file=''
3347 fi
3348 if test -z "$ac_file"; then :
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 $as_echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error 77 "C compiler cannot create executables
3357 See \`config.log' for more details" "$LINENO" 5; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360 $as_echo "yes" >&6; }
3361 fi
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3363 $as_echo_n "checking for C compiler default output file name... " >&6; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3365 $as_echo "$ac_file" >&6; }
3366 ac_exeext=$ac_cv_exeext
3367
3368 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3369 ac_clean_files=$ac_clean_files_save
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3371 $as_echo_n "checking for suffix of executables... " >&6; }
3372 if { { ac_try="$ac_link"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3384 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3385 # work properly (i.e., refer to `conftest.exe'), while it won't with
3386 # `rm'.
3387 for ac_file in conftest.exe conftest conftest.*; do
3388 test -f "$ac_file" || continue
3389 case $ac_file in
3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3392 break;;
3393 * ) break;;
3394 esac
3395 done
3396 else
3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3400 See \`config.log' for more details" "$LINENO" 5; }
3401 fi
3402 rm -f conftest conftest$ac_cv_exeext
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3404 $as_echo "$ac_cv_exeext" >&6; }
3405
3406 rm -f conftest.$ac_ext
3407 EXEEXT=$ac_cv_exeext
3408 ac_exeext=$EXEEXT
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3411 #include <stdio.h>
3412 int
3413 main ()
3414 {
3415 FILE *f = fopen ("conftest.out", "w");
3416 return ferror (f) || fclose (f) != 0;
3417
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 ac_clean_files="$ac_clean_files conftest.out"
3423 # Check that the compiler produces executables we can run. If not, either
3424 # the compiler is broken, or we cross compile.
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3426 $as_echo_n "checking whether we are cross compiling... " >&6; }
3427 if test "$cross_compiling" != yes; then
3428 { { ac_try="$ac_link"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_link") 2>&5
3436 ac_status=$?
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }
3439 if { ac_try='./conftest$ac_cv_exeext'
3440 { { case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_try") 2>&5
3447 ac_status=$?
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }; }; then
3450 cross_compiling=no
3451 else
3452 if test "$cross_compiling" = maybe; then
3453 cross_compiling=yes
3454 else
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "cannot run C compiled programs.
3458 If you meant to cross compile, use \`--host'.
3459 See \`config.log' for more details" "$LINENO" 5; }
3460 fi
3461 fi
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3464 $as_echo "$cross_compiling" >&6; }
3465
3466 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3467 ac_clean_files=$ac_clean_files_save
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3469 $as_echo_n "checking for suffix of object files... " >&6; }
3470 if ${ac_cv_objext+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3475
3476 int
3477 main ()
3478 {
3479
3480 ;
3481 return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.o conftest.obj
3485 if { { ac_try="$ac_compile"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_compile") 2>&5
3493 ac_status=$?
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }; then :
3496 for ac_file in conftest.o conftest.obj conftest.*; do
3497 test -f "$ac_file" || continue;
3498 case $ac_file in
3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3500 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3501 break;;
3502 esac
3503 done
3504 else
3505 $as_echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "cannot compute suffix of object files: cannot compile
3511 See \`config.log' for more details" "$LINENO" 5; }
3512 fi
3513 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3516 $as_echo "$ac_cv_objext" >&6; }
3517 OBJEXT=$ac_cv_objext
3518 ac_objext=$OBJEXT
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3520 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3521 if ${ac_cv_c_compiler_gnu+:} false; then :
3522 $as_echo_n "(cached) " >&6
3523 else
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526
3527 int
3528 main ()
3529 {
3530 #ifndef __GNUC__
3531 choke me
3532 #endif
3533
3534 ;
3535 return 0;
3536 }
3537 _ACEOF
3538 if ac_fn_c_try_compile "$LINENO"; then :
3539 ac_compiler_gnu=yes
3540 else
3541 ac_compiler_gnu=no
3542 fi
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3545
3546 fi
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3548 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3549 if test $ac_compiler_gnu = yes; then
3550 GCC=yes
3551 else
3552 GCC=
3553 fi
3554 ac_test_CFLAGS=${CFLAGS+set}
3555 ac_save_CFLAGS=$CFLAGS
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3557 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3558 if ${ac_cv_prog_cc_g+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 ac_save_c_werror_flag=$ac_c_werror_flag
3562 ac_c_werror_flag=yes
3563 ac_cv_prog_cc_g=no
3564 CFLAGS="-g"
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567
3568 int
3569 main ()
3570 {
3571
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 if ac_fn_c_try_compile "$LINENO"; then :
3577 ac_cv_prog_cc_g=yes
3578 else
3579 CFLAGS=""
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582
3583 int
3584 main ()
3585 {
3586
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 if ac_fn_c_try_compile "$LINENO"; then :
3592
3593 else
3594 ac_c_werror_flag=$ac_save_c_werror_flag
3595 CFLAGS="-g"
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598
3599 int
3600 main ()
3601 {
3602
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 if ac_fn_c_try_compile "$LINENO"; then :
3608 ac_cv_prog_cc_g=yes
3609 fi
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 fi
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 fi
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 ac_c_werror_flag=$ac_save_c_werror_flag
3616 fi
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3618 $as_echo "$ac_cv_prog_cc_g" >&6; }
3619 if test "$ac_test_CFLAGS" = set; then
3620 CFLAGS=$ac_save_CFLAGS
3621 elif test $ac_cv_prog_cc_g = yes; then
3622 if test "$GCC" = yes; then
3623 CFLAGS="-g -O2"
3624 else
3625 CFLAGS="-g"
3626 fi
3627 else
3628 if test "$GCC" = yes; then
3629 CFLAGS="-O2"
3630 else
3631 CFLAGS=
3632 fi
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3635 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3636 if ${ac_cv_prog_cc_c89+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 ac_cv_prog_cc_c89=no
3640 ac_save_CC=$CC
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643 #include <stdarg.h>
3644 #include <stdio.h>
3645 struct stat;
3646 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3647 struct buf { int x; };
3648 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3649 static char *e (p, i)
3650 char **p;
3651 int i;
3652 {
3653 return p[i];
3654 }
3655 static char *f (char * (*g) (char **, int), char **p, ...)
3656 {
3657 char *s;
3658 va_list v;
3659 va_start (v,p);
3660 s = g (p, va_arg (v,int));
3661 va_end (v);
3662 return s;
3663 }
3664
3665 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3666 function prototypes and stuff, but not '\xHH' hex character constants.
3667 These don't provoke an error unfortunately, instead are silently treated
3668 as 'x'. The following induces an error, until -std is added to get
3669 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3670 array size at least. It's necessary to write '\x00'==0 to get something
3671 that's true only with -std. */
3672 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3673
3674 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3675 inside strings and character constants. */
3676 #define FOO(x) 'x'
3677 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3678
3679 int test (int i, double x);
3680 struct s1 {int (*f) (int a);};
3681 struct s2 {int (*f) (double a);};
3682 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3683 int argc;
3684 char **argv;
3685 int
3686 main ()
3687 {
3688 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3689 ;
3690 return 0;
3691 }
3692 _ACEOF
3693 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3694 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3695 do
3696 CC="$ac_save_CC $ac_arg"
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698 ac_cv_prog_cc_c89=$ac_arg
3699 fi
3700 rm -f core conftest.err conftest.$ac_objext
3701 test "x$ac_cv_prog_cc_c89" != "xno" && break
3702 done
3703 rm -f conftest.$ac_ext
3704 CC=$ac_save_CC
3705
3706 fi
3707 # AC_CACHE_VAL
3708 case "x$ac_cv_prog_cc_c89" in
3709 x)
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3711 $as_echo "none needed" >&6; } ;;
3712 xno)
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3714 $as_echo "unsupported" >&6; } ;;
3715 *)
3716 CC="$CC $ac_cv_prog_cc_c89"
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3718 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3719 esac
3720 if test "x$ac_cv_prog_cc_c89" != xno; then :
3721
3722 fi
3723
3724 ac_ext=c
3725 ac_cpp='$CPP $CPPFLAGS'
3726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729
3730 depcc="$CC" am_compiler_list=
3731
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3733 $as_echo_n "checking dependency style of $depcc... " >&6; }
3734 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3738 # We make a subdir and do the tests there. Otherwise we can end up
3739 # making bogus files that we don't know about and never remove. For
3740 # instance it was reported that on HP-UX the gcc test will end up
3741 # making a dummy file named `D' -- because `-MD' means `put the output
3742 # in D'.
3743 rm -rf conftest.dir
3744 mkdir conftest.dir
3745 # Copy depcomp to subdir because otherwise we won't find it if we're
3746 # using a relative directory.
3747 cp "$am_depcomp" conftest.dir
3748 cd conftest.dir
3749 # We will build objects and dependencies in a subdirectory because
3750 # it helps to detect inapplicable dependency modes. For instance
3751 # both Tru64's cc and ICC support -MD to output dependencies as a
3752 # side effect of compilation, but ICC will put the dependencies in
3753 # the current directory while Tru64 will put them in the object
3754 # directory.
3755 mkdir sub
3756
3757 am_cv_CC_dependencies_compiler_type=none
3758 if test "$am_compiler_list" = ""; then
3759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3760 fi
3761 am__universal=false
3762 case " $depcc " in #(
3763 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3764 esac
3765
3766 for depmode in $am_compiler_list; do
3767 # Setup a source with many dependencies, because some compilers
3768 # like to wrap large dependency lists on column 80 (with \), and
3769 # we should not choose a depcomp mode which is confused by this.
3770 #
3771 # We need to recreate these files for each test, as the compiler may
3772 # overwrite some of them when testing with obscure command lines.
3773 # This happens at least with the AIX C compiler.
3774 : > sub/conftest.c
3775 for i in 1 2 3 4 5 6; do
3776 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3777 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3778 # Solaris 8's {/usr,}/bin/sh.
3779 touch sub/conftst$i.h
3780 done
3781 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3782
3783 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3784 # mode. It turns out that the SunPro C++ compiler does not properly
3785 # handle `-M -o', and we need to detect this. Also, some Intel
3786 # versions had trouble with output in subdirs
3787 am__obj=sub/conftest.${OBJEXT-o}
3788 am__minus_obj="-o $am__obj"
3789 case $depmode in
3790 gcc)
3791 # This depmode causes a compiler race in universal mode.
3792 test "$am__universal" = false || continue
3793 ;;
3794 nosideeffect)
3795 # after this tag, mechanisms are not by side-effect, so they'll
3796 # only be used when explicitly requested
3797 if test "x$enable_dependency_tracking" = xyes; then
3798 continue
3799 else
3800 break
3801 fi
3802 ;;
3803 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3804 # This compiler won't grok `-c -o', but also, the minuso test has
3805 # not run yet. These depmodes are late enough in the game, and
3806 # so weak that their functioning should not be impacted.
3807 am__obj=conftest.${OBJEXT-o}
3808 am__minus_obj=
3809 ;;
3810 none) break ;;
3811 esac
3812 if depmode=$depmode \
3813 source=sub/conftest.c object=$am__obj \
3814 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3815 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3816 >/dev/null 2>conftest.err &&
3817 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3818 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3819 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3820 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3821 # icc doesn't choke on unknown options, it will just issue warnings
3822 # or remarks (even with -Werror). So we grep stderr for any message
3823 # that says an option was ignored or not supported.
3824 # When given -MP, icc 7.0 and 7.1 complain thusly:
3825 # icc: Command line warning: ignoring option '-M'; no argument required
3826 # The diagnosis changed in icc 8.0:
3827 # icc: Command line remark: option '-MP' not supported
3828 if (grep 'ignoring option' conftest.err ||
3829 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3830 am_cv_CC_dependencies_compiler_type=$depmode
3831 break
3832 fi
3833 fi
3834 done
3835
3836 cd ..
3837 rm -rf conftest.dir
3838 else
3839 am_cv_CC_dependencies_compiler_type=none
3840 fi
3841
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3844 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3845 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3846
3847 if
3848 test "x$enable_dependency_tracking" != xno \
3849 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3850 am__fastdepCC_TRUE=
3851 am__fastdepCC_FALSE='#'
3852 else
3853 am__fastdepCC_TRUE='#'
3854 am__fastdepCC_FALSE=
3855 fi
3856
3857
3858 ac_ext=c
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3864 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3865 # On Suns, sometimes $CPP names a directory.
3866 if test -n "$CPP" && test -d "$CPP"; then
3867 CPP=
3868 fi
3869 if test -z "$CPP"; then
3870 if ${ac_cv_prog_CPP+:} false; then :
3871 $as_echo_n "(cached) " >&6
3872 else
3873 # Double quotes because CPP needs to be expanded
3874 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3875 do
3876 ac_preproc_ok=false
3877 for ac_c_preproc_warn_flag in '' yes
3878 do
3879 # Use a header file that comes with gcc, so configuring glibc
3880 # with a fresh cross-compiler works.
3881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3882 # <limits.h> exists even on freestanding compilers.
3883 # On the NeXT, cc -E runs the code through the compiler's parser,
3884 # not just through cpp. "Syntax error" is here to catch this case.
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3887 #ifdef __STDC__
3888 # include <limits.h>
3889 #else
3890 # include <assert.h>
3891 #endif
3892 Syntax error
3893 _ACEOF
3894 if ac_fn_c_try_cpp "$LINENO"; then :
3895
3896 else
3897 # Broken: fails on valid input.
3898 continue
3899 fi
3900 rm -f conftest.err conftest.i conftest.$ac_ext
3901
3902 # OK, works on sane cases. Now check whether nonexistent headers
3903 # can be detected and how.
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906 #include <ac_nonexistent.h>
3907 _ACEOF
3908 if ac_fn_c_try_cpp "$LINENO"; then :
3909 # Broken: success on invalid input.
3910 continue
3911 else
3912 # Passes both tests.
3913 ac_preproc_ok=:
3914 break
3915 fi
3916 rm -f conftest.err conftest.i conftest.$ac_ext
3917
3918 done
3919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3920 rm -f conftest.i conftest.err conftest.$ac_ext
3921 if $ac_preproc_ok; then :
3922 break
3923 fi
3924
3925 done
3926 ac_cv_prog_CPP=$CPP
3927
3928 fi
3929 CPP=$ac_cv_prog_CPP
3930 else
3931 ac_cv_prog_CPP=$CPP
3932 fi
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3934 $as_echo "$CPP" >&6; }
3935 ac_preproc_ok=false
3936 for ac_c_preproc_warn_flag in '' yes
3937 do
3938 # Use a header file that comes with gcc, so configuring glibc
3939 # with a fresh cross-compiler works.
3940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3941 # <limits.h> exists even on freestanding compilers.
3942 # On the NeXT, cc -E runs the code through the compiler's parser,
3943 # not just through cpp. "Syntax error" is here to catch this case.
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3946 #ifdef __STDC__
3947 # include <limits.h>
3948 #else
3949 # include <assert.h>
3950 #endif
3951 Syntax error
3952 _ACEOF
3953 if ac_fn_c_try_cpp "$LINENO"; then :
3954
3955 else
3956 # Broken: fails on valid input.
3957 continue
3958 fi
3959 rm -f conftest.err conftest.i conftest.$ac_ext
3960
3961 # OK, works on sane cases. Now check whether nonexistent headers
3962 # can be detected and how.
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3965 #include <ac_nonexistent.h>
3966 _ACEOF
3967 if ac_fn_c_try_cpp "$LINENO"; then :
3968 # Broken: success on invalid input.
3969 continue
3970 else
3971 # Passes both tests.
3972 ac_preproc_ok=:
3973 break
3974 fi
3975 rm -f conftest.err conftest.i conftest.$ac_ext
3976
3977 done
3978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3979 rm -f conftest.i conftest.err conftest.$ac_ext
3980 if $ac_preproc_ok; then :
3981
3982 else
3983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3986 See \`config.log' for more details" "$LINENO" 5; }
3987 fi
3988
3989 ac_ext=c
3990 ac_cpp='$CPP $CPPFLAGS'
3991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
3995 ac_ext=c
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000 if test -n "$ac_tool_prefix"; then
4001 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4002 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004 $as_echo_n "checking for $ac_word... " >&6; }
4005 if ${ac_cv_prog_CC+:} false; then :
4006 $as_echo_n "(cached) " >&6
4007 else
4008 if test -n "$CC"; then
4009 ac_cv_prog_CC="$CC" # Let the user override the test.
4010 else
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH
4013 do
4014 IFS=$as_save_IFS
4015 test -z "$as_dir" && as_dir=.
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4018 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 break 2
4021 fi
4022 done
4023 done
4024 IFS=$as_save_IFS
4025
4026 fi
4027 fi
4028 CC=$ac_cv_prog_CC
4029 if test -n "$CC"; then
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4031 $as_echo "$CC" >&6; }
4032 else
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034 $as_echo "no" >&6; }
4035 fi
4036
4037
4038 fi
4039 if test -z "$ac_cv_prog_CC"; then
4040 ac_ct_CC=$CC
4041 # Extract the first word of "gcc", so it can be a program name with args.
4042 set dummy gcc; ac_word=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 if test -n "$ac_ct_CC"; then
4049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054 IFS=$as_save_IFS
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_prog_ac_ct_CC="gcc"
4059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 break 2
4061 fi
4062 done
4063 done
4064 IFS=$as_save_IFS
4065
4066 fi
4067 fi
4068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4069 if test -n "$ac_ct_CC"; then
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4071 $as_echo "$ac_ct_CC" >&6; }
4072 else
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4075 fi
4076
4077 if test "x$ac_ct_CC" = x; then
4078 CC=""
4079 else
4080 case $cross_compiling:$ac_tool_warned in
4081 yes:)
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4084 ac_tool_warned=yes ;;
4085 esac
4086 CC=$ac_ct_CC
4087 fi
4088 else
4089 CC="$ac_cv_prog_CC"
4090 fi
4091
4092 if test -z "$CC"; then
4093 if test -n "$ac_tool_prefix"; then
4094 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}cc; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_CC+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 if test -n "$CC"; then
4102 ac_cv_prog_CC="$CC" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_CC="${ac_tool_prefix}cc"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2
4114 fi
4115 done
4116 done
4117 IFS=$as_save_IFS
4118
4119 fi
4120 fi
4121 CC=$ac_cv_prog_CC
4122 if test -n "$CC"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4124 $as_echo "$CC" >&6; }
4125 else
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4128 fi
4129
4130
4131 fi
4132 fi
4133 if test -z "$CC"; then
4134 # Extract the first word of "cc", so it can be a program name with args.
4135 set dummy cc; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_CC+:} false; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 if test -n "$CC"; then
4142 ac_cv_prog_CC="$CC" # Let the user override the test.
4143 else
4144 ac_prog_rejected=no
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH
4147 do
4148 IFS=$as_save_IFS
4149 test -z "$as_dir" && as_dir=.
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4152 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4153 ac_prog_rejected=yes
4154 continue
4155 fi
4156 ac_cv_prog_CC="cc"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 break 2
4159 fi
4160 done
4161 done
4162 IFS=$as_save_IFS
4163
4164 if test $ac_prog_rejected = yes; then
4165 # We found a bogon in the path, so make sure we never use it.
4166 set dummy $ac_cv_prog_CC
4167 shift
4168 if test $# != 0; then
4169 # We chose a different compiler from the bogus one.
4170 # However, it has the same basename, so the bogon will be chosen
4171 # first if we set CC to just the basename; use the full file name.
4172 shift
4173 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4174 fi
4175 fi
4176 fi
4177 fi
4178 CC=$ac_cv_prog_CC
4179 if test -n "$CC"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4181 $as_echo "$CC" >&6; }
4182 else
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4185 fi
4186
4187
4188 fi
4189 if test -z "$CC"; then
4190 if test -n "$ac_tool_prefix"; then
4191 for ac_prog in cl.exe
4192 do
4193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 $as_echo_n "checking for $ac_word... " >&6; }
4197 if ${ac_cv_prog_CC+:} false; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 if test -n "$CC"; then
4201 ac_cv_prog_CC="$CC" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4213 fi
4214 done
4215 done
4216 IFS=$as_save_IFS
4217
4218 fi
4219 fi
4220 CC=$ac_cv_prog_CC
4221 if test -n "$CC"; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4223 $as_echo "$CC" >&6; }
4224 else
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4227 fi
4228
4229
4230 test -n "$CC" && break
4231 done
4232 fi
4233 if test -z "$CC"; then
4234 ac_ct_CC=$CC
4235 for ac_prog in cl.exe
4236 do
4237 # Extract the first word of "$ac_prog", so it can be a program name with args.
4238 set dummy $ac_prog; ac_word=$2
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4240 $as_echo_n "checking for $ac_word... " >&6; }
4241 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 if test -n "$ac_ct_CC"; then
4245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4246 else
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4249 do
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4254 ac_cv_prog_ac_ct_CC="$ac_prog"
4255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4256 break 2
4257 fi
4258 done
4259 done
4260 IFS=$as_save_IFS
4261
4262 fi
4263 fi
4264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4265 if test -n "$ac_ct_CC"; then
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4267 $as_echo "$ac_ct_CC" >&6; }
4268 else
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4270 $as_echo "no" >&6; }
4271 fi
4272
4273
4274 test -n "$ac_ct_CC" && break
4275 done
4276
4277 if test "x$ac_ct_CC" = x; then
4278 CC=""
4279 else
4280 case $cross_compiling:$ac_tool_warned in
4281 yes:)
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4284 ac_tool_warned=yes ;;
4285 esac
4286 CC=$ac_ct_CC
4287 fi
4288 fi
4289
4290 fi
4291
4292
4293 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4295 as_fn_error $? "no acceptable C compiler found in \$PATH
4296 See \`config.log' for more details" "$LINENO" 5; }
4297
4298 # Provide some information about the compiler.
4299 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4300 set X $ac_compile
4301 ac_compiler=$2
4302 for ac_option in --version -v -V -qversion; do
4303 { { ac_try="$ac_compiler $ac_option >&5"
4304 case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309 $as_echo "$ac_try_echo"; } >&5
4310 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4311 ac_status=$?
4312 if test -s conftest.err; then
4313 sed '10a\
4314 ... rest of stderr output deleted ...
4315 10q' conftest.err >conftest.er1
4316 cat conftest.er1 >&5
4317 fi
4318 rm -f conftest.er1 conftest.err
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; }
4321 done
4322
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4324 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4325 if ${ac_cv_c_compiler_gnu+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330
4331 int
4332 main ()
4333 {
4334 #ifndef __GNUC__
4335 choke me
4336 #endif
4337
4338 ;
4339 return 0;
4340 }
4341 _ACEOF
4342 if ac_fn_c_try_compile "$LINENO"; then :
4343 ac_compiler_gnu=yes
4344 else
4345 ac_compiler_gnu=no
4346 fi
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4349
4350 fi
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4352 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4353 if test $ac_compiler_gnu = yes; then
4354 GCC=yes
4355 else
4356 GCC=
4357 fi
4358 ac_test_CFLAGS=${CFLAGS+set}
4359 ac_save_CFLAGS=$CFLAGS
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4361 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4362 if ${ac_cv_prog_cc_g+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 ac_save_c_werror_flag=$ac_c_werror_flag
4366 ac_c_werror_flag=yes
4367 ac_cv_prog_cc_g=no
4368 CFLAGS="-g"
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371
4372 int
4373 main ()
4374 {
4375
4376 ;
4377 return 0;
4378 }
4379 _ACEOF
4380 if ac_fn_c_try_compile "$LINENO"; then :
4381 ac_cv_prog_cc_g=yes
4382 else
4383 CFLAGS=""
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386
4387 int
4388 main ()
4389 {
4390
4391 ;
4392 return 0;
4393 }
4394 _ACEOF
4395 if ac_fn_c_try_compile "$LINENO"; then :
4396
4397 else
4398 ac_c_werror_flag=$ac_save_c_werror_flag
4399 CFLAGS="-g"
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402
4403 int
4404 main ()
4405 {
4406
4407 ;
4408 return 0;
4409 }
4410 _ACEOF
4411 if ac_fn_c_try_compile "$LINENO"; then :
4412 ac_cv_prog_cc_g=yes
4413 fi
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 fi
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 fi
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 ac_c_werror_flag=$ac_save_c_werror_flag
4420 fi
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4422 $as_echo "$ac_cv_prog_cc_g" >&6; }
4423 if test "$ac_test_CFLAGS" = set; then
4424 CFLAGS=$ac_save_CFLAGS
4425 elif test $ac_cv_prog_cc_g = yes; then
4426 if test "$GCC" = yes; then
4427 CFLAGS="-g -O2"
4428 else
4429 CFLAGS="-g"
4430 fi
4431 else
4432 if test "$GCC" = yes; then
4433 CFLAGS="-O2"
4434 else
4435 CFLAGS=
4436 fi
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4439 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4440 if ${ac_cv_prog_cc_c89+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 ac_cv_prog_cc_c89=no
4444 ac_save_CC=$CC
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 #include <stdarg.h>
4448 #include <stdio.h>
4449 struct stat;
4450 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4451 struct buf { int x; };
4452 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4453 static char *e (p, i)
4454 char **p;
4455 int i;
4456 {
4457 return p[i];
4458 }
4459 static char *f (char * (*g) (char **, int), char **p, ...)
4460 {
4461 char *s;
4462 va_list v;
4463 va_start (v,p);
4464 s = g (p, va_arg (v,int));
4465 va_end (v);
4466 return s;
4467 }
4468
4469 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4470 function prototypes and stuff, but not '\xHH' hex character constants.
4471 These don't provoke an error unfortunately, instead are silently treated
4472 as 'x'. The following induces an error, until -std is added to get
4473 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4474 array size at least. It's necessary to write '\x00'==0 to get something
4475 that's true only with -std. */
4476 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4477
4478 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4479 inside strings and character constants. */
4480 #define FOO(x) 'x'
4481 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4482
4483 int test (int i, double x);
4484 struct s1 {int (*f) (int a);};
4485 struct s2 {int (*f) (double a);};
4486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4487 int argc;
4488 char **argv;
4489 int
4490 main ()
4491 {
4492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4493 ;
4494 return 0;
4495 }
4496 _ACEOF
4497 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4498 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4499 do
4500 CC="$ac_save_CC $ac_arg"
4501 if ac_fn_c_try_compile "$LINENO"; then :
4502 ac_cv_prog_cc_c89=$ac_arg
4503 fi
4504 rm -f core conftest.err conftest.$ac_objext
4505 test "x$ac_cv_prog_cc_c89" != "xno" && break
4506 done
4507 rm -f conftest.$ac_ext
4508 CC=$ac_save_CC
4509
4510 fi
4511 # AC_CACHE_VAL
4512 case "x$ac_cv_prog_cc_c89" in
4513 x)
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4515 $as_echo "none needed" >&6; } ;;
4516 xno)
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4518 $as_echo "unsupported" >&6; } ;;
4519 *)
4520 CC="$CC $ac_cv_prog_cc_c89"
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4522 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4523 esac
4524 if test "x$ac_cv_prog_cc_c89" != xno; then :
4525
4526 fi
4527
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533
4534 depcc="$CC" am_compiler_list=
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4537 $as_echo_n "checking dependency style of $depcc... " >&6; }
4538 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4542 # We make a subdir and do the tests there. Otherwise we can end up
4543 # making bogus files that we don't know about and never remove. For
4544 # instance it was reported that on HP-UX the gcc test will end up
4545 # making a dummy file named `D' -- because `-MD' means `put the output
4546 # in D'.
4547 rm -rf conftest.dir
4548 mkdir conftest.dir
4549 # Copy depcomp to subdir because otherwise we won't find it if we're
4550 # using a relative directory.
4551 cp "$am_depcomp" conftest.dir
4552 cd conftest.dir
4553 # We will build objects and dependencies in a subdirectory because
4554 # it helps to detect inapplicable dependency modes. For instance
4555 # both Tru64's cc and ICC support -MD to output dependencies as a
4556 # side effect of compilation, but ICC will put the dependencies in
4557 # the current directory while Tru64 will put them in the object
4558 # directory.
4559 mkdir sub
4560
4561 am_cv_CC_dependencies_compiler_type=none
4562 if test "$am_compiler_list" = ""; then
4563 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4564 fi
4565 am__universal=false
4566 case " $depcc " in #(
4567 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4568 esac
4569
4570 for depmode in $am_compiler_list; do
4571 # Setup a source with many dependencies, because some compilers
4572 # like to wrap large dependency lists on column 80 (with \), and
4573 # we should not choose a depcomp mode which is confused by this.
4574 #
4575 # We need to recreate these files for each test, as the compiler may
4576 # overwrite some of them when testing with obscure command lines.
4577 # This happens at least with the AIX C compiler.
4578 : > sub/conftest.c
4579 for i in 1 2 3 4 5 6; do
4580 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4581 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4582 # Solaris 8's {/usr,}/bin/sh.
4583 touch sub/conftst$i.h
4584 done
4585 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4586
4587 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4588 # mode. It turns out that the SunPro C++ compiler does not properly
4589 # handle `-M -o', and we need to detect this. Also, some Intel
4590 # versions had trouble with output in subdirs
4591 am__obj=sub/conftest.${OBJEXT-o}
4592 am__minus_obj="-o $am__obj"
4593 case $depmode in
4594 gcc)
4595 # This depmode causes a compiler race in universal mode.
4596 test "$am__universal" = false || continue
4597 ;;
4598 nosideeffect)
4599 # after this tag, mechanisms are not by side-effect, so they'll
4600 # only be used when explicitly requested
4601 if test "x$enable_dependency_tracking" = xyes; then
4602 continue
4603 else
4604 break
4605 fi
4606 ;;
4607 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4608 # This compiler won't grok `-c -o', but also, the minuso test has
4609 # not run yet. These depmodes are late enough in the game, and
4610 # so weak that their functioning should not be impacted.
4611 am__obj=conftest.${OBJEXT-o}
4612 am__minus_obj=
4613 ;;
4614 none) break ;;
4615 esac
4616 if depmode=$depmode \
4617 source=sub/conftest.c object=$am__obj \
4618 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4619 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4620 >/dev/null 2>conftest.err &&
4621 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4622 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4623 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4624 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4625 # icc doesn't choke on unknown options, it will just issue warnings
4626 # or remarks (even with -Werror). So we grep stderr for any message
4627 # that says an option was ignored or not supported.
4628 # When given -MP, icc 7.0 and 7.1 complain thusly:
4629 # icc: Command line warning: ignoring option '-M'; no argument required
4630 # The diagnosis changed in icc 8.0:
4631 # icc: Command line remark: option '-MP' not supported
4632 if (grep 'ignoring option' conftest.err ||
4633 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4634 am_cv_CC_dependencies_compiler_type=$depmode
4635 break
4636 fi
4637 fi
4638 done
4639
4640 cd ..
4641 rm -rf conftest.dir
4642 else
4643 am_cv_CC_dependencies_compiler_type=none
4644 fi
4645
4646 fi
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4648 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4649 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4650
4651 if
4652 test "x$enable_dependency_tracking" != xno \
4653 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4654 am__fastdepCC_TRUE=
4655 am__fastdepCC_FALSE='#'
4656 else
4657 am__fastdepCC_TRUE='#'
4658 am__fastdepCC_FALSE=
4659 fi
4660
4661
4662 ac_ext=cpp
4663 ac_cpp='$CXXCPP $CPPFLAGS'
4664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4667 if test -z "$CXX"; then
4668 if test -n "$CCC"; then
4669 CXX=$CCC
4670 else
4671 if test -n "$ac_tool_prefix"; then
4672 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4673 do
4674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if ${ac_cv_prog_CXX+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if test -n "$CXX"; then
4682 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4694 fi
4695 done
4696 done
4697 IFS=$as_save_IFS
4698
4699 fi
4700 fi
4701 CXX=$ac_cv_prog_CXX
4702 if test -n "$CXX"; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4704 $as_echo "$CXX" >&6; }
4705 else
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707 $as_echo "no" >&6; }
4708 fi
4709
4710
4711 test -n "$CXX" && break
4712 done
4713 fi
4714 if test -z "$CXX"; then
4715 ac_ct_CXX=$CXX
4716 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4717 do
4718 # Extract the first word of "$ac_prog", so it can be a program name with args.
4719 set dummy $ac_prog; ac_word=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$ac_ct_CXX"; then
4726 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735 ac_cv_prog_ac_ct_CXX="$ac_prog"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743 fi
4744 fi
4745 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4746 if test -n "$ac_ct_CXX"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4748 $as_echo "$ac_ct_CXX" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4752 fi
4753
4754
4755 test -n "$ac_ct_CXX" && break
4756 done
4757
4758 if test "x$ac_ct_CXX" = x; then
4759 CXX="g++"
4760 else
4761 case $cross_compiling:$ac_tool_warned in
4762 yes:)
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4765 ac_tool_warned=yes ;;
4766 esac
4767 CXX=$ac_ct_CXX
4768 fi
4769 fi
4770
4771 fi
4772 fi
4773 # Provide some information about the compiler.
4774 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4775 set X $ac_compile
4776 ac_compiler=$2
4777 for ac_option in --version -v -V -qversion; do
4778 { { ac_try="$ac_compiler $ac_option >&5"
4779 case "(($ac_try" in
4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4782 esac
4783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4784 $as_echo "$ac_try_echo"; } >&5
4785 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4786 ac_status=$?
4787 if test -s conftest.err; then
4788 sed '10a\
4789 ... rest of stderr output deleted ...
4790 10q' conftest.err >conftest.er1
4791 cat conftest.er1 >&5
4792 fi
4793 rm -f conftest.er1 conftest.err
4794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4795 test $ac_status = 0; }
4796 done
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4799 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4800 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805
4806 int
4807 main ()
4808 {
4809 #ifndef __GNUC__
4810 choke me
4811 #endif
4812
4813 ;
4814 return 0;
4815 }
4816 _ACEOF
4817 if ac_fn_cxx_try_compile "$LINENO"; then :
4818 ac_compiler_gnu=yes
4819 else
4820 ac_compiler_gnu=no
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4824
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4827 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4828 if test $ac_compiler_gnu = yes; then
4829 GXX=yes
4830 else
4831 GXX=
4832 fi
4833 ac_test_CXXFLAGS=${CXXFLAGS+set}
4834 ac_save_CXXFLAGS=$CXXFLAGS
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4836 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4837 if ${ac_cv_prog_cxx_g+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4841 ac_cxx_werror_flag=yes
4842 ac_cv_prog_cxx_g=no
4843 CXXFLAGS="-g"
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4846
4847 int
4848 main ()
4849 {
4850
4851 ;
4852 return 0;
4853 }
4854 _ACEOF
4855 if ac_fn_cxx_try_compile "$LINENO"; then :
4856 ac_cv_prog_cxx_g=yes
4857 else
4858 CXXFLAGS=""
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861
4862 int
4863 main ()
4864 {
4865
4866 ;
4867 return 0;
4868 }
4869 _ACEOF
4870 if ac_fn_cxx_try_compile "$LINENO"; then :
4871
4872 else
4873 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4874 CXXFLAGS="-g"
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877
4878 int
4879 main ()
4880 {
4881
4882 ;
4883 return 0;
4884 }
4885 _ACEOF
4886 if ac_fn_cxx_try_compile "$LINENO"; then :
4887 ac_cv_prog_cxx_g=yes
4888 fi
4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4895 fi
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4897 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4898 if test "$ac_test_CXXFLAGS" = set; then
4899 CXXFLAGS=$ac_save_CXXFLAGS
4900 elif test $ac_cv_prog_cxx_g = yes; then
4901 if test "$GXX" = yes; then
4902 CXXFLAGS="-g -O2"
4903 else
4904 CXXFLAGS="-g"
4905 fi
4906 else
4907 if test "$GXX" = yes; then
4908 CXXFLAGS="-O2"
4909 else
4910 CXXFLAGS=
4911 fi
4912 fi
4913 ac_ext=c
4914 ac_cpp='$CPP $CPPFLAGS'
4915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
4919 depcc="$CXX" am_compiler_list=
4920
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4922 $as_echo_n "checking dependency style of $depcc... " >&6; }
4923 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4927 # We make a subdir and do the tests there. Otherwise we can end up
4928 # making bogus files that we don't know about and never remove. For
4929 # instance it was reported that on HP-UX the gcc test will end up
4930 # making a dummy file named `D' -- because `-MD' means `put the output
4931 # in D'.
4932 rm -rf conftest.dir
4933 mkdir conftest.dir
4934 # Copy depcomp to subdir because otherwise we won't find it if we're
4935 # using a relative directory.
4936 cp "$am_depcomp" conftest.dir
4937 cd conftest.dir
4938 # We will build objects and dependencies in a subdirectory because
4939 # it helps to detect inapplicable dependency modes. For instance
4940 # both Tru64's cc and ICC support -MD to output dependencies as a
4941 # side effect of compilation, but ICC will put the dependencies in
4942 # the current directory while Tru64 will put them in the object
4943 # directory.
4944 mkdir sub
4945
4946 am_cv_CXX_dependencies_compiler_type=none
4947 if test "$am_compiler_list" = ""; then
4948 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4949 fi
4950 am__universal=false
4951 case " $depcc " in #(
4952 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4953 esac
4954
4955 for depmode in $am_compiler_list; do
4956 # Setup a source with many dependencies, because some compilers
4957 # like to wrap large dependency lists on column 80 (with \), and
4958 # we should not choose a depcomp mode which is confused by this.
4959 #
4960 # We need to recreate these files for each test, as the compiler may
4961 # overwrite some of them when testing with obscure command lines.
4962 # This happens at least with the AIX C compiler.
4963 : > sub/conftest.c
4964 for i in 1 2 3 4 5 6; do
4965 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4966 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4967 # Solaris 8's {/usr,}/bin/sh.
4968 touch sub/conftst$i.h
4969 done
4970 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4971
4972 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4973 # mode. It turns out that the SunPro C++ compiler does not properly
4974 # handle `-M -o', and we need to detect this. Also, some Intel
4975 # versions had trouble with output in subdirs
4976 am__obj=sub/conftest.${OBJEXT-o}
4977 am__minus_obj="-o $am__obj"
4978 case $depmode in
4979 gcc)
4980 # This depmode causes a compiler race in universal mode.
4981 test "$am__universal" = false || continue
4982 ;;
4983 nosideeffect)
4984 # after this tag, mechanisms are not by side-effect, so they'll
4985 # only be used when explicitly requested
4986 if test "x$enable_dependency_tracking" = xyes; then
4987 continue
4988 else
4989 break
4990 fi
4991 ;;
4992 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4993 # This compiler won't grok `-c -o', but also, the minuso test has
4994 # not run yet. These depmodes are late enough in the game, and
4995 # so weak that their functioning should not be impacted.
4996 am__obj=conftest.${OBJEXT-o}
4997 am__minus_obj=
4998 ;;
4999 none) break ;;
5000 esac
5001 if depmode=$depmode \
5002 source=sub/conftest.c object=$am__obj \
5003 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5004 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5005 >/dev/null 2>conftest.err &&
5006 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5007 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5008 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5009 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5010 # icc doesn't choke on unknown options, it will just issue warnings
5011 # or remarks (even with -Werror). So we grep stderr for any message
5012 # that says an option was ignored or not supported.
5013 # When given -MP, icc 7.0 and 7.1 complain thusly:
5014 # icc: Command line warning: ignoring option '-M'; no argument required
5015 # The diagnosis changed in icc 8.0:
5016 # icc: Command line remark: option '-MP' not supported
5017 if (grep 'ignoring option' conftest.err ||
5018 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5019 am_cv_CXX_dependencies_compiler_type=$depmode
5020 break
5021 fi
5022 fi
5023 done
5024
5025 cd ..
5026 rm -rf conftest.dir
5027 else
5028 am_cv_CXX_dependencies_compiler_type=none
5029 fi
5030
5031 fi
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5033 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5034 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5035
5036 if
5037 test "x$enable_dependency_tracking" != xno \
5038 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5039 am__fastdepCXX_TRUE=
5040 am__fastdepCXX_FALSE='#'
5041 else
5042 am__fastdepCXX_TRUE='#'
5043 am__fastdepCXX_FALSE=
5044 fi
5045
5046
5047 if test "x$CC" != xcc; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5049 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5052 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5053 fi
5054 set dummy $CC; ac_cc=`$as_echo "$2" |
5055 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5056 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5061
5062 int
5063 main ()
5064 {
5065
5066 ;
5067 return 0;
5068 }
5069 _ACEOF
5070 # Make sure it works both with $CC and with simple cc.
5071 # We do the test twice because some compilers refuse to overwrite an
5072 # existing .o file with -o, though they will create one.
5073 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5074 rm -f conftest2.*
5075 if { { case "(($ac_try" in
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5078 esac
5079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5080 $as_echo "$ac_try_echo"; } >&5
5081 (eval "$ac_try") 2>&5
5082 ac_status=$?
5083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5084 test $ac_status = 0; } &&
5085 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5088 esac
5089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5090 $as_echo "$ac_try_echo"; } >&5
5091 (eval "$ac_try") 2>&5
5092 ac_status=$?
5093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5094 test $ac_status = 0; };
5095 then
5096 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5097 if test "x$CC" != xcc; then
5098 # Test first that cc exists at all.
5099 if { ac_try='cc -c conftest.$ac_ext >&5'
5100 { { case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103 esac
5104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5105 $as_echo "$ac_try_echo"; } >&5
5106 (eval "$ac_try") 2>&5
5107 ac_status=$?
5108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5109 test $ac_status = 0; }; }; then
5110 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5111 rm -f conftest2.*
5112 if { { case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115 esac
5116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117 $as_echo "$ac_try_echo"; } >&5
5118 (eval "$ac_try") 2>&5
5119 ac_status=$?
5120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; } &&
5122 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5125 esac
5126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5127 $as_echo "$ac_try_echo"; } >&5
5128 (eval "$ac_try") 2>&5
5129 ac_status=$?
5130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5131 test $ac_status = 0; };
5132 then
5133 # cc works too.
5134 :
5135 else
5136 # cc exists but doesn't like -o.
5137 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5138 fi
5139 fi
5140 fi
5141 else
5142 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5143 fi
5144 rm -f core conftest*
5145
5146 fi
5147 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5149 $as_echo "yes" >&6; }
5150 else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5153
5154 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5155
5156 fi
5157
5158 # FIXME: we rely on the cache variable name because
5159 # there is no other way.
5160 set dummy $CC
5161 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5162 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5163 if test "$am_t" != yes; then
5164 # Losing compiler, so override with the script.
5165 # FIXME: It is wrong to rewrite CC.
5166 # But if we don't then we get into trouble of one sort or another.
5167 # A longer-term fix would be to have automake use am__CC in this case,
5168 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5169 CC="$am_aux_dir/compile $CC"
5170 fi
5171
5172
5173
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5175 $as_echo_n "checking whether ln -s works... " >&6; }
5176 LN_S=$as_ln_s
5177 if test "$LN_S" = "ln -s"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5179 $as_echo "yes" >&6; }
5180 else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5182 $as_echo "no, using $LN_S" >&6; }
5183 fi
5184
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5186 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5187 set x ${MAKE-make}
5188 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5189 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 cat >conftest.make <<\_ACEOF
5193 SHELL = /bin/sh
5194 all:
5195 @echo '@@@%%%=$(MAKE)=@@@%%%'
5196 _ACEOF
5197 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5198 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5199 *@@@%%%=?*=@@@%%%*)
5200 eval ac_cv_prog_make_${ac_make}_set=yes;;
5201 *)
5202 eval ac_cv_prog_make_${ac_make}_set=no;;
5203 esac
5204 rm -f conftest.make
5205 fi
5206 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208 $as_echo "yes" >&6; }
5209 SET_MAKE=
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 SET_MAKE="MAKE=${MAKE-make}"
5214 fi
5215
5216
5217 case `pwd` in
5218 *\ * | *\ *)
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5220 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5221 esac
5222
5223
5224
5225 macro_version='2.4.2'
5226 macro_revision='1.3337'
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240 ltmain="$ac_aux_dir/ltmain.sh"
5241
5242 # Make sure we can run config.sub.
5243 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5244 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5245
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5247 $as_echo_n "checking build system type... " >&6; }
5248 if ${ac_cv_build+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 ac_build_alias=$build_alias
5252 test "x$ac_build_alias" = x &&
5253 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5254 test "x$ac_build_alias" = x &&
5255 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5256 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5257 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5258
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5261 $as_echo "$ac_cv_build" >&6; }
5262 case $ac_cv_build in
5263 *-*-*) ;;
5264 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5265 esac
5266 build=$ac_cv_build
5267 ac_save_IFS=$IFS; IFS='-'
5268 set x $ac_cv_build
5269 shift
5270 build_cpu=$1
5271 build_vendor=$2
5272 shift; shift
5273 # Remember, the first character of IFS is used to create $*,
5274 # except with old shells:
5275 build_os=$*
5276 IFS=$ac_save_IFS
5277 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5278
5279
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5281 $as_echo_n "checking host system type... " >&6; }
5282 if ${ac_cv_host+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if test "x$host_alias" = x; then
5286 ac_cv_host=$ac_cv_build
5287 else
5288 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5289 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5290 fi
5291
5292 fi
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5294 $as_echo "$ac_cv_host" >&6; }
5295 case $ac_cv_host in
5296 *-*-*) ;;
5297 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5298 esac
5299 host=$ac_cv_host
5300 ac_save_IFS=$IFS; IFS='-'
5301 set x $ac_cv_host
5302 shift
5303 host_cpu=$1
5304 host_vendor=$2
5305 shift; shift
5306 # Remember, the first character of IFS is used to create $*,
5307 # except with old shells:
5308 host_os=$*
5309 IFS=$ac_save_IFS
5310 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5311
5312
5313 # Backslashify metacharacters that are still active within
5314 # double-quoted strings.
5315 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5316
5317 # Same as above, but do not quote variable references.
5318 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5319
5320 # Sed substitution to delay expansion of an escaped shell variable in a
5321 # double_quote_subst'ed string.
5322 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5323
5324 # Sed substitution to delay expansion of an escaped single quote.
5325 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5326
5327 # Sed substitution to avoid accidental globbing in evaled expressions
5328 no_glob_subst='s/\*/\\\*/g'
5329
5330 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5331 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5332 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5335 $as_echo_n "checking how to print strings... " >&6; }
5336 # Test print first, because it will be a builtin if present.
5337 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5338 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5339 ECHO='print -r --'
5340 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5341 ECHO='printf %s\n'
5342 else
5343 # Use this function as a fallback that always works.
5344 func_fallback_echo ()
5345 {
5346 eval 'cat <<_LTECHO_EOF
5347 $1
5348 _LTECHO_EOF'
5349 }
5350 ECHO='func_fallback_echo'
5351 fi
5352
5353 # func_echo_all arg...
5354 # Invoke $ECHO with all args, space-separated.
5355 func_echo_all ()
5356 {
5357 $ECHO ""
5358 }
5359
5360 case "$ECHO" in
5361 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5362 $as_echo "printf" >&6; } ;;
5363 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5364 $as_echo "print -r" >&6; } ;;
5365 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5366 $as_echo "cat" >&6; } ;;
5367 esac
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5383 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5384 if ${ac_cv_path_SED+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5388 for ac_i in 1 2 3 4 5 6 7; do
5389 ac_script="$ac_script$as_nl$ac_script"
5390 done
5391 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5392 { ac_script=; unset ac_script;}
5393 if test -z "$SED"; then
5394 ac_path_SED_found=false
5395 # Loop through the user's path and test for each of PROGNAME-LIST
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_prog in sed gsed; do
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5404 as_fn_executable_p "$ac_path_SED" || continue
5405 # Check for GNU ac_path_SED and select it if it is found.
5406 # Check for GNU $ac_path_SED
5407 case `"$ac_path_SED" --version 2>&1` in
5408 *GNU*)
5409 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5410 *)
5411 ac_count=0
5412 $as_echo_n 0123456789 >"conftest.in"
5413 while :
5414 do
5415 cat "conftest.in" "conftest.in" >"conftest.tmp"
5416 mv "conftest.tmp" "conftest.in"
5417 cp "conftest.in" "conftest.nl"
5418 $as_echo '' >> "conftest.nl"
5419 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5421 as_fn_arith $ac_count + 1 && ac_count=$as_val
5422 if test $ac_count -gt ${ac_path_SED_max-0}; then
5423 # Best one so far, save it but keep looking for a better one
5424 ac_cv_path_SED="$ac_path_SED"
5425 ac_path_SED_max=$ac_count
5426 fi
5427 # 10*(2^10) chars as input seems more than enough
5428 test $ac_count -gt 10 && break
5429 done
5430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5431 esac
5432
5433 $ac_path_SED_found && break 3
5434 done
5435 done
5436 done
5437 IFS=$as_save_IFS
5438 if test -z "$ac_cv_path_SED"; then
5439 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5440 fi
5441 else
5442 ac_cv_path_SED=$SED
5443 fi
5444
5445 fi
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5447 $as_echo "$ac_cv_path_SED" >&6; }
5448 SED="$ac_cv_path_SED"
5449 rm -f conftest.sed
5450
5451 test -z "$SED" && SED=sed
5452 Xsed="$SED -e 1s/^X//"
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5465 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5466 if ${ac_cv_path_GREP+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if test -z "$GREP"; then
5470 ac_path_GREP_found=false
5471 # Loop through the user's path and test for each of PROGNAME-LIST
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5474 do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_prog in grep ggrep; do
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5480 as_fn_executable_p "$ac_path_GREP" || continue
5481 # Check for GNU ac_path_GREP and select it if it is found.
5482 # Check for GNU $ac_path_GREP
5483 case `"$ac_path_GREP" --version 2>&1` in
5484 *GNU*)
5485 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5486 *)
5487 ac_count=0
5488 $as_echo_n 0123456789 >"conftest.in"
5489 while :
5490 do
5491 cat "conftest.in" "conftest.in" >"conftest.tmp"
5492 mv "conftest.tmp" "conftest.in"
5493 cp "conftest.in" "conftest.nl"
5494 $as_echo 'GREP' >> "conftest.nl"
5495 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5497 as_fn_arith $ac_count + 1 && ac_count=$as_val
5498 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5499 # Best one so far, save it but keep looking for a better one
5500 ac_cv_path_GREP="$ac_path_GREP"
5501 ac_path_GREP_max=$ac_count
5502 fi
5503 # 10*(2^10) chars as input seems more than enough
5504 test $ac_count -gt 10 && break
5505 done
5506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5507 esac
5508
5509 $ac_path_GREP_found && break 3
5510 done
5511 done
5512 done
5513 IFS=$as_save_IFS
5514 if test -z "$ac_cv_path_GREP"; then
5515 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5516 fi
5517 else
5518 ac_cv_path_GREP=$GREP
5519 fi
5520
5521 fi
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5523 $as_echo "$ac_cv_path_GREP" >&6; }
5524 GREP="$ac_cv_path_GREP"
5525
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5528 $as_echo_n "checking for egrep... " >&6; }
5529 if ${ac_cv_path_EGREP+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5533 then ac_cv_path_EGREP="$GREP -E"
5534 else
5535 if test -z "$EGREP"; then
5536 ac_path_EGREP_found=false
5537 # Loop through the user's path and test for each of PROGNAME-LIST
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5540 do
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_prog in egrep; do
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5546 as_fn_executable_p "$ac_path_EGREP" || continue
5547 # Check for GNU ac_path_EGREP and select it if it is found.
5548 # Check for GNU $ac_path_EGREP
5549 case `"$ac_path_EGREP" --version 2>&1` in
5550 *GNU*)
5551 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5552 *)
5553 ac_count=0
5554 $as_echo_n 0123456789 >"conftest.in"
5555 while :
5556 do
5557 cat "conftest.in" "conftest.in" >"conftest.tmp"
5558 mv "conftest.tmp" "conftest.in"
5559 cp "conftest.in" "conftest.nl"
5560 $as_echo 'EGREP' >> "conftest.nl"
5561 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5563 as_fn_arith $ac_count + 1 && ac_count=$as_val
5564 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5565 # Best one so far, save it but keep looking for a better one
5566 ac_cv_path_EGREP="$ac_path_EGREP"
5567 ac_path_EGREP_max=$ac_count
5568 fi
5569 # 10*(2^10) chars as input seems more than enough
5570 test $ac_count -gt 10 && break
5571 done
5572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5573 esac
5574
5575 $ac_path_EGREP_found && break 3
5576 done
5577 done
5578 done
5579 IFS=$as_save_IFS
5580 if test -z "$ac_cv_path_EGREP"; then
5581 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5582 fi
5583 else
5584 ac_cv_path_EGREP=$EGREP
5585 fi
5586
5587 fi
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5590 $as_echo "$ac_cv_path_EGREP" >&6; }
5591 EGREP="$ac_cv_path_EGREP"
5592
5593
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5595 $as_echo_n "checking for fgrep... " >&6; }
5596 if ${ac_cv_path_FGREP+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5600 then ac_cv_path_FGREP="$GREP -F"
5601 else
5602 if test -z "$FGREP"; then
5603 ac_path_FGREP_found=false
5604 # Loop through the user's path and test for each of PROGNAME-LIST
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5607 do
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
5610 for ac_prog in fgrep; do
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5613 as_fn_executable_p "$ac_path_FGREP" || continue
5614 # Check for GNU ac_path_FGREP and select it if it is found.
5615 # Check for GNU $ac_path_FGREP
5616 case `"$ac_path_FGREP" --version 2>&1` in
5617 *GNU*)
5618 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5619 *)
5620 ac_count=0
5621 $as_echo_n 0123456789 >"conftest.in"
5622 while :
5623 do
5624 cat "conftest.in" "conftest.in" >"conftest.tmp"
5625 mv "conftest.tmp" "conftest.in"
5626 cp "conftest.in" "conftest.nl"
5627 $as_echo 'FGREP' >> "conftest.nl"
5628 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5630 as_fn_arith $ac_count + 1 && ac_count=$as_val
5631 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5632 # Best one so far, save it but keep looking for a better one
5633 ac_cv_path_FGREP="$ac_path_FGREP"
5634 ac_path_FGREP_max=$ac_count
5635 fi
5636 # 10*(2^10) chars as input seems more than enough
5637 test $ac_count -gt 10 && break
5638 done
5639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5640 esac
5641
5642 $ac_path_FGREP_found && break 3
5643 done
5644 done
5645 done
5646 IFS=$as_save_IFS
5647 if test -z "$ac_cv_path_FGREP"; then
5648 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5649 fi
5650 else
5651 ac_cv_path_FGREP=$FGREP
5652 fi
5653
5654 fi
5655 fi
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5657 $as_echo "$ac_cv_path_FGREP" >&6; }
5658 FGREP="$ac_cv_path_FGREP"
5659
5660
5661 test -z "$GREP" && GREP=grep
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681 # Check whether --with-gnu-ld was given.
5682 if test "${with_gnu_ld+set}" = set; then :
5683 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5684 else
5685 with_gnu_ld=no
5686 fi
5687
5688 ac_prog=ld
5689 if test "$GCC" = yes; then
5690 # Check if gcc -print-prog-name=ld gives a path.
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5692 $as_echo_n "checking for ld used by $CC... " >&6; }
5693 case $host in
5694 *-*-mingw*)
5695 # gcc leaves a trailing carriage return which upsets mingw
5696 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5697 *)
5698 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5699 esac
5700 case $ac_prog in
5701 # Accept absolute paths.
5702 [\\/]* | ?:[\\/]*)
5703 re_direlt='/[^/][^/]*/\.\./'
5704 # Canonicalize the pathname of ld
5705 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5706 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5707 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5708 done
5709 test -z "$LD" && LD="$ac_prog"
5710 ;;
5711 "")
5712 # If it fails, then pretend we aren't using GCC.
5713 ac_prog=ld
5714 ;;
5715 *)
5716 # If it is relative, then search for the first ld in PATH.
5717 with_gnu_ld=unknown
5718 ;;
5719 esac
5720 elif test "$with_gnu_ld" = yes; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5722 $as_echo_n "checking for GNU ld... " >&6; }
5723 else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5725 $as_echo_n "checking for non-GNU ld... " >&6; }
5726 fi
5727 if ${lt_cv_path_LD+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if test -z "$LD"; then
5731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5732 for ac_dir in $PATH; do
5733 IFS="$lt_save_ifs"
5734 test -z "$ac_dir" && ac_dir=.
5735 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5736 lt_cv_path_LD="$ac_dir/$ac_prog"
5737 # Check to see if the program is GNU ld. I'd rather use --version,
5738 # but apparently some variants of GNU ld only accept -v.
5739 # Break only if it was the GNU/non-GNU ld that we prefer.
5740 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5741 *GNU* | *'with BFD'*)
5742 test "$with_gnu_ld" != no && break
5743 ;;
5744 *)
5745 test "$with_gnu_ld" != yes && break
5746 ;;
5747 esac
5748 fi
5749 done
5750 IFS="$lt_save_ifs"
5751 else
5752 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5753 fi
5754 fi
5755
5756 LD="$lt_cv_path_LD"
5757 if test -n "$LD"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5759 $as_echo "$LD" >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5763 fi
5764 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5766 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5767 if ${lt_cv_prog_gnu_ld+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5771 case `$LD -v 2>&1 </dev/null` in
5772 *GNU* | *'with BFD'*)
5773 lt_cv_prog_gnu_ld=yes
5774 ;;
5775 *)
5776 lt_cv_prog_gnu_ld=no
5777 ;;
5778 esac
5779 fi
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5781 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5782 with_gnu_ld=$lt_cv_prog_gnu_ld
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5793 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5794 if ${lt_cv_path_NM+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 if test -n "$NM"; then
5798 # Let the user override the test.
5799 lt_cv_path_NM="$NM"
5800 else
5801 lt_nm_to_check="${ac_tool_prefix}nm"
5802 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5803 lt_nm_to_check="$lt_nm_to_check nm"
5804 fi
5805 for lt_tmp_nm in $lt_nm_to_check; do
5806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5807 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5808 IFS="$lt_save_ifs"
5809 test -z "$ac_dir" && ac_dir=.
5810 tmp_nm="$ac_dir/$lt_tmp_nm"
5811 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5812 # Check to see if the nm accepts a BSD-compat flag.
5813 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5814 # nm: unknown option "B" ignored
5815 # Tru64's nm complains that /dev/null is an invalid object file
5816 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5817 */dev/null* | *'Invalid file or object type'*)
5818 lt_cv_path_NM="$tmp_nm -B"
5819 break
5820 ;;
5821 *)
5822 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5823 */dev/null*)
5824 lt_cv_path_NM="$tmp_nm -p"
5825 break
5826 ;;
5827 *)
5828 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5829 continue # so that we can try to find one that supports BSD flags
5830 ;;
5831 esac
5832 ;;
5833 esac
5834 fi
5835 done
5836 IFS="$lt_save_ifs"
5837 done
5838 : ${lt_cv_path_NM=no}
5839 fi
5840 fi
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5842 $as_echo "$lt_cv_path_NM" >&6; }
5843 if test "$lt_cv_path_NM" != "no"; then
5844 NM="$lt_cv_path_NM"
5845 else
5846 # Didn't find any BSD compatible name lister, look for dumpbin.
5847 if test -n "$DUMPBIN"; then :
5848 # Let the user override the test.
5849 else
5850 if test -n "$ac_tool_prefix"; then
5851 for ac_prog in dumpbin "link -dump"
5852 do
5853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if ${ac_cv_prog_DUMPBIN+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if test -n "$DUMPBIN"; then
5861 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5873 fi
5874 done
5875 done
5876 IFS=$as_save_IFS
5877
5878 fi
5879 fi
5880 DUMPBIN=$ac_cv_prog_DUMPBIN
5881 if test -n "$DUMPBIN"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5883 $as_echo "$DUMPBIN" >&6; }
5884 else
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5887 fi
5888
5889
5890 test -n "$DUMPBIN" && break
5891 done
5892 fi
5893 if test -z "$DUMPBIN"; then
5894 ac_ct_DUMPBIN=$DUMPBIN
5895 for ac_prog in dumpbin "link -dump"
5896 do
5897 # Extract the first word of "$ac_prog", so it can be a program name with args.
5898 set dummy $ac_prog; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if test -n "$ac_ct_DUMPBIN"; then
5905 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918 done
5919 done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5925 if test -n "$ac_ct_DUMPBIN"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5927 $as_echo "$ac_ct_DUMPBIN" >&6; }
5928 else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932
5933
5934 test -n "$ac_ct_DUMPBIN" && break
5935 done
5936
5937 if test "x$ac_ct_DUMPBIN" = x; then
5938 DUMPBIN=":"
5939 else
5940 case $cross_compiling:$ac_tool_warned in
5941 yes:)
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5944 ac_tool_warned=yes ;;
5945 esac
5946 DUMPBIN=$ac_ct_DUMPBIN
5947 fi
5948 fi
5949
5950 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5951 *COFF*)
5952 DUMPBIN="$DUMPBIN -symbols"
5953 ;;
5954 *)
5955 DUMPBIN=:
5956 ;;
5957 esac
5958 fi
5959
5960 if test "$DUMPBIN" != ":"; then
5961 NM="$DUMPBIN"
5962 fi
5963 fi
5964 test -z "$NM" && NM=nm
5965
5966
5967
5968
5969
5970
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5972 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5973 if ${lt_cv_nm_interface+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 lt_cv_nm_interface="BSD nm"
5977 echo "int some_variable = 0;" > conftest.$ac_ext
5978 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5979 (eval "$ac_compile" 2>conftest.err)
5980 cat conftest.err >&5
5981 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5982 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5983 cat conftest.err >&5
5984 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5985 cat conftest.out >&5
5986 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5987 lt_cv_nm_interface="MS dumpbin"
5988 fi
5989 rm -f conftest*
5990 fi
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5992 $as_echo "$lt_cv_nm_interface" >&6; }
5993
5994 # find the maximum length of command line arguments
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5996 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5997 if ${lt_cv_sys_max_cmd_len+:} false; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 i=0
6001 teststring="ABCD"
6002
6003 case $build_os in
6004 msdosdjgpp*)
6005 # On DJGPP, this test can blow up pretty badly due to problems in libc
6006 # (any single argument exceeding 2000 bytes causes a buffer overrun
6007 # during glob expansion). Even if it were fixed, the result of this
6008 # check would be larger than it should be.
6009 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6010 ;;
6011
6012 gnu*)
6013 # Under GNU Hurd, this test is not required because there is
6014 # no limit to the length of command line arguments.
6015 # Libtool will interpret -1 as no limit whatsoever
6016 lt_cv_sys_max_cmd_len=-1;
6017 ;;
6018
6019 cygwin* | mingw* | cegcc*)
6020 # On Win9x/ME, this test blows up -- it succeeds, but takes
6021 # about 5 minutes as the teststring grows exponentially.
6022 # Worse, since 9x/ME are not pre-emptively multitasking,
6023 # you end up with a "frozen" computer, even though with patience
6024 # the test eventually succeeds (with a max line length of 256k).
6025 # Instead, let's just punt: use the minimum linelength reported by
6026 # all of the supported platforms: 8192 (on NT/2K/XP).
6027 lt_cv_sys_max_cmd_len=8192;
6028 ;;
6029
6030 mint*)
6031 # On MiNT this can take a long time and run out of memory.
6032 lt_cv_sys_max_cmd_len=8192;
6033 ;;
6034
6035 amigaos*)
6036 # On AmigaOS with pdksh, this test takes hours, literally.
6037 # So we just punt and use a minimum line length of 8192.
6038 lt_cv_sys_max_cmd_len=8192;
6039 ;;
6040
6041 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6042 # This has been around since 386BSD, at least. Likely further.
6043 if test -x /sbin/sysctl; then
6044 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6045 elif test -x /usr/sbin/sysctl; then
6046 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6047 else
6048 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6049 fi
6050 # And add a safety zone
6051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6053 ;;
6054
6055 interix*)
6056 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6057 lt_cv_sys_max_cmd_len=196608
6058 ;;
6059
6060 os2*)
6061 # The test takes a long time on OS/2.
6062 lt_cv_sys_max_cmd_len=8192
6063 ;;
6064
6065 osf*)
6066 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6067 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6068 # nice to cause kernel panics so lets avoid the loop below.
6069 # First set a reasonable default.
6070 lt_cv_sys_max_cmd_len=16384
6071 #
6072 if test -x /sbin/sysconfig; then
6073 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6074 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6075 esac
6076 fi
6077 ;;
6078 sco3.2v5*)
6079 lt_cv_sys_max_cmd_len=102400
6080 ;;
6081 sysv5* | sco5v6* | sysv4.2uw2*)
6082 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6083 if test -n "$kargmax"; then
6084 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6085 else
6086 lt_cv_sys_max_cmd_len=32768
6087 fi
6088 ;;
6089 *)
6090 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6091 if test -n "$lt_cv_sys_max_cmd_len"; then
6092 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6094 else
6095 # Make teststring a little bigger before we do anything with it.
6096 # a 1K string should be a reasonable start.
6097 for i in 1 2 3 4 5 6 7 8 ; do
6098 teststring=$teststring$teststring
6099 done
6100 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6101 # If test is not a shell built-in, we'll probably end up computing a
6102 # maximum length that is only half of the actual maximum length, but
6103 # we can't tell.
6104 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6105 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6106 test $i != 17 # 1/2 MB should be enough
6107 do
6108 i=`expr $i + 1`
6109 teststring=$teststring$teststring
6110 done
6111 # Only check the string length outside the loop.
6112 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6113 teststring=
6114 # Add a significant safety factor because C++ compilers can tack on
6115 # massive amounts of additional arguments before passing them to the
6116 # linker. It appears as though 1/2 is a usable value.
6117 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6118 fi
6119 ;;
6120 esac
6121
6122 fi
6123
6124 if test -n $lt_cv_sys_max_cmd_len ; then
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6126 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6127 else
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6129 $as_echo "none" >&6; }
6130 fi
6131 max_cmd_len=$lt_cv_sys_max_cmd_len
6132
6133
6134
6135
6136
6137
6138 : ${CP="cp -f"}
6139 : ${MV="mv -f"}
6140 : ${RM="rm -f"}
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6143 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6144 # Try some XSI features
6145 xsi_shell=no
6146 ( _lt_dummy="a/b/c"
6147 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6148 = c,a/b,b/c, \
6149 && eval 'test $(( 1 + 1 )) -eq 2 \
6150 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6151 && xsi_shell=yes
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6153 $as_echo "$xsi_shell" >&6; }
6154
6155
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6157 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6158 lt_shell_append=no
6159 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6160 >/dev/null 2>&1 \
6161 && lt_shell_append=yes
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6163 $as_echo "$lt_shell_append" >&6; }
6164
6165
6166 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6167 lt_unset=unset
6168 else
6169 lt_unset=false
6170 fi
6171
6172
6173
6174
6175
6176 # test EBCDIC or ASCII
6177 case `echo X|tr X '\101'` in
6178 A) # ASCII based system
6179 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6180 lt_SP2NL='tr \040 \012'
6181 lt_NL2SP='tr \015\012 \040\040'
6182 ;;
6183 *) # EBCDIC based system
6184 lt_SP2NL='tr \100 \n'
6185 lt_NL2SP='tr \r\n \100\100'
6186 ;;
6187 esac
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6198 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6199 if ${lt_cv_to_host_file_cmd+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 case $host in
6203 *-*-mingw* )
6204 case $build in
6205 *-*-mingw* ) # actually msys
6206 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6207 ;;
6208 *-*-cygwin* )
6209 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6210 ;;
6211 * ) # otherwise, assume *nix
6212 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6213 ;;
6214 esac
6215 ;;
6216 *-*-cygwin* )
6217 case $build in
6218 *-*-mingw* ) # actually msys
6219 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6220 ;;
6221 *-*-cygwin* )
6222 lt_cv_to_host_file_cmd=func_convert_file_noop
6223 ;;
6224 * ) # otherwise, assume *nix
6225 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6226 ;;
6227 esac
6228 ;;
6229 * ) # unhandled hosts (and "normal" native builds)
6230 lt_cv_to_host_file_cmd=func_convert_file_noop
6231 ;;
6232 esac
6233
6234 fi
6235
6236 to_host_file_cmd=$lt_cv_to_host_file_cmd
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6238 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6239
6240
6241
6242
6243
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6245 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6246 if ${lt_cv_to_tool_file_cmd+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 #assume ordinary cross tools, or native build.
6250 lt_cv_to_tool_file_cmd=func_convert_file_noop
6251 case $host in
6252 *-*-mingw* )
6253 case $build in
6254 *-*-mingw* ) # actually msys
6255 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6256 ;;
6257 esac
6258 ;;
6259 esac
6260
6261 fi
6262
6263 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6265 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6266
6267
6268
6269
6270
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6272 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6273 if ${lt_cv_ld_reload_flag+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 lt_cv_ld_reload_flag='-r'
6277 fi
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6279 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6280 reload_flag=$lt_cv_ld_reload_flag
6281 case $reload_flag in
6282 "" | " "*) ;;
6283 *) reload_flag=" $reload_flag" ;;
6284 esac
6285 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6286 case $host_os in
6287 cygwin* | mingw* | pw32* | cegcc*)
6288 if test "$GCC" != yes; then
6289 reload_cmds=false
6290 fi
6291 ;;
6292 darwin*)
6293 if test "$GCC" = yes; then
6294 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6295 else
6296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6297 fi
6298 ;;
6299 esac
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309 if test -n "$ac_tool_prefix"; then
6310 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6311 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if ${ac_cv_prog_OBJDUMP+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 if test -n "$OBJDUMP"; then
6318 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6319 else
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 break 2
6330 fi
6331 done
6332 done
6333 IFS=$as_save_IFS
6334
6335 fi
6336 fi
6337 OBJDUMP=$ac_cv_prog_OBJDUMP
6338 if test -n "$OBJDUMP"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6340 $as_echo "$OBJDUMP" >&6; }
6341 else
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6344 fi
6345
6346
6347 fi
6348 if test -z "$ac_cv_prog_OBJDUMP"; then
6349 ac_ct_OBJDUMP=$OBJDUMP
6350 # Extract the first word of "objdump", so it can be a program name with args.
6351 set dummy objdump; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 if test -n "$ac_ct_OBJDUMP"; then
6358 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363 IFS=$as_save_IFS
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 break 2
6370 fi
6371 done
6372 done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6378 if test -n "$ac_ct_OBJDUMP"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6380 $as_echo "$ac_ct_OBJDUMP" >&6; }
6381 else
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386 if test "x$ac_ct_OBJDUMP" = x; then
6387 OBJDUMP="false"
6388 else
6389 case $cross_compiling:$ac_tool_warned in
6390 yes:)
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393 ac_tool_warned=yes ;;
6394 esac
6395 OBJDUMP=$ac_ct_OBJDUMP
6396 fi
6397 else
6398 OBJDUMP="$ac_cv_prog_OBJDUMP"
6399 fi
6400
6401 test -z "$OBJDUMP" && OBJDUMP=objdump
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6412 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6413 if ${lt_cv_deplibs_check_method+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 lt_cv_file_magic_cmd='$MAGIC_CMD'
6417 lt_cv_file_magic_test_file=
6418 lt_cv_deplibs_check_method='unknown'
6419 # Need to set the preceding variable on all platforms that support
6420 # interlibrary dependencies.
6421 # 'none' -- dependencies not supported.
6422 # `unknown' -- same as none, but documents that we really don't know.
6423 # 'pass_all' -- all dependencies passed with no checks.
6424 # 'test_compile' -- check by making test program.
6425 # 'file_magic [[regex]]' -- check by looking for files in library path
6426 # which responds to the $file_magic_cmd with a given extended regex.
6427 # If you have `file' or equivalent on your system and you're not sure
6428 # whether `pass_all' will *always* work, you probably want this one.
6429
6430 case $host_os in
6431 aix[4-9]*)
6432 lt_cv_deplibs_check_method=pass_all
6433 ;;
6434
6435 beos*)
6436 lt_cv_deplibs_check_method=pass_all
6437 ;;
6438
6439 bsdi[45]*)
6440 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6441 lt_cv_file_magic_cmd='/usr/bin/file -L'
6442 lt_cv_file_magic_test_file=/shlib/libc.so
6443 ;;
6444
6445 cygwin*)
6446 # func_win32_libid is a shell function defined in ltmain.sh
6447 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6448 lt_cv_file_magic_cmd='func_win32_libid'
6449 ;;
6450
6451 mingw* | pw32*)
6452 # Base MSYS/MinGW do not provide the 'file' command needed by
6453 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6454 # unless we find 'file', for example because we are cross-compiling.
6455 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6456 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6457 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6458 lt_cv_file_magic_cmd='func_win32_libid'
6459 else
6460 # Keep this pattern in sync with the one in func_win32_libid.
6461 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6462 lt_cv_file_magic_cmd='$OBJDUMP -f'
6463 fi
6464 ;;
6465
6466 cegcc*)
6467 # use the weaker test based on 'objdump'. See mingw*.
6468 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6469 lt_cv_file_magic_cmd='$OBJDUMP -f'
6470 ;;
6471
6472 darwin* | rhapsody*)
6473 lt_cv_deplibs_check_method=pass_all
6474 ;;
6475
6476 freebsd* | dragonfly*)
6477 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6478 case $host_cpu in
6479 i*86 )
6480 # Not sure whether the presence of OpenBSD here was a mistake.
6481 # Let's accept both of them until this is cleared up.
6482 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6483 lt_cv_file_magic_cmd=/usr/bin/file
6484 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6485 ;;
6486 esac
6487 else
6488 lt_cv_deplibs_check_method=pass_all
6489 fi
6490 ;;
6491
6492 haiku*)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495
6496 hpux10.20* | hpux11*)
6497 lt_cv_file_magic_cmd=/usr/bin/file
6498 case $host_cpu in
6499 ia64*)
6500 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6501 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6502 ;;
6503 hppa*64*)
6504 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]'
6505 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6506 ;;
6507 *)
6508 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6509 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6510 ;;
6511 esac
6512 ;;
6513
6514 interix[3-9]*)
6515 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6517 ;;
6518
6519 irix5* | irix6* | nonstopux*)
6520 case $LD in
6521 *-32|*"-32 ") libmagic=32-bit;;
6522 *-n32|*"-n32 ") libmagic=N32;;
6523 *-64|*"-64 ") libmagic=64-bit;;
6524 *) libmagic=never-match;;
6525 esac
6526 lt_cv_deplibs_check_method=pass_all
6527 ;;
6528
6529 # This must be glibc/ELF.
6530 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6531 lt_cv_deplibs_check_method=pass_all
6532 ;;
6533
6534 netbsd* | netbsdelf*-gnu)
6535 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6537 else
6538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6539 fi
6540 ;;
6541
6542 newos6*)
6543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6544 lt_cv_file_magic_cmd=/usr/bin/file
6545 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6546 ;;
6547
6548 *nto* | *qnx*)
6549 lt_cv_deplibs_check_method=pass_all
6550 ;;
6551
6552 openbsd*)
6553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6555 else
6556 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6557 fi
6558 ;;
6559
6560 osf3* | osf4* | osf5*)
6561 lt_cv_deplibs_check_method=pass_all
6562 ;;
6563
6564 rdos*)
6565 lt_cv_deplibs_check_method=pass_all
6566 ;;
6567
6568 solaris*)
6569 lt_cv_deplibs_check_method=pass_all
6570 ;;
6571
6572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6573 lt_cv_deplibs_check_method=pass_all
6574 ;;
6575
6576 sysv4 | sysv4.3*)
6577 case $host_vendor in
6578 motorola)
6579 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]'
6580 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6581 ;;
6582 ncr)
6583 lt_cv_deplibs_check_method=pass_all
6584 ;;
6585 sequent)
6586 lt_cv_file_magic_cmd='/bin/file'
6587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6588 ;;
6589 sni)
6590 lt_cv_file_magic_cmd='/bin/file'
6591 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6592 lt_cv_file_magic_test_file=/lib/libc.so
6593 ;;
6594 siemens)
6595 lt_cv_deplibs_check_method=pass_all
6596 ;;
6597 pc)
6598 lt_cv_deplibs_check_method=pass_all
6599 ;;
6600 esac
6601 ;;
6602
6603 tpf*)
6604 lt_cv_deplibs_check_method=pass_all
6605 ;;
6606 esac
6607
6608 fi
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6610 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6611
6612 file_magic_glob=
6613 want_nocaseglob=no
6614 if test "$build" = "$host"; then
6615 case $host_os in
6616 mingw* | pw32*)
6617 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6618 want_nocaseglob=yes
6619 else
6620 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6621 fi
6622 ;;
6623 esac
6624 fi
6625
6626 file_magic_cmd=$lt_cv_file_magic_cmd
6627 deplibs_check_method=$lt_cv_deplibs_check_method
6628 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_DLLTOOL+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 if test -n "$DLLTOOL"; then
6660 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 DLLTOOL=$ac_cv_prog_DLLTOOL
6680 if test -n "$DLLTOOL"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6682 $as_echo "$DLLTOOL" >&6; }
6683 else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688
6689 fi
6690 if test -z "$ac_cv_prog_DLLTOOL"; then
6691 ac_ct_DLLTOOL=$DLLTOOL
6692 # Extract the first word of "dlltool", so it can be a program name with args.
6693 set dummy dlltool; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 if test -n "$ac_ct_DLLTOOL"; then
6700 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6720 if test -n "$ac_ct_DLLTOOL"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6722 $as_echo "$ac_ct_DLLTOOL" >&6; }
6723 else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728 if test "x$ac_ct_DLLTOOL" = x; then
6729 DLLTOOL="false"
6730 else
6731 case $cross_compiling:$ac_tool_warned in
6732 yes:)
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6735 ac_tool_warned=yes ;;
6736 esac
6737 DLLTOOL=$ac_ct_DLLTOOL
6738 fi
6739 else
6740 DLLTOOL="$ac_cv_prog_DLLTOOL"
6741 fi
6742
6743 test -z "$DLLTOOL" && DLLTOOL=dlltool
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6755 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6756 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 lt_cv_sharedlib_from_linklib_cmd='unknown'
6760
6761 case $host_os in
6762 cygwin* | mingw* | pw32* | cegcc*)
6763 # two different shell functions defined in ltmain.sh
6764 # decide which to use based on capabilities of $DLLTOOL
6765 case `$DLLTOOL --help 2>&1` in
6766 *--identify-strict*)
6767 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6768 ;;
6769 *)
6770 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6771 ;;
6772 esac
6773 ;;
6774 *)
6775 # fallback: assume linklib IS sharedlib
6776 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6777 ;;
6778 esac
6779
6780 fi
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6782 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6783 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6784 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6785
6786
6787
6788
6789
6790
6791
6792
6793 if test -n "$ac_tool_prefix"; then
6794 for ac_prog in ar
6795 do
6796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if ${ac_cv_prog_AR+:} false; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 if test -n "$AR"; then
6804 ac_cv_prog_AR="$AR" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 AR=$ac_cv_prog_AR
6824 if test -n "$AR"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6826 $as_echo "$AR" >&6; }
6827 else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6830 fi
6831
6832
6833 test -n "$AR" && break
6834 done
6835 fi
6836 if test -z "$AR"; then
6837 ac_ct_AR=$AR
6838 for ac_prog in ar
6839 do
6840 # Extract the first word of "$ac_prog", so it can be a program name with args.
6841 set dummy $ac_prog; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$ac_ct_AR"; then
6848 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_ac_ct_AR="$ac_prog"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861 done
6862 done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6868 if test -n "$ac_ct_AR"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6870 $as_echo "$ac_ct_AR" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875
6876
6877 test -n "$ac_ct_AR" && break
6878 done
6879
6880 if test "x$ac_ct_AR" = x; then
6881 AR="false"
6882 else
6883 case $cross_compiling:$ac_tool_warned in
6884 yes:)
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6887 ac_tool_warned=yes ;;
6888 esac
6889 AR=$ac_ct_AR
6890 fi
6891 fi
6892
6893 : ${AR=ar}
6894 : ${AR_FLAGS=cru}
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6907 $as_echo_n "checking for archiver @FILE support... " >&6; }
6908 if ${lt_cv_ar_at_file+:} false; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 lt_cv_ar_at_file=no
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6914
6915 int
6916 main ()
6917 {
6918
6919 ;
6920 return 0;
6921 }
6922 _ACEOF
6923 if ac_fn_c_try_compile "$LINENO"; then :
6924 echo conftest.$ac_objext > conftest.lst
6925 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6927 (eval $lt_ar_try) 2>&5
6928 ac_status=$?
6929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6930 test $ac_status = 0; }
6931 if test "$ac_status" -eq 0; then
6932 # Ensure the archiver fails upon bogus file names.
6933 rm -f conftest.$ac_objext libconftest.a
6934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6935 (eval $lt_ar_try) 2>&5
6936 ac_status=$?
6937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6938 test $ac_status = 0; }
6939 if test "$ac_status" -ne 0; then
6940 lt_cv_ar_at_file=@
6941 fi
6942 fi
6943 rm -f conftest.* libconftest.a
6944
6945 fi
6946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6947
6948 fi
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6950 $as_echo "$lt_cv_ar_at_file" >&6; }
6951
6952 if test "x$lt_cv_ar_at_file" = xno; then
6953 archiver_list_spec=
6954 else
6955 archiver_list_spec=$lt_cv_ar_at_file
6956 fi
6957
6958
6959
6960
6961
6962
6963
6964 if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6966 set dummy ${ac_tool_prefix}strip; ac_word=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if ${ac_cv_prog_STRIP+:} false; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 if test -n "$STRIP"; then
6973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6985 fi
6986 done
6987 done
6988 IFS=$as_save_IFS
6989
6990 fi
6991 fi
6992 STRIP=$ac_cv_prog_STRIP
6993 if test -n "$STRIP"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6995 $as_echo "$STRIP" >&6; }
6996 else
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
6999 fi
7000
7001
7002 fi
7003 if test -z "$ac_cv_prog_STRIP"; then
7004 ac_ct_STRIP=$STRIP
7005 # Extract the first word of "strip", so it can be a program name with args.
7006 set dummy strip; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -n "$ac_ct_STRIP"; then
7013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_ac_ct_STRIP="strip"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7033 if test -n "$ac_ct_STRIP"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7035 $as_echo "$ac_ct_STRIP" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041 if test "x$ac_ct_STRIP" = x; then
7042 STRIP=":"
7043 else
7044 case $cross_compiling:$ac_tool_warned in
7045 yes:)
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7048 ac_tool_warned=yes ;;
7049 esac
7050 STRIP=$ac_ct_STRIP
7051 fi
7052 else
7053 STRIP="$ac_cv_prog_STRIP"
7054 fi
7055
7056 test -z "$STRIP" && STRIP=:
7057
7058
7059
7060
7061
7062
7063 if test -n "$ac_tool_prefix"; then
7064 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7065 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_prog_RANLIB+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$RANLIB"; then
7072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085 done
7086 done
7087 IFS=$as_save_IFS
7088
7089 fi
7090 fi
7091 RANLIB=$ac_cv_prog_RANLIB
7092 if test -n "$RANLIB"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7094 $as_echo "$RANLIB" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7098 fi
7099
7100
7101 fi
7102 if test -z "$ac_cv_prog_RANLIB"; then
7103 ac_ct_RANLIB=$RANLIB
7104 # Extract the first word of "ranlib", so it can be a program name with args.
7105 set dummy ranlib; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 if test -n "$ac_ct_RANLIB"; then
7112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7116 do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_ac_ct_RANLIB="ranlib"
7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7124 fi
7125 done
7126 done
7127 IFS=$as_save_IFS
7128
7129 fi
7130 fi
7131 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7132 if test -n "$ac_ct_RANLIB"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7134 $as_echo "$ac_ct_RANLIB" >&6; }
7135 else
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7138 fi
7139
7140 if test "x$ac_ct_RANLIB" = x; then
7141 RANLIB=":"
7142 else
7143 case $cross_compiling:$ac_tool_warned in
7144 yes:)
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7147 ac_tool_warned=yes ;;
7148 esac
7149 RANLIB=$ac_ct_RANLIB
7150 fi
7151 else
7152 RANLIB="$ac_cv_prog_RANLIB"
7153 fi
7154
7155 test -z "$RANLIB" && RANLIB=:
7156
7157
7158
7159
7160
7161
7162 # Determine commands to create old-style static archives.
7163 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7164 old_postinstall_cmds='chmod 644 $oldlib'
7165 old_postuninstall_cmds=
7166
7167 if test -n "$RANLIB"; then
7168 case $host_os in
7169 openbsd*)
7170 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7171 ;;
7172 *)
7173 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7174 ;;
7175 esac
7176 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7177 fi
7178
7179 case $host_os in
7180 darwin*)
7181 lock_old_archive_extraction=yes ;;
7182 *)
7183 lock_old_archive_extraction=no ;;
7184 esac
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224 # If no C compiler was specified, use CC.
7225 LTCC=${LTCC-"$CC"}
7226
7227 # If no C compiler flags were specified, use CFLAGS.
7228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7229
7230 # Allow CC to be a program name with arguments.
7231 compiler=$CC
7232
7233
7234 # Check for command to grab the raw symbol name followed by C symbol from nm.
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7236 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7237 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240
7241 # These are sane defaults that work on at least a few old systems.
7242 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7243
7244 # Character class describing NM global symbol codes.
7245 symcode='[BCDEGRST]'
7246
7247 # Regexp to match symbols that can be accessed directly from C.
7248 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7249
7250 # Define system-specific variables.
7251 case $host_os in
7252 aix*)
7253 symcode='[BCDT]'
7254 ;;
7255 cygwin* | mingw* | pw32* | cegcc*)
7256 symcode='[ABCDGISTW]'
7257 ;;
7258 hpux*)
7259 if test "$host_cpu" = ia64; then
7260 symcode='[ABCDEGRST]'
7261 fi
7262 ;;
7263 irix* | nonstopux*)
7264 symcode='[BCDEGRST]'
7265 ;;
7266 osf*)
7267 symcode='[BCDEGQRST]'
7268 ;;
7269 solaris*)
7270 symcode='[BDRT]'
7271 ;;
7272 sco3.2v5*)
7273 symcode='[DT]'
7274 ;;
7275 sysv4.2uw2*)
7276 symcode='[DT]'
7277 ;;
7278 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7279 symcode='[ABDT]'
7280 ;;
7281 sysv4)
7282 symcode='[DFNSTU]'
7283 ;;
7284 esac
7285
7286 # If we're using GNU nm, then use its standard symbol codes.
7287 case `$NM -V 2>&1` in
7288 *GNU* | *'with BFD'*)
7289 symcode='[ABCDGIRSTW]' ;;
7290 esac
7291
7292 # Transform an extracted symbol line into a proper C declaration.
7293 # Some systems (esp. on ia64) link data and code symbols differently,
7294 # so use this general approach.
7295 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7296
7297 # Transform an extracted symbol line into symbol name and symbol address
7298 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7299 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7300
7301 # Handle CRLF in mingw tool chain
7302 opt_cr=
7303 case $build_os in
7304 mingw*)
7305 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7306 ;;
7307 esac
7308
7309 # Try without a prefix underscore, then with it.
7310 for ac_symprfx in "" "_"; do
7311
7312 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7313 symxfrm="\\1 $ac_symprfx\\2 \\2"
7314
7315 # Write the raw and C identifiers.
7316 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7317 # Fake it for dumpbin and say T for any non-static function
7318 # and D for any global variable.
7319 # Also find C++ and __fastcall symbols from MSVC++,
7320 # which start with @ or ?.
7321 lt_cv_sys_global_symbol_pipe="$AWK '"\
7322 " {last_section=section; section=\$ 3};"\
7323 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7324 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7325 " \$ 0!~/External *\|/{next};"\
7326 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7327 " {if(hide[section]) next};"\
7328 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7329 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7330 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7331 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7332 " ' prfx=^$ac_symprfx"
7333 else
7334 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7335 fi
7336 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7337
7338 # Check to see that the pipe works correctly.
7339 pipe_works=no
7340
7341 rm -f conftest*
7342 cat > conftest.$ac_ext <<_LT_EOF
7343 #ifdef __cplusplus
7344 extern "C" {
7345 #endif
7346 char nm_test_var;
7347 void nm_test_func(void);
7348 void nm_test_func(void){}
7349 #ifdef __cplusplus
7350 }
7351 #endif
7352 int main(){nm_test_var='a';nm_test_func();return(0);}
7353 _LT_EOF
7354
7355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7356 (eval $ac_compile) 2>&5
7357 ac_status=$?
7358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7359 test $ac_status = 0; }; then
7360 # Now try to grab the symbols.
7361 nlist=conftest.nm
7362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7363 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7364 ac_status=$?
7365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7366 test $ac_status = 0; } && test -s "$nlist"; then
7367 # Try sorting and uniquifying the output.
7368 if sort "$nlist" | uniq > "$nlist"T; then
7369 mv -f "$nlist"T "$nlist"
7370 else
7371 rm -f "$nlist"T
7372 fi
7373
7374 # Make sure that we snagged all the symbols we need.
7375 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7376 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7377 cat <<_LT_EOF > conftest.$ac_ext
7378 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7379 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7380 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7381 relocations are performed -- see ld's documentation on pseudo-relocs. */
7382 # define LT_DLSYM_CONST
7383 #elif defined(__osf__)
7384 /* This system does not cope well with relocations in const data. */
7385 # define LT_DLSYM_CONST
7386 #else
7387 # define LT_DLSYM_CONST const
7388 #endif
7389
7390 #ifdef __cplusplus
7391 extern "C" {
7392 #endif
7393
7394 _LT_EOF
7395 # Now generate the symbol file.
7396 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7397
7398 cat <<_LT_EOF >> conftest.$ac_ext
7399
7400 /* The mapping between symbol names and symbols. */
7401 LT_DLSYM_CONST struct {
7402 const char *name;
7403 void *address;
7404 }
7405 lt__PROGRAM__LTX_preloaded_symbols[] =
7406 {
7407 { "@PROGRAM@", (void *) 0 },
7408 _LT_EOF
7409 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7410 cat <<\_LT_EOF >> conftest.$ac_ext
7411 {0, (void *) 0}
7412 };
7413
7414 /* This works around a problem in FreeBSD linker */
7415 #ifdef FREEBSD_WORKAROUND
7416 static const void *lt_preloaded_setup() {
7417 return lt__PROGRAM__LTX_preloaded_symbols;
7418 }
7419 #endif
7420
7421 #ifdef __cplusplus
7422 }
7423 #endif
7424 _LT_EOF
7425 # Now try linking the two files.
7426 mv conftest.$ac_objext conftstm.$ac_objext
7427 lt_globsym_save_LIBS=$LIBS
7428 lt_globsym_save_CFLAGS=$CFLAGS
7429 LIBS="conftstm.$ac_objext"
7430 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7432 (eval $ac_link) 2>&5
7433 ac_status=$?
7434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7435 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7436 pipe_works=yes
7437 fi
7438 LIBS=$lt_globsym_save_LIBS
7439 CFLAGS=$lt_globsym_save_CFLAGS
7440 else
7441 echo "cannot find nm_test_func in $nlist" >&5
7442 fi
7443 else
7444 echo "cannot find nm_test_var in $nlist" >&5
7445 fi
7446 else
7447 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7448 fi
7449 else
7450 echo "$progname: failed program was:" >&5
7451 cat conftest.$ac_ext >&5
7452 fi
7453 rm -rf conftest* conftst*
7454
7455 # Do not use the global_symbol_pipe unless it works.
7456 if test "$pipe_works" = yes; then
7457 break
7458 else
7459 lt_cv_sys_global_symbol_pipe=
7460 fi
7461 done
7462
7463 fi
7464
7465 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7466 lt_cv_sys_global_symbol_to_cdecl=
7467 fi
7468 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7470 $as_echo "failed" >&6; }
7471 else
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7473 $as_echo "ok" >&6; }
7474 fi
7475
7476 # Response file support.
7477 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7478 nm_file_list_spec='@'
7479 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7480 nm_file_list_spec='@'
7481 fi
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7510 $as_echo_n "checking for sysroot... " >&6; }
7511
7512 # Check whether --with-sysroot was given.
7513 if test "${with_sysroot+set}" = set; then :
7514 withval=$with_sysroot;
7515 else
7516 with_sysroot=no
7517 fi
7518
7519
7520 lt_sysroot=
7521 case ${with_sysroot} in #(
7522 yes)
7523 if test "$GCC" = yes; then
7524 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7525 fi
7526 ;; #(
7527 /*)
7528 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7529 ;; #(
7530 no|'')
7531 ;; #(
7532 *)
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7534 $as_echo "${with_sysroot}" >&6; }
7535 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7536 ;;
7537 esac
7538
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7540 $as_echo "${lt_sysroot:-no}" >&6; }
7541
7542
7543
7544
7545
7546 # Check whether --enable-libtool-lock was given.
7547 if test "${enable_libtool_lock+set}" = set; then :
7548 enableval=$enable_libtool_lock;
7549 fi
7550
7551 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7552
7553 # Some flags need to be propagated to the compiler or linker for good
7554 # libtool support.
7555 case $host in
7556 ia64-*-hpux*)
7557 # Find out which ABI we are using.
7558 echo 'int i;' > conftest.$ac_ext
7559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7560 (eval $ac_compile) 2>&5
7561 ac_status=$?
7562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7563 test $ac_status = 0; }; then
7564 case `/usr/bin/file conftest.$ac_objext` in
7565 *ELF-32*)
7566 HPUX_IA64_MODE="32"
7567 ;;
7568 *ELF-64*)
7569 HPUX_IA64_MODE="64"
7570 ;;
7571 esac
7572 fi
7573 rm -rf conftest*
7574 ;;
7575 *-*-irix6*)
7576 # Find out which ABI we are using.
7577 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7579 (eval $ac_compile) 2>&5
7580 ac_status=$?
7581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7582 test $ac_status = 0; }; then
7583 if test "$lt_cv_prog_gnu_ld" = yes; then
7584 case `/usr/bin/file conftest.$ac_objext` in
7585 *32-bit*)
7586 LD="${LD-ld} -melf32bsmip"
7587 ;;
7588 *N32*)
7589 LD="${LD-ld} -melf32bmipn32"
7590 ;;
7591 *64-bit*)
7592 LD="${LD-ld} -melf64bmip"
7593 ;;
7594 esac
7595 else
7596 case `/usr/bin/file conftest.$ac_objext` in
7597 *32-bit*)
7598 LD="${LD-ld} -32"
7599 ;;
7600 *N32*)
7601 LD="${LD-ld} -n32"
7602 ;;
7603 *64-bit*)
7604 LD="${LD-ld} -64"
7605 ;;
7606 esac
7607 fi
7608 fi
7609 rm -rf conftest*
7610 ;;
7611
7612 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7613 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7614 # Find out which ABI we are using.
7615 echo 'int i;' > conftest.$ac_ext
7616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7617 (eval $ac_compile) 2>&5
7618 ac_status=$?
7619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7620 test $ac_status = 0; }; then
7621 case `/usr/bin/file conftest.o` in
7622 *32-bit*)
7623 case $host in
7624 x86_64-*kfreebsd*-gnu)
7625 LD="${LD-ld} -m elf_i386_fbsd"
7626 ;;
7627 x86_64-*linux*)
7628 LD="${LD-ld} -m elf_i386"
7629 ;;
7630 ppc64-*linux*|powerpc64-*linux*)
7631 LD="${LD-ld} -m elf32ppclinux"
7632 ;;
7633 s390x-*linux*)
7634 LD="${LD-ld} -m elf_s390"
7635 ;;
7636 sparc64-*linux*)
7637 LD="${LD-ld} -m elf32_sparc"
7638 ;;
7639 esac
7640 ;;
7641 *64-bit*)
7642 case $host in
7643 x86_64-*kfreebsd*-gnu)
7644 LD="${LD-ld} -m elf_x86_64_fbsd"
7645 ;;
7646 x86_64-*linux*)
7647 LD="${LD-ld} -m elf_x86_64"
7648 ;;
7649 ppc*-*linux*|powerpc*-*linux*)
7650 LD="${LD-ld} -m elf64ppc"
7651 ;;
7652 s390*-*linux*|s390*-*tpf*)
7653 LD="${LD-ld} -m elf64_s390"
7654 ;;
7655 sparc*-*linux*)
7656 LD="${LD-ld} -m elf64_sparc"
7657 ;;
7658 esac
7659 ;;
7660 esac
7661 fi
7662 rm -rf conftest*
7663 ;;
7664
7665 *-*-sco3.2v5*)
7666 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7667 SAVE_CFLAGS="$CFLAGS"
7668 CFLAGS="$CFLAGS -belf"
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7670 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7671 if ${lt_cv_cc_needs_belf+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 ac_ext=c
7675 ac_cpp='$CPP $CPPFLAGS'
7676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7679
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682
7683 int
7684 main ()
7685 {
7686
7687 ;
7688 return 0;
7689 }
7690 _ACEOF
7691 if ac_fn_c_try_link "$LINENO"; then :
7692 lt_cv_cc_needs_belf=yes
7693 else
7694 lt_cv_cc_needs_belf=no
7695 fi
7696 rm -f core conftest.err conftest.$ac_objext \
7697 conftest$ac_exeext conftest.$ac_ext
7698 ac_ext=c
7699 ac_cpp='$CPP $CPPFLAGS'
7700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7703
7704 fi
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7706 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7707 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7708 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7709 CFLAGS="$SAVE_CFLAGS"
7710 fi
7711 ;;
7712 *-*solaris*)
7713 # Find out which ABI we are using.
7714 echo 'int i;' > conftest.$ac_ext
7715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7716 (eval $ac_compile) 2>&5
7717 ac_status=$?
7718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7719 test $ac_status = 0; }; then
7720 case `/usr/bin/file conftest.o` in
7721 *64-bit*)
7722 case $lt_cv_prog_gnu_ld in
7723 yes*)
7724 case $host in
7725 i?86-*-solaris*)
7726 LD="${LD-ld} -m elf_x86_64"
7727 ;;
7728 sparc*-*-solaris*)
7729 LD="${LD-ld} -m elf64_sparc"
7730 ;;
7731 esac
7732 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7733 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7734 LD="${LD-ld}_sol2"
7735 fi
7736 ;;
7737 *)
7738 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7739 LD="${LD-ld} -64"
7740 fi
7741 ;;
7742 esac
7743 ;;
7744 esac
7745 fi
7746 rm -rf conftest*
7747 ;;
7748 esac
7749
7750 need_locks="$enable_libtool_lock"
7751
7752 if test -n "$ac_tool_prefix"; then
7753 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7754 set dummy ${ac_tool_prefix}mt; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 if test -n "$MANIFEST_TOOL"; then
7761 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 break 2
7773 fi
7774 done
7775 done
7776 IFS=$as_save_IFS
7777
7778 fi
7779 fi
7780 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7781 if test -n "$MANIFEST_TOOL"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7783 $as_echo "$MANIFEST_TOOL" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7787 fi
7788
7789
7790 fi
7791 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7792 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7793 # Extract the first word of "mt", so it can be a program name with args.
7794 set dummy mt; ac_word=$2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 $as_echo_n "checking for $ac_word... " >&6; }
7797 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7798 $as_echo_n "(cached) " >&6
7799 else
7800 if test -n "$ac_ct_MANIFEST_TOOL"; then
7801 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7802 else
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7805 do
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7813 fi
7814 done
7815 done
7816 IFS=$as_save_IFS
7817
7818 fi
7819 fi
7820 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7821 if test -n "$ac_ct_MANIFEST_TOOL"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7823 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7824 else
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7827 fi
7828
7829 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7830 MANIFEST_TOOL=":"
7831 else
7832 case $cross_compiling:$ac_tool_warned in
7833 yes:)
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7836 ac_tool_warned=yes ;;
7837 esac
7838 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7839 fi
7840 else
7841 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7842 fi
7843
7844 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7846 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7847 if ${lt_cv_path_mainfest_tool+:} false; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 lt_cv_path_mainfest_tool=no
7851 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7852 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7853 cat conftest.err >&5
7854 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7855 lt_cv_path_mainfest_tool=yes
7856 fi
7857 rm -f conftest*
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7860 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7861 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7862 MANIFEST_TOOL=:
7863 fi
7864
7865
7866
7867
7868
7869
7870 case $host_os in
7871 rhapsody* | darwin*)
7872 if test -n "$ac_tool_prefix"; then
7873 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7874 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876 $as_echo_n "checking for $ac_word... " >&6; }
7877 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 if test -n "$DSYMUTIL"; then
7881 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7882 else
7883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 for as_dir in $PATH
7885 do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 break 2
7893 fi
7894 done
7895 done
7896 IFS=$as_save_IFS
7897
7898 fi
7899 fi
7900 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7901 if test -n "$DSYMUTIL"; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7903 $as_echo "$DSYMUTIL" >&6; }
7904 else
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906 $as_echo "no" >&6; }
7907 fi
7908
7909
7910 fi
7911 if test -z "$ac_cv_prog_DSYMUTIL"; then
7912 ac_ct_DSYMUTIL=$DSYMUTIL
7913 # Extract the first word of "dsymutil", so it can be a program name with args.
7914 set dummy dsymutil; ac_word=$2
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916 $as_echo_n "checking for $ac_word... " >&6; }
7917 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 if test -n "$ac_ct_DSYMUTIL"; then
7921 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7922 else
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 for as_dir in $PATH
7925 do
7926 IFS=$as_save_IFS
7927 test -z "$as_dir" && as_dir=.
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7930 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 break 2
7933 fi
7934 done
7935 done
7936 IFS=$as_save_IFS
7937
7938 fi
7939 fi
7940 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7941 if test -n "$ac_ct_DSYMUTIL"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7943 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7944 else
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7947 fi
7948
7949 if test "x$ac_ct_DSYMUTIL" = x; then
7950 DSYMUTIL=":"
7951 else
7952 case $cross_compiling:$ac_tool_warned in
7953 yes:)
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7956 ac_tool_warned=yes ;;
7957 esac
7958 DSYMUTIL=$ac_ct_DSYMUTIL
7959 fi
7960 else
7961 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7962 fi
7963
7964 if test -n "$ac_tool_prefix"; then
7965 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7966 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 $as_echo_n "checking for $ac_word... " >&6; }
7969 if ${ac_cv_prog_NMEDIT+:} false; then :
7970 $as_echo_n "(cached) " >&6
7971 else
7972 if test -n "$NMEDIT"; then
7973 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7974 else
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976 for as_dir in $PATH
7977 do
7978 IFS=$as_save_IFS
7979 test -z "$as_dir" && as_dir=.
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7982 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7984 break 2
7985 fi
7986 done
7987 done
7988 IFS=$as_save_IFS
7989
7990 fi
7991 fi
7992 NMEDIT=$ac_cv_prog_NMEDIT
7993 if test -n "$NMEDIT"; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7995 $as_echo "$NMEDIT" >&6; }
7996 else
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998 $as_echo "no" >&6; }
7999 fi
8000
8001
8002 fi
8003 if test -z "$ac_cv_prog_NMEDIT"; then
8004 ac_ct_NMEDIT=$NMEDIT
8005 # Extract the first word of "nmedit", so it can be a program name with args.
8006 set dummy nmedit; ac_word=$2
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8008 $as_echo_n "checking for $ac_word... " >&6; }
8009 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 if test -n "$ac_ct_NMEDIT"; then
8013 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8014 else
8015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 for as_dir in $PATH
8017 do
8018 IFS=$as_save_IFS
8019 test -z "$as_dir" && as_dir=.
8020 for ac_exec_ext in '' $ac_executable_extensions; do
8021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8022 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 break 2
8025 fi
8026 done
8027 done
8028 IFS=$as_save_IFS
8029
8030 fi
8031 fi
8032 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8033 if test -n "$ac_ct_NMEDIT"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8035 $as_echo "$ac_ct_NMEDIT" >&6; }
8036 else
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8039 fi
8040
8041 if test "x$ac_ct_NMEDIT" = x; then
8042 NMEDIT=":"
8043 else
8044 case $cross_compiling:$ac_tool_warned in
8045 yes:)
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8048 ac_tool_warned=yes ;;
8049 esac
8050 NMEDIT=$ac_ct_NMEDIT
8051 fi
8052 else
8053 NMEDIT="$ac_cv_prog_NMEDIT"
8054 fi
8055
8056 if test -n "$ac_tool_prefix"; then
8057 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8058 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060 $as_echo_n "checking for $ac_word... " >&6; }
8061 if ${ac_cv_prog_LIPO+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 if test -n "$LIPO"; then
8065 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8066 else
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8069 do
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8074 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 break 2
8077 fi
8078 done
8079 done
8080 IFS=$as_save_IFS
8081
8082 fi
8083 fi
8084 LIPO=$ac_cv_prog_LIPO
8085 if test -n "$LIPO"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8087 $as_echo "$LIPO" >&6; }
8088 else
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8091 fi
8092
8093
8094 fi
8095 if test -z "$ac_cv_prog_LIPO"; then
8096 ac_ct_LIPO=$LIPO
8097 # Extract the first word of "lipo", so it can be a program name with args.
8098 set dummy lipo; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 if test -n "$ac_ct_LIPO"; then
8105 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8106 else
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 for as_dir in $PATH
8109 do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114 ac_cv_prog_ac_ct_LIPO="lipo"
8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8117 fi
8118 done
8119 done
8120 IFS=$as_save_IFS
8121
8122 fi
8123 fi
8124 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8125 if test -n "$ac_ct_LIPO"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8127 $as_echo "$ac_ct_LIPO" >&6; }
8128 else
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }
8131 fi
8132
8133 if test "x$ac_ct_LIPO" = x; then
8134 LIPO=":"
8135 else
8136 case $cross_compiling:$ac_tool_warned in
8137 yes:)
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8140 ac_tool_warned=yes ;;
8141 esac
8142 LIPO=$ac_ct_LIPO
8143 fi
8144 else
8145 LIPO="$ac_cv_prog_LIPO"
8146 fi
8147
8148 if test -n "$ac_tool_prefix"; then
8149 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8150 set dummy ${ac_tool_prefix}otool; ac_word=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if ${ac_cv_prog_OTOOL+:} false; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 if test -n "$OTOOL"; then
8157 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8158 else
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162 IFS=$as_save_IFS
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8168 break 2
8169 fi
8170 done
8171 done
8172 IFS=$as_save_IFS
8173
8174 fi
8175 fi
8176 OTOOL=$ac_cv_prog_OTOOL
8177 if test -n "$OTOOL"; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8179 $as_echo "$OTOOL" >&6; }
8180 else
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8183 fi
8184
8185
8186 fi
8187 if test -z "$ac_cv_prog_OTOOL"; then
8188 ac_ct_OTOOL=$OTOOL
8189 # Extract the first word of "otool", so it can be a program name with args.
8190 set dummy otool; ac_word=$2
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192 $as_echo_n "checking for $ac_word... " >&6; }
8193 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 if test -n "$ac_ct_OTOOL"; then
8197 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8198 else
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 for as_dir in $PATH
8201 do
8202 IFS=$as_save_IFS
8203 test -z "$as_dir" && as_dir=.
8204 for ac_exec_ext in '' $ac_executable_extensions; do
8205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8206 ac_cv_prog_ac_ct_OTOOL="otool"
8207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8208 break 2
8209 fi
8210 done
8211 done
8212 IFS=$as_save_IFS
8213
8214 fi
8215 fi
8216 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8217 if test -n "$ac_ct_OTOOL"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8219 $as_echo "$ac_ct_OTOOL" >&6; }
8220 else
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8223 fi
8224
8225 if test "x$ac_ct_OTOOL" = x; then
8226 OTOOL=":"
8227 else
8228 case $cross_compiling:$ac_tool_warned in
8229 yes:)
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8232 ac_tool_warned=yes ;;
8233 esac
8234 OTOOL=$ac_ct_OTOOL
8235 fi
8236 else
8237 OTOOL="$ac_cv_prog_OTOOL"
8238 fi
8239
8240 if test -n "$ac_tool_prefix"; then
8241 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8242 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_prog_OTOOL64+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 if test -n "$OTOOL64"; then
8249 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8250 else
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8253 do
8254 IFS=$as_save_IFS
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 break 2
8261 fi
8262 done
8263 done
8264 IFS=$as_save_IFS
8265
8266 fi
8267 fi
8268 OTOOL64=$ac_cv_prog_OTOOL64
8269 if test -n "$OTOOL64"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8271 $as_echo "$OTOOL64" >&6; }
8272 else
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8275 fi
8276
8277
8278 fi
8279 if test -z "$ac_cv_prog_OTOOL64"; then
8280 ac_ct_OTOOL64=$OTOOL64
8281 # Extract the first word of "otool64", so it can be a program name with args.
8282 set dummy otool64; ac_word=$2
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8286 $as_echo_n "(cached) " >&6
8287 else
8288 if test -n "$ac_ct_OTOOL64"; then
8289 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8290 else
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8293 do
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8298 ac_cv_prog_ac_ct_OTOOL64="otool64"
8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 break 2
8301 fi
8302 done
8303 done
8304 IFS=$as_save_IFS
8305
8306 fi
8307 fi
8308 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8309 if test -n "$ac_ct_OTOOL64"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8311 $as_echo "$ac_ct_OTOOL64" >&6; }
8312 else
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8315 fi
8316
8317 if test "x$ac_ct_OTOOL64" = x; then
8318 OTOOL64=":"
8319 else
8320 case $cross_compiling:$ac_tool_warned in
8321 yes:)
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8324 ac_tool_warned=yes ;;
8325 esac
8326 OTOOL64=$ac_ct_OTOOL64
8327 fi
8328 else
8329 OTOOL64="$ac_cv_prog_OTOOL64"
8330 fi
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8359 $as_echo_n "checking for -single_module linker flag... " >&6; }
8360 if ${lt_cv_apple_cc_single_mod+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 lt_cv_apple_cc_single_mod=no
8364 if test -z "${LT_MULTI_MODULE}"; then
8365 # By default we will add the -single_module flag. You can override
8366 # by either setting the environment variable LT_MULTI_MODULE
8367 # non-empty at configure time, or by adding -multi_module to the
8368 # link flags.
8369 rm -rf libconftest.dylib*
8370 echo "int foo(void){return 1;}" > conftest.c
8371 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8372 -dynamiclib -Wl,-single_module conftest.c" >&5
8373 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8374 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8375 _lt_result=$?
8376 # If there is a non-empty error log, and "single_module"
8377 # appears in it, assume the flag caused a linker warning
8378 if test -s conftest.err && $GREP single_module conftest.err; then
8379 cat conftest.err >&5
8380 # Otherwise, if the output was created with a 0 exit code from
8381 # the compiler, it worked.
8382 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8383 lt_cv_apple_cc_single_mod=yes
8384 else
8385 cat conftest.err >&5
8386 fi
8387 rm -rf libconftest.dylib*
8388 rm -f conftest.*
8389 fi
8390 fi
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8392 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8393
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8395 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8396 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 lt_cv_ld_exported_symbols_list=no
8400 save_LDFLAGS=$LDFLAGS
8401 echo "_main" > conftest.sym
8402 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8405
8406 int
8407 main ()
8408 {
8409
8410 ;
8411 return 0;
8412 }
8413 _ACEOF
8414 if ac_fn_c_try_link "$LINENO"; then :
8415 lt_cv_ld_exported_symbols_list=yes
8416 else
8417 lt_cv_ld_exported_symbols_list=no
8418 fi
8419 rm -f core conftest.err conftest.$ac_objext \
8420 conftest$ac_exeext conftest.$ac_ext
8421 LDFLAGS="$save_LDFLAGS"
8422
8423 fi
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8425 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8426
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8428 $as_echo_n "checking for -force_load linker flag... " >&6; }
8429 if ${lt_cv_ld_force_load+:} false; then :
8430 $as_echo_n "(cached) " >&6
8431 else
8432 lt_cv_ld_force_load=no
8433 cat > conftest.c << _LT_EOF
8434 int forced_loaded() { return 2;}
8435 _LT_EOF
8436 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8437 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8438 echo "$AR cru libconftest.a conftest.o" >&5
8439 $AR cru libconftest.a conftest.o 2>&5
8440 echo "$RANLIB libconftest.a" >&5
8441 $RANLIB libconftest.a 2>&5
8442 cat > conftest.c << _LT_EOF
8443 int main() { return 0;}
8444 _LT_EOF
8445 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8446 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8447 _lt_result=$?
8448 if test -s conftest.err && $GREP force_load conftest.err; then
8449 cat conftest.err >&5
8450 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8451 lt_cv_ld_force_load=yes
8452 else
8453 cat conftest.err >&5
8454 fi
8455 rm -f conftest.err libconftest.a conftest conftest.c
8456 rm -rf conftest.dSYM
8457
8458 fi
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8460 $as_echo "$lt_cv_ld_force_load" >&6; }
8461 case $host_os in
8462 rhapsody* | darwin1.[012])
8463 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8464 darwin1.*)
8465 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8466 darwin*) # darwin 5.x on
8467 # if running on 10.5 or later, the deployment target defaults
8468 # to the OS version, if on x86, and 10.4, the deployment
8469 # target defaults to 10.4. Don't you love it?
8470 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8471 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8472 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8473 10.[012]*)
8474 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8475 10.*)
8476 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8477 esac
8478 ;;
8479 esac
8480 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8481 _lt_dar_single_mod='$single_module'
8482 fi
8483 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8484 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8485 else
8486 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8487 fi
8488 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8489 _lt_dsymutil='~$DSYMUTIL $lib || :'
8490 else
8491 _lt_dsymutil=
8492 fi
8493 ;;
8494 esac
8495
8496
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8498 $as_echo_n "checking for ANSI C header files... " >&6; }
8499 if ${ac_cv_header_stdc+:} false; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 #include <stdlib.h>
8505 #include <stdarg.h>
8506 #include <string.h>
8507 #include <float.h>
8508
8509 int
8510 main ()
8511 {
8512
8513 ;
8514 return 0;
8515 }
8516 _ACEOF
8517 if ac_fn_c_try_compile "$LINENO"; then :
8518 ac_cv_header_stdc=yes
8519 else
8520 ac_cv_header_stdc=no
8521 fi
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523
8524 if test $ac_cv_header_stdc = yes; then
8525 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h. */
8528 #include <string.h>
8529
8530 _ACEOF
8531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8532 $EGREP "memchr" >/dev/null 2>&1; then :
8533
8534 else
8535 ac_cv_header_stdc=no
8536 fi
8537 rm -f conftest*
8538
8539 fi
8540
8541 if test $ac_cv_header_stdc = yes; then
8542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 #include <stdlib.h>
8546
8547 _ACEOF
8548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8549 $EGREP "free" >/dev/null 2>&1; then :
8550
8551 else
8552 ac_cv_header_stdc=no
8553 fi
8554 rm -f conftest*
8555
8556 fi
8557
8558 if test $ac_cv_header_stdc = yes; then
8559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8560 if test "$cross_compiling" = yes; then :
8561 :
8562 else
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 #include <ctype.h>
8566 #include <stdlib.h>
8567 #if ((' ' & 0x0FF) == 0x020)
8568 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8569 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8570 #else
8571 # define ISLOWER(c) \
8572 (('a' <= (c) && (c) <= 'i') \
8573 || ('j' <= (c) && (c) <= 'r') \
8574 || ('s' <= (c) && (c) <= 'z'))
8575 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8576 #endif
8577
8578 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8579 int
8580 main ()
8581 {
8582 int i;
8583 for (i = 0; i < 256; i++)
8584 if (XOR (islower (i), ISLOWER (i))
8585 || toupper (i) != TOUPPER (i))
8586 return 2;
8587 return 0;
8588 }
8589 _ACEOF
8590 if ac_fn_c_try_run "$LINENO"; then :
8591
8592 else
8593 ac_cv_header_stdc=no
8594 fi
8595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8596 conftest.$ac_objext conftest.beam conftest.$ac_ext
8597 fi
8598
8599 fi
8600 fi
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8602 $as_echo "$ac_cv_header_stdc" >&6; }
8603 if test $ac_cv_header_stdc = yes; then
8604
8605 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8606
8607 fi
8608
8609 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8610 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8611 inttypes.h stdint.h unistd.h
8612 do :
8613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8614 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8615 "
8616 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8617 cat >>confdefs.h <<_ACEOF
8618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8619 _ACEOF
8620
8621 fi
8622
8623 done
8624
8625
8626 for ac_header in dlfcn.h
8627 do :
8628 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8629 "
8630 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8631 cat >>confdefs.h <<_ACEOF
8632 #define HAVE_DLFCN_H 1
8633 _ACEOF
8634
8635 fi
8636
8637 done
8638
8639
8640
8641
8642 func_stripname_cnf ()
8643 {
8644 case ${2} in
8645 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8646 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8647 esac
8648 } # func_stripname_cnf
8649
8650
8651
8652
8653
8654 # Set options
8655
8656
8657
8658 enable_dlopen=no
8659
8660
8661 enable_win32_dll=no
8662
8663
8664 # Check whether --enable-shared was given.
8665 if test "${enable_shared+set}" = set; then :
8666 enableval=$enable_shared; p=${PACKAGE-default}
8667 case $enableval in
8668 yes) enable_shared=yes ;;
8669 no) enable_shared=no ;;
8670 *)
8671 enable_shared=no
8672 # Look at the argument we got. We use all the common list separators.
8673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8674 for pkg in $enableval; do
8675 IFS="$lt_save_ifs"
8676 if test "X$pkg" = "X$p"; then
8677 enable_shared=yes
8678 fi
8679 done
8680 IFS="$lt_save_ifs"
8681 ;;
8682 esac
8683 else
8684 enable_shared=yes
8685 fi
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695 # Check whether --enable-static was given.
8696 if test "${enable_static+set}" = set; then :
8697 enableval=$enable_static; p=${PACKAGE-default}
8698 case $enableval in
8699 yes) enable_static=yes ;;
8700 no) enable_static=no ;;
8701 *)
8702 enable_static=no
8703 # Look at the argument we got. We use all the common list separators.
8704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8705 for pkg in $enableval; do
8706 IFS="$lt_save_ifs"
8707 if test "X$pkg" = "X$p"; then
8708 enable_static=yes
8709 fi
8710 done
8711 IFS="$lt_save_ifs"
8712 ;;
8713 esac
8714 else
8715 enable_static=yes
8716 fi
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727 # Check whether --with-pic was given.
8728 if test "${with_pic+set}" = set; then :
8729 withval=$with_pic; lt_p=${PACKAGE-default}
8730 case $withval in
8731 yes|no) pic_mode=$withval ;;
8732 *)
8733 pic_mode=default
8734 # Look at the argument we got. We use all the common list separators.
8735 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8736 for lt_pkg in $withval; do
8737 IFS="$lt_save_ifs"
8738 if test "X$lt_pkg" = "X$lt_p"; then
8739 pic_mode=yes
8740 fi
8741 done
8742 IFS="$lt_save_ifs"
8743 ;;
8744 esac
8745 else
8746 pic_mode=default
8747 fi
8748
8749
8750 test -z "$pic_mode" && pic_mode=default
8751
8752
8753
8754
8755
8756
8757
8758 # Check whether --enable-fast-install was given.
8759 if test "${enable_fast_install+set}" = set; then :
8760 enableval=$enable_fast_install; p=${PACKAGE-default}
8761 case $enableval in
8762 yes) enable_fast_install=yes ;;
8763 no) enable_fast_install=no ;;
8764 *)
8765 enable_fast_install=no
8766 # Look at the argument we got. We use all the common list separators.
8767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8768 for pkg in $enableval; do
8769 IFS="$lt_save_ifs"
8770 if test "X$pkg" = "X$p"; then
8771 enable_fast_install=yes
8772 fi
8773 done
8774 IFS="$lt_save_ifs"
8775 ;;
8776 esac
8777 else
8778 enable_fast_install=yes
8779 fi
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791 # This can be used to rebuild libtool when needed
8792 LIBTOOL_DEPS="$ltmain"
8793
8794 # Always use our own libtool.
8795 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826 test -z "$LN_S" && LN_S="ln -s"
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841 if test -n "${ZSH_VERSION+set}" ; then
8842 setopt NO_GLOB_SUBST
8843 fi
8844
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8846 $as_echo_n "checking for objdir... " >&6; }
8847 if ${lt_cv_objdir+:} false; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 rm -f .libs 2>/dev/null
8851 mkdir .libs 2>/dev/null
8852 if test -d .libs; then
8853 lt_cv_objdir=.libs
8854 else
8855 # MS-DOS does not allow filenames that begin with a dot.
8856 lt_cv_objdir=_libs
8857 fi
8858 rmdir .libs 2>/dev/null
8859 fi
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8861 $as_echo "$lt_cv_objdir" >&6; }
8862 objdir=$lt_cv_objdir
8863
8864
8865
8866
8867
8868 cat >>confdefs.h <<_ACEOF
8869 #define LT_OBJDIR "$lt_cv_objdir/"
8870 _ACEOF
8871
8872
8873
8874
8875 case $host_os in
8876 aix3*)
8877 # AIX sometimes has problems with the GCC collect2 program. For some
8878 # reason, if we set the COLLECT_NAMES environment variable, the problems
8879 # vanish in a puff of smoke.
8880 if test "X${COLLECT_NAMES+set}" != Xset; then
8881 COLLECT_NAMES=
8882 export COLLECT_NAMES
8883 fi
8884 ;;
8885 esac
8886
8887 # Global variables:
8888 ofile=libtool
8889 can_build_shared=yes
8890
8891 # All known linkers require a `.a' archive for static linking (except MSVC,
8892 # which needs '.lib').
8893 libext=a
8894
8895 with_gnu_ld="$lt_cv_prog_gnu_ld"
8896
8897 old_CC="$CC"
8898 old_CFLAGS="$CFLAGS"
8899
8900 # Set sane defaults for various variables
8901 test -z "$CC" && CC=cc
8902 test -z "$LTCC" && LTCC=$CC
8903 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8904 test -z "$LD" && LD=ld
8905 test -z "$ac_objext" && ac_objext=o
8906
8907 for cc_temp in $compiler""; do
8908 case $cc_temp in
8909 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8910 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8911 \-*) ;;
8912 *) break;;
8913 esac
8914 done
8915 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8916
8917
8918 # Only perform the check for file, if the check method requires it
8919 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8920 case $deplibs_check_method in
8921 file_magic*)
8922 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8924 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8925 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 case $MAGIC_CMD in
8929 [\\/*] | ?:[\\/]*)
8930 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8931 ;;
8932 *)
8933 lt_save_MAGIC_CMD="$MAGIC_CMD"
8934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8935 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8936 for ac_dir in $ac_dummy; do
8937 IFS="$lt_save_ifs"
8938 test -z "$ac_dir" && ac_dir=.
8939 if test -f $ac_dir/${ac_tool_prefix}file; then
8940 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8941 if test -n "$file_magic_test_file"; then
8942 case $deplibs_check_method in
8943 "file_magic "*)
8944 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8946 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8947 $EGREP "$file_magic_regex" > /dev/null; then
8948 :
8949 else
8950 cat <<_LT_EOF 1>&2
8951
8952 *** Warning: the command libtool uses to detect shared libraries,
8953 *** $file_magic_cmd, produces output that libtool cannot recognize.
8954 *** The result is that libtool may fail to recognize shared libraries
8955 *** as such. This will affect the creation of libtool libraries that
8956 *** depend on shared libraries, but programs linked with such libtool
8957 *** libraries will work regardless of this problem. Nevertheless, you
8958 *** may want to report the problem to your system manager and/or to
8959 *** [email protected]
8960
8961 _LT_EOF
8962 fi ;;
8963 esac
8964 fi
8965 break
8966 fi
8967 done
8968 IFS="$lt_save_ifs"
8969 MAGIC_CMD="$lt_save_MAGIC_CMD"
8970 ;;
8971 esac
8972 fi
8973
8974 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8975 if test -n "$MAGIC_CMD"; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8977 $as_echo "$MAGIC_CMD" >&6; }
8978 else
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 $as_echo "no" >&6; }
8981 fi
8982
8983
8984
8985
8986
8987 if test -z "$lt_cv_path_MAGIC_CMD"; then
8988 if test -n "$ac_tool_prefix"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8990 $as_echo_n "checking for file... " >&6; }
8991 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 case $MAGIC_CMD in
8995 [\\/*] | ?:[\\/]*)
8996 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8997 ;;
8998 *)
8999 lt_save_MAGIC_CMD="$MAGIC_CMD"
9000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9001 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9002 for ac_dir in $ac_dummy; do
9003 IFS="$lt_save_ifs"
9004 test -z "$ac_dir" && ac_dir=.
9005 if test -f $ac_dir/file; then
9006 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9007 if test -n "$file_magic_test_file"; then
9008 case $deplibs_check_method in
9009 "file_magic "*)
9010 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9011 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9012 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9013 $EGREP "$file_magic_regex" > /dev/null; then
9014 :
9015 else
9016 cat <<_LT_EOF 1>&2
9017
9018 *** Warning: the command libtool uses to detect shared libraries,
9019 *** $file_magic_cmd, produces output that libtool cannot recognize.
9020 *** The result is that libtool may fail to recognize shared libraries
9021 *** as such. This will affect the creation of libtool libraries that
9022 *** depend on shared libraries, but programs linked with such libtool
9023 *** libraries will work regardless of this problem. Nevertheless, you
9024 *** may want to report the problem to your system manager and/or to
9025 *** [email protected]
9026
9027 _LT_EOF
9028 fi ;;
9029 esac
9030 fi
9031 break
9032 fi
9033 done
9034 IFS="$lt_save_ifs"
9035 MAGIC_CMD="$lt_save_MAGIC_CMD"
9036 ;;
9037 esac
9038 fi
9039
9040 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9041 if test -n "$MAGIC_CMD"; then
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9043 $as_echo "$MAGIC_CMD" >&6; }
9044 else
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046 $as_echo "no" >&6; }
9047 fi
9048
9049
9050 else
9051 MAGIC_CMD=:
9052 fi
9053 fi
9054
9055 fi
9056 ;;
9057 esac
9058
9059 # Use C for the default configuration in the libtool script
9060
9061 lt_save_CC="$CC"
9062 ac_ext=c
9063 ac_cpp='$CPP $CPPFLAGS'
9064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9067
9068
9069 # Source file extension for C test sources.
9070 ac_ext=c
9071
9072 # Object file extension for compiled C test sources.
9073 objext=o
9074 objext=$objext
9075
9076 # Code to be used in simple compile tests
9077 lt_simple_compile_test_code="int some_variable = 0;"
9078
9079 # Code to be used in simple link tests
9080 lt_simple_link_test_code='int main(){return(0);}'
9081
9082
9083
9084
9085
9086
9087
9088 # If no C compiler was specified, use CC.
9089 LTCC=${LTCC-"$CC"}
9090
9091 # If no C compiler flags were specified, use CFLAGS.
9092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9093
9094 # Allow CC to be a program name with arguments.
9095 compiler=$CC
9096
9097 # Save the default compiler, since it gets overwritten when the other
9098 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9099 compiler_DEFAULT=$CC
9100
9101 # save warnings/boilerplate of simple test code
9102 ac_outfile=conftest.$ac_objext
9103 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9104 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9105 _lt_compiler_boilerplate=`cat conftest.err`
9106 $RM conftest*
9107
9108 ac_outfile=conftest.$ac_objext
9109 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9110 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9111 _lt_linker_boilerplate=`cat conftest.err`
9112 $RM -r conftest*
9113
9114
9115 ## CAVEAT EMPTOR:
9116 ## There is no encapsulation within the following macros, do not change
9117 ## the running order or otherwise move them around unless you know exactly
9118 ## what you are doing...
9119 if test -n "$compiler"; then
9120
9121 lt_prog_compiler_no_builtin_flag=
9122
9123 if test "$GCC" = yes; then
9124 case $cc_basename in
9125 nvcc*)
9126 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9127 *)
9128 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9129 esac
9130
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9132 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9133 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 lt_cv_prog_compiler_rtti_exceptions=no
9137 ac_outfile=conftest.$ac_objext
9138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9139 lt_compiler_flag="-fno-rtti -fno-exceptions"
9140 # Insert the option either (1) after the last *FLAGS variable, or
9141 # (2) before a word containing "conftest.", or (3) at the end.
9142 # Note that $ac_compile itself does not contain backslashes and begins
9143 # with a dollar sign (not a hyphen), so the echo should work correctly.
9144 # The option is referenced via a variable to avoid confusing sed.
9145 lt_compile=`echo "$ac_compile" | $SED \
9146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9148 -e 's:$: $lt_compiler_flag:'`
9149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9150 (eval "$lt_compile" 2>conftest.err)
9151 ac_status=$?
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 if (exit $ac_status) && test -s "$ac_outfile"; then
9155 # The compiler can only warn and ignore the option if not recognized
9156 # So say no if there are warnings other than the usual output.
9157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9160 lt_cv_prog_compiler_rtti_exceptions=yes
9161 fi
9162 fi
9163 $RM conftest*
9164
9165 fi
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9167 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9168
9169 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9170 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9171 else
9172 :
9173 fi
9174
9175 fi
9176
9177
9178
9179
9180
9181
9182 lt_prog_compiler_wl=
9183 lt_prog_compiler_pic=
9184 lt_prog_compiler_static=
9185
9186
9187 if test "$GCC" = yes; then
9188 lt_prog_compiler_wl='-Wl,'
9189 lt_prog_compiler_static='-static'
9190
9191 case $host_os in
9192 aix*)
9193 # All AIX code is PIC.
9194 if test "$host_cpu" = ia64; then
9195 # AIX 5 now supports IA64 processor
9196 lt_prog_compiler_static='-Bstatic'
9197 fi
9198 ;;
9199
9200 amigaos*)
9201 case $host_cpu in
9202 powerpc)
9203 # see comment about AmigaOS4 .so support
9204 lt_prog_compiler_pic='-fPIC'
9205 ;;
9206 m68k)
9207 # FIXME: we need at least 68020 code to build shared libraries, but
9208 # adding the `-m68020' flag to GCC prevents building anything better,
9209 # like `-m68040'.
9210 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9211 ;;
9212 esac
9213 ;;
9214
9215 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9216 # PIC is the default for these OSes.
9217 ;;
9218
9219 mingw* | cygwin* | pw32* | os2* | cegcc*)
9220 # This hack is so that the source file can tell whether it is being
9221 # built for inclusion in a dll (and should export symbols for example).
9222 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9223 # (--disable-auto-import) libraries
9224 lt_prog_compiler_pic='-DDLL_EXPORT'
9225 ;;
9226
9227 darwin* | rhapsody*)
9228 # PIC is the default on this platform
9229 # Common symbols not allowed in MH_DYLIB files
9230 lt_prog_compiler_pic='-fno-common'
9231 ;;
9232
9233 haiku*)
9234 # PIC is the default for Haiku.
9235 # The "-static" flag exists, but is broken.
9236 lt_prog_compiler_static=
9237 ;;
9238
9239 hpux*)
9240 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9241 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9242 # sets the default TLS model and affects inlining.
9243 case $host_cpu in
9244 hppa*64*)
9245 # +Z the default
9246 ;;
9247 *)
9248 lt_prog_compiler_pic='-fPIC'
9249 ;;
9250 esac
9251 ;;
9252
9253 interix[3-9]*)
9254 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9255 # Instead, we relocate shared libraries at runtime.
9256 ;;
9257
9258 msdosdjgpp*)
9259 # Just because we use GCC doesn't mean we suddenly get shared libraries
9260 # on systems that don't support them.
9261 lt_prog_compiler_can_build_shared=no
9262 enable_shared=no
9263 ;;
9264
9265 *nto* | *qnx*)
9266 # QNX uses GNU C++, but need to define -shared option too, otherwise
9267 # it will coredump.
9268 lt_prog_compiler_pic='-fPIC -shared'
9269 ;;
9270
9271 sysv4*MP*)
9272 if test -d /usr/nec; then
9273 lt_prog_compiler_pic=-Kconform_pic
9274 fi
9275 ;;
9276
9277 *)
9278 lt_prog_compiler_pic='-fPIC'
9279 ;;
9280 esac
9281
9282 case $cc_basename in
9283 nvcc*) # Cuda Compiler Driver 2.2
9284 lt_prog_compiler_wl='-Xlinker '
9285 if test -n "$lt_prog_compiler_pic"; then
9286 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9287 fi
9288 ;;
9289 esac
9290 else
9291 # PORTME Check for flag to pass linker flags through the system compiler.
9292 case $host_os in
9293 aix*)
9294 lt_prog_compiler_wl='-Wl,'
9295 if test "$host_cpu" = ia64; then
9296 # AIX 5 now supports IA64 processor
9297 lt_prog_compiler_static='-Bstatic'
9298 else
9299 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9300 fi
9301 ;;
9302
9303 mingw* | cygwin* | pw32* | os2* | cegcc*)
9304 # This hack is so that the source file can tell whether it is being
9305 # built for inclusion in a dll (and should export symbols for example).
9306 lt_prog_compiler_pic='-DDLL_EXPORT'
9307 ;;
9308
9309 hpux9* | hpux10* | hpux11*)
9310 lt_prog_compiler_wl='-Wl,'
9311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9312 # not for PA HP-UX.
9313 case $host_cpu in
9314 hppa*64*|ia64*)
9315 # +Z the default
9316 ;;
9317 *)
9318 lt_prog_compiler_pic='+Z'
9319 ;;
9320 esac
9321 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9322 lt_prog_compiler_static='${wl}-a ${wl}archive'
9323 ;;
9324
9325 irix5* | irix6* | nonstopux*)
9326 lt_prog_compiler_wl='-Wl,'
9327 # PIC (with -KPIC) is the default.
9328 lt_prog_compiler_static='-non_shared'
9329 ;;
9330
9331 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9332 case $cc_basename in
9333 # old Intel for x86_64 which still supported -KPIC.
9334 ecc*)
9335 lt_prog_compiler_wl='-Wl,'
9336 lt_prog_compiler_pic='-KPIC'
9337 lt_prog_compiler_static='-static'
9338 ;;
9339 # icc used to be incompatible with GCC.
9340 # ICC 10 doesn't accept -KPIC any more.
9341 icc* | ifort*)
9342 lt_prog_compiler_wl='-Wl,'
9343 lt_prog_compiler_pic='-fPIC'
9344 lt_prog_compiler_static='-static'
9345 ;;
9346 # Lahey Fortran 8.1.
9347 lf95*)
9348 lt_prog_compiler_wl='-Wl,'
9349 lt_prog_compiler_pic='--shared'
9350 lt_prog_compiler_static='--static'
9351 ;;
9352 nagfor*)
9353 # NAG Fortran compiler
9354 lt_prog_compiler_wl='-Wl,-Wl,,'
9355 lt_prog_compiler_pic='-PIC'
9356 lt_prog_compiler_static='-Bstatic'
9357 ;;
9358 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9359 # Portland Group compilers (*not* the Pentium gcc compiler,
9360 # which looks to be a dead project)
9361 lt_prog_compiler_wl='-Wl,'
9362 lt_prog_compiler_pic='-fpic'
9363 lt_prog_compiler_static='-Bstatic'
9364 ;;
9365 ccc*)
9366 lt_prog_compiler_wl='-Wl,'
9367 # All Alpha code is PIC.
9368 lt_prog_compiler_static='-non_shared'
9369 ;;
9370 xl* | bgxl* | bgf* | mpixl*)
9371 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9372 lt_prog_compiler_wl='-Wl,'
9373 lt_prog_compiler_pic='-qpic'
9374 lt_prog_compiler_static='-qstaticlink'
9375 ;;
9376 *)
9377 case `$CC -V 2>&1 | sed 5q` in
9378 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9379 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9380 lt_prog_compiler_pic='-KPIC'
9381 lt_prog_compiler_static='-Bstatic'
9382 lt_prog_compiler_wl=''
9383 ;;
9384 *Sun\ F* | *Sun*Fortran*)
9385 lt_prog_compiler_pic='-KPIC'
9386 lt_prog_compiler_static='-Bstatic'
9387 lt_prog_compiler_wl='-Qoption ld '
9388 ;;
9389 *Sun\ C*)
9390 # Sun C 5.9
9391 lt_prog_compiler_pic='-KPIC'
9392 lt_prog_compiler_static='-Bstatic'
9393 lt_prog_compiler_wl='-Wl,'
9394 ;;
9395 *Intel*\ [CF]*Compiler*)
9396 lt_prog_compiler_wl='-Wl,'
9397 lt_prog_compiler_pic='-fPIC'
9398 lt_prog_compiler_static='-static'
9399 ;;
9400 *Portland\ Group*)
9401 lt_prog_compiler_wl='-Wl,'
9402 lt_prog_compiler_pic='-fpic'
9403 lt_prog_compiler_static='-Bstatic'
9404 ;;
9405 esac
9406 ;;
9407 esac
9408 ;;
9409
9410 newsos6)
9411 lt_prog_compiler_pic='-KPIC'
9412 lt_prog_compiler_static='-Bstatic'
9413 ;;
9414
9415 *nto* | *qnx*)
9416 # QNX uses GNU C++, but need to define -shared option too, otherwise
9417 # it will coredump.
9418 lt_prog_compiler_pic='-fPIC -shared'
9419 ;;
9420
9421 osf3* | osf4* | osf5*)
9422 lt_prog_compiler_wl='-Wl,'
9423 # All OSF/1 code is PIC.
9424 lt_prog_compiler_static='-non_shared'
9425 ;;
9426
9427 rdos*)
9428 lt_prog_compiler_static='-non_shared'
9429 ;;
9430
9431 solaris*)
9432 lt_prog_compiler_pic='-KPIC'
9433 lt_prog_compiler_static='-Bstatic'
9434 case $cc_basename in
9435 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9436 lt_prog_compiler_wl='-Qoption ld ';;
9437 *)
9438 lt_prog_compiler_wl='-Wl,';;
9439 esac
9440 ;;
9441
9442 sunos4*)
9443 lt_prog_compiler_wl='-Qoption ld '
9444 lt_prog_compiler_pic='-PIC'
9445 lt_prog_compiler_static='-Bstatic'
9446 ;;
9447
9448 sysv4 | sysv4.2uw2* | sysv4.3*)
9449 lt_prog_compiler_wl='-Wl,'
9450 lt_prog_compiler_pic='-KPIC'
9451 lt_prog_compiler_static='-Bstatic'
9452 ;;
9453
9454 sysv4*MP*)
9455 if test -d /usr/nec ;then
9456 lt_prog_compiler_pic='-Kconform_pic'
9457 lt_prog_compiler_static='-Bstatic'
9458 fi
9459 ;;
9460
9461 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9462 lt_prog_compiler_wl='-Wl,'
9463 lt_prog_compiler_pic='-KPIC'
9464 lt_prog_compiler_static='-Bstatic'
9465 ;;
9466
9467 unicos*)
9468 lt_prog_compiler_wl='-Wl,'
9469 lt_prog_compiler_can_build_shared=no
9470 ;;
9471
9472 uts4*)
9473 lt_prog_compiler_pic='-pic'
9474 lt_prog_compiler_static='-Bstatic'
9475 ;;
9476
9477 *)
9478 lt_prog_compiler_can_build_shared=no
9479 ;;
9480 esac
9481 fi
9482
9483 case $host_os in
9484 # For platforms which do not support PIC, -DPIC is meaningless:
9485 *djgpp*)
9486 lt_prog_compiler_pic=
9487 ;;
9488 *)
9489 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9490 ;;
9491 esac
9492
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9494 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9495 if ${lt_cv_prog_compiler_pic+:} false; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9499 fi
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9501 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9502 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9503
9504 #
9505 # Check to make sure the PIC flag actually works.
9506 #
9507 if test -n "$lt_prog_compiler_pic"; then
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9509 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9510 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 lt_cv_prog_compiler_pic_works=no
9514 ac_outfile=conftest.$ac_objext
9515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9516 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9517 # Insert the option either (1) after the last *FLAGS variable, or
9518 # (2) before a word containing "conftest.", or (3) at the end.
9519 # Note that $ac_compile itself does not contain backslashes and begins
9520 # with a dollar sign (not a hyphen), so the echo should work correctly.
9521 # The option is referenced via a variable to avoid confusing sed.
9522 lt_compile=`echo "$ac_compile" | $SED \
9523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9525 -e 's:$: $lt_compiler_flag:'`
9526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9527 (eval "$lt_compile" 2>conftest.err)
9528 ac_status=$?
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 if (exit $ac_status) && test -s "$ac_outfile"; then
9532 # The compiler can only warn and ignore the option if not recognized
9533 # So say no if there are warnings other than the usual output.
9534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9537 lt_cv_prog_compiler_pic_works=yes
9538 fi
9539 fi
9540 $RM conftest*
9541
9542 fi
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9544 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9545
9546 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9547 case $lt_prog_compiler_pic in
9548 "" | " "*) ;;
9549 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9550 esac
9551 else
9552 lt_prog_compiler_pic=
9553 lt_prog_compiler_can_build_shared=no
9554 fi
9555
9556 fi
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568 #
9569 # Check to make sure the static flag actually works.
9570 #
9571 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9573 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9574 if ${lt_cv_prog_compiler_static_works+:} false; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 lt_cv_prog_compiler_static_works=no
9578 save_LDFLAGS="$LDFLAGS"
9579 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9580 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9581 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9582 # The linker can only warn and ignore the option if not recognized
9583 # So say no if there are warnings
9584 if test -s conftest.err; then
9585 # Append any errors to the config.log.
9586 cat conftest.err 1>&5
9587 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9589 if diff conftest.exp conftest.er2 >/dev/null; then
9590 lt_cv_prog_compiler_static_works=yes
9591 fi
9592 else
9593 lt_cv_prog_compiler_static_works=yes
9594 fi
9595 fi
9596 $RM -r conftest*
9597 LDFLAGS="$save_LDFLAGS"
9598
9599 fi
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9601 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9602
9603 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9604 :
9605 else
9606 lt_prog_compiler_static=
9607 fi
9608
9609
9610
9611
9612
9613
9614
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9616 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9617 if ${lt_cv_prog_compiler_c_o+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 lt_cv_prog_compiler_c_o=no
9621 $RM -r conftest 2>/dev/null
9622 mkdir conftest
9623 cd conftest
9624 mkdir out
9625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9626
9627 lt_compiler_flag="-o out/conftest2.$ac_objext"
9628 # Insert the option either (1) after the last *FLAGS variable, or
9629 # (2) before a word containing "conftest.", or (3) at the end.
9630 # Note that $ac_compile itself does not contain backslashes and begins
9631 # with a dollar sign (not a hyphen), so the echo should work correctly.
9632 lt_compile=`echo "$ac_compile" | $SED \
9633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9635 -e 's:$: $lt_compiler_flag:'`
9636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9637 (eval "$lt_compile" 2>out/conftest.err)
9638 ac_status=$?
9639 cat out/conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9642 then
9643 # The compiler can only warn and ignore the option if not recognized
9644 # So say no if there are warnings
9645 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9648 lt_cv_prog_compiler_c_o=yes
9649 fi
9650 fi
9651 chmod u+w . 2>&5
9652 $RM conftest*
9653 # SGI C++ compiler will create directory out/ii_files/ for
9654 # template instantiation
9655 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9656 $RM out/* && rmdir out
9657 cd ..
9658 $RM -r conftest
9659 $RM conftest*
9660
9661 fi
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9663 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9664
9665
9666
9667
9668
9669
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9671 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9672 if ${lt_cv_prog_compiler_c_o+:} false; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 lt_cv_prog_compiler_c_o=no
9676 $RM -r conftest 2>/dev/null
9677 mkdir conftest
9678 cd conftest
9679 mkdir out
9680 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9681
9682 lt_compiler_flag="-o out/conftest2.$ac_objext"
9683 # Insert the option either (1) after the last *FLAGS variable, or
9684 # (2) before a word containing "conftest.", or (3) at the end.
9685 # Note that $ac_compile itself does not contain backslashes and begins
9686 # with a dollar sign (not a hyphen), so the echo should work correctly.
9687 lt_compile=`echo "$ac_compile" | $SED \
9688 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9690 -e 's:$: $lt_compiler_flag:'`
9691 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9692 (eval "$lt_compile" 2>out/conftest.err)
9693 ac_status=$?
9694 cat out/conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9697 then
9698 # The compiler can only warn and ignore the option if not recognized
9699 # So say no if there are warnings
9700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9701 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9702 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9703 lt_cv_prog_compiler_c_o=yes
9704 fi
9705 fi
9706 chmod u+w . 2>&5
9707 $RM conftest*
9708 # SGI C++ compiler will create directory out/ii_files/ for
9709 # template instantiation
9710 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9711 $RM out/* && rmdir out
9712 cd ..
9713 $RM -r conftest
9714 $RM conftest*
9715
9716 fi
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9718 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9719
9720
9721
9722
9723 hard_links="nottested"
9724 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9725 # do not overwrite the value of need_locks provided by the user
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9727 $as_echo_n "checking if we can lock with hard links... " >&6; }
9728 hard_links=yes
9729 $RM conftest*
9730 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9731 touch conftest.a
9732 ln conftest.a conftest.b 2>&5 || hard_links=no
9733 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9735 $as_echo "$hard_links" >&6; }
9736 if test "$hard_links" = no; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9738 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9739 need_locks=warn
9740 fi
9741 else
9742 need_locks=no
9743 fi
9744
9745
9746
9747
9748
9749
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9751 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9752
9753 runpath_var=
9754 allow_undefined_flag=
9755 always_export_symbols=no
9756 archive_cmds=
9757 archive_expsym_cmds=
9758 compiler_needs_object=no
9759 enable_shared_with_static_runtimes=no
9760 export_dynamic_flag_spec=
9761 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9762 hardcode_automatic=no
9763 hardcode_direct=no
9764 hardcode_direct_absolute=no
9765 hardcode_libdir_flag_spec=
9766 hardcode_libdir_separator=
9767 hardcode_minus_L=no
9768 hardcode_shlibpath_var=unsupported
9769 inherit_rpath=no
9770 link_all_deplibs=unknown
9771 module_cmds=
9772 module_expsym_cmds=
9773 old_archive_from_new_cmds=
9774 old_archive_from_expsyms_cmds=
9775 thread_safe_flag_spec=
9776 whole_archive_flag_spec=
9777 # include_expsyms should be a list of space-separated symbols to be *always*
9778 # included in the symbol list
9779 include_expsyms=
9780 # exclude_expsyms can be an extended regexp of symbols to exclude
9781 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9782 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9783 # as well as any symbol that contains `d'.
9784 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9785 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9786 # platforms (ab)use it in PIC code, but their linkers get confused if
9787 # the symbol is explicitly referenced. Since portable code cannot
9788 # rely on this symbol name, it's probably fine to never include it in
9789 # preloaded symbol tables.
9790 # Exclude shared library initialization/finalization symbols.
9791 extract_expsyms_cmds=
9792
9793 case $host_os in
9794 cygwin* | mingw* | pw32* | cegcc*)
9795 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9796 # When not using gcc, we currently assume that we are using
9797 # Microsoft Visual C++.
9798 if test "$GCC" != yes; then
9799 with_gnu_ld=no
9800 fi
9801 ;;
9802 interix*)
9803 # we just hope/assume this is gcc and not c89 (= MSVC++)
9804 with_gnu_ld=yes
9805 ;;
9806 openbsd*)
9807 with_gnu_ld=no
9808 ;;
9809 linux* | k*bsd*-gnu | gnu*)
9810 link_all_deplibs=no
9811 ;;
9812 esac
9813
9814 ld_shlibs=yes
9815
9816 # On some targets, GNU ld is compatible enough with the native linker
9817 # that we're better off using the native interface for both.
9818 lt_use_gnu_ld_interface=no
9819 if test "$with_gnu_ld" = yes; then
9820 case $host_os in
9821 aix*)
9822 # The AIX port of GNU ld has always aspired to compatibility
9823 # with the native linker. However, as the warning in the GNU ld
9824 # block says, versions before 2.19.5* couldn't really create working
9825 # shared libraries, regardless of the interface used.
9826 case `$LD -v 2>&1` in
9827 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9828 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9829 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9830 *)
9831 lt_use_gnu_ld_interface=yes
9832 ;;
9833 esac
9834 ;;
9835 *)
9836 lt_use_gnu_ld_interface=yes
9837 ;;
9838 esac
9839 fi
9840
9841 if test "$lt_use_gnu_ld_interface" = yes; then
9842 # If archive_cmds runs LD, not CC, wlarc should be empty
9843 wlarc='${wl}'
9844
9845 # Set some defaults for GNU ld with shared library support. These
9846 # are reset later if shared libraries are not supported. Putting them
9847 # here allows them to be overridden if necessary.
9848 runpath_var=LD_RUN_PATH
9849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9850 export_dynamic_flag_spec='${wl}--export-dynamic'
9851 # ancient GNU ld didn't support --whole-archive et. al.
9852 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9853 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9854 else
9855 whole_archive_flag_spec=
9856 fi
9857 supports_anon_versioning=no
9858 case `$LD -v 2>&1` in
9859 *GNU\ gold*) supports_anon_versioning=yes ;;
9860 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9861 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9862 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9863 *\ 2.11.*) ;; # other 2.11 versions
9864 *) supports_anon_versioning=yes ;;
9865 esac
9866
9867 # See if GNU ld supports shared libraries.
9868 case $host_os in
9869 aix[3-9]*)
9870 # On AIX/PPC, the GNU linker is very broken
9871 if test "$host_cpu" != ia64; then
9872 ld_shlibs=no
9873 cat <<_LT_EOF 1>&2
9874
9875 *** Warning: the GNU linker, at least up to release 2.19, is reported
9876 *** to be unable to reliably create shared libraries on AIX.
9877 *** Therefore, libtool is disabling shared libraries support. If you
9878 *** really care for shared libraries, you may want to install binutils
9879 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9880 *** You will then need to restart the configuration process.
9881
9882 _LT_EOF
9883 fi
9884 ;;
9885
9886 amigaos*)
9887 case $host_cpu in
9888 powerpc)
9889 # see comment about AmigaOS4 .so support
9890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9891 archive_expsym_cmds=''
9892 ;;
9893 m68k)
9894 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)'
9895 hardcode_libdir_flag_spec='-L$libdir'
9896 hardcode_minus_L=yes
9897 ;;
9898 esac
9899 ;;
9900
9901 beos*)
9902 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9903 allow_undefined_flag=unsupported
9904 # Joseph Beckenbach <[email protected]> says some releases of gcc
9905 # support --undefined. This deserves some investigation. FIXME
9906 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9907 else
9908 ld_shlibs=no
9909 fi
9910 ;;
9911
9912 cygwin* | mingw* | pw32* | cegcc*)
9913 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9914 # as there is no search path for DLLs.
9915 hardcode_libdir_flag_spec='-L$libdir'
9916 export_dynamic_flag_spec='${wl}--export-all-symbols'
9917 allow_undefined_flag=unsupported
9918 always_export_symbols=no
9919 enable_shared_with_static_runtimes=yes
9920 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'
9921 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9922
9923 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9925 # If the export-symbols file already is a .def file (1st line
9926 # is EXPORTS), use it as is; otherwise, prepend...
9927 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9928 cp $export_symbols $output_objdir/$soname.def;
9929 else
9930 echo EXPORTS > $output_objdir/$soname.def;
9931 cat $export_symbols >> $output_objdir/$soname.def;
9932 fi~
9933 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9934 else
9935 ld_shlibs=no
9936 fi
9937 ;;
9938
9939 haiku*)
9940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9941 link_all_deplibs=yes
9942 ;;
9943
9944 interix[3-9]*)
9945 hardcode_direct=no
9946 hardcode_shlibpath_var=no
9947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9948 export_dynamic_flag_spec='${wl}-E'
9949 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9950 # Instead, shared libraries are loaded at an image base (0x10000000 by
9951 # default) and relocated if they conflict, which is a slow very memory
9952 # consuming and fragmenting process. To avoid this, we pick a random,
9953 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9954 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9955 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9956 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'
9957 ;;
9958
9959 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9960 tmp_diet=no
9961 if test "$host_os" = linux-dietlibc; then
9962 case $cc_basename in
9963 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9964 esac
9965 fi
9966 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9967 && test "$tmp_diet" = no
9968 then
9969 tmp_addflag=' $pic_flag'
9970 tmp_sharedflag='-shared'
9971 case $cc_basename,$host_cpu in
9972 pgcc*) # Portland Group C compiler
9973 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'
9974 tmp_addflag=' $pic_flag'
9975 ;;
9976 pgf77* | pgf90* | pgf95* | pgfortran*)
9977 # Portland Group f77 and f90 compilers
9978 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'
9979 tmp_addflag=' $pic_flag -Mnomain' ;;
9980 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9981 tmp_addflag=' -i_dynamic' ;;
9982 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9983 tmp_addflag=' -i_dynamic -nofor_main' ;;
9984 ifc* | ifort*) # Intel Fortran compiler
9985 tmp_addflag=' -nofor_main' ;;
9986 lf95*) # Lahey Fortran 8.1
9987 whole_archive_flag_spec=
9988 tmp_sharedflag='--shared' ;;
9989 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9990 tmp_sharedflag='-qmkshrobj'
9991 tmp_addflag= ;;
9992 nvcc*) # Cuda Compiler Driver 2.2
9993 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'
9994 compiler_needs_object=yes
9995 ;;
9996 esac
9997 case `$CC -V 2>&1 | sed 5q` in
9998 *Sun\ C*) # Sun C 5.9
9999 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'
10000 compiler_needs_object=yes
10001 tmp_sharedflag='-G' ;;
10002 *Sun\ F*) # Sun Fortran 8.3
10003 tmp_sharedflag='-G' ;;
10004 esac
10005 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10006
10007 if test "x$supports_anon_versioning" = xyes; then
10008 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10009 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10010 echo "local: *; };" >> $output_objdir/$libname.ver~
10011 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10012 fi
10013
10014 case $cc_basename in
10015 xlf* | bgf* | bgxlf* | mpixlf*)
10016 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10017 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10019 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10020 if test "x$supports_anon_versioning" = xyes; then
10021 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10022 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10023 echo "local: *; };" >> $output_objdir/$libname.ver~
10024 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10025 fi
10026 ;;
10027 esac
10028 else
10029 ld_shlibs=no
10030 fi
10031 ;;
10032
10033 netbsd* | netbsdelf*-gnu)
10034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10035 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10036 wlarc=
10037 else
10038 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10039 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10040 fi
10041 ;;
10042
10043 solaris*)
10044 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10045 ld_shlibs=no
10046 cat <<_LT_EOF 1>&2
10047
10048 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10049 *** create shared libraries on Solaris systems. Therefore, libtool
10050 *** is disabling shared libraries support. We urge you to upgrade GNU
10051 *** binutils to release 2.9.1 or newer. Another option is to modify
10052 *** your PATH or compiler configuration so that the native linker is
10053 *** used, and then restart.
10054
10055 _LT_EOF
10056 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10057 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10058 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10059 else
10060 ld_shlibs=no
10061 fi
10062 ;;
10063
10064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10065 case `$LD -v 2>&1` in
10066 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10067 ld_shlibs=no
10068 cat <<_LT_EOF 1>&2
10069
10070 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10071 *** reliably create shared libraries on SCO systems. Therefore, libtool
10072 *** is disabling shared libraries support. We urge you to upgrade GNU
10073 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10074 *** your PATH or compiler configuration so that the native linker is
10075 *** used, and then restart.
10076
10077 _LT_EOF
10078 ;;
10079 *)
10080 # For security reasons, it is highly recommended that you always
10081 # use absolute paths for naming shared libraries, and exclude the
10082 # DT_RUNPATH tag from executables and libraries. But doing so
10083 # requires that you compile everything twice, which is a pain.
10084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10085 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10088 else
10089 ld_shlibs=no
10090 fi
10091 ;;
10092 esac
10093 ;;
10094
10095 sunos4*)
10096 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10097 wlarc=
10098 hardcode_direct=yes
10099 hardcode_shlibpath_var=no
10100 ;;
10101
10102 *)
10103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10104 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10106 else
10107 ld_shlibs=no
10108 fi
10109 ;;
10110 esac
10111
10112 if test "$ld_shlibs" = no; then
10113 runpath_var=
10114 hardcode_libdir_flag_spec=
10115 export_dynamic_flag_spec=
10116 whole_archive_flag_spec=
10117 fi
10118 else
10119 # PORTME fill in a description of your system's linker (not GNU ld)
10120 case $host_os in
10121 aix3*)
10122 allow_undefined_flag=unsupported
10123 always_export_symbols=yes
10124 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'
10125 # Note: this linker hardcodes the directories in LIBPATH if there
10126 # are no directories specified by -L.
10127 hardcode_minus_L=yes
10128 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10129 # Neither direct hardcoding nor static linking is supported with a
10130 # broken collect2.
10131 hardcode_direct=unsupported
10132 fi
10133 ;;
10134
10135 aix[4-9]*)
10136 if test "$host_cpu" = ia64; then
10137 # On IA64, the linker does run time linking by default, so we don't
10138 # have to do anything special.
10139 aix_use_runtimelinking=no
10140 exp_sym_flag='-Bexport'
10141 no_entry_flag=""
10142 else
10143 # If we're using GNU nm, then we don't want the "-C" option.
10144 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10145 # Also, AIX nm treats weak defined symbols like other global
10146 # defined symbols, whereas GNU nm marks them as "W".
10147 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10148 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10149 else
10150 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10151 fi
10152 aix_use_runtimelinking=no
10153
10154 # Test if we are trying to use run time linking or normal
10155 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10156 # need to do runtime linking.
10157 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10158 for ld_flag in $LDFLAGS; do
10159 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10160 aix_use_runtimelinking=yes
10161 break
10162 fi
10163 done
10164 ;;
10165 esac
10166
10167 exp_sym_flag='-bexport'
10168 no_entry_flag='-bnoentry'
10169 fi
10170
10171 # When large executables or shared objects are built, AIX ld can
10172 # have problems creating the table of contents. If linking a library
10173 # or program results in "error TOC overflow" add -mminimal-toc to
10174 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10175 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10176
10177 archive_cmds=''
10178 hardcode_direct=yes
10179 hardcode_direct_absolute=yes
10180 hardcode_libdir_separator=':'
10181 link_all_deplibs=yes
10182 file_list_spec='${wl}-f,'
10183
10184 if test "$GCC" = yes; then
10185 case $host_os in aix4.[012]|aix4.[012].*)
10186 # We only want to do this on AIX 4.2 and lower, the check
10187 # below for broken collect2 doesn't work under 4.3+
10188 collect2name=`${CC} -print-prog-name=collect2`
10189 if test -f "$collect2name" &&
10190 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10191 then
10192 # We have reworked collect2
10193 :
10194 else
10195 # We have old collect2
10196 hardcode_direct=unsupported
10197 # It fails to find uninstalled libraries when the uninstalled
10198 # path is not listed in the libpath. Setting hardcode_minus_L
10199 # to unsupported forces relinking
10200 hardcode_minus_L=yes
10201 hardcode_libdir_flag_spec='-L$libdir'
10202 hardcode_libdir_separator=
10203 fi
10204 ;;
10205 esac
10206 shared_flag='-shared'
10207 if test "$aix_use_runtimelinking" = yes; then
10208 shared_flag="$shared_flag "'${wl}-G'
10209 fi
10210 link_all_deplibs=no
10211 else
10212 # not using gcc
10213 if test "$host_cpu" = ia64; then
10214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10215 # chokes on -Wl,-G. The following line is correct:
10216 shared_flag='-G'
10217 else
10218 if test "$aix_use_runtimelinking" = yes; then
10219 shared_flag='${wl}-G'
10220 else
10221 shared_flag='${wl}-bM:SRE'
10222 fi
10223 fi
10224 fi
10225
10226 export_dynamic_flag_spec='${wl}-bexpall'
10227 # It seems that -bexpall does not export symbols beginning with
10228 # underscore (_), so it is better to generate a list of symbols to export.
10229 always_export_symbols=yes
10230 if test "$aix_use_runtimelinking" = yes; then
10231 # Warning - without using the other runtime loading flags (-brtl),
10232 # -berok will link without error, but may produce a broken library.
10233 allow_undefined_flag='-berok'
10234 # Determine the default libpath from the value encoded in an
10235 # empty executable.
10236 if test "${lt_cv_aix_libpath+set}" = set; then
10237 aix_libpath=$lt_cv_aix_libpath
10238 else
10239 if ${lt_cv_aix_libpath_+:} false; then :
10240 $as_echo_n "(cached) " >&6
10241 else
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10244
10245 int
10246 main ()
10247 {
10248
10249 ;
10250 return 0;
10251 }
10252 _ACEOF
10253 if ac_fn_c_try_link "$LINENO"; then :
10254
10255 lt_aix_libpath_sed='
10256 /Import File Strings/,/^$/ {
10257 /^0/ {
10258 s/^0 *\([^ ]*\) *$/\1/
10259 p
10260 }
10261 }'
10262 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10263 # Check for a 64-bit object if we didn't find anything.
10264 if test -z "$lt_cv_aix_libpath_"; then
10265 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10266 fi
10267 fi
10268 rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10270 if test -z "$lt_cv_aix_libpath_"; then
10271 lt_cv_aix_libpath_="/usr/lib:/lib"
10272 fi
10273
10274 fi
10275
10276 aix_libpath=$lt_cv_aix_libpath_
10277 fi
10278
10279 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10280 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10281 else
10282 if test "$host_cpu" = ia64; then
10283 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10284 allow_undefined_flag="-z nodefs"
10285 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"
10286 else
10287 # Determine the default libpath from the value encoded in an
10288 # empty executable.
10289 if test "${lt_cv_aix_libpath+set}" = set; then
10290 aix_libpath=$lt_cv_aix_libpath
10291 else
10292 if ${lt_cv_aix_libpath_+:} false; then :
10293 $as_echo_n "(cached) " >&6
10294 else
10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h. */
10297
10298 int
10299 main ()
10300 {
10301
10302 ;
10303 return 0;
10304 }
10305 _ACEOF
10306 if ac_fn_c_try_link "$LINENO"; then :
10307
10308 lt_aix_libpath_sed='
10309 /Import File Strings/,/^$/ {
10310 /^0/ {
10311 s/^0 *\([^ ]*\) *$/\1/
10312 p
10313 }
10314 }'
10315 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10316 # Check for a 64-bit object if we didn't find anything.
10317 if test -z "$lt_cv_aix_libpath_"; then
10318 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10319 fi
10320 fi
10321 rm -f core conftest.err conftest.$ac_objext \
10322 conftest$ac_exeext conftest.$ac_ext
10323 if test -z "$lt_cv_aix_libpath_"; then
10324 lt_cv_aix_libpath_="/usr/lib:/lib"
10325 fi
10326
10327 fi
10328
10329 aix_libpath=$lt_cv_aix_libpath_
10330 fi
10331
10332 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10333 # Warning - without using the other run time loading flags,
10334 # -berok will link without error, but may produce a broken library.
10335 no_undefined_flag=' ${wl}-bernotok'
10336 allow_undefined_flag=' ${wl}-berok'
10337 if test "$with_gnu_ld" = yes; then
10338 # We only use this code for GNU lds that support --whole-archive.
10339 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10340 else
10341 # Exported symbols can be pulled into shared objects from archives
10342 whole_archive_flag_spec='$convenience'
10343 fi
10344 archive_cmds_need_lc=yes
10345 # This is similar to how AIX traditionally builds its shared libraries.
10346 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10347 fi
10348 fi
10349 ;;
10350
10351 amigaos*)
10352 case $host_cpu in
10353 powerpc)
10354 # see comment about AmigaOS4 .so support
10355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10356 archive_expsym_cmds=''
10357 ;;
10358 m68k)
10359 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)'
10360 hardcode_libdir_flag_spec='-L$libdir'
10361 hardcode_minus_L=yes
10362 ;;
10363 esac
10364 ;;
10365
10366 bsdi[45]*)
10367 export_dynamic_flag_spec=-rdynamic
10368 ;;
10369
10370 cygwin* | mingw* | pw32* | cegcc*)
10371 # When not using gcc, we currently assume that we are using
10372 # Microsoft Visual C++.
10373 # hardcode_libdir_flag_spec is actually meaningless, as there is
10374 # no search path for DLLs.
10375 case $cc_basename in
10376 cl*)
10377 # Native MSVC
10378 hardcode_libdir_flag_spec=' '
10379 allow_undefined_flag=unsupported
10380 always_export_symbols=yes
10381 file_list_spec='@'
10382 # Tell ltmain to make .lib files, not .a files.
10383 libext=lib
10384 # Tell ltmain to make .dll files, not .so files.
10385 shrext_cmds=".dll"
10386 # FIXME: Setting linknames here is a bad hack.
10387 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10388 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10389 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10390 else
10391 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10392 fi~
10393 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10394 linknames='
10395 # The linker will not automatically build a static lib if we build a DLL.
10396 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10397 enable_shared_with_static_runtimes=yes
10398 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10400 # Don't use ranlib
10401 old_postinstall_cmds='chmod 644 $oldlib'
10402 postlink_cmds='lt_outputfile="@OUTPUT@"~
10403 lt_tool_outputfile="@TOOL_OUTPUT@"~
10404 case $lt_outputfile in
10405 *.exe|*.EXE) ;;
10406 *)
10407 lt_outputfile="$lt_outputfile.exe"
10408 lt_tool_outputfile="$lt_tool_outputfile.exe"
10409 ;;
10410 esac~
10411 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10412 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10413 $RM "$lt_outputfile.manifest";
10414 fi'
10415 ;;
10416 *)
10417 # Assume MSVC wrapper
10418 hardcode_libdir_flag_spec=' '
10419 allow_undefined_flag=unsupported
10420 # Tell ltmain to make .lib files, not .a files.
10421 libext=lib
10422 # Tell ltmain to make .dll files, not .so files.
10423 shrext_cmds=".dll"
10424 # FIXME: Setting linknames here is a bad hack.
10425 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10426 # The linker will automatically build a .lib file if we build a DLL.
10427 old_archive_from_new_cmds='true'
10428 # FIXME: Should let the user specify the lib program.
10429 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10430 enable_shared_with_static_runtimes=yes
10431 ;;
10432 esac
10433 ;;
10434
10435 darwin* | rhapsody*)
10436
10437
10438 archive_cmds_need_lc=no
10439 hardcode_direct=no
10440 hardcode_automatic=yes
10441 hardcode_shlibpath_var=unsupported
10442 if test "$lt_cv_ld_force_load" = "yes"; then
10443 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\"`'
10444
10445 else
10446 whole_archive_flag_spec=''
10447 fi
10448 link_all_deplibs=yes
10449 allow_undefined_flag="$_lt_dar_allow_undefined"
10450 case $cc_basename in
10451 ifort*) _lt_dar_can_shared=yes ;;
10452 *) _lt_dar_can_shared=$GCC ;;
10453 esac
10454 if test "$_lt_dar_can_shared" = "yes"; then
10455 output_verbose_link_cmd=func_echo_all
10456 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10457 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10458 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}"
10459 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}"
10460
10461 else
10462 ld_shlibs=no
10463 fi
10464
10465 ;;
10466
10467 dgux*)
10468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469 hardcode_libdir_flag_spec='-L$libdir'
10470 hardcode_shlibpath_var=no
10471 ;;
10472
10473 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10474 # support. Future versions do this automatically, but an explicit c++rt0.o
10475 # does not break anything, and helps significantly (at the cost of a little
10476 # extra space).
10477 freebsd2.2*)
10478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10479 hardcode_libdir_flag_spec='-R$libdir'
10480 hardcode_direct=yes
10481 hardcode_shlibpath_var=no
10482 ;;
10483
10484 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10485 freebsd2.*)
10486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10487 hardcode_direct=yes
10488 hardcode_minus_L=yes
10489 hardcode_shlibpath_var=no
10490 ;;
10491
10492 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10493 freebsd* | dragonfly*)
10494 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10495 hardcode_libdir_flag_spec='-R$libdir'
10496 hardcode_direct=yes
10497 hardcode_shlibpath_var=no
10498 ;;
10499
10500 hpux9*)
10501 if test "$GCC" = yes; then
10502 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10503 else
10504 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10505 fi
10506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10507 hardcode_libdir_separator=:
10508 hardcode_direct=yes
10509
10510 # hardcode_minus_L: Not really in the search PATH,
10511 # but as the default location of the library.
10512 hardcode_minus_L=yes
10513 export_dynamic_flag_spec='${wl}-E'
10514 ;;
10515
10516 hpux10*)
10517 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10518 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10519 else
10520 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10521 fi
10522 if test "$with_gnu_ld" = no; then
10523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10524 hardcode_libdir_separator=:
10525 hardcode_direct=yes
10526 hardcode_direct_absolute=yes
10527 export_dynamic_flag_spec='${wl}-E'
10528 # hardcode_minus_L: Not really in the search PATH,
10529 # but as the default location of the library.
10530 hardcode_minus_L=yes
10531 fi
10532 ;;
10533
10534 hpux11*)
10535 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10536 case $host_cpu in
10537 hppa*64*)
10538 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10539 ;;
10540 ia64*)
10541 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10542 ;;
10543 *)
10544 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10545 ;;
10546 esac
10547 else
10548 case $host_cpu in
10549 hppa*64*)
10550 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10551 ;;
10552 ia64*)
10553 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10554 ;;
10555 *)
10556
10557 # Older versions of the 11.00 compiler do not understand -b yet
10558 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10560 $as_echo_n "checking if $CC understands -b... " >&6; }
10561 if ${lt_cv_prog_compiler__b+:} false; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 lt_cv_prog_compiler__b=no
10565 save_LDFLAGS="$LDFLAGS"
10566 LDFLAGS="$LDFLAGS -b"
10567 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10569 # The linker can only warn and ignore the option if not recognized
10570 # So say no if there are warnings
10571 if test -s conftest.err; then
10572 # Append any errors to the config.log.
10573 cat conftest.err 1>&5
10574 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10576 if diff conftest.exp conftest.er2 >/dev/null; then
10577 lt_cv_prog_compiler__b=yes
10578 fi
10579 else
10580 lt_cv_prog_compiler__b=yes
10581 fi
10582 fi
10583 $RM -r conftest*
10584 LDFLAGS="$save_LDFLAGS"
10585
10586 fi
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10588 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10589
10590 if test x"$lt_cv_prog_compiler__b" = xyes; then
10591 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10592 else
10593 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10594 fi
10595
10596 ;;
10597 esac
10598 fi
10599 if test "$with_gnu_ld" = no; then
10600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10601 hardcode_libdir_separator=:
10602
10603 case $host_cpu in
10604 hppa*64*|ia64*)
10605 hardcode_direct=no
10606 hardcode_shlibpath_var=no
10607 ;;
10608 *)
10609 hardcode_direct=yes
10610 hardcode_direct_absolute=yes
10611 export_dynamic_flag_spec='${wl}-E'
10612
10613 # hardcode_minus_L: Not really in the search PATH,
10614 # but as the default location of the library.
10615 hardcode_minus_L=yes
10616 ;;
10617 esac
10618 fi
10619 ;;
10620
10621 irix5* | irix6* | nonstopux*)
10622 if test "$GCC" = yes; then
10623 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'
10624 # Try to use the -exported_symbol ld option, if it does not
10625 # work, assume that -exports_file does not work either and
10626 # implicitly export all symbols.
10627 # This should be the same for all languages, so no per-tag cache variable.
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10629 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10630 if ${lt_cv_irix_exported_symbol+:} false; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633 save_LDFLAGS="$LDFLAGS"
10634 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10637 int foo (void) { return 0; }
10638 _ACEOF
10639 if ac_fn_c_try_link "$LINENO"; then :
10640 lt_cv_irix_exported_symbol=yes
10641 else
10642 lt_cv_irix_exported_symbol=no
10643 fi
10644 rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 LDFLAGS="$save_LDFLAGS"
10647 fi
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10649 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10650 if test "$lt_cv_irix_exported_symbol" = yes; then
10651 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'
10652 fi
10653 else
10654 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'
10655 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'
10656 fi
10657 archive_cmds_need_lc='no'
10658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10659 hardcode_libdir_separator=:
10660 inherit_rpath=yes
10661 link_all_deplibs=yes
10662 ;;
10663
10664 netbsd* | netbsdelf*-gnu)
10665 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10667 else
10668 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10669 fi
10670 hardcode_libdir_flag_spec='-R$libdir'
10671 hardcode_direct=yes
10672 hardcode_shlibpath_var=no
10673 ;;
10674
10675 newsos6)
10676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10677 hardcode_direct=yes
10678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10679 hardcode_libdir_separator=:
10680 hardcode_shlibpath_var=no
10681 ;;
10682
10683 *nto* | *qnx*)
10684 ;;
10685
10686 openbsd*)
10687 if test -f /usr/libexec/ld.so; then
10688 hardcode_direct=yes
10689 hardcode_shlibpath_var=no
10690 hardcode_direct_absolute=yes
10691 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10692 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10693 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10694 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10695 export_dynamic_flag_spec='${wl}-E'
10696 else
10697 case $host_os in
10698 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10699 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10700 hardcode_libdir_flag_spec='-R$libdir'
10701 ;;
10702 *)
10703 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10704 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10705 ;;
10706 esac
10707 fi
10708 else
10709 ld_shlibs=no
10710 fi
10711 ;;
10712
10713 os2*)
10714 hardcode_libdir_flag_spec='-L$libdir'
10715 hardcode_minus_L=yes
10716 allow_undefined_flag=unsupported
10717 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10718 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10719 ;;
10720
10721 osf3*)
10722 if test "$GCC" = yes; then
10723 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10724 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'
10725 else
10726 allow_undefined_flag=' -expect_unresolved \*'
10727 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'
10728 fi
10729 archive_cmds_need_lc='no'
10730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10731 hardcode_libdir_separator=:
10732 ;;
10733
10734 osf4* | osf5*) # as osf3* with the addition of -msym flag
10735 if test "$GCC" = yes; then
10736 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10737 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'
10738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10739 else
10740 allow_undefined_flag=' -expect_unresolved \*'
10741 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'
10742 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~
10743 $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'
10744
10745 # Both c and cxx compiler support -rpath directly
10746 hardcode_libdir_flag_spec='-rpath $libdir'
10747 fi
10748 archive_cmds_need_lc='no'
10749 hardcode_libdir_separator=:
10750 ;;
10751
10752 solaris*)
10753 no_undefined_flag=' -z defs'
10754 if test "$GCC" = yes; then
10755 wlarc='${wl}'
10756 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10757 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10758 $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'
10759 else
10760 case `$CC -V 2>&1` in
10761 *"Compilers 5.0"*)
10762 wlarc=''
10763 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10764 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10765 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10766 ;;
10767 *)
10768 wlarc='${wl}'
10769 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10770 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10771 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10772 ;;
10773 esac
10774 fi
10775 hardcode_libdir_flag_spec='-R$libdir'
10776 hardcode_shlibpath_var=no
10777 case $host_os in
10778 solaris2.[0-5] | solaris2.[0-5].*) ;;
10779 *)
10780 # The compiler driver will combine and reorder linker options,
10781 # but understands `-z linker_flag'. GCC discards it without `$wl',
10782 # but is careful enough not to reorder.
10783 # Supported since Solaris 2.6 (maybe 2.5.1?)
10784 if test "$GCC" = yes; then
10785 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10786 else
10787 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10788 fi
10789 ;;
10790 esac
10791 link_all_deplibs=yes
10792 ;;
10793
10794 sunos4*)
10795 if test "x$host_vendor" = xsequent; then
10796 # Use $CC to link under sequent, because it throws in some extra .o
10797 # files that make .init and .fini sections work.
10798 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10799 else
10800 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10801 fi
10802 hardcode_libdir_flag_spec='-L$libdir'
10803 hardcode_direct=yes
10804 hardcode_minus_L=yes
10805 hardcode_shlibpath_var=no
10806 ;;
10807
10808 sysv4)
10809 case $host_vendor in
10810 sni)
10811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10812 hardcode_direct=yes # is this really true???
10813 ;;
10814 siemens)
10815 ## LD is ld it makes a PLAMLIB
10816 ## CC just makes a GrossModule.
10817 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10818 reload_cmds='$CC -r -o $output$reload_objs'
10819 hardcode_direct=no
10820 ;;
10821 motorola)
10822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10823 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10824 ;;
10825 esac
10826 runpath_var='LD_RUN_PATH'
10827 hardcode_shlibpath_var=no
10828 ;;
10829
10830 sysv4.3*)
10831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10832 hardcode_shlibpath_var=no
10833 export_dynamic_flag_spec='-Bexport'
10834 ;;
10835
10836 sysv4*MP*)
10837 if test -d /usr/nec; then
10838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10839 hardcode_shlibpath_var=no
10840 runpath_var=LD_RUN_PATH
10841 hardcode_runpath_var=yes
10842 ld_shlibs=yes
10843 fi
10844 ;;
10845
10846 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10847 no_undefined_flag='${wl}-z,text'
10848 archive_cmds_need_lc=no
10849 hardcode_shlibpath_var=no
10850 runpath_var='LD_RUN_PATH'
10851
10852 if test "$GCC" = yes; then
10853 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10854 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10855 else
10856 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10857 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10858 fi
10859 ;;
10860
10861 sysv5* | sco3.2v5* | sco5v6*)
10862 # Note: We can NOT use -z defs as we might desire, because we do not
10863 # link with -lc, and that would cause any symbols used from libc to
10864 # always be unresolved, which means just about no library would
10865 # ever link correctly. If we're not using GNU ld we use -z text
10866 # though, which does catch some bad symbols but isn't as heavy-handed
10867 # as -z defs.
10868 no_undefined_flag='${wl}-z,text'
10869 allow_undefined_flag='${wl}-z,nodefs'
10870 archive_cmds_need_lc=no
10871 hardcode_shlibpath_var=no
10872 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10873 hardcode_libdir_separator=':'
10874 link_all_deplibs=yes
10875 export_dynamic_flag_spec='${wl}-Bexport'
10876 runpath_var='LD_RUN_PATH'
10877
10878 if test "$GCC" = yes; then
10879 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10880 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10881 else
10882 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10883 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10884 fi
10885 ;;
10886
10887 uts4*)
10888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10889 hardcode_libdir_flag_spec='-L$libdir'
10890 hardcode_shlibpath_var=no
10891 ;;
10892
10893 *)
10894 ld_shlibs=no
10895 ;;
10896 esac
10897
10898 if test x$host_vendor = xsni; then
10899 case $host in
10900 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10901 export_dynamic_flag_spec='${wl}-Blargedynsym'
10902 ;;
10903 esac
10904 fi
10905 fi
10906
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10908 $as_echo "$ld_shlibs" >&6; }
10909 test "$ld_shlibs" = no && can_build_shared=no
10910
10911 with_gnu_ld=$with_gnu_ld
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927 #
10928 # Do we need to explicitly link libc?
10929 #
10930 case "x$archive_cmds_need_lc" in
10931 x|xyes)
10932 # Assume -lc should be added
10933 archive_cmds_need_lc=yes
10934
10935 if test "$enable_shared" = yes && test "$GCC" = yes; then
10936 case $archive_cmds in
10937 *'~'*)
10938 # FIXME: we may have to deal with multi-command sequences.
10939 ;;
10940 '$CC '*)
10941 # Test whether the compiler implicitly links with -lc since on some
10942 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10943 # to ld, don't add -lc before -lgcc.
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10945 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10946 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 $RM conftest*
10950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10951
10952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10953 (eval $ac_compile) 2>&5
10954 ac_status=$?
10955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10956 test $ac_status = 0; } 2>conftest.err; then
10957 soname=conftest
10958 lib=conftest
10959 libobjs=conftest.$ac_objext
10960 deplibs=
10961 wl=$lt_prog_compiler_wl
10962 pic_flag=$lt_prog_compiler_pic
10963 compiler_flags=-v
10964 linker_flags=-v
10965 verstring=
10966 output_objdir=.
10967 libname=conftest
10968 lt_save_allow_undefined_flag=$allow_undefined_flag
10969 allow_undefined_flag=
10970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10971 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10972 ac_status=$?
10973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10974 test $ac_status = 0; }
10975 then
10976 lt_cv_archive_cmds_need_lc=no
10977 else
10978 lt_cv_archive_cmds_need_lc=yes
10979 fi
10980 allow_undefined_flag=$lt_save_allow_undefined_flag
10981 else
10982 cat conftest.err 1>&5
10983 fi
10984 $RM conftest*
10985
10986 fi
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10988 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10989 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10990 ;;
10991 esac
10992 fi
10993 ;;
10994 esac
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11148 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11149
11150 if test "$GCC" = yes; then
11151 case $host_os in
11152 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11153 *) lt_awk_arg="/^libraries:/" ;;
11154 esac
11155 case $host_os in
11156 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11157 *) lt_sed_strip_eq="s,=/,/,g" ;;
11158 esac
11159 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11160 case $lt_search_path_spec in
11161 *\;*)
11162 # if the path contains ";" then we assume it to be the separator
11163 # otherwise default to the standard path separator (i.e. ":") - it is
11164 # assumed that no part of a normal pathname contains ";" but that should
11165 # okay in the real world where ";" in dirpaths is itself problematic.
11166 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11167 ;;
11168 *)
11169 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11170 ;;
11171 esac
11172 # Ok, now we have the path, separated by spaces, we can step through it
11173 # and add multilib dir if necessary.
11174 lt_tmp_lt_search_path_spec=
11175 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11176 for lt_sys_path in $lt_search_path_spec; do
11177 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11178 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11179 else
11180 test -d "$lt_sys_path" && \
11181 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11182 fi
11183 done
11184 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11185 BEGIN {RS=" "; FS="/|\n";} {
11186 lt_foo="";
11187 lt_count=0;
11188 for (lt_i = NF; lt_i > 0; lt_i--) {
11189 if ($lt_i != "" && $lt_i != ".") {
11190 if ($lt_i == "..") {
11191 lt_count++;
11192 } else {
11193 if (lt_count == 0) {
11194 lt_foo="/" $lt_i lt_foo;
11195 } else {
11196 lt_count--;
11197 }
11198 }
11199 }
11200 }
11201 if (lt_foo != "") { lt_freq[lt_foo]++; }
11202 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11203 }'`
11204 # AWK program above erroneously prepends '/' to C:/dos/paths
11205 # for these hosts.
11206 case $host_os in
11207 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11208 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11209 esac
11210 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11211 else
11212 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11213 fi
11214 library_names_spec=
11215 libname_spec='lib$name'
11216 soname_spec=
11217 shrext_cmds=".so"
11218 postinstall_cmds=
11219 postuninstall_cmds=
11220 finish_cmds=
11221 finish_eval=
11222 shlibpath_var=
11223 shlibpath_overrides_runpath=unknown
11224 version_type=none
11225 dynamic_linker="$host_os ld.so"
11226 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11227 need_lib_prefix=unknown
11228 hardcode_into_libs=no
11229
11230 # when you set need_version to no, make sure it does not cause -set_version
11231 # flags to be left without arguments
11232 need_version=unknown
11233
11234 case $host_os in
11235 aix3*)
11236 version_type=linux # correct to gnu/linux during the next big refactor
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11238 shlibpath_var=LIBPATH
11239
11240 # AIX 3 has no versioning support, so we append a major version to the name.
11241 soname_spec='${libname}${release}${shared_ext}$major'
11242 ;;
11243
11244 aix[4-9]*)
11245 version_type=linux # correct to gnu/linux during the next big refactor
11246 need_lib_prefix=no
11247 need_version=no
11248 hardcode_into_libs=yes
11249 if test "$host_cpu" = ia64; then
11250 # AIX 5 supports IA64
11251 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11252 shlibpath_var=LD_LIBRARY_PATH
11253 else
11254 # With GCC up to 2.95.x, collect2 would create an import file
11255 # for dependence libraries. The import file would start with
11256 # the line `#! .'. This would cause the generated library to
11257 # depend on `.', always an invalid library. This was fixed in
11258 # development snapshots of GCC prior to 3.0.
11259 case $host_os in
11260 aix4 | aix4.[01] | aix4.[01].*)
11261 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11262 echo ' yes '
11263 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11264 :
11265 else
11266 can_build_shared=no
11267 fi
11268 ;;
11269 esac
11270 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11271 # soname into executable. Probably we can add versioning support to
11272 # collect2, so additional links can be useful in future.
11273 if test "$aix_use_runtimelinking" = yes; then
11274 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11275 # instead of lib<name>.a to let people know that these are not
11276 # typical AIX shared libraries.
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 else
11279 # We preserve .a as extension for shared libraries through AIX4.2
11280 # and later when we are not doing run time linking.
11281 library_names_spec='${libname}${release}.a $libname.a'
11282 soname_spec='${libname}${release}${shared_ext}$major'
11283 fi
11284 shlibpath_var=LIBPATH
11285 fi
11286 ;;
11287
11288 amigaos*)
11289 case $host_cpu in
11290 powerpc)
11291 # Since July 2007 AmigaOS4 officially supports .so libraries.
11292 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11294 ;;
11295 m68k)
11296 library_names_spec='$libname.ixlibrary $libname.a'
11297 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11298 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
11299 ;;
11300 esac
11301 ;;
11302
11303 beos*)
11304 library_names_spec='${libname}${shared_ext}'
11305 dynamic_linker="$host_os ld.so"
11306 shlibpath_var=LIBRARY_PATH
11307 ;;
11308
11309 bsdi[45]*)
11310 version_type=linux # correct to gnu/linux during the next big refactor
11311 need_version=no
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11313 soname_spec='${libname}${release}${shared_ext}$major'
11314 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11315 shlibpath_var=LD_LIBRARY_PATH
11316 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11317 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11318 # the default ld.so.conf also contains /usr/contrib/lib and
11319 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11320 # libtool to hard-code these into programs
11321 ;;
11322
11323 cygwin* | mingw* | pw32* | cegcc*)
11324 version_type=windows
11325 shrext_cmds=".dll"
11326 need_version=no
11327 need_lib_prefix=no
11328
11329 case $GCC,$cc_basename in
11330 yes,*)
11331 # gcc
11332 library_names_spec='$libname.dll.a'
11333 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11334 postinstall_cmds='base_file=`basename \${file}`~
11335 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11336 dldir=$destdir/`dirname \$dlpath`~
11337 test -d \$dldir || mkdir -p \$dldir~
11338 $install_prog $dir/$dlname \$dldir/$dlname~
11339 chmod a+x \$dldir/$dlname~
11340 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11341 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11342 fi'
11343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11344 dlpath=$dir/\$dldll~
11345 $RM \$dlpath'
11346 shlibpath_overrides_runpath=yes
11347
11348 case $host_os in
11349 cygwin*)
11350 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11351 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11352
11353 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11354 ;;
11355 mingw* | cegcc*)
11356 # MinGW DLLs use traditional 'lib' prefix
11357 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11358 ;;
11359 pw32*)
11360 # pw32 DLLs use 'pw' prefix rather than 'lib'
11361 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11362 ;;
11363 esac
11364 dynamic_linker='Win32 ld.exe'
11365 ;;
11366
11367 *,cl*)
11368 # Native MSVC
11369 libname_spec='$name'
11370 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11371 library_names_spec='${libname}.dll.lib'
11372
11373 case $build_os in
11374 mingw*)
11375 sys_lib_search_path_spec=
11376 lt_save_ifs=$IFS
11377 IFS=';'
11378 for lt_path in $LIB
11379 do
11380 IFS=$lt_save_ifs
11381 # Let DOS variable expansion print the short 8.3 style file name.
11382 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11383 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11384 done
11385 IFS=$lt_save_ifs
11386 # Convert to MSYS style.
11387 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11388 ;;
11389 cygwin*)
11390 # Convert to unix form, then to dos form, then back to unix form
11391 # but this time dos style (no spaces!) so that the unix form looks
11392 # like /cygdrive/c/PROGRA~1:/cygdr...
11393 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11394 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11395 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11396 ;;
11397 *)
11398 sys_lib_search_path_spec="$LIB"
11399 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11400 # It is most probably a Windows format PATH.
11401 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11402 else
11403 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11404 fi
11405 # FIXME: find the short name or the path components, as spaces are
11406 # common. (e.g. "Program Files" -> "PROGRA~1")
11407 ;;
11408 esac
11409
11410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11411 postinstall_cmds='base_file=`basename \${file}`~
11412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11413 dldir=$destdir/`dirname \$dlpath`~
11414 test -d \$dldir || mkdir -p \$dldir~
11415 $install_prog $dir/$dlname \$dldir/$dlname'
11416 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11417 dlpath=$dir/\$dldll~
11418 $RM \$dlpath'
11419 shlibpath_overrides_runpath=yes
11420 dynamic_linker='Win32 link.exe'
11421 ;;
11422
11423 *)
11424 # Assume MSVC wrapper
11425 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11426 dynamic_linker='Win32 ld.exe'
11427 ;;
11428 esac
11429 # FIXME: first we should search . and the directory the executable is in
11430 shlibpath_var=PATH
11431 ;;
11432
11433 darwin* | rhapsody*)
11434 dynamic_linker="$host_os dyld"
11435 version_type=darwin
11436 need_lib_prefix=no
11437 need_version=no
11438 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11439 soname_spec='${libname}${release}${major}$shared_ext'
11440 shlibpath_overrides_runpath=yes
11441 shlibpath_var=DYLD_LIBRARY_PATH
11442 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11443
11444 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11445 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11446 ;;
11447
11448 dgux*)
11449 version_type=linux # correct to gnu/linux during the next big refactor
11450 need_lib_prefix=no
11451 need_version=no
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11453 soname_spec='${libname}${release}${shared_ext}$major'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 ;;
11456
11457 freebsd* | dragonfly*)
11458 # DragonFly does not have aout. When/if they implement a new
11459 # versioning mechanism, adjust this.
11460 if test -x /usr/bin/objformat; then
11461 objformat=`/usr/bin/objformat`
11462 else
11463 case $host_os in
11464 freebsd[23].*) objformat=aout ;;
11465 *) objformat=elf ;;
11466 esac
11467 fi
11468 version_type=freebsd-$objformat
11469 case $version_type in
11470 freebsd-elf*)
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11472 need_version=no
11473 need_lib_prefix=no
11474 ;;
11475 freebsd-*)
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11477 need_version=yes
11478 ;;
11479 esac
11480 shlibpath_var=LD_LIBRARY_PATH
11481 case $host_os in
11482 freebsd2.*)
11483 shlibpath_overrides_runpath=yes
11484 ;;
11485 freebsd3.[01]* | freebsdelf3.[01]*)
11486 shlibpath_overrides_runpath=yes
11487 hardcode_into_libs=yes
11488 ;;
11489 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11490 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11491 shlibpath_overrides_runpath=no
11492 hardcode_into_libs=yes
11493 ;;
11494 *) # from 4.6 on, and DragonFly
11495 shlibpath_overrides_runpath=yes
11496 hardcode_into_libs=yes
11497 ;;
11498 esac
11499 ;;
11500
11501 haiku*)
11502 version_type=linux # correct to gnu/linux during the next big refactor
11503 need_lib_prefix=no
11504 need_version=no
11505 dynamic_linker="$host_os runtime_loader"
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11507 soname_spec='${libname}${release}${shared_ext}$major'
11508 shlibpath_var=LIBRARY_PATH
11509 shlibpath_overrides_runpath=yes
11510 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11511 hardcode_into_libs=yes
11512 ;;
11513
11514 hpux9* | hpux10* | hpux11*)
11515 # Give a soname corresponding to the major version so that dld.sl refuses to
11516 # link against other versions.
11517 version_type=sunos
11518 need_lib_prefix=no
11519 need_version=no
11520 case $host_cpu in
11521 ia64*)
11522 shrext_cmds='.so'
11523 hardcode_into_libs=yes
11524 dynamic_linker="$host_os dld.so"
11525 shlibpath_var=LD_LIBRARY_PATH
11526 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528 soname_spec='${libname}${release}${shared_ext}$major'
11529 if test "X$HPUX_IA64_MODE" = X32; then
11530 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11531 else
11532 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11533 fi
11534 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11535 ;;
11536 hppa*64*)
11537 shrext_cmds='.sl'
11538 hardcode_into_libs=yes
11539 dynamic_linker="$host_os dld.sl"
11540 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11541 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11543 soname_spec='${libname}${release}${shared_ext}$major'
11544 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11546 ;;
11547 *)
11548 shrext_cmds='.sl'
11549 dynamic_linker="$host_os dld.sl"
11550 shlibpath_var=SHLIB_PATH
11551 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 ;;
11555 esac
11556 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11557 postinstall_cmds='chmod 555 $lib'
11558 # or fails outright, so override atomically:
11559 install_override_mode=555
11560 ;;
11561
11562 interix[3-9]*)
11563 version_type=linux # correct to gnu/linux during the next big refactor
11564 need_lib_prefix=no
11565 need_version=no
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11567 soname_spec='${libname}${release}${shared_ext}$major'
11568 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11569 shlibpath_var=LD_LIBRARY_PATH
11570 shlibpath_overrides_runpath=no
11571 hardcode_into_libs=yes
11572 ;;
11573
11574 irix5* | irix6* | nonstopux*)
11575 case $host_os in
11576 nonstopux*) version_type=nonstopux ;;
11577 *)
11578 if test "$lt_cv_prog_gnu_ld" = yes; then
11579 version_type=linux # correct to gnu/linux during the next big refactor
11580 else
11581 version_type=irix
11582 fi ;;
11583 esac
11584 need_lib_prefix=no
11585 need_version=no
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11588 case $host_os in
11589 irix5* | nonstopux*)
11590 libsuff= shlibsuff=
11591 ;;
11592 *)
11593 case $LD in # libtool.m4 will add one of these switches to LD
11594 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11595 libsuff= shlibsuff= libmagic=32-bit;;
11596 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11597 libsuff=32 shlibsuff=N32 libmagic=N32;;
11598 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11599 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11600 *) libsuff= shlibsuff= libmagic=never-match;;
11601 esac
11602 ;;
11603 esac
11604 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11605 shlibpath_overrides_runpath=no
11606 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11607 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11608 hardcode_into_libs=yes
11609 ;;
11610
11611 # No shared lib support for Linux oldld, aout, or coff.
11612 linux*oldld* | linux*aout* | linux*coff*)
11613 dynamic_linker=no
11614 ;;
11615
11616 # This must be glibc/ELF.
11617 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11618 version_type=linux # correct to gnu/linux during the next big refactor
11619 need_lib_prefix=no
11620 need_version=no
11621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11622 soname_spec='${libname}${release}${shared_ext}$major'
11623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11624 shlibpath_var=LD_LIBRARY_PATH
11625 shlibpath_overrides_runpath=no
11626
11627 # Some binutils ld are patched to set DT_RUNPATH
11628 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 lt_cv_shlibpath_overrides_runpath=no
11632 save_LDFLAGS=$LDFLAGS
11633 save_libdir=$libdir
11634 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11635 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11638
11639 int
11640 main ()
11641 {
11642
11643 ;
11644 return 0;
11645 }
11646 _ACEOF
11647 if ac_fn_c_try_link "$LINENO"; then :
11648 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11649 lt_cv_shlibpath_overrides_runpath=yes
11650 fi
11651 fi
11652 rm -f core conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
11654 LDFLAGS=$save_LDFLAGS
11655 libdir=$save_libdir
11656
11657 fi
11658
11659 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11660
11661 # This implies no fast_install, which is unacceptable.
11662 # Some rework will be needed to allow for fast_install
11663 # before this can be enabled.
11664 hardcode_into_libs=yes
11665
11666 # Append ld.so.conf contents to the search path
11667 if test -f /etc/ld.so.conf; then
11668 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' ' '`
11669 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11670 fi
11671
11672 # We used to test for /lib/ld.so.1 and disable shared libraries on
11673 # powerpc, because MkLinux only supported shared libraries with the
11674 # GNU dynamic linker. Since this was broken with cross compilers,
11675 # most powerpc-linux boxes support dynamic linking these days and
11676 # people can always --disable-shared, the test was removed, and we
11677 # assume the GNU/Linux dynamic linker is in use.
11678 dynamic_linker='GNU/Linux ld.so'
11679 ;;
11680
11681 netbsdelf*-gnu)
11682 version_type=linux
11683 need_lib_prefix=no
11684 need_version=no
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11686 soname_spec='${libname}${release}${shared_ext}$major'
11687 shlibpath_var=LD_LIBRARY_PATH
11688 shlibpath_overrides_runpath=no
11689 hardcode_into_libs=yes
11690 dynamic_linker='NetBSD ld.elf_so'
11691 ;;
11692
11693 netbsd*)
11694 version_type=sunos
11695 need_lib_prefix=no
11696 need_version=no
11697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11700 dynamic_linker='NetBSD (a.out) ld.so'
11701 else
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11703 soname_spec='${libname}${release}${shared_ext}$major'
11704 dynamic_linker='NetBSD ld.elf_so'
11705 fi
11706 shlibpath_var=LD_LIBRARY_PATH
11707 shlibpath_overrides_runpath=yes
11708 hardcode_into_libs=yes
11709 ;;
11710
11711 newsos6)
11712 version_type=linux # correct to gnu/linux during the next big refactor
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 shlibpath_overrides_runpath=yes
11716 ;;
11717
11718 *nto* | *qnx*)
11719 version_type=qnx
11720 need_lib_prefix=no
11721 need_version=no
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 shlibpath_overrides_runpath=no
11726 hardcode_into_libs=yes
11727 dynamic_linker='ldqnx.so'
11728 ;;
11729
11730 openbsd*)
11731 version_type=sunos
11732 sys_lib_dlsearch_path_spec="/usr/lib"
11733 need_lib_prefix=no
11734 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11735 case $host_os in
11736 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11737 *) need_version=no ;;
11738 esac
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11743 case $host_os in
11744 openbsd2.[89] | openbsd2.[89].*)
11745 shlibpath_overrides_runpath=no
11746 ;;
11747 *)
11748 shlibpath_overrides_runpath=yes
11749 ;;
11750 esac
11751 else
11752 shlibpath_overrides_runpath=yes
11753 fi
11754 ;;
11755
11756 os2*)
11757 libname_spec='$name'
11758 shrext_cmds=".dll"
11759 need_lib_prefix=no
11760 library_names_spec='$libname${shared_ext} $libname.a'
11761 dynamic_linker='OS/2 ld.exe'
11762 shlibpath_var=LIBPATH
11763 ;;
11764
11765 osf3* | osf4* | osf5*)
11766 version_type=osf
11767 need_lib_prefix=no
11768 need_version=no
11769 soname_spec='${libname}${release}${shared_ext}$major'
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771 shlibpath_var=LD_LIBRARY_PATH
11772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11773 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11774 ;;
11775
11776 rdos*)
11777 dynamic_linker=no
11778 ;;
11779
11780 solaris*)
11781 version_type=linux # correct to gnu/linux during the next big refactor
11782 need_lib_prefix=no
11783 need_version=no
11784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11785 soname_spec='${libname}${release}${shared_ext}$major'
11786 shlibpath_var=LD_LIBRARY_PATH
11787 shlibpath_overrides_runpath=yes
11788 hardcode_into_libs=yes
11789 # ldd complains unless libraries are executable
11790 postinstall_cmds='chmod +x $lib'
11791 ;;
11792
11793 sunos4*)
11794 version_type=sunos
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11796 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=yes
11799 if test "$with_gnu_ld" = yes; then
11800 need_lib_prefix=no
11801 fi
11802 need_version=yes
11803 ;;
11804
11805 sysv4 | sysv4.3*)
11806 version_type=linux # correct to gnu/linux during the next big refactor
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 soname_spec='${libname}${release}${shared_ext}$major'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 case $host_vendor in
11811 sni)
11812 shlibpath_overrides_runpath=no
11813 need_lib_prefix=no
11814 runpath_var=LD_RUN_PATH
11815 ;;
11816 siemens)
11817 need_lib_prefix=no
11818 ;;
11819 motorola)
11820 need_lib_prefix=no
11821 need_version=no
11822 shlibpath_overrides_runpath=no
11823 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11824 ;;
11825 esac
11826 ;;
11827
11828 sysv4*MP*)
11829 if test -d /usr/nec ;then
11830 version_type=linux # correct to gnu/linux during the next big refactor
11831 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11832 soname_spec='$libname${shared_ext}.$major'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 fi
11835 ;;
11836
11837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11838 version_type=freebsd-elf
11839 need_lib_prefix=no
11840 need_version=no
11841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11842 soname_spec='${libname}${release}${shared_ext}$major'
11843 shlibpath_var=LD_LIBRARY_PATH
11844 shlibpath_overrides_runpath=yes
11845 hardcode_into_libs=yes
11846 if test "$with_gnu_ld" = yes; then
11847 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11848 else
11849 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11850 case $host_os in
11851 sco3.2v5*)
11852 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11853 ;;
11854 esac
11855 fi
11856 sys_lib_dlsearch_path_spec='/usr/lib'
11857 ;;
11858
11859 tpf*)
11860 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11861 version_type=linux # correct to gnu/linux during the next big refactor
11862 need_lib_prefix=no
11863 need_version=no
11864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865 shlibpath_var=LD_LIBRARY_PATH
11866 shlibpath_overrides_runpath=no
11867 hardcode_into_libs=yes
11868 ;;
11869
11870 uts4*)
11871 version_type=linux # correct to gnu/linux during the next big refactor
11872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11873 soname_spec='${libname}${release}${shared_ext}$major'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 ;;
11876
11877 *)
11878 dynamic_linker=no
11879 ;;
11880 esac
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11882 $as_echo "$dynamic_linker" >&6; }
11883 test "$dynamic_linker" = no && can_build_shared=no
11884
11885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11886 if test "$GCC" = yes; then
11887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11888 fi
11889
11890 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11891 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11892 fi
11893 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11894 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11895 fi
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11989 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11990 hardcode_action=
11991 if test -n "$hardcode_libdir_flag_spec" ||
11992 test -n "$runpath_var" ||
11993 test "X$hardcode_automatic" = "Xyes" ; then
11994
11995 # We can hardcode non-existent directories.
11996 if test "$hardcode_direct" != no &&
11997 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11998 # have to relink, otherwise we might link with an installed library
11999 # when we should be linking with a yet-to-be-installed one
12000 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12001 test "$hardcode_minus_L" != no; then
12002 # Linking always hardcodes the temporary library directory.
12003 hardcode_action=relink
12004 else
12005 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12006 hardcode_action=immediate
12007 fi
12008 else
12009 # We cannot hardcode anything, or else we can only hardcode existing
12010 # directories.
12011 hardcode_action=unsupported
12012 fi
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12014 $as_echo "$hardcode_action" >&6; }
12015
12016 if test "$hardcode_action" = relink ||
12017 test "$inherit_rpath" = yes; then
12018 # Fast installation is not supported
12019 enable_fast_install=no
12020 elif test "$shlibpath_overrides_runpath" = yes ||
12021 test "$enable_shared" = no; then
12022 # Fast installation is not necessary
12023 enable_fast_install=needless
12024 fi
12025
12026
12027
12028
12029
12030
12031 if test "x$enable_dlopen" != xyes; then
12032 enable_dlopen=unknown
12033 enable_dlopen_self=unknown
12034 enable_dlopen_self_static=unknown
12035 else
12036 lt_cv_dlopen=no
12037 lt_cv_dlopen_libs=
12038
12039 case $host_os in
12040 beos*)
12041 lt_cv_dlopen="load_add_on"
12042 lt_cv_dlopen_libs=
12043 lt_cv_dlopen_self=yes
12044 ;;
12045
12046 mingw* | pw32* | cegcc*)
12047 lt_cv_dlopen="LoadLibrary"
12048 lt_cv_dlopen_libs=
12049 ;;
12050
12051 cygwin*)
12052 lt_cv_dlopen="dlopen"
12053 lt_cv_dlopen_libs=
12054 ;;
12055
12056 darwin*)
12057 # if libdl is installed we need to link against it
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12059 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12060 if ${ac_cv_lib_dl_dlopen+:} false; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 ac_check_lib_save_LIBS=$LIBS
12064 LIBS="-ldl $LIBS"
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12067
12068 /* Override any GCC internal prototype to avoid an error.
12069 Use char because int might match the return type of a GCC
12070 builtin and then its argument prototype would still apply. */
12071 #ifdef __cplusplus
12072 extern "C"
12073 #endif
12074 char dlopen ();
12075 int
12076 main ()
12077 {
12078 return dlopen ();
12079 ;
12080 return 0;
12081 }
12082 _ACEOF
12083 if ac_fn_c_try_link "$LINENO"; then :
12084 ac_cv_lib_dl_dlopen=yes
12085 else
12086 ac_cv_lib_dl_dlopen=no
12087 fi
12088 rm -f core conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12090 LIBS=$ac_check_lib_save_LIBS
12091 fi
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12093 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12094 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12095 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12096 else
12097
12098 lt_cv_dlopen="dyld"
12099 lt_cv_dlopen_libs=
12100 lt_cv_dlopen_self=yes
12101
12102 fi
12103
12104 ;;
12105
12106 *)
12107 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12108 if test "x$ac_cv_func_shl_load" = xyes; then :
12109 lt_cv_dlopen="shl_load"
12110 else
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12112 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12113 if ${ac_cv_lib_dld_shl_load+:} false; then :
12114 $as_echo_n "(cached) " >&6
12115 else
12116 ac_check_lib_save_LIBS=$LIBS
12117 LIBS="-ldld $LIBS"
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12120
12121 /* Override any GCC internal prototype to avoid an error.
12122 Use char because int might match the return type of a GCC
12123 builtin and then its argument prototype would still apply. */
12124 #ifdef __cplusplus
12125 extern "C"
12126 #endif
12127 char shl_load ();
12128 int
12129 main ()
12130 {
12131 return shl_load ();
12132 ;
12133 return 0;
12134 }
12135 _ACEOF
12136 if ac_fn_c_try_link "$LINENO"; then :
12137 ac_cv_lib_dld_shl_load=yes
12138 else
12139 ac_cv_lib_dld_shl_load=no
12140 fi
12141 rm -f core conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext conftest.$ac_ext
12143 LIBS=$ac_check_lib_save_LIBS
12144 fi
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12146 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12147 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12148 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12149 else
12150 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12151 if test "x$ac_cv_func_dlopen" = xyes; then :
12152 lt_cv_dlopen="dlopen"
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12155 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12156 if ${ac_cv_lib_dl_dlopen+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 ac_check_lib_save_LIBS=$LIBS
12160 LIBS="-ldl $LIBS"
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12163
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char dlopen ();
12171 int
12172 main ()
12173 {
12174 return dlopen ();
12175 ;
12176 return 0;
12177 }
12178 _ACEOF
12179 if ac_fn_c_try_link "$LINENO"; then :
12180 ac_cv_lib_dl_dlopen=yes
12181 else
12182 ac_cv_lib_dl_dlopen=no
12183 fi
12184 rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12186 LIBS=$ac_check_lib_save_LIBS
12187 fi
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12189 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12190 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12194 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12195 if ${ac_cv_lib_svld_dlopen+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 ac_check_lib_save_LIBS=$LIBS
12199 LIBS="-lsvld $LIBS"
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202
12203 /* Override any GCC internal prototype to avoid an error.
12204 Use char because int might match the return type of a GCC
12205 builtin and then its argument prototype would still apply. */
12206 #ifdef __cplusplus
12207 extern "C"
12208 #endif
12209 char dlopen ();
12210 int
12211 main ()
12212 {
12213 return dlopen ();
12214 ;
12215 return 0;
12216 }
12217 _ACEOF
12218 if ac_fn_c_try_link "$LINENO"; then :
12219 ac_cv_lib_svld_dlopen=yes
12220 else
12221 ac_cv_lib_svld_dlopen=no
12222 fi
12223 rm -f core conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
12225 LIBS=$ac_check_lib_save_LIBS
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12228 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12229 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12231 else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12233 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12234 if ${ac_cv_lib_dld_dld_link+:} false; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-ldld $LIBS"
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12245 #ifdef __cplusplus
12246 extern "C"
12247 #endif
12248 char dld_link ();
12249 int
12250 main ()
12251 {
12252 return dld_link ();
12253 ;
12254 return 0;
12255 }
12256 _ACEOF
12257 if ac_fn_c_try_link "$LINENO"; then :
12258 ac_cv_lib_dld_dld_link=yes
12259 else
12260 ac_cv_lib_dld_dld_link=no
12261 fi
12262 rm -f core conftest.err conftest.$ac_objext \
12263 conftest$ac_exeext conftest.$ac_ext
12264 LIBS=$ac_check_lib_save_LIBS
12265 fi
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12267 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12268 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12269 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12270 fi
12271
12272
12273 fi
12274
12275
12276 fi
12277
12278
12279 fi
12280
12281
12282 fi
12283
12284
12285 fi
12286
12287 ;;
12288 esac
12289
12290 if test "x$lt_cv_dlopen" != xno; then
12291 enable_dlopen=yes
12292 else
12293 enable_dlopen=no
12294 fi
12295
12296 case $lt_cv_dlopen in
12297 dlopen)
12298 save_CPPFLAGS="$CPPFLAGS"
12299 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12300
12301 save_LDFLAGS="$LDFLAGS"
12302 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12303
12304 save_LIBS="$LIBS"
12305 LIBS="$lt_cv_dlopen_libs $LIBS"
12306
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12308 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12309 if ${lt_cv_dlopen_self+:} false; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 if test "$cross_compiling" = yes; then :
12313 lt_cv_dlopen_self=cross
12314 else
12315 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12316 lt_status=$lt_dlunknown
12317 cat > conftest.$ac_ext <<_LT_EOF
12318 #line $LINENO "configure"
12319 #include "confdefs.h"
12320
12321 #if HAVE_DLFCN_H
12322 #include <dlfcn.h>
12323 #endif
12324
12325 #include <stdio.h>
12326
12327 #ifdef RTLD_GLOBAL
12328 # define LT_DLGLOBAL RTLD_GLOBAL
12329 #else
12330 # ifdef DL_GLOBAL
12331 # define LT_DLGLOBAL DL_GLOBAL
12332 # else
12333 # define LT_DLGLOBAL 0
12334 # endif
12335 #endif
12336
12337 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12338 find out it does not work in some platform. */
12339 #ifndef LT_DLLAZY_OR_NOW
12340 # ifdef RTLD_LAZY
12341 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12342 # else
12343 # ifdef DL_LAZY
12344 # define LT_DLLAZY_OR_NOW DL_LAZY
12345 # else
12346 # ifdef RTLD_NOW
12347 # define LT_DLLAZY_OR_NOW RTLD_NOW
12348 # else
12349 # ifdef DL_NOW
12350 # define LT_DLLAZY_OR_NOW DL_NOW
12351 # else
12352 # define LT_DLLAZY_OR_NOW 0
12353 # endif
12354 # endif
12355 # endif
12356 # endif
12357 #endif
12358
12359 /* When -fvisbility=hidden is used, assume the code has been annotated
12360 correspondingly for the symbols needed. */
12361 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12362 int fnord () __attribute__((visibility("default")));
12363 #endif
12364
12365 int fnord () { return 42; }
12366 int main ()
12367 {
12368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12369 int status = $lt_dlunknown;
12370
12371 if (self)
12372 {
12373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12374 else
12375 {
12376 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12377 else puts (dlerror ());
12378 }
12379 /* dlclose (self); */
12380 }
12381 else
12382 puts (dlerror ());
12383
12384 return status;
12385 }
12386 _LT_EOF
12387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12388 (eval $ac_link) 2>&5
12389 ac_status=$?
12390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12391 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12392 (./conftest; exit; ) >&5 2>/dev/null
12393 lt_status=$?
12394 case x$lt_status in
12395 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12396 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12397 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12398 esac
12399 else :
12400 # compilation failed
12401 lt_cv_dlopen_self=no
12402 fi
12403 fi
12404 rm -fr conftest*
12405
12406
12407 fi
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12409 $as_echo "$lt_cv_dlopen_self" >&6; }
12410
12411 if test "x$lt_cv_dlopen_self" = xyes; then
12412 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12414 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12415 if ${lt_cv_dlopen_self_static+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 if test "$cross_compiling" = yes; then :
12419 lt_cv_dlopen_self_static=cross
12420 else
12421 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12422 lt_status=$lt_dlunknown
12423 cat > conftest.$ac_ext <<_LT_EOF
12424 #line $LINENO "configure"
12425 #include "confdefs.h"
12426
12427 #if HAVE_DLFCN_H
12428 #include <dlfcn.h>
12429 #endif
12430
12431 #include <stdio.h>
12432
12433 #ifdef RTLD_GLOBAL
12434 # define LT_DLGLOBAL RTLD_GLOBAL
12435 #else
12436 # ifdef DL_GLOBAL
12437 # define LT_DLGLOBAL DL_GLOBAL
12438 # else
12439 # define LT_DLGLOBAL 0
12440 # endif
12441 #endif
12442
12443 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12444 find out it does not work in some platform. */
12445 #ifndef LT_DLLAZY_OR_NOW
12446 # ifdef RTLD_LAZY
12447 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12448 # else
12449 # ifdef DL_LAZY
12450 # define LT_DLLAZY_OR_NOW DL_LAZY
12451 # else
12452 # ifdef RTLD_NOW
12453 # define LT_DLLAZY_OR_NOW RTLD_NOW
12454 # else
12455 # ifdef DL_NOW
12456 # define LT_DLLAZY_OR_NOW DL_NOW
12457 # else
12458 # define LT_DLLAZY_OR_NOW 0
12459 # endif
12460 # endif
12461 # endif
12462 # endif
12463 #endif
12464
12465 /* When -fvisbility=hidden is used, assume the code has been annotated
12466 correspondingly for the symbols needed. */
12467 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12468 int fnord () __attribute__((visibility("default")));
12469 #endif
12470
12471 int fnord () { return 42; }
12472 int main ()
12473 {
12474 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12475 int status = $lt_dlunknown;
12476
12477 if (self)
12478 {
12479 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12480 else
12481 {
12482 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12483 else puts (dlerror ());
12484 }
12485 /* dlclose (self); */
12486 }
12487 else
12488 puts (dlerror ());
12489
12490 return status;
12491 }
12492 _LT_EOF
12493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12494 (eval $ac_link) 2>&5
12495 ac_status=$?
12496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12497 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12498 (./conftest; exit; ) >&5 2>/dev/null
12499 lt_status=$?
12500 case x$lt_status in
12501 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12502 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12503 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12504 esac
12505 else :
12506 # compilation failed
12507 lt_cv_dlopen_self_static=no
12508 fi
12509 fi
12510 rm -fr conftest*
12511
12512
12513 fi
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12515 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12516 fi
12517
12518 CPPFLAGS="$save_CPPFLAGS"
12519 LDFLAGS="$save_LDFLAGS"
12520 LIBS="$save_LIBS"
12521 ;;
12522 esac
12523
12524 case $lt_cv_dlopen_self in
12525 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12526 *) enable_dlopen_self=unknown ;;
12527 esac
12528
12529 case $lt_cv_dlopen_self_static in
12530 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12531 *) enable_dlopen_self_static=unknown ;;
12532 esac
12533 fi
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551 striplib=
12552 old_striplib=
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12554 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12555 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12556 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12557 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12559 $as_echo "yes" >&6; }
12560 else
12561 # FIXME - insert some real tests, host_os isn't really good enough
12562 case $host_os in
12563 darwin*)
12564 if test -n "$STRIP" ; then
12565 striplib="$STRIP -x"
12566 old_striplib="$STRIP -S"
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12568 $as_echo "yes" >&6; }
12569 else
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571 $as_echo "no" >&6; }
12572 fi
12573 ;;
12574 *)
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12577 ;;
12578 esac
12579 fi
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592 # Report which library types will actually be built
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12594 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12596 $as_echo "$can_build_shared" >&6; }
12597
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12599 $as_echo_n "checking whether to build shared libraries... " >&6; }
12600 test "$can_build_shared" = "no" && enable_shared=no
12601
12602 # On AIX, shared libraries and static libraries use the same namespace, and
12603 # are all built from PIC.
12604 case $host_os in
12605 aix3*)
12606 test "$enable_shared" = yes && enable_static=no
12607 if test -n "$RANLIB"; then
12608 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12609 postinstall_cmds='$RANLIB $lib'
12610 fi
12611 ;;
12612
12613 aix[4-9]*)
12614 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12615 test "$enable_shared" = yes && enable_static=no
12616 fi
12617 ;;
12618 esac
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12620 $as_echo "$enable_shared" >&6; }
12621
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12623 $as_echo_n "checking whether to build static libraries... " >&6; }
12624 # Make sure either enable_shared or enable_static is yes.
12625 test "$enable_shared" = yes || enable_static=yes
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12627 $as_echo "$enable_static" >&6; }
12628
12629
12630
12631
12632 fi
12633 ac_ext=c
12634 ac_cpp='$CPP $CPPFLAGS'
12635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12638
12639 CC="$lt_save_CC"
12640
12641 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12642 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12643 (test "X$CXX" != "Xg++"))) ; then
12644 ac_ext=cpp
12645 ac_cpp='$CXXCPP $CPPFLAGS'
12646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12650 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12651 if test -z "$CXXCPP"; then
12652 if ${ac_cv_prog_CXXCPP+:} false; then :
12653 $as_echo_n "(cached) " >&6
12654 else
12655 # Double quotes because CXXCPP needs to be expanded
12656 for CXXCPP in "$CXX -E" "/lib/cpp"
12657 do
12658 ac_preproc_ok=false
12659 for ac_cxx_preproc_warn_flag in '' yes
12660 do
12661 # Use a header file that comes with gcc, so configuring glibc
12662 # with a fresh cross-compiler works.
12663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12664 # <limits.h> exists even on freestanding compilers.
12665 # On the NeXT, cc -E runs the code through the compiler's parser,
12666 # not just through cpp. "Syntax error" is here to catch this case.
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12669 #ifdef __STDC__
12670 # include <limits.h>
12671 #else
12672 # include <assert.h>
12673 #endif
12674 Syntax error
12675 _ACEOF
12676 if ac_fn_cxx_try_cpp "$LINENO"; then :
12677
12678 else
12679 # Broken: fails on valid input.
12680 continue
12681 fi
12682 rm -f conftest.err conftest.i conftest.$ac_ext
12683
12684 # OK, works on sane cases. Now check whether nonexistent headers
12685 # can be detected and how.
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12688 #include <ac_nonexistent.h>
12689 _ACEOF
12690 if ac_fn_cxx_try_cpp "$LINENO"; then :
12691 # Broken: success on invalid input.
12692 continue
12693 else
12694 # Passes both tests.
12695 ac_preproc_ok=:
12696 break
12697 fi
12698 rm -f conftest.err conftest.i conftest.$ac_ext
12699
12700 done
12701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12702 rm -f conftest.i conftest.err conftest.$ac_ext
12703 if $ac_preproc_ok; then :
12704 break
12705 fi
12706
12707 done
12708 ac_cv_prog_CXXCPP=$CXXCPP
12709
12710 fi
12711 CXXCPP=$ac_cv_prog_CXXCPP
12712 else
12713 ac_cv_prog_CXXCPP=$CXXCPP
12714 fi
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12716 $as_echo "$CXXCPP" >&6; }
12717 ac_preproc_ok=false
12718 for ac_cxx_preproc_warn_flag in '' yes
12719 do
12720 # Use a header file that comes with gcc, so configuring glibc
12721 # with a fresh cross-compiler works.
12722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12723 # <limits.h> exists even on freestanding compilers.
12724 # On the NeXT, cc -E runs the code through the compiler's parser,
12725 # not just through cpp. "Syntax error" is here to catch this case.
12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12728 #ifdef __STDC__
12729 # include <limits.h>
12730 #else
12731 # include <assert.h>
12732 #endif
12733 Syntax error
12734 _ACEOF
12735 if ac_fn_cxx_try_cpp "$LINENO"; then :
12736
12737 else
12738 # Broken: fails on valid input.
12739 continue
12740 fi
12741 rm -f conftest.err conftest.i conftest.$ac_ext
12742
12743 # OK, works on sane cases. Now check whether nonexistent headers
12744 # can be detected and how.
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12747 #include <ac_nonexistent.h>
12748 _ACEOF
12749 if ac_fn_cxx_try_cpp "$LINENO"; then :
12750 # Broken: success on invalid input.
12751 continue
12752 else
12753 # Passes both tests.
12754 ac_preproc_ok=:
12755 break
12756 fi
12757 rm -f conftest.err conftest.i conftest.$ac_ext
12758
12759 done
12760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12761 rm -f conftest.i conftest.err conftest.$ac_ext
12762 if $ac_preproc_ok; then :
12763
12764 else
12765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12767 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12768 See \`config.log' for more details" "$LINENO" 5; }
12769 fi
12770
12771 ac_ext=c
12772 ac_cpp='$CPP $CPPFLAGS'
12773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12776
12777 else
12778 _lt_caught_CXX_error=yes
12779 fi
12780
12781 ac_ext=cpp
12782 ac_cpp='$CXXCPP $CPPFLAGS'
12783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12786
12787 archive_cmds_need_lc_CXX=no
12788 allow_undefined_flag_CXX=
12789 always_export_symbols_CXX=no
12790 archive_expsym_cmds_CXX=
12791 compiler_needs_object_CXX=no
12792 export_dynamic_flag_spec_CXX=
12793 hardcode_direct_CXX=no
12794 hardcode_direct_absolute_CXX=no
12795 hardcode_libdir_flag_spec_CXX=
12796 hardcode_libdir_separator_CXX=
12797 hardcode_minus_L_CXX=no
12798 hardcode_shlibpath_var_CXX=unsupported
12799 hardcode_automatic_CXX=no
12800 inherit_rpath_CXX=no
12801 module_cmds_CXX=
12802 module_expsym_cmds_CXX=
12803 link_all_deplibs_CXX=unknown
12804 old_archive_cmds_CXX=$old_archive_cmds
12805 reload_flag_CXX=$reload_flag
12806 reload_cmds_CXX=$reload_cmds
12807 no_undefined_flag_CXX=
12808 whole_archive_flag_spec_CXX=
12809 enable_shared_with_static_runtimes_CXX=no
12810
12811 # Source file extension for C++ test sources.
12812 ac_ext=cpp
12813
12814 # Object file extension for compiled C++ test sources.
12815 objext=o
12816 objext_CXX=$objext
12817
12818 # No sense in running all these tests if we already determined that
12819 # the CXX compiler isn't working. Some variables (like enable_shared)
12820 # are currently assumed to apply to all compilers on this platform,
12821 # and will be corrupted by setting them based on a non-working compiler.
12822 if test "$_lt_caught_CXX_error" != yes; then
12823 # Code to be used in simple compile tests
12824 lt_simple_compile_test_code="int some_variable = 0;"
12825
12826 # Code to be used in simple link tests
12827 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12828
12829 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12830
12831
12832
12833
12834
12835
12836 # If no C compiler was specified, use CC.
12837 LTCC=${LTCC-"$CC"}
12838
12839 # If no C compiler flags were specified, use CFLAGS.
12840 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12841
12842 # Allow CC to be a program name with arguments.
12843 compiler=$CC
12844
12845
12846 # save warnings/boilerplate of simple test code
12847 ac_outfile=conftest.$ac_objext
12848 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12849 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12850 _lt_compiler_boilerplate=`cat conftest.err`
12851 $RM conftest*
12852
12853 ac_outfile=conftest.$ac_objext
12854 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12855 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12856 _lt_linker_boilerplate=`cat conftest.err`
12857 $RM -r conftest*
12858
12859
12860 # Allow CC to be a program name with arguments.
12861 lt_save_CC=$CC
12862 lt_save_CFLAGS=$CFLAGS
12863 lt_save_LD=$LD
12864 lt_save_GCC=$GCC
12865 GCC=$GXX
12866 lt_save_with_gnu_ld=$with_gnu_ld
12867 lt_save_path_LD=$lt_cv_path_LD
12868 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12869 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12870 else
12871 $as_unset lt_cv_prog_gnu_ld
12872 fi
12873 if test -n "${lt_cv_path_LDCXX+set}"; then
12874 lt_cv_path_LD=$lt_cv_path_LDCXX
12875 else
12876 $as_unset lt_cv_path_LD
12877 fi
12878 test -z "${LDCXX+set}" || LD=$LDCXX
12879 CC=${CXX-"c++"}
12880 CFLAGS=$CXXFLAGS
12881 compiler=$CC
12882 compiler_CXX=$CC
12883 for cc_temp in $compiler""; do
12884 case $cc_temp in
12885 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12886 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12887 \-*) ;;
12888 *) break;;
12889 esac
12890 done
12891 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12892
12893
12894 if test -n "$compiler"; then
12895 # We don't want -fno-exception when compiling C++ code, so set the
12896 # no_builtin_flag separately
12897 if test "$GXX" = yes; then
12898 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12899 else
12900 lt_prog_compiler_no_builtin_flag_CXX=
12901 fi
12902
12903 if test "$GXX" = yes; then
12904 # Set up default GNU C++ configuration
12905
12906
12907
12908 # Check whether --with-gnu-ld was given.
12909 if test "${with_gnu_ld+set}" = set; then :
12910 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12911 else
12912 with_gnu_ld=no
12913 fi
12914
12915 ac_prog=ld
12916 if test "$GCC" = yes; then
12917 # Check if gcc -print-prog-name=ld gives a path.
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12919 $as_echo_n "checking for ld used by $CC... " >&6; }
12920 case $host in
12921 *-*-mingw*)
12922 # gcc leaves a trailing carriage return which upsets mingw
12923 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12924 *)
12925 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12926 esac
12927 case $ac_prog in
12928 # Accept absolute paths.
12929 [\\/]* | ?:[\\/]*)
12930 re_direlt='/[^/][^/]*/\.\./'
12931 # Canonicalize the pathname of ld
12932 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12933 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12934 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12935 done
12936 test -z "$LD" && LD="$ac_prog"
12937 ;;
12938 "")
12939 # If it fails, then pretend we aren't using GCC.
12940 ac_prog=ld
12941 ;;
12942 *)
12943 # If it is relative, then search for the first ld in PATH.
12944 with_gnu_ld=unknown
12945 ;;
12946 esac
12947 elif test "$with_gnu_ld" = yes; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12949 $as_echo_n "checking for GNU ld... " >&6; }
12950 else
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12952 $as_echo_n "checking for non-GNU ld... " >&6; }
12953 fi
12954 if ${lt_cv_path_LD+:} false; then :
12955 $as_echo_n "(cached) " >&6
12956 else
12957 if test -z "$LD"; then
12958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12959 for ac_dir in $PATH; do
12960 IFS="$lt_save_ifs"
12961 test -z "$ac_dir" && ac_dir=.
12962 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12963 lt_cv_path_LD="$ac_dir/$ac_prog"
12964 # Check to see if the program is GNU ld. I'd rather use --version,
12965 # but apparently some variants of GNU ld only accept -v.
12966 # Break only if it was the GNU/non-GNU ld that we prefer.
12967 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12968 *GNU* | *'with BFD'*)
12969 test "$with_gnu_ld" != no && break
12970 ;;
12971 *)
12972 test "$with_gnu_ld" != yes && break
12973 ;;
12974 esac
12975 fi
12976 done
12977 IFS="$lt_save_ifs"
12978 else
12979 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12980 fi
12981 fi
12982
12983 LD="$lt_cv_path_LD"
12984 if test -n "$LD"; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12986 $as_echo "$LD" >&6; }
12987 else
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12990 fi
12991 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12993 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12994 if ${lt_cv_prog_gnu_ld+:} false; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12997 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12998 case `$LD -v 2>&1 </dev/null` in
12999 *GNU* | *'with BFD'*)
13000 lt_cv_prog_gnu_ld=yes
13001 ;;
13002 *)
13003 lt_cv_prog_gnu_ld=no
13004 ;;
13005 esac
13006 fi
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13008 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13009 with_gnu_ld=$lt_cv_prog_gnu_ld
13010
13011
13012
13013
13014
13015
13016
13017 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13018 # archiving commands below assume that GNU ld is being used.
13019 if test "$with_gnu_ld" = yes; then
13020 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13021 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'
13022
13023 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13024 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13025
13026 # If archive_cmds runs LD, not CC, wlarc should be empty
13027 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13028 # investigate it a little bit more. (MM)
13029 wlarc='${wl}'
13030
13031 # ancient GNU ld didn't support --whole-archive et. al.
13032 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13033 $GREP 'no-whole-archive' > /dev/null; then
13034 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13035 else
13036 whole_archive_flag_spec_CXX=
13037 fi
13038 else
13039 with_gnu_ld=no
13040 wlarc=
13041
13042 # A generic and very simple default shared library creation
13043 # command for GNU C++ for the case where it uses the native
13044 # linker, instead of GNU ld. If possible, this setting should
13045 # overridden to take advantage of the native linker features on
13046 # the platform it is being used on.
13047 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13048 fi
13049
13050 # Commands to make compiler produce verbose output that lists
13051 # what "hidden" libraries, object files and flags are used when
13052 # linking a shared library.
13053 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13054
13055 else
13056 GXX=no
13057 with_gnu_ld=no
13058 wlarc=
13059 fi
13060
13061 # PORTME: fill in a description of your system's C++ link characteristics
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13063 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13064 ld_shlibs_CXX=yes
13065 case $host_os in
13066 aix3*)
13067 # FIXME: insert proper C++ library support
13068 ld_shlibs_CXX=no
13069 ;;
13070 aix[4-9]*)
13071 if test "$host_cpu" = ia64; then
13072 # On IA64, the linker does run time linking by default, so we don't
13073 # have to do anything special.
13074 aix_use_runtimelinking=no
13075 exp_sym_flag='-Bexport'
13076 no_entry_flag=""
13077 else
13078 aix_use_runtimelinking=no
13079
13080 # Test if we are trying to use run time linking or normal
13081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13082 # need to do runtime linking.
13083 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13084 for ld_flag in $LDFLAGS; do
13085 case $ld_flag in
13086 *-brtl*)
13087 aix_use_runtimelinking=yes
13088 break
13089 ;;
13090 esac
13091 done
13092 ;;
13093 esac
13094
13095 exp_sym_flag='-bexport'
13096 no_entry_flag='-bnoentry'
13097 fi
13098
13099 # When large executables or shared objects are built, AIX ld can
13100 # have problems creating the table of contents. If linking a library
13101 # or program results in "error TOC overflow" add -mminimal-toc to
13102 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13103 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13104
13105 archive_cmds_CXX=''
13106 hardcode_direct_CXX=yes
13107 hardcode_direct_absolute_CXX=yes
13108 hardcode_libdir_separator_CXX=':'
13109 link_all_deplibs_CXX=yes
13110 file_list_spec_CXX='${wl}-f,'
13111
13112 if test "$GXX" = yes; then
13113 case $host_os in aix4.[012]|aix4.[012].*)
13114 # We only want to do this on AIX 4.2 and lower, the check
13115 # below for broken collect2 doesn't work under 4.3+
13116 collect2name=`${CC} -print-prog-name=collect2`
13117 if test -f "$collect2name" &&
13118 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13119 then
13120 # We have reworked collect2
13121 :
13122 else
13123 # We have old collect2
13124 hardcode_direct_CXX=unsupported
13125 # It fails to find uninstalled libraries when the uninstalled
13126 # path is not listed in the libpath. Setting hardcode_minus_L
13127 # to unsupported forces relinking
13128 hardcode_minus_L_CXX=yes
13129 hardcode_libdir_flag_spec_CXX='-L$libdir'
13130 hardcode_libdir_separator_CXX=
13131 fi
13132 esac
13133 shared_flag='-shared'
13134 if test "$aix_use_runtimelinking" = yes; then
13135 shared_flag="$shared_flag "'${wl}-G'
13136 fi
13137 else
13138 # not using gcc
13139 if test "$host_cpu" = ia64; then
13140 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13141 # chokes on -Wl,-G. The following line is correct:
13142 shared_flag='-G'
13143 else
13144 if test "$aix_use_runtimelinking" = yes; then
13145 shared_flag='${wl}-G'
13146 else
13147 shared_flag='${wl}-bM:SRE'
13148 fi
13149 fi
13150 fi
13151
13152 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13153 # It seems that -bexpall does not export symbols beginning with
13154 # underscore (_), so it is better to generate a list of symbols to
13155 # export.
13156 always_export_symbols_CXX=yes
13157 if test "$aix_use_runtimelinking" = yes; then
13158 # Warning - without using the other runtime loading flags (-brtl),
13159 # -berok will link without error, but may produce a broken library.
13160 allow_undefined_flag_CXX='-berok'
13161 # Determine the default libpath from the value encoded in an empty
13162 # executable.
13163 if test "${lt_cv_aix_libpath+set}" = set; then
13164 aix_libpath=$lt_cv_aix_libpath
13165 else
13166 if ${lt_cv_aix_libpath__CXX+:} false; then :
13167 $as_echo_n "(cached) " >&6
13168 else
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h. */
13171
13172 int
13173 main ()
13174 {
13175
13176 ;
13177 return 0;
13178 }
13179 _ACEOF
13180 if ac_fn_cxx_try_link "$LINENO"; then :
13181
13182 lt_aix_libpath_sed='
13183 /Import File Strings/,/^$/ {
13184 /^0/ {
13185 s/^0 *\([^ ]*\) *$/\1/
13186 p
13187 }
13188 }'
13189 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13190 # Check for a 64-bit object if we didn't find anything.
13191 if test -z "$lt_cv_aix_libpath__CXX"; then
13192 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13193 fi
13194 fi
13195 rm -f core conftest.err conftest.$ac_objext \
13196 conftest$ac_exeext conftest.$ac_ext
13197 if test -z "$lt_cv_aix_libpath__CXX"; then
13198 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13199 fi
13200
13201 fi
13202
13203 aix_libpath=$lt_cv_aix_libpath__CXX
13204 fi
13205
13206 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13207
13208 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13209 else
13210 if test "$host_cpu" = ia64; then
13211 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13212 allow_undefined_flag_CXX="-z nodefs"
13213 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"
13214 else
13215 # Determine the default libpath from the value encoded in an
13216 # empty executable.
13217 if test "${lt_cv_aix_libpath+set}" = set; then
13218 aix_libpath=$lt_cv_aix_libpath
13219 else
13220 if ${lt_cv_aix_libpath__CXX+:} false; then :
13221 $as_echo_n "(cached) " >&6
13222 else
13223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h. */
13225
13226 int
13227 main ()
13228 {
13229
13230 ;
13231 return 0;
13232 }
13233 _ACEOF
13234 if ac_fn_cxx_try_link "$LINENO"; then :
13235
13236 lt_aix_libpath_sed='
13237 /Import File Strings/,/^$/ {
13238 /^0/ {
13239 s/^0 *\([^ ]*\) *$/\1/
13240 p
13241 }
13242 }'
13243 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13244 # Check for a 64-bit object if we didn't find anything.
13245 if test -z "$lt_cv_aix_libpath__CXX"; then
13246 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13247 fi
13248 fi
13249 rm -f core conftest.err conftest.$ac_objext \
13250 conftest$ac_exeext conftest.$ac_ext
13251 if test -z "$lt_cv_aix_libpath__CXX"; then
13252 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13253 fi
13254
13255 fi
13256
13257 aix_libpath=$lt_cv_aix_libpath__CXX
13258 fi
13259
13260 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13261 # Warning - without using the other run time loading flags,
13262 # -berok will link without error, but may produce a broken library.
13263 no_undefined_flag_CXX=' ${wl}-bernotok'
13264 allow_undefined_flag_CXX=' ${wl}-berok'
13265 if test "$with_gnu_ld" = yes; then
13266 # We only use this code for GNU lds that support --whole-archive.
13267 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13268 else
13269 # Exported symbols can be pulled into shared objects from archives
13270 whole_archive_flag_spec_CXX='$convenience'
13271 fi
13272 archive_cmds_need_lc_CXX=yes
13273 # This is similar to how AIX traditionally builds its shared
13274 # libraries.
13275 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13276 fi
13277 fi
13278 ;;
13279
13280 beos*)
13281 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13282 allow_undefined_flag_CXX=unsupported
13283 # Joseph Beckenbach <[email protected]> says some releases of gcc
13284 # support --undefined. This deserves some investigation. FIXME
13285 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13286 else
13287 ld_shlibs_CXX=no
13288 fi
13289 ;;
13290
13291 chorus*)
13292 case $cc_basename in
13293 *)
13294 # FIXME: insert proper C++ library support
13295 ld_shlibs_CXX=no
13296 ;;
13297 esac
13298 ;;
13299
13300 cygwin* | mingw* | pw32* | cegcc*)
13301 case $GXX,$cc_basename in
13302 ,cl* | no,cl*)
13303 # Native MSVC
13304 # hardcode_libdir_flag_spec is actually meaningless, as there is
13305 # no search path for DLLs.
13306 hardcode_libdir_flag_spec_CXX=' '
13307 allow_undefined_flag_CXX=unsupported
13308 always_export_symbols_CXX=yes
13309 file_list_spec_CXX='@'
13310 # Tell ltmain to make .lib files, not .a files.
13311 libext=lib
13312 # Tell ltmain to make .dll files, not .so files.
13313 shrext_cmds=".dll"
13314 # FIXME: Setting linknames here is a bad hack.
13315 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13316 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13317 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13318 else
13319 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13320 fi~
13321 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13322 linknames='
13323 # The linker will not automatically build a static lib if we build a DLL.
13324 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13325 enable_shared_with_static_runtimes_CXX=yes
13326 # Don't use ranlib
13327 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13328 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13329 lt_tool_outputfile="@TOOL_OUTPUT@"~
13330 case $lt_outputfile in
13331 *.exe|*.EXE) ;;
13332 *)
13333 lt_outputfile="$lt_outputfile.exe"
13334 lt_tool_outputfile="$lt_tool_outputfile.exe"
13335 ;;
13336 esac~
13337 func_to_tool_file "$lt_outputfile"~
13338 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13339 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13340 $RM "$lt_outputfile.manifest";
13341 fi'
13342 ;;
13343 *)
13344 # g++
13345 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13346 # as there is no search path for DLLs.
13347 hardcode_libdir_flag_spec_CXX='-L$libdir'
13348 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13349 allow_undefined_flag_CXX=unsupported
13350 always_export_symbols_CXX=no
13351 enable_shared_with_static_runtimes_CXX=yes
13352
13353 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13354 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'
13355 # If the export-symbols file already is a .def file (1st line
13356 # is EXPORTS), use it as is; otherwise, prepend...
13357 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13358 cp $export_symbols $output_objdir/$soname.def;
13359 else
13360 echo EXPORTS > $output_objdir/$soname.def;
13361 cat $export_symbols >> $output_objdir/$soname.def;
13362 fi~
13363 $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'
13364 else
13365 ld_shlibs_CXX=no
13366 fi
13367 ;;
13368 esac
13369 ;;
13370 darwin* | rhapsody*)
13371
13372
13373 archive_cmds_need_lc_CXX=no
13374 hardcode_direct_CXX=no
13375 hardcode_automatic_CXX=yes
13376 hardcode_shlibpath_var_CXX=unsupported
13377 if test "$lt_cv_ld_force_load" = "yes"; then
13378 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\"`'
13379
13380 else
13381 whole_archive_flag_spec_CXX=''
13382 fi
13383 link_all_deplibs_CXX=yes
13384 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13385 case $cc_basename in
13386 ifort*) _lt_dar_can_shared=yes ;;
13387 *) _lt_dar_can_shared=$GCC ;;
13388 esac
13389 if test "$_lt_dar_can_shared" = "yes"; then
13390 output_verbose_link_cmd=func_echo_all
13391 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}"
13392 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13393 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}"
13394 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}"
13395 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13396 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}"
13397 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}"
13398 fi
13399
13400 else
13401 ld_shlibs_CXX=no
13402 fi
13403
13404 ;;
13405
13406 dgux*)
13407 case $cc_basename in
13408 ec++*)
13409 # FIXME: insert proper C++ library support
13410 ld_shlibs_CXX=no
13411 ;;
13412 ghcx*)
13413 # Green Hills C++ Compiler
13414 # FIXME: insert proper C++ library support
13415 ld_shlibs_CXX=no
13416 ;;
13417 *)
13418 # FIXME: insert proper C++ library support
13419 ld_shlibs_CXX=no
13420 ;;
13421 esac
13422 ;;
13423
13424 freebsd2.*)
13425 # C++ shared libraries reported to be fairly broken before
13426 # switch to ELF
13427 ld_shlibs_CXX=no
13428 ;;
13429
13430 freebsd-elf*)
13431 archive_cmds_need_lc_CXX=no
13432 ;;
13433
13434 freebsd* | dragonfly*)
13435 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13436 # conventions
13437 ld_shlibs_CXX=yes
13438 ;;
13439
13440 haiku*)
13441 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13442 link_all_deplibs_CXX=yes
13443 ;;
13444
13445 hpux9*)
13446 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13447 hardcode_libdir_separator_CXX=:
13448 export_dynamic_flag_spec_CXX='${wl}-E'
13449 hardcode_direct_CXX=yes
13450 hardcode_minus_L_CXX=yes # Not in the search PATH,
13451 # but as the default
13452 # location of the library.
13453
13454 case $cc_basename in
13455 CC*)
13456 # FIXME: insert proper C++ library support
13457 ld_shlibs_CXX=no
13458 ;;
13459 aCC*)
13460 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13461 # Commands to make compiler produce verbose output that lists
13462 # what "hidden" libraries, object files and flags are used when
13463 # linking a shared library.
13464 #
13465 # There doesn't appear to be a way to prevent this compiler from
13466 # explicitly linking system object files so we need to strip them
13467 # from the output so that they don't get included in the library
13468 # dependencies.
13469 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"'
13470 ;;
13471 *)
13472 if test "$GXX" = yes; then
13473 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13474 else
13475 # FIXME: insert proper C++ library support
13476 ld_shlibs_CXX=no
13477 fi
13478 ;;
13479 esac
13480 ;;
13481
13482 hpux10*|hpux11*)
13483 if test $with_gnu_ld = no; then
13484 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13485 hardcode_libdir_separator_CXX=:
13486
13487 case $host_cpu in
13488 hppa*64*|ia64*)
13489 ;;
13490 *)
13491 export_dynamic_flag_spec_CXX='${wl}-E'
13492 ;;
13493 esac
13494 fi
13495 case $host_cpu in
13496 hppa*64*|ia64*)
13497 hardcode_direct_CXX=no
13498 hardcode_shlibpath_var_CXX=no
13499 ;;
13500 *)
13501 hardcode_direct_CXX=yes
13502 hardcode_direct_absolute_CXX=yes
13503 hardcode_minus_L_CXX=yes # Not in the search PATH,
13504 # but as the default
13505 # location of the library.
13506 ;;
13507 esac
13508
13509 case $cc_basename in
13510 CC*)
13511 # FIXME: insert proper C++ library support
13512 ld_shlibs_CXX=no
13513 ;;
13514 aCC*)
13515 case $host_cpu in
13516 hppa*64*)
13517 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13518 ;;
13519 ia64*)
13520 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13521 ;;
13522 *)
13523 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13524 ;;
13525 esac
13526 # Commands to make compiler produce verbose output that lists
13527 # what "hidden" libraries, object files and flags are used when
13528 # linking a shared library.
13529 #
13530 # There doesn't appear to be a way to prevent this compiler from
13531 # explicitly linking system object files so we need to strip them
13532 # from the output so that they don't get included in the library
13533 # dependencies.
13534 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"'
13535 ;;
13536 *)
13537 if test "$GXX" = yes; then
13538 if test $with_gnu_ld = no; then
13539 case $host_cpu in
13540 hppa*64*)
13541 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13542 ;;
13543 ia64*)
13544 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13545 ;;
13546 *)
13547 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'
13548 ;;
13549 esac
13550 fi
13551 else
13552 # FIXME: insert proper C++ library support
13553 ld_shlibs_CXX=no
13554 fi
13555 ;;
13556 esac
13557 ;;
13558
13559 interix[3-9]*)
13560 hardcode_direct_CXX=no
13561 hardcode_shlibpath_var_CXX=no
13562 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13563 export_dynamic_flag_spec_CXX='${wl}-E'
13564 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13565 # Instead, shared libraries are loaded at an image base (0x10000000 by
13566 # default) and relocated if they conflict, which is a slow very memory
13567 # consuming and fragmenting process. To avoid this, we pick a random,
13568 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13569 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13570 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'
13571 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'
13572 ;;
13573 irix5* | irix6*)
13574 case $cc_basename in
13575 CC*)
13576 # SGI C++
13577 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'
13578
13579 # Archives containing C++ object files must be created using
13580 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13581 # necessary to make sure instantiated templates are included
13582 # in the archive.
13583 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13584 ;;
13585 *)
13586 if test "$GXX" = yes; then
13587 if test "$with_gnu_ld" = no; then
13588 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'
13589 else
13590 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'
13591 fi
13592 fi
13593 link_all_deplibs_CXX=yes
13594 ;;
13595 esac
13596 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13597 hardcode_libdir_separator_CXX=:
13598 inherit_rpath_CXX=yes
13599 ;;
13600
13601 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13602 case $cc_basename in
13603 KCC*)
13604 # Kuck and Associates, Inc. (KAI) C++ Compiler
13605
13606 # KCC will only create a shared library if the output file
13607 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13608 # to its proper name (with version) after linking.
13609 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'
13610 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'
13611 # Commands to make compiler produce verbose output that lists
13612 # what "hidden" libraries, object files and flags are used when
13613 # linking a shared library.
13614 #
13615 # There doesn't appear to be a way to prevent this compiler from
13616 # explicitly linking system object files so we need to strip them
13617 # from the output so that they don't get included in the library
13618 # dependencies.
13619 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"'
13620
13621 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13622 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13623
13624 # Archives containing C++ object files must be created using
13625 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13626 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13627 ;;
13628 icpc* | ecpc* )
13629 # Intel C++
13630 with_gnu_ld=yes
13631 # version 8.0 and above of icpc choke on multiply defined symbols
13632 # if we add $predep_objects and $postdep_objects, however 7.1 and
13633 # earlier do not add the objects themselves.
13634 case `$CC -V 2>&1` in
13635 *"Version 7."*)
13636 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13637 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'
13638 ;;
13639 *) # Version 8.0 or newer
13640 tmp_idyn=
13641 case $host_cpu in
13642 ia64*) tmp_idyn=' -i_dynamic';;
13643 esac
13644 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13645 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'
13646 ;;
13647 esac
13648 archive_cmds_need_lc_CXX=no
13649 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13650 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13651 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13652 ;;
13653 pgCC* | pgcpp*)
13654 # Portland Group C++ compiler
13655 case `$CC -V` in
13656 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13657 prelink_cmds_CXX='tpldir=Template.dir~
13658 rm -rf $tpldir~
13659 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13660 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13661 old_archive_cmds_CXX='tpldir=Template.dir~
13662 rm -rf $tpldir~
13663 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13664 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13665 $RANLIB $oldlib'
13666 archive_cmds_CXX='tpldir=Template.dir~
13667 rm -rf $tpldir~
13668 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13669 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13670 archive_expsym_cmds_CXX='tpldir=Template.dir~
13671 rm -rf $tpldir~
13672 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13673 $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'
13674 ;;
13675 *) # Version 6 and above use weak symbols
13676 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13677 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'
13678 ;;
13679 esac
13680
13681 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13682 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13683 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'
13684 ;;
13685 cxx*)
13686 # Compaq C++
13687 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13688 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'
13689
13690 runpath_var=LD_RUN_PATH
13691 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13692 hardcode_libdir_separator_CXX=:
13693
13694 # Commands to make compiler produce verbose output that lists
13695 # what "hidden" libraries, object files and flags are used when
13696 # linking a shared library.
13697 #
13698 # There doesn't appear to be a way to prevent this compiler from
13699 # explicitly linking system object files so we need to strip them
13700 # from the output so that they don't get included in the library
13701 # dependencies.
13702 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'
13703 ;;
13704 xl* | mpixl* | bgxl*)
13705 # IBM XL 8.0 on PPC, with GNU ld
13706 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13707 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13708 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13709 if test "x$supports_anon_versioning" = xyes; then
13710 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13711 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13712 echo "local: *; };" >> $output_objdir/$libname.ver~
13713 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13714 fi
13715 ;;
13716 *)
13717 case `$CC -V 2>&1 | sed 5q` in
13718 *Sun\ C*)
13719 # Sun C++ 5.9
13720 no_undefined_flag_CXX=' -zdefs'
13721 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13722 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'
13723 hardcode_libdir_flag_spec_CXX='-R$libdir'
13724 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'
13725 compiler_needs_object_CXX=yes
13726
13727 # Not sure whether something based on
13728 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13729 # would be better.
13730 output_verbose_link_cmd='func_echo_all'
13731
13732 # Archives containing C++ object files must be created using
13733 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13734 # necessary to make sure instantiated templates are included
13735 # in the archive.
13736 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13737 ;;
13738 esac
13739 ;;
13740 esac
13741 ;;
13742
13743 lynxos*)
13744 # FIXME: insert proper C++ library support
13745 ld_shlibs_CXX=no
13746 ;;
13747
13748 m88k*)
13749 # FIXME: insert proper C++ library support
13750 ld_shlibs_CXX=no
13751 ;;
13752
13753 mvs*)
13754 case $cc_basename in
13755 cxx*)
13756 # FIXME: insert proper C++ library support
13757 ld_shlibs_CXX=no
13758 ;;
13759 *)
13760 # FIXME: insert proper C++ library support
13761 ld_shlibs_CXX=no
13762 ;;
13763 esac
13764 ;;
13765
13766 netbsd*)
13767 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13768 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13769 wlarc=
13770 hardcode_libdir_flag_spec_CXX='-R$libdir'
13771 hardcode_direct_CXX=yes
13772 hardcode_shlibpath_var_CXX=no
13773 fi
13774 # Workaround some broken pre-1.5 toolchains
13775 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13776 ;;
13777
13778 *nto* | *qnx*)
13779 ld_shlibs_CXX=yes
13780 ;;
13781
13782 openbsd2*)
13783 # C++ shared libraries are fairly broken
13784 ld_shlibs_CXX=no
13785 ;;
13786
13787 openbsd*)
13788 if test -f /usr/libexec/ld.so; then
13789 hardcode_direct_CXX=yes
13790 hardcode_shlibpath_var_CXX=no
13791 hardcode_direct_absolute_CXX=yes
13792 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13793 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13795 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13796 export_dynamic_flag_spec_CXX='${wl}-E'
13797 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13798 fi
13799 output_verbose_link_cmd=func_echo_all
13800 else
13801 ld_shlibs_CXX=no
13802 fi
13803 ;;
13804
13805 osf3* | osf4* | osf5*)
13806 case $cc_basename in
13807 KCC*)
13808 # Kuck and Associates, Inc. (KAI) C++ Compiler
13809
13810 # KCC will only create a shared library if the output file
13811 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13812 # to its proper name (with version) after linking.
13813 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'
13814
13815 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13816 hardcode_libdir_separator_CXX=:
13817
13818 # Archives containing C++ object files must be created using
13819 # the KAI C++ compiler.
13820 case $host in
13821 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13822 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13823 esac
13824 ;;
13825 RCC*)
13826 # Rational C++ 2.4.1
13827 # FIXME: insert proper C++ library support
13828 ld_shlibs_CXX=no
13829 ;;
13830 cxx*)
13831 case $host in
13832 osf3*)
13833 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13834 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'
13835 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13836 ;;
13837 *)
13838 allow_undefined_flag_CXX=' -expect_unresolved \*'
13839 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'
13840 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13841 echo "-hidden">> $lib.exp~
13842 $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~
13843 $RM $lib.exp'
13844 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13845 ;;
13846 esac
13847
13848 hardcode_libdir_separator_CXX=:
13849
13850 # Commands to make compiler produce verbose output that lists
13851 # what "hidden" libraries, object files and flags are used when
13852 # linking a shared library.
13853 #
13854 # There doesn't appear to be a way to prevent this compiler from
13855 # explicitly linking system object files so we need to strip them
13856 # from the output so that they don't get included in the library
13857 # dependencies.
13858 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"'
13859 ;;
13860 *)
13861 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13862 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13863 case $host in
13864 osf3*)
13865 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'
13866 ;;
13867 *)
13868 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'
13869 ;;
13870 esac
13871
13872 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13873 hardcode_libdir_separator_CXX=:
13874
13875 # Commands to make compiler produce verbose output that lists
13876 # what "hidden" libraries, object files and flags are used when
13877 # linking a shared library.
13878 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13879
13880 else
13881 # FIXME: insert proper C++ library support
13882 ld_shlibs_CXX=no
13883 fi
13884 ;;
13885 esac
13886 ;;
13887
13888 psos*)
13889 # FIXME: insert proper C++ library support
13890 ld_shlibs_CXX=no
13891 ;;
13892
13893 sunos4*)
13894 case $cc_basename in
13895 CC*)
13896 # Sun C++ 4.x
13897 # FIXME: insert proper C++ library support
13898 ld_shlibs_CXX=no
13899 ;;
13900 lcc*)
13901 # Lucid
13902 # FIXME: insert proper C++ library support
13903 ld_shlibs_CXX=no
13904 ;;
13905 *)
13906 # FIXME: insert proper C++ library support
13907 ld_shlibs_CXX=no
13908 ;;
13909 esac
13910 ;;
13911
13912 solaris*)
13913 case $cc_basename in
13914 CC* | sunCC*)
13915 # Sun C++ 4.2, 5.x and Centerline C++
13916 archive_cmds_need_lc_CXX=yes
13917 no_undefined_flag_CXX=' -zdefs'
13918 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13919 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13920 $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'
13921
13922 hardcode_libdir_flag_spec_CXX='-R$libdir'
13923 hardcode_shlibpath_var_CXX=no
13924 case $host_os in
13925 solaris2.[0-5] | solaris2.[0-5].*) ;;
13926 *)
13927 # The compiler driver will combine and reorder linker options,
13928 # but understands `-z linker_flag'.
13929 # Supported since Solaris 2.6 (maybe 2.5.1?)
13930 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13931 ;;
13932 esac
13933 link_all_deplibs_CXX=yes
13934
13935 output_verbose_link_cmd='func_echo_all'
13936
13937 # Archives containing C++ object files must be created using
13938 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13939 # necessary to make sure instantiated templates are included
13940 # in the archive.
13941 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13942 ;;
13943 gcx*)
13944 # Green Hills C++ Compiler
13945 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13946
13947 # The C++ compiler must be used to create the archive.
13948 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13949 ;;
13950 *)
13951 # GNU C++ compiler with Solaris linker
13952 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13953 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13954 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13955 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13956 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13957 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13958
13959 # Commands to make compiler produce verbose output that lists
13960 # what "hidden" libraries, object files and flags are used when
13961 # linking a shared library.
13962 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13963 else
13964 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13965 # platform.
13966 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13967 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13968 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13969
13970 # Commands to make compiler produce verbose output that lists
13971 # what "hidden" libraries, object files and flags are used when
13972 # linking a shared library.
13973 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13974 fi
13975
13976 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13977 case $host_os in
13978 solaris2.[0-5] | solaris2.[0-5].*) ;;
13979 *)
13980 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13981 ;;
13982 esac
13983 fi
13984 ;;
13985 esac
13986 ;;
13987
13988 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13989 no_undefined_flag_CXX='${wl}-z,text'
13990 archive_cmds_need_lc_CXX=no
13991 hardcode_shlibpath_var_CXX=no
13992 runpath_var='LD_RUN_PATH'
13993
13994 case $cc_basename in
13995 CC*)
13996 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13997 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13998 ;;
13999 *)
14000 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14001 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14002 ;;
14003 esac
14004 ;;
14005
14006 sysv5* | sco3.2v5* | sco5v6*)
14007 # Note: We can NOT use -z defs as we might desire, because we do not
14008 # link with -lc, and that would cause any symbols used from libc to
14009 # always be unresolved, which means just about no library would
14010 # ever link correctly. If we're not using GNU ld we use -z text
14011 # though, which does catch some bad symbols but isn't as heavy-handed
14012 # as -z defs.
14013 no_undefined_flag_CXX='${wl}-z,text'
14014 allow_undefined_flag_CXX='${wl}-z,nodefs'
14015 archive_cmds_need_lc_CXX=no
14016 hardcode_shlibpath_var_CXX=no
14017 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14018 hardcode_libdir_separator_CXX=':'
14019 link_all_deplibs_CXX=yes
14020 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14021 runpath_var='LD_RUN_PATH'
14022
14023 case $cc_basename in
14024 CC*)
14025 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14026 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14027 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14028 '"$old_archive_cmds_CXX"
14029 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14030 '"$reload_cmds_CXX"
14031 ;;
14032 *)
14033 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14034 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14035 ;;
14036 esac
14037 ;;
14038
14039 tandem*)
14040 case $cc_basename in
14041 NCC*)
14042 # NonStop-UX NCC 3.20
14043 # FIXME: insert proper C++ library support
14044 ld_shlibs_CXX=no
14045 ;;
14046 *)
14047 # FIXME: insert proper C++ library support
14048 ld_shlibs_CXX=no
14049 ;;
14050 esac
14051 ;;
14052
14053 vxworks*)
14054 # FIXME: insert proper C++ library support
14055 ld_shlibs_CXX=no
14056 ;;
14057
14058 *)
14059 # FIXME: insert proper C++ library support
14060 ld_shlibs_CXX=no
14061 ;;
14062 esac
14063
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14065 $as_echo "$ld_shlibs_CXX" >&6; }
14066 test "$ld_shlibs_CXX" = no && can_build_shared=no
14067
14068 GCC_CXX="$GXX"
14069 LD_CXX="$LD"
14070
14071 ## CAVEAT EMPTOR:
14072 ## There is no encapsulation within the following macros, do not change
14073 ## the running order or otherwise move them around unless you know exactly
14074 ## what you are doing...
14075 # Dependencies to place before and after the object being linked:
14076 predep_objects_CXX=
14077 postdep_objects_CXX=
14078 predeps_CXX=
14079 postdeps_CXX=
14080 compiler_lib_search_path_CXX=
14081
14082 cat > conftest.$ac_ext <<_LT_EOF
14083 class Foo
14084 {
14085 public:
14086 Foo (void) { a = 0; }
14087 private:
14088 int a;
14089 };
14090 _LT_EOF
14091
14092
14093 _lt_libdeps_save_CFLAGS=$CFLAGS
14094 case "$CC $CFLAGS " in #(
14095 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14096 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14097 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14098 esac
14099
14100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14101 (eval $ac_compile) 2>&5
14102 ac_status=$?
14103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14104 test $ac_status = 0; }; then
14105 # Parse the compiler output and extract the necessary
14106 # objects, libraries and library flags.
14107
14108 # Sentinel used to keep track of whether or not we are before
14109 # the conftest object file.
14110 pre_test_object_deps_done=no
14111
14112 for p in `eval "$output_verbose_link_cmd"`; do
14113 case ${prev}${p} in
14114
14115 -L* | -R* | -l*)
14116 # Some compilers place space between "-{L,R}" and the path.
14117 # Remove the space.
14118 if test $p = "-L" ||
14119 test $p = "-R"; then
14120 prev=$p
14121 continue
14122 fi
14123
14124 # Expand the sysroot to ease extracting the directories later.
14125 if test -z "$prev"; then
14126 case $p in
14127 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14128 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14129 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14130 esac
14131 fi
14132 case $p in
14133 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14134 esac
14135 if test "$pre_test_object_deps_done" = no; then
14136 case ${prev} in
14137 -L | -R)
14138 # Internal compiler library paths should come after those
14139 # provided the user. The postdeps already come after the
14140 # user supplied libs so there is no need to process them.
14141 if test -z "$compiler_lib_search_path_CXX"; then
14142 compiler_lib_search_path_CXX="${prev}${p}"
14143 else
14144 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14145 fi
14146 ;;
14147 # The "-l" case would never come before the object being
14148 # linked, so don't bother handling this case.
14149 esac
14150 else
14151 if test -z "$postdeps_CXX"; then
14152 postdeps_CXX="${prev}${p}"
14153 else
14154 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14155 fi
14156 fi
14157 prev=
14158 ;;
14159
14160 *.lto.$objext) ;; # Ignore GCC LTO objects
14161 *.$objext)
14162 # This assumes that the test object file only shows up
14163 # once in the compiler output.
14164 if test "$p" = "conftest.$objext"; then
14165 pre_test_object_deps_done=yes
14166 continue
14167 fi
14168
14169 if test "$pre_test_object_deps_done" = no; then
14170 if test -z "$predep_objects_CXX"; then
14171 predep_objects_CXX="$p"
14172 else
14173 predep_objects_CXX="$predep_objects_CXX $p"
14174 fi
14175 else
14176 if test -z "$postdep_objects_CXX"; then
14177 postdep_objects_CXX="$p"
14178 else
14179 postdep_objects_CXX="$postdep_objects_CXX $p"
14180 fi
14181 fi
14182 ;;
14183
14184 *) ;; # Ignore the rest.
14185
14186 esac
14187 done
14188
14189 # Clean up.
14190 rm -f a.out a.exe
14191 else
14192 echo "libtool.m4: error: problem compiling CXX test program"
14193 fi
14194
14195 $RM -f confest.$objext
14196 CFLAGS=$_lt_libdeps_save_CFLAGS
14197
14198 # PORTME: override above test on systems where it is broken
14199 case $host_os in
14200 interix[3-9]*)
14201 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14202 # hack all around it, let's just trust "g++" to DTRT.
14203 predep_objects_CXX=
14204 postdep_objects_CXX=
14205 postdeps_CXX=
14206 ;;
14207
14208 linux*)
14209 case `$CC -V 2>&1 | sed 5q` in
14210 *Sun\ C*)
14211 # Sun C++ 5.9
14212
14213 # The more standards-conforming stlport4 library is
14214 # incompatible with the Cstd library. Avoid specifying
14215 # it if it's in CXXFLAGS. Ignore libCrun as
14216 # -library=stlport4 depends on it.
14217 case " $CXX $CXXFLAGS " in
14218 *" -library=stlport4 "*)
14219 solaris_use_stlport4=yes
14220 ;;
14221 esac
14222
14223 if test "$solaris_use_stlport4" != yes; then
14224 postdeps_CXX='-library=Cstd -library=Crun'
14225 fi
14226 ;;
14227 esac
14228 ;;
14229
14230 solaris*)
14231 case $cc_basename in
14232 CC* | sunCC*)
14233 # The more standards-conforming stlport4 library is
14234 # incompatible with the Cstd library. Avoid specifying
14235 # it if it's in CXXFLAGS. Ignore libCrun as
14236 # -library=stlport4 depends on it.
14237 case " $CXX $CXXFLAGS " in
14238 *" -library=stlport4 "*)
14239 solaris_use_stlport4=yes
14240 ;;
14241 esac
14242
14243 # Adding this requires a known-good setup of shared libraries for
14244 # Sun compiler versions before 5.6, else PIC objects from an old
14245 # archive will be linked into the output, leading to subtle bugs.
14246 if test "$solaris_use_stlport4" != yes; then
14247 postdeps_CXX='-library=Cstd -library=Crun'
14248 fi
14249 ;;
14250 esac
14251 ;;
14252 esac
14253
14254
14255 case " $postdeps_CXX " in
14256 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14257 esac
14258 compiler_lib_search_dirs_CXX=
14259 if test -n "${compiler_lib_search_path_CXX}"; then
14260 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14261 fi
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293 lt_prog_compiler_wl_CXX=
14294 lt_prog_compiler_pic_CXX=
14295 lt_prog_compiler_static_CXX=
14296
14297
14298 # C++ specific cases for pic, static, wl, etc.
14299 if test "$GXX" = yes; then
14300 lt_prog_compiler_wl_CXX='-Wl,'
14301 lt_prog_compiler_static_CXX='-static'
14302
14303 case $host_os in
14304 aix*)
14305 # All AIX code is PIC.
14306 if test "$host_cpu" = ia64; then
14307 # AIX 5 now supports IA64 processor
14308 lt_prog_compiler_static_CXX='-Bstatic'
14309 fi
14310 ;;
14311
14312 amigaos*)
14313 case $host_cpu in
14314 powerpc)
14315 # see comment about AmigaOS4 .so support
14316 lt_prog_compiler_pic_CXX='-fPIC'
14317 ;;
14318 m68k)
14319 # FIXME: we need at least 68020 code to build shared libraries, but
14320 # adding the `-m68020' flag to GCC prevents building anything better,
14321 # like `-m68040'.
14322 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14323 ;;
14324 esac
14325 ;;
14326
14327 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14328 # PIC is the default for these OSes.
14329 ;;
14330 mingw* | cygwin* | os2* | pw32* | cegcc*)
14331 # This hack is so that the source file can tell whether it is being
14332 # built for inclusion in a dll (and should export symbols for example).
14333 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14334 # (--disable-auto-import) libraries
14335 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14336 ;;
14337 darwin* | rhapsody*)
14338 # PIC is the default on this platform
14339 # Common symbols not allowed in MH_DYLIB files
14340 lt_prog_compiler_pic_CXX='-fno-common'
14341 ;;
14342 *djgpp*)
14343 # DJGPP does not support shared libraries at all
14344 lt_prog_compiler_pic_CXX=
14345 ;;
14346 haiku*)
14347 # PIC is the default for Haiku.
14348 # The "-static" flag exists, but is broken.
14349 lt_prog_compiler_static_CXX=
14350 ;;
14351 interix[3-9]*)
14352 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14353 # Instead, we relocate shared libraries at runtime.
14354 ;;
14355 sysv4*MP*)
14356 if test -d /usr/nec; then
14357 lt_prog_compiler_pic_CXX=-Kconform_pic
14358 fi
14359 ;;
14360 hpux*)
14361 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14362 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14363 # sets the default TLS model and affects inlining.
14364 case $host_cpu in
14365 hppa*64*)
14366 ;;
14367 *)
14368 lt_prog_compiler_pic_CXX='-fPIC'
14369 ;;
14370 esac
14371 ;;
14372 *qnx* | *nto*)
14373 # QNX uses GNU C++, but need to define -shared option too, otherwise
14374 # it will coredump.
14375 lt_prog_compiler_pic_CXX='-fPIC -shared'
14376 ;;
14377 *)
14378 lt_prog_compiler_pic_CXX='-fPIC'
14379 ;;
14380 esac
14381 else
14382 case $host_os in
14383 aix[4-9]*)
14384 # All AIX code is PIC.
14385 if test "$host_cpu" = ia64; then
14386 # AIX 5 now supports IA64 processor
14387 lt_prog_compiler_static_CXX='-Bstatic'
14388 else
14389 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14390 fi
14391 ;;
14392 chorus*)
14393 case $cc_basename in
14394 cxch68*)
14395 # Green Hills C++ Compiler
14396 # _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"
14397 ;;
14398 esac
14399 ;;
14400 mingw* | cygwin* | os2* | pw32* | cegcc*)
14401 # This hack is so that the source file can tell whether it is being
14402 # built for inclusion in a dll (and should export symbols for example).
14403 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14404 ;;
14405 dgux*)
14406 case $cc_basename in
14407 ec++*)
14408 lt_prog_compiler_pic_CXX='-KPIC'
14409 ;;
14410 ghcx*)
14411 # Green Hills C++ Compiler
14412 lt_prog_compiler_pic_CXX='-pic'
14413 ;;
14414 *)
14415 ;;
14416 esac
14417 ;;
14418 freebsd* | dragonfly*)
14419 # FreeBSD uses GNU C++
14420 ;;
14421 hpux9* | hpux10* | hpux11*)
14422 case $cc_basename in
14423 CC*)
14424 lt_prog_compiler_wl_CXX='-Wl,'
14425 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14426 if test "$host_cpu" != ia64; then
14427 lt_prog_compiler_pic_CXX='+Z'
14428 fi
14429 ;;
14430 aCC*)
14431 lt_prog_compiler_wl_CXX='-Wl,'
14432 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14433 case $host_cpu in
14434 hppa*64*|ia64*)
14435 # +Z the default
14436 ;;
14437 *)
14438 lt_prog_compiler_pic_CXX='+Z'
14439 ;;
14440 esac
14441 ;;
14442 *)
14443 ;;
14444 esac
14445 ;;
14446 interix*)
14447 # This is c89, which is MS Visual C++ (no shared libs)
14448 # Anyone wants to do a port?
14449 ;;
14450 irix5* | irix6* | nonstopux*)
14451 case $cc_basename in
14452 CC*)
14453 lt_prog_compiler_wl_CXX='-Wl,'
14454 lt_prog_compiler_static_CXX='-non_shared'
14455 # CC pic flag -KPIC is the default.
14456 ;;
14457 *)
14458 ;;
14459 esac
14460 ;;
14461 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14462 case $cc_basename in
14463 KCC*)
14464 # KAI C++ Compiler
14465 lt_prog_compiler_wl_CXX='--backend -Wl,'
14466 lt_prog_compiler_pic_CXX='-fPIC'
14467 ;;
14468 ecpc* )
14469 # old Intel C++ for x86_64 which still supported -KPIC.
14470 lt_prog_compiler_wl_CXX='-Wl,'
14471 lt_prog_compiler_pic_CXX='-KPIC'
14472 lt_prog_compiler_static_CXX='-static'
14473 ;;
14474 icpc* )
14475 # Intel C++, used to be incompatible with GCC.
14476 # ICC 10 doesn't accept -KPIC any more.
14477 lt_prog_compiler_wl_CXX='-Wl,'
14478 lt_prog_compiler_pic_CXX='-fPIC'
14479 lt_prog_compiler_static_CXX='-static'
14480 ;;
14481 pgCC* | pgcpp*)
14482 # Portland Group C++ compiler
14483 lt_prog_compiler_wl_CXX='-Wl,'
14484 lt_prog_compiler_pic_CXX='-fpic'
14485 lt_prog_compiler_static_CXX='-Bstatic'
14486 ;;
14487 cxx*)
14488 # Compaq C++
14489 # Make sure the PIC flag is empty. It appears that all Alpha
14490 # Linux and Compaq Tru64 Unix objects are PIC.
14491 lt_prog_compiler_pic_CXX=
14492 lt_prog_compiler_static_CXX='-non_shared'
14493 ;;
14494 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14495 # IBM XL 8.0, 9.0 on PPC and BlueGene
14496 lt_prog_compiler_wl_CXX='-Wl,'
14497 lt_prog_compiler_pic_CXX='-qpic'
14498 lt_prog_compiler_static_CXX='-qstaticlink'
14499 ;;
14500 *)
14501 case `$CC -V 2>&1 | sed 5q` in
14502 *Sun\ C*)
14503 # Sun C++ 5.9
14504 lt_prog_compiler_pic_CXX='-KPIC'
14505 lt_prog_compiler_static_CXX='-Bstatic'
14506 lt_prog_compiler_wl_CXX='-Qoption ld '
14507 ;;
14508 esac
14509 ;;
14510 esac
14511 ;;
14512 lynxos*)
14513 ;;
14514 m88k*)
14515 ;;
14516 mvs*)
14517 case $cc_basename in
14518 cxx*)
14519 lt_prog_compiler_pic_CXX='-W c,exportall'
14520 ;;
14521 *)
14522 ;;
14523 esac
14524 ;;
14525 netbsd* | netbsdelf*-gnu)
14526 ;;
14527 *qnx* | *nto*)
14528 # QNX uses GNU C++, but need to define -shared option too, otherwise
14529 # it will coredump.
14530 lt_prog_compiler_pic_CXX='-fPIC -shared'
14531 ;;
14532 osf3* | osf4* | osf5*)
14533 case $cc_basename in
14534 KCC*)
14535 lt_prog_compiler_wl_CXX='--backend -Wl,'
14536 ;;
14537 RCC*)
14538 # Rational C++ 2.4.1
14539 lt_prog_compiler_pic_CXX='-pic'
14540 ;;
14541 cxx*)
14542 # Digital/Compaq C++
14543 lt_prog_compiler_wl_CXX='-Wl,'
14544 # Make sure the PIC flag is empty. It appears that all Alpha
14545 # Linux and Compaq Tru64 Unix objects are PIC.
14546 lt_prog_compiler_pic_CXX=
14547 lt_prog_compiler_static_CXX='-non_shared'
14548 ;;
14549 *)
14550 ;;
14551 esac
14552 ;;
14553 psos*)
14554 ;;
14555 solaris*)
14556 case $cc_basename in
14557 CC* | sunCC*)
14558 # Sun C++ 4.2, 5.x and Centerline C++
14559 lt_prog_compiler_pic_CXX='-KPIC'
14560 lt_prog_compiler_static_CXX='-Bstatic'
14561 lt_prog_compiler_wl_CXX='-Qoption ld '
14562 ;;
14563 gcx*)
14564 # Green Hills C++ Compiler
14565 lt_prog_compiler_pic_CXX='-PIC'
14566 ;;
14567 *)
14568 ;;
14569 esac
14570 ;;
14571 sunos4*)
14572 case $cc_basename in
14573 CC*)
14574 # Sun C++ 4.x
14575 lt_prog_compiler_pic_CXX='-pic'
14576 lt_prog_compiler_static_CXX='-Bstatic'
14577 ;;
14578 lcc*)
14579 # Lucid
14580 lt_prog_compiler_pic_CXX='-pic'
14581 ;;
14582 *)
14583 ;;
14584 esac
14585 ;;
14586 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14587 case $cc_basename in
14588 CC*)
14589 lt_prog_compiler_wl_CXX='-Wl,'
14590 lt_prog_compiler_pic_CXX='-KPIC'
14591 lt_prog_compiler_static_CXX='-Bstatic'
14592 ;;
14593 esac
14594 ;;
14595 tandem*)
14596 case $cc_basename in
14597 NCC*)
14598 # NonStop-UX NCC 3.20
14599 lt_prog_compiler_pic_CXX='-KPIC'
14600 ;;
14601 *)
14602 ;;
14603 esac
14604 ;;
14605 vxworks*)
14606 ;;
14607 *)
14608 lt_prog_compiler_can_build_shared_CXX=no
14609 ;;
14610 esac
14611 fi
14612
14613 case $host_os in
14614 # For platforms which do not support PIC, -DPIC is meaningless:
14615 *djgpp*)
14616 lt_prog_compiler_pic_CXX=
14617 ;;
14618 *)
14619 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14620 ;;
14621 esac
14622
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14624 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14625 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14626 $as_echo_n "(cached) " >&6
14627 else
14628 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14629 fi
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14631 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14632 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14633
14634 #
14635 # Check to make sure the PIC flag actually works.
14636 #
14637 if test -n "$lt_prog_compiler_pic_CXX"; then
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14639 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14640 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14641 $as_echo_n "(cached) " >&6
14642 else
14643 lt_cv_prog_compiler_pic_works_CXX=no
14644 ac_outfile=conftest.$ac_objext
14645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14646 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14647 # Insert the option either (1) after the last *FLAGS variable, or
14648 # (2) before a word containing "conftest.", or (3) at the end.
14649 # Note that $ac_compile itself does not contain backslashes and begins
14650 # with a dollar sign (not a hyphen), so the echo should work correctly.
14651 # The option is referenced via a variable to avoid confusing sed.
14652 lt_compile=`echo "$ac_compile" | $SED \
14653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14655 -e 's:$: $lt_compiler_flag:'`
14656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14657 (eval "$lt_compile" 2>conftest.err)
14658 ac_status=$?
14659 cat conftest.err >&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 if (exit $ac_status) && test -s "$ac_outfile"; then
14662 # The compiler can only warn and ignore the option if not recognized
14663 # So say no if there are warnings other than the usual output.
14664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14667 lt_cv_prog_compiler_pic_works_CXX=yes
14668 fi
14669 fi
14670 $RM conftest*
14671
14672 fi
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14674 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14675
14676 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14677 case $lt_prog_compiler_pic_CXX in
14678 "" | " "*) ;;
14679 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14680 esac
14681 else
14682 lt_prog_compiler_pic_CXX=
14683 lt_prog_compiler_can_build_shared_CXX=no
14684 fi
14685
14686 fi
14687
14688
14689
14690
14691
14692 #
14693 # Check to make sure the static flag actually works.
14694 #
14695 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14697 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14698 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14699 $as_echo_n "(cached) " >&6
14700 else
14701 lt_cv_prog_compiler_static_works_CXX=no
14702 save_LDFLAGS="$LDFLAGS"
14703 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14704 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14705 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14706 # The linker can only warn and ignore the option if not recognized
14707 # So say no if there are warnings
14708 if test -s conftest.err; then
14709 # Append any errors to the config.log.
14710 cat conftest.err 1>&5
14711 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14713 if diff conftest.exp conftest.er2 >/dev/null; then
14714 lt_cv_prog_compiler_static_works_CXX=yes
14715 fi
14716 else
14717 lt_cv_prog_compiler_static_works_CXX=yes
14718 fi
14719 fi
14720 $RM -r conftest*
14721 LDFLAGS="$save_LDFLAGS"
14722
14723 fi
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14725 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14726
14727 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14728 :
14729 else
14730 lt_prog_compiler_static_CXX=
14731 fi
14732
14733
14734
14735
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14737 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14738 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14739 $as_echo_n "(cached) " >&6
14740 else
14741 lt_cv_prog_compiler_c_o_CXX=no
14742 $RM -r conftest 2>/dev/null
14743 mkdir conftest
14744 cd conftest
14745 mkdir out
14746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14747
14748 lt_compiler_flag="-o out/conftest2.$ac_objext"
14749 # Insert the option either (1) after the last *FLAGS variable, or
14750 # (2) before a word containing "conftest.", or (3) at the end.
14751 # Note that $ac_compile itself does not contain backslashes and begins
14752 # with a dollar sign (not a hyphen), so the echo should work correctly.
14753 lt_compile=`echo "$ac_compile" | $SED \
14754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14756 -e 's:$: $lt_compiler_flag:'`
14757 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14758 (eval "$lt_compile" 2>out/conftest.err)
14759 ac_status=$?
14760 cat out/conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14763 then
14764 # The compiler can only warn and ignore the option if not recognized
14765 # So say no if there are warnings
14766 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14767 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14768 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14769 lt_cv_prog_compiler_c_o_CXX=yes
14770 fi
14771 fi
14772 chmod u+w . 2>&5
14773 $RM conftest*
14774 # SGI C++ compiler will create directory out/ii_files/ for
14775 # template instantiation
14776 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14777 $RM out/* && rmdir out
14778 cd ..
14779 $RM -r conftest
14780 $RM conftest*
14781
14782 fi
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14784 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14785
14786
14787
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14789 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14790 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14791 $as_echo_n "(cached) " >&6
14792 else
14793 lt_cv_prog_compiler_c_o_CXX=no
14794 $RM -r conftest 2>/dev/null
14795 mkdir conftest
14796 cd conftest
14797 mkdir out
14798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14799
14800 lt_compiler_flag="-o out/conftest2.$ac_objext"
14801 # Insert the option either (1) after the last *FLAGS variable, or
14802 # (2) before a word containing "conftest.", or (3) at the end.
14803 # Note that $ac_compile itself does not contain backslashes and begins
14804 # with a dollar sign (not a hyphen), so the echo should work correctly.
14805 lt_compile=`echo "$ac_compile" | $SED \
14806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14808 -e 's:$: $lt_compiler_flag:'`
14809 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14810 (eval "$lt_compile" 2>out/conftest.err)
14811 ac_status=$?
14812 cat out/conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14815 then
14816 # The compiler can only warn and ignore the option if not recognized
14817 # So say no if there are warnings
14818 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14819 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14820 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14821 lt_cv_prog_compiler_c_o_CXX=yes
14822 fi
14823 fi
14824 chmod u+w . 2>&5
14825 $RM conftest*
14826 # SGI C++ compiler will create directory out/ii_files/ for
14827 # template instantiation
14828 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14829 $RM out/* && rmdir out
14830 cd ..
14831 $RM -r conftest
14832 $RM conftest*
14833
14834 fi
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14836 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14837
14838
14839
14840
14841 hard_links="nottested"
14842 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14843 # do not overwrite the value of need_locks provided by the user
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14845 $as_echo_n "checking if we can lock with hard links... " >&6; }
14846 hard_links=yes
14847 $RM conftest*
14848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14849 touch conftest.a
14850 ln conftest.a conftest.b 2>&5 || hard_links=no
14851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14853 $as_echo "$hard_links" >&6; }
14854 if test "$hard_links" = no; then
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14856 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14857 need_locks=warn
14858 fi
14859 else
14860 need_locks=no
14861 fi
14862
14863
14864
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14866 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14867
14868 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14869 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14870 case $host_os in
14871 aix[4-9]*)
14872 # If we're using GNU nm, then we don't want the "-C" option.
14873 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14874 # Also, AIX nm treats weak defined symbols like other global defined
14875 # symbols, whereas GNU nm marks them as "W".
14876 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14877 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14878 else
14879 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14880 fi
14881 ;;
14882 pw32*)
14883 export_symbols_cmds_CXX="$ltdll_cmds"
14884 ;;
14885 cygwin* | mingw* | cegcc*)
14886 case $cc_basename in
14887 cl*)
14888 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14889 ;;
14890 *)
14891 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'
14892 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14893 ;;
14894 esac
14895 ;;
14896 linux* | k*bsd*-gnu | gnu*)
14897 link_all_deplibs_CXX=no
14898 ;;
14899 *)
14900 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14901 ;;
14902 esac
14903
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14905 $as_echo "$ld_shlibs_CXX" >&6; }
14906 test "$ld_shlibs_CXX" = no && can_build_shared=no
14907
14908 with_gnu_ld_CXX=$with_gnu_ld
14909
14910
14911
14912
14913
14914
14915 #
14916 # Do we need to explicitly link libc?
14917 #
14918 case "x$archive_cmds_need_lc_CXX" in
14919 x|xyes)
14920 # Assume -lc should be added
14921 archive_cmds_need_lc_CXX=yes
14922
14923 if test "$enable_shared" = yes && test "$GCC" = yes; then
14924 case $archive_cmds_CXX in
14925 *'~'*)
14926 # FIXME: we may have to deal with multi-command sequences.
14927 ;;
14928 '$CC '*)
14929 # Test whether the compiler implicitly links with -lc since on some
14930 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14931 # to ld, don't add -lc before -lgcc.
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14933 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14934 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14935 $as_echo_n "(cached) " >&6
14936 else
14937 $RM conftest*
14938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14939
14940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14941 (eval $ac_compile) 2>&5
14942 ac_status=$?
14943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14944 test $ac_status = 0; } 2>conftest.err; then
14945 soname=conftest
14946 lib=conftest
14947 libobjs=conftest.$ac_objext
14948 deplibs=
14949 wl=$lt_prog_compiler_wl_CXX
14950 pic_flag=$lt_prog_compiler_pic_CXX
14951 compiler_flags=-v
14952 linker_flags=-v
14953 verstring=
14954 output_objdir=.
14955 libname=conftest
14956 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14957 allow_undefined_flag_CXX=
14958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14959 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14960 ac_status=$?
14961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14962 test $ac_status = 0; }
14963 then
14964 lt_cv_archive_cmds_need_lc_CXX=no
14965 else
14966 lt_cv_archive_cmds_need_lc_CXX=yes
14967 fi
14968 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14969 else
14970 cat conftest.err 1>&5
14971 fi
14972 $RM conftest*
14973
14974 fi
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14976 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14977 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14978 ;;
14979 esac
14980 fi
14981 ;;
14982 esac
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15046 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15047
15048 library_names_spec=
15049 libname_spec='lib$name'
15050 soname_spec=
15051 shrext_cmds=".so"
15052 postinstall_cmds=
15053 postuninstall_cmds=
15054 finish_cmds=
15055 finish_eval=
15056 shlibpath_var=
15057 shlibpath_overrides_runpath=unknown
15058 version_type=none
15059 dynamic_linker="$host_os ld.so"
15060 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15061 need_lib_prefix=unknown
15062 hardcode_into_libs=no
15063
15064 # when you set need_version to no, make sure it does not cause -set_version
15065 # flags to be left without arguments
15066 need_version=unknown
15067
15068 case $host_os in
15069 aix3*)
15070 version_type=linux # correct to gnu/linux during the next big refactor
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15072 shlibpath_var=LIBPATH
15073
15074 # AIX 3 has no versioning support, so we append a major version to the name.
15075 soname_spec='${libname}${release}${shared_ext}$major'
15076 ;;
15077
15078 aix[4-9]*)
15079 version_type=linux # correct to gnu/linux during the next big refactor
15080 need_lib_prefix=no
15081 need_version=no
15082 hardcode_into_libs=yes
15083 if test "$host_cpu" = ia64; then
15084 # AIX 5 supports IA64
15085 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15086 shlibpath_var=LD_LIBRARY_PATH
15087 else
15088 # With GCC up to 2.95.x, collect2 would create an import file
15089 # for dependence libraries. The import file would start with
15090 # the line `#! .'. This would cause the generated library to
15091 # depend on `.', always an invalid library. This was fixed in
15092 # development snapshots of GCC prior to 3.0.
15093 case $host_os in
15094 aix4 | aix4.[01] | aix4.[01].*)
15095 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15096 echo ' yes '
15097 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15098 :
15099 else
15100 can_build_shared=no
15101 fi
15102 ;;
15103 esac
15104 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15105 # soname into executable. Probably we can add versioning support to
15106 # collect2, so additional links can be useful in future.
15107 if test "$aix_use_runtimelinking" = yes; then
15108 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15109 # instead of lib<name>.a to let people know that these are not
15110 # typical AIX shared libraries.
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112 else
15113 # We preserve .a as extension for shared libraries through AIX4.2
15114 # and later when we are not doing run time linking.
15115 library_names_spec='${libname}${release}.a $libname.a'
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 fi
15118 shlibpath_var=LIBPATH
15119 fi
15120 ;;
15121
15122 amigaos*)
15123 case $host_cpu in
15124 powerpc)
15125 # Since July 2007 AmigaOS4 officially supports .so libraries.
15126 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128 ;;
15129 m68k)
15130 library_names_spec='$libname.ixlibrary $libname.a'
15131 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15132 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
15133 ;;
15134 esac
15135 ;;
15136
15137 beos*)
15138 library_names_spec='${libname}${shared_ext}'
15139 dynamic_linker="$host_os ld.so"
15140 shlibpath_var=LIBRARY_PATH
15141 ;;
15142
15143 bsdi[45]*)
15144 version_type=linux # correct to gnu/linux during the next big refactor
15145 need_version=no
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147 soname_spec='${libname}${release}${shared_ext}$major'
15148 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15149 shlibpath_var=LD_LIBRARY_PATH
15150 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15151 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15152 # the default ld.so.conf also contains /usr/contrib/lib and
15153 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15154 # libtool to hard-code these into programs
15155 ;;
15156
15157 cygwin* | mingw* | pw32* | cegcc*)
15158 version_type=windows
15159 shrext_cmds=".dll"
15160 need_version=no
15161 need_lib_prefix=no
15162
15163 case $GCC,$cc_basename in
15164 yes,*)
15165 # gcc
15166 library_names_spec='$libname.dll.a'
15167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15168 postinstall_cmds='base_file=`basename \${file}`~
15169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15170 dldir=$destdir/`dirname \$dlpath`~
15171 test -d \$dldir || mkdir -p \$dldir~
15172 $install_prog $dir/$dlname \$dldir/$dlname~
15173 chmod a+x \$dldir/$dlname~
15174 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15175 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15176 fi'
15177 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15178 dlpath=$dir/\$dldll~
15179 $RM \$dlpath'
15180 shlibpath_overrides_runpath=yes
15181
15182 case $host_os in
15183 cygwin*)
15184 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15185 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15186
15187 ;;
15188 mingw* | cegcc*)
15189 # MinGW DLLs use traditional 'lib' prefix
15190 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15191 ;;
15192 pw32*)
15193 # pw32 DLLs use 'pw' prefix rather than 'lib'
15194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15195 ;;
15196 esac
15197 dynamic_linker='Win32 ld.exe'
15198 ;;
15199
15200 *,cl*)
15201 # Native MSVC
15202 libname_spec='$name'
15203 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15204 library_names_spec='${libname}.dll.lib'
15205
15206 case $build_os in
15207 mingw*)
15208 sys_lib_search_path_spec=
15209 lt_save_ifs=$IFS
15210 IFS=';'
15211 for lt_path in $LIB
15212 do
15213 IFS=$lt_save_ifs
15214 # Let DOS variable expansion print the short 8.3 style file name.
15215 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15216 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15217 done
15218 IFS=$lt_save_ifs
15219 # Convert to MSYS style.
15220 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15221 ;;
15222 cygwin*)
15223 # Convert to unix form, then to dos form, then back to unix form
15224 # but this time dos style (no spaces!) so that the unix form looks
15225 # like /cygdrive/c/PROGRA~1:/cygdr...
15226 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15227 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15228 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15229 ;;
15230 *)
15231 sys_lib_search_path_spec="$LIB"
15232 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15233 # It is most probably a Windows format PATH.
15234 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15235 else
15236 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15237 fi
15238 # FIXME: find the short name or the path components, as spaces are
15239 # common. (e.g. "Program Files" -> "PROGRA~1")
15240 ;;
15241 esac
15242
15243 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15244 postinstall_cmds='base_file=`basename \${file}`~
15245 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15246 dldir=$destdir/`dirname \$dlpath`~
15247 test -d \$dldir || mkdir -p \$dldir~
15248 $install_prog $dir/$dlname \$dldir/$dlname'
15249 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15250 dlpath=$dir/\$dldll~
15251 $RM \$dlpath'
15252 shlibpath_overrides_runpath=yes
15253 dynamic_linker='Win32 link.exe'
15254 ;;
15255
15256 *)
15257 # Assume MSVC wrapper
15258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15259 dynamic_linker='Win32 ld.exe'
15260 ;;
15261 esac
15262 # FIXME: first we should search . and the directory the executable is in
15263 shlibpath_var=PATH
15264 ;;
15265
15266 darwin* | rhapsody*)
15267 dynamic_linker="$host_os dyld"
15268 version_type=darwin
15269 need_lib_prefix=no
15270 need_version=no
15271 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15272 soname_spec='${libname}${release}${major}$shared_ext'
15273 shlibpath_overrides_runpath=yes
15274 shlibpath_var=DYLD_LIBRARY_PATH
15275 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15276
15277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15278 ;;
15279
15280 dgux*)
15281 version_type=linux # correct to gnu/linux during the next big refactor
15282 need_lib_prefix=no
15283 need_version=no
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15285 soname_spec='${libname}${release}${shared_ext}$major'
15286 shlibpath_var=LD_LIBRARY_PATH
15287 ;;
15288
15289 freebsd* | dragonfly*)
15290 # DragonFly does not have aout. When/if they implement a new
15291 # versioning mechanism, adjust this.
15292 if test -x /usr/bin/objformat; then
15293 objformat=`/usr/bin/objformat`
15294 else
15295 case $host_os in
15296 freebsd[23].*) objformat=aout ;;
15297 *) objformat=elf ;;
15298 esac
15299 fi
15300 version_type=freebsd-$objformat
15301 case $version_type in
15302 freebsd-elf*)
15303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15304 need_version=no
15305 need_lib_prefix=no
15306 ;;
15307 freebsd-*)
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15309 need_version=yes
15310 ;;
15311 esac
15312 shlibpath_var=LD_LIBRARY_PATH
15313 case $host_os in
15314 freebsd2.*)
15315 shlibpath_overrides_runpath=yes
15316 ;;
15317 freebsd3.[01]* | freebsdelf3.[01]*)
15318 shlibpath_overrides_runpath=yes
15319 hardcode_into_libs=yes
15320 ;;
15321 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15322 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15323 shlibpath_overrides_runpath=no
15324 hardcode_into_libs=yes
15325 ;;
15326 *) # from 4.6 on, and DragonFly
15327 shlibpath_overrides_runpath=yes
15328 hardcode_into_libs=yes
15329 ;;
15330 esac
15331 ;;
15332
15333 haiku*)
15334 version_type=linux # correct to gnu/linux during the next big refactor
15335 need_lib_prefix=no
15336 need_version=no
15337 dynamic_linker="$host_os runtime_loader"
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 shlibpath_var=LIBRARY_PATH
15341 shlibpath_overrides_runpath=yes
15342 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15343 hardcode_into_libs=yes
15344 ;;
15345
15346 hpux9* | hpux10* | hpux11*)
15347 # Give a soname corresponding to the major version so that dld.sl refuses to
15348 # link against other versions.
15349 version_type=sunos
15350 need_lib_prefix=no
15351 need_version=no
15352 case $host_cpu in
15353 ia64*)
15354 shrext_cmds='.so'
15355 hardcode_into_libs=yes
15356 dynamic_linker="$host_os dld.so"
15357 shlibpath_var=LD_LIBRARY_PATH
15358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 if test "X$HPUX_IA64_MODE" = X32; then
15362 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15363 else
15364 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15365 fi
15366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15367 ;;
15368 hppa*64*)
15369 shrext_cmds='.sl'
15370 hardcode_into_libs=yes
15371 dynamic_linker="$host_os dld.sl"
15372 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15375 soname_spec='${libname}${release}${shared_ext}$major'
15376 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15378 ;;
15379 *)
15380 shrext_cmds='.sl'
15381 dynamic_linker="$host_os dld.sl"
15382 shlibpath_var=SHLIB_PATH
15383 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385 soname_spec='${libname}${release}${shared_ext}$major'
15386 ;;
15387 esac
15388 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15389 postinstall_cmds='chmod 555 $lib'
15390 # or fails outright, so override atomically:
15391 install_override_mode=555
15392 ;;
15393
15394 interix[3-9]*)
15395 version_type=linux # correct to gnu/linux during the next big refactor
15396 need_lib_prefix=no
15397 need_version=no
15398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15399 soname_spec='${libname}${release}${shared_ext}$major'
15400 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15401 shlibpath_var=LD_LIBRARY_PATH
15402 shlibpath_overrides_runpath=no
15403 hardcode_into_libs=yes
15404 ;;
15405
15406 irix5* | irix6* | nonstopux*)
15407 case $host_os in
15408 nonstopux*) version_type=nonstopux ;;
15409 *)
15410 if test "$lt_cv_prog_gnu_ld" = yes; then
15411 version_type=linux # correct to gnu/linux during the next big refactor
15412 else
15413 version_type=irix
15414 fi ;;
15415 esac
15416 need_lib_prefix=no
15417 need_version=no
15418 soname_spec='${libname}${release}${shared_ext}$major'
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15420 case $host_os in
15421 irix5* | nonstopux*)
15422 libsuff= shlibsuff=
15423 ;;
15424 *)
15425 case $LD in # libtool.m4 will add one of these switches to LD
15426 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15427 libsuff= shlibsuff= libmagic=32-bit;;
15428 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15429 libsuff=32 shlibsuff=N32 libmagic=N32;;
15430 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15431 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15432 *) libsuff= shlibsuff= libmagic=never-match;;
15433 esac
15434 ;;
15435 esac
15436 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15437 shlibpath_overrides_runpath=no
15438 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15439 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15440 hardcode_into_libs=yes
15441 ;;
15442
15443 # No shared lib support for Linux oldld, aout, or coff.
15444 linux*oldld* | linux*aout* | linux*coff*)
15445 dynamic_linker=no
15446 ;;
15447
15448 # This must be glibc/ELF.
15449 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15450 version_type=linux # correct to gnu/linux during the next big refactor
15451 need_lib_prefix=no
15452 need_version=no
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15456 shlibpath_var=LD_LIBRARY_PATH
15457 shlibpath_overrides_runpath=no
15458
15459 # Some binutils ld are patched to set DT_RUNPATH
15460 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15461 $as_echo_n "(cached) " >&6
15462 else
15463 lt_cv_shlibpath_overrides_runpath=no
15464 save_LDFLAGS=$LDFLAGS
15465 save_libdir=$libdir
15466 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15467 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h. */
15470
15471 int
15472 main ()
15473 {
15474
15475 ;
15476 return 0;
15477 }
15478 _ACEOF
15479 if ac_fn_cxx_try_link "$LINENO"; then :
15480 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15481 lt_cv_shlibpath_overrides_runpath=yes
15482 fi
15483 fi
15484 rm -f core conftest.err conftest.$ac_objext \
15485 conftest$ac_exeext conftest.$ac_ext
15486 LDFLAGS=$save_LDFLAGS
15487 libdir=$save_libdir
15488
15489 fi
15490
15491 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15492
15493 # This implies no fast_install, which is unacceptable.
15494 # Some rework will be needed to allow for fast_install
15495 # before this can be enabled.
15496 hardcode_into_libs=yes
15497
15498 # Append ld.so.conf contents to the search path
15499 if test -f /etc/ld.so.conf; then
15500 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' ' '`
15501 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15502 fi
15503
15504 # We used to test for /lib/ld.so.1 and disable shared libraries on
15505 # powerpc, because MkLinux only supported shared libraries with the
15506 # GNU dynamic linker. Since this was broken with cross compilers,
15507 # most powerpc-linux boxes support dynamic linking these days and
15508 # people can always --disable-shared, the test was removed, and we
15509 # assume the GNU/Linux dynamic linker is in use.
15510 dynamic_linker='GNU/Linux ld.so'
15511 ;;
15512
15513 netbsdelf*-gnu)
15514 version_type=linux
15515 need_lib_prefix=no
15516 need_version=no
15517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15518 soname_spec='${libname}${release}${shared_ext}$major'
15519 shlibpath_var=LD_LIBRARY_PATH
15520 shlibpath_overrides_runpath=no
15521 hardcode_into_libs=yes
15522 dynamic_linker='NetBSD ld.elf_so'
15523 ;;
15524
15525 netbsd*)
15526 version_type=sunos
15527 need_lib_prefix=no
15528 need_version=no
15529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15532 dynamic_linker='NetBSD (a.out) ld.so'
15533 else
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 dynamic_linker='NetBSD ld.elf_so'
15537 fi
15538 shlibpath_var=LD_LIBRARY_PATH
15539 shlibpath_overrides_runpath=yes
15540 hardcode_into_libs=yes
15541 ;;
15542
15543 newsos6)
15544 version_type=linux # correct to gnu/linux during the next big refactor
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 shlibpath_overrides_runpath=yes
15548 ;;
15549
15550 *nto* | *qnx*)
15551 version_type=qnx
15552 need_lib_prefix=no
15553 need_version=no
15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15555 soname_spec='${libname}${release}${shared_ext}$major'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 shlibpath_overrides_runpath=no
15558 hardcode_into_libs=yes
15559 dynamic_linker='ldqnx.so'
15560 ;;
15561
15562 openbsd*)
15563 version_type=sunos
15564 sys_lib_dlsearch_path_spec="/usr/lib"
15565 need_lib_prefix=no
15566 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15567 case $host_os in
15568 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15569 *) need_version=no ;;
15570 esac
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15573 shlibpath_var=LD_LIBRARY_PATH
15574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15575 case $host_os in
15576 openbsd2.[89] | openbsd2.[89].*)
15577 shlibpath_overrides_runpath=no
15578 ;;
15579 *)
15580 shlibpath_overrides_runpath=yes
15581 ;;
15582 esac
15583 else
15584 shlibpath_overrides_runpath=yes
15585 fi
15586 ;;
15587
15588 os2*)
15589 libname_spec='$name'
15590 shrext_cmds=".dll"
15591 need_lib_prefix=no
15592 library_names_spec='$libname${shared_ext} $libname.a'
15593 dynamic_linker='OS/2 ld.exe'
15594 shlibpath_var=LIBPATH
15595 ;;
15596
15597 osf3* | osf4* | osf5*)
15598 version_type=osf
15599 need_lib_prefix=no
15600 need_version=no
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15605 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15606 ;;
15607
15608 rdos*)
15609 dynamic_linker=no
15610 ;;
15611
15612 solaris*)
15613 version_type=linux # correct to gnu/linux during the next big refactor
15614 need_lib_prefix=no
15615 need_version=no
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 soname_spec='${libname}${release}${shared_ext}$major'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 shlibpath_overrides_runpath=yes
15620 hardcode_into_libs=yes
15621 # ldd complains unless libraries are executable
15622 postinstall_cmds='chmod +x $lib'
15623 ;;
15624
15625 sunos4*)
15626 version_type=sunos
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15628 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 shlibpath_overrides_runpath=yes
15631 if test "$with_gnu_ld" = yes; then
15632 need_lib_prefix=no
15633 fi
15634 need_version=yes
15635 ;;
15636
15637 sysv4 | sysv4.3*)
15638 version_type=linux # correct to gnu/linux during the next big refactor
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640 soname_spec='${libname}${release}${shared_ext}$major'
15641 shlibpath_var=LD_LIBRARY_PATH
15642 case $host_vendor in
15643 sni)
15644 shlibpath_overrides_runpath=no
15645 need_lib_prefix=no
15646 runpath_var=LD_RUN_PATH
15647 ;;
15648 siemens)
15649 need_lib_prefix=no
15650 ;;
15651 motorola)
15652 need_lib_prefix=no
15653 need_version=no
15654 shlibpath_overrides_runpath=no
15655 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15656 ;;
15657 esac
15658 ;;
15659
15660 sysv4*MP*)
15661 if test -d /usr/nec ;then
15662 version_type=linux # correct to gnu/linux during the next big refactor
15663 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15664 soname_spec='$libname${shared_ext}.$major'
15665 shlibpath_var=LD_LIBRARY_PATH
15666 fi
15667 ;;
15668
15669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15670 version_type=freebsd-elf
15671 need_lib_prefix=no
15672 need_version=no
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15674 soname_spec='${libname}${release}${shared_ext}$major'
15675 shlibpath_var=LD_LIBRARY_PATH
15676 shlibpath_overrides_runpath=yes
15677 hardcode_into_libs=yes
15678 if test "$with_gnu_ld" = yes; then
15679 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15680 else
15681 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15682 case $host_os in
15683 sco3.2v5*)
15684 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15685 ;;
15686 esac
15687 fi
15688 sys_lib_dlsearch_path_spec='/usr/lib'
15689 ;;
15690
15691 tpf*)
15692 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15693 version_type=linux # correct to gnu/linux during the next big refactor
15694 need_lib_prefix=no
15695 need_version=no
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 shlibpath_overrides_runpath=no
15699 hardcode_into_libs=yes
15700 ;;
15701
15702 uts4*)
15703 version_type=linux # correct to gnu/linux during the next big refactor
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705 soname_spec='${libname}${release}${shared_ext}$major'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 ;;
15708
15709 *)
15710 dynamic_linker=no
15711 ;;
15712 esac
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15714 $as_echo "$dynamic_linker" >&6; }
15715 test "$dynamic_linker" = no && can_build_shared=no
15716
15717 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15718 if test "$GCC" = yes; then
15719 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15720 fi
15721
15722 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15723 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15724 fi
15725 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15726 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15727 fi
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15767 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15768 hardcode_action_CXX=
15769 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15770 test -n "$runpath_var_CXX" ||
15771 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15772
15773 # We can hardcode non-existent directories.
15774 if test "$hardcode_direct_CXX" != no &&
15775 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15776 # have to relink, otherwise we might link with an installed library
15777 # when we should be linking with a yet-to-be-installed one
15778 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15779 test "$hardcode_minus_L_CXX" != no; then
15780 # Linking always hardcodes the temporary library directory.
15781 hardcode_action_CXX=relink
15782 else
15783 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15784 hardcode_action_CXX=immediate
15785 fi
15786 else
15787 # We cannot hardcode anything, or else we can only hardcode existing
15788 # directories.
15789 hardcode_action_CXX=unsupported
15790 fi
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15792 $as_echo "$hardcode_action_CXX" >&6; }
15793
15794 if test "$hardcode_action_CXX" = relink ||
15795 test "$inherit_rpath_CXX" = yes; then
15796 # Fast installation is not supported
15797 enable_fast_install=no
15798 elif test "$shlibpath_overrides_runpath" = yes ||
15799 test "$enable_shared" = no; then
15800 # Fast installation is not necessary
15801 enable_fast_install=needless
15802 fi
15803
15804
15805
15806
15807
15808
15809
15810 fi # test -n "$compiler"
15811
15812 CC=$lt_save_CC
15813 CFLAGS=$lt_save_CFLAGS
15814 LDCXX=$LD
15815 LD=$lt_save_LD
15816 GCC=$lt_save_GCC
15817 with_gnu_ld=$lt_save_with_gnu_ld
15818 lt_cv_path_LDCXX=$lt_cv_path_LD
15819 lt_cv_path_LD=$lt_save_path_LD
15820 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15821 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15822 fi # test "$_lt_caught_CXX_error" != yes
15823
15824 ac_ext=c
15825 ac_cpp='$CPP $CPPFLAGS'
15826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844 ac_config_commands="$ac_config_commands libtool"
15845
15846
15847
15848
15849 # Only expand once:
15850
15851
15852
15853 # Check whether --enable-compiler-coverage was given.
15854 if test "${enable_compiler_coverage+set}" = set; then :
15855 enableval=$enable_compiler_coverage; if test "x$enable_compiler_coverage" = "xyes"; then
15856 if test "x$GCC" = "xyes"; then
15857 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
15858 fi
15859 fi
15860 fi
15861
15862 # Check whether --enable-linker-optimisations was given.
15863 if test "${enable_linker_optimisations+set}" = set; then :
15864 enableval=$enable_linker_optimisations; if test "x$enable_linker_optimisations" = "xno"; then
15865 LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O[0-9]*\b//g"`
15866 else
15867 LDFLAGS="$LDFLAGS -Wl,-O1"
15868 fi
15869 else
15870 LDFLAGS="$LDFLAGS -Wl,-O1"
15871 fi
15872
15873 # Check whether --enable-compiler-warnings was given.
15874 if test "${enable_compiler_warnings+set}" = set; then :
15875 enableval=$enable_compiler_warnings; if test "x$enable_compiler_warnings" = "xyes"; then
15876 if test "x$GCC" = "xyes"; then
15877 CFLAGS="-Wall -Werror $CFLAGS"
15878 fi
15879 if test "x$GXX" = "xyes"; then
15880 CXXFLAGS="-Wall -Werror $CXXFLAGS"
15881 fi
15882 fi
15883 fi
15884
15885 # Check whether --enable-compiler-optimisations was given.
15886 if test "${enable_compiler_optimisations+set}" = set; then :
15887 enableval=$enable_compiler_optimisations; if test "x$enable_compiler_optimisations" = "xno"; then
15888 CFLAGS=`echo "$CFLAGS" | sed -e "s/ -O[1-9]*\b/ -O0/g"`
15889 fi
15890 fi
15891
15892
15893
15894 ac_config_files="$ac_config_files Makefile libgfshare.pc man/gfsplit.1 man/gfcombine.1 man/gfshare.7 man/libgfshare.5"
15895
15896
15897 ac_config_headers="$ac_config_headers config.h"
15898
15899
15900 cat >confcache <<\_ACEOF
15901 # This file is a shell script that caches the results of configure
15902 # tests run on this system so they can be shared between configure
15903 # scripts and configure runs, see configure's option --config-cache.
15904 # It is not useful on other systems. If it contains results you don't
15905 # want to keep, you may remove or edit it.
15906 #
15907 # config.status only pays attention to the cache file if you give it
15908 # the --recheck option to rerun configure.
15909 #
15910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15912 # following values.
15913
15914 _ACEOF
15915
15916 # The following way of writing the cache mishandles newlines in values,
15917 # but we know of no workaround that is simple, portable, and efficient.
15918 # So, we kill variables containing newlines.
15919 # Ultrix sh set writes to stderr and can't be redirected directly,
15920 # and sets the high bit in the cache file unless we assign to the vars.
15921 (
15922 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15923 eval ac_val=\$$ac_var
15924 case $ac_val in #(
15925 *${as_nl}*)
15926 case $ac_var in #(
15927 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15928 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15929 esac
15930 case $ac_var in #(
15931 _ | IFS | as_nl) ;; #(
15932 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15933 *) { eval $ac_var=; unset $ac_var;} ;;
15934 esac ;;
15935 esac
15936 done
15937
15938 (set) 2>&1 |
15939 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15940 *${as_nl}ac_space=\ *)
15941 # `set' does not quote correctly, so add quotes: double-quote
15942 # substitution turns \\\\ into \\, and sed turns \\ into \.
15943 sed -n \
15944 "s/'/'\\\\''/g;
15945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15946 ;; #(
15947 *)
15948 # `set' quotes correctly as required by POSIX, so do not add quotes.
15949 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15950 ;;
15951 esac |
15952 sort
15953 ) |
15954 sed '
15955 /^ac_cv_env_/b end
15956 t clear
15957 :clear
15958 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15959 t end
15960 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15961 :end' >>confcache
15962 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15963 if test -w "$cache_file"; then
15964 if test "x$cache_file" != "x/dev/null"; then
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15966 $as_echo "$as_me: updating cache $cache_file" >&6;}
15967 if test ! -f "$cache_file" || test -h "$cache_file"; then
15968 cat confcache >"$cache_file"
15969 else
15970 case $cache_file in #(
15971 */* | ?:*)
15972 mv -f confcache "$cache_file"$$ &&
15973 mv -f "$cache_file"$$ "$cache_file" ;; #(
15974 *)
15975 mv -f confcache "$cache_file" ;;
15976 esac
15977 fi
15978 fi
15979 else
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15981 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15982 fi
15983 fi
15984 rm -f confcache
15985
15986 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15987 # Let make expand exec_prefix.
15988 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15989
15990 DEFS=-DHAVE_CONFIG_H
15991
15992 ac_libobjs=
15993 ac_ltlibobjs=
15994 U=
15995 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15996 # 1. Remove the extension, and $U if already installed.
15997 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15998 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15999 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16000 # will be set to the directory where LIBOBJS objects are built.
16001 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16002 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16003 done
16004 LIBOBJS=$ac_libobjs
16005
16006 LTLIBOBJS=$ac_ltlibobjs
16007
16008
16009 if test -n "$EXEEXT"; then
16010 am__EXEEXT_TRUE=
16011 am__EXEEXT_FALSE='#'
16012 else
16013 am__EXEEXT_TRUE='#'
16014 am__EXEEXT_FALSE=
16015 fi
16016
16017 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16018 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16020 fi
16021 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16022 as_fn_error $? "conditional \"AMDEP\" was never defined.
16023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16024 fi
16025 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16026 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16028 fi
16029 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16030 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16032 fi
16033 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16034 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16036 fi
16037
16038 : "${CONFIG_STATUS=./config.status}"
16039 ac_write_fail=0
16040 ac_clean_files_save=$ac_clean_files
16041 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16043 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16044 as_write_fail=0
16045 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16046 #! $SHELL
16047 # Generated by $as_me.
16048 # Run this file to recreate the current configuration.
16049 # Compiler output produced by configure, useful for debugging
16050 # configure, is in config.log if it exists.
16051
16052 debug=false
16053 ac_cs_recheck=false
16054 ac_cs_silent=false
16055
16056 SHELL=\${CONFIG_SHELL-$SHELL}
16057 export SHELL
16058 _ASEOF
16059 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16060 ## -------------------- ##
16061 ## M4sh Initialization. ##
16062 ## -------------------- ##
16063
16064 # Be more Bourne compatible
16065 DUALCASE=1; export DUALCASE # for MKS sh
16066 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16067 emulate sh
16068 NULLCMD=:
16069 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16070 # is contrary to our usage. Disable this feature.
16071 alias -g '${1+"$@"}'='"$@"'
16072 setopt NO_GLOB_SUBST
16073 else
16074 case `(set -o) 2>/dev/null` in #(
16075 *posix*) :
16076 set -o posix ;; #(
16077 *) :
16078 ;;
16079 esac
16080 fi
16081
16082
16083 as_nl='
16084 '
16085 export as_nl
16086 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16087 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16088 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16089 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16090 # Prefer a ksh shell builtin over an external printf program on Solaris,
16091 # but without wasting forks for bash or zsh.
16092 if test -z "$BASH_VERSION$ZSH_VERSION" \
16093 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16094 as_echo='print -r --'
16095 as_echo_n='print -rn --'
16096 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16097 as_echo='printf %s\n'
16098 as_echo_n='printf %s'
16099 else
16100 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16101 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16102 as_echo_n='/usr/ucb/echo -n'
16103 else
16104 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16105 as_echo_n_body='eval
16106 arg=$1;
16107 case $arg in #(
16108 *"$as_nl"*)
16109 expr "X$arg" : "X\\(.*\\)$as_nl";
16110 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16111 esac;
16112 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16113 '
16114 export as_echo_n_body
16115 as_echo_n='sh -c $as_echo_n_body as_echo'
16116 fi
16117 export as_echo_body
16118 as_echo='sh -c $as_echo_body as_echo'
16119 fi
16120
16121 # The user is always right.
16122 if test "${PATH_SEPARATOR+set}" != set; then
16123 PATH_SEPARATOR=:
16124 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16125 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16126 PATH_SEPARATOR=';'
16127 }
16128 fi
16129
16130
16131 # IFS
16132 # We need space, tab and new line, in precisely that order. Quoting is
16133 # there to prevent editors from complaining about space-tab.
16134 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16135 # splitting by setting IFS to empty value.)
16136 IFS=" "" $as_nl"
16137
16138 # Find who we are. Look in the path if we contain no directory separator.
16139 as_myself=
16140 case $0 in #((
16141 *[\\/]* ) as_myself=$0 ;;
16142 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16143 for as_dir in $PATH
16144 do
16145 IFS=$as_save_IFS
16146 test -z "$as_dir" && as_dir=.
16147 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16148 done
16149 IFS=$as_save_IFS
16150
16151 ;;
16152 esac
16153 # We did not find ourselves, most probably we were run as `sh COMMAND'
16154 # in which case we are not to be found in the path.
16155 if test "x$as_myself" = x; then
16156 as_myself=$0
16157 fi
16158 if test ! -f "$as_myself"; then
16159 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16160 exit 1
16161 fi
16162
16163 # Unset variables that we do not need and which cause bugs (e.g. in
16164 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16165 # suppresses any "Segmentation fault" message there. '((' could
16166 # trigger a bug in pdksh 5.2.14.
16167 for as_var in BASH_ENV ENV MAIL MAILPATH
16168 do eval test x\${$as_var+set} = xset \
16169 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16170 done
16171 PS1='$ '
16172 PS2='> '
16173 PS4='+ '
16174
16175 # NLS nuisances.
16176 LC_ALL=C
16177 export LC_ALL
16178 LANGUAGE=C
16179 export LANGUAGE
16180
16181 # CDPATH.
16182 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16183
16184
16185 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16186 # ----------------------------------------
16187 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16188 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16189 # script with STATUS, using 1 if that was 0.
16190 as_fn_error ()
16191 {
16192 as_status=$1; test $as_status -eq 0 && as_status=1
16193 if test "$4"; then
16194 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16195 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16196 fi
16197 $as_echo "$as_me: error: $2" >&2
16198 as_fn_exit $as_status
16199 } # as_fn_error
16200
16201
16202 # as_fn_set_status STATUS
16203 # -----------------------
16204 # Set $? to STATUS, without forking.
16205 as_fn_set_status ()
16206 {
16207 return $1
16208 } # as_fn_set_status
16209
16210 # as_fn_exit STATUS
16211 # -----------------
16212 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16213 as_fn_exit ()
16214 {
16215 set +e
16216 as_fn_set_status $1
16217 exit $1
16218 } # as_fn_exit
16219
16220 # as_fn_unset VAR
16221 # ---------------
16222 # Portably unset VAR.
16223 as_fn_unset ()
16224 {
16225 { eval $1=; unset $1;}
16226 }
16227 as_unset=as_fn_unset
16228 # as_fn_append VAR VALUE
16229 # ----------------------
16230 # Append the text in VALUE to the end of the definition contained in VAR. Take
16231 # advantage of any shell optimizations that allow amortized linear growth over
16232 # repeated appends, instead of the typical quadratic growth present in naive
16233 # implementations.
16234 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16235 eval 'as_fn_append ()
16236 {
16237 eval $1+=\$2
16238 }'
16239 else
16240 as_fn_append ()
16241 {
16242 eval $1=\$$1\$2
16243 }
16244 fi # as_fn_append
16245
16246 # as_fn_arith ARG...
16247 # ------------------
16248 # Perform arithmetic evaluation on the ARGs, and store the result in the
16249 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16250 # must be portable across $(()) and expr.
16251 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16252 eval 'as_fn_arith ()
16253 {
16254 as_val=$(( $* ))
16255 }'
16256 else
16257 as_fn_arith ()
16258 {
16259 as_val=`expr "$@" || test $? -eq 1`
16260 }
16261 fi # as_fn_arith
16262
16263
16264 if expr a : '\(a\)' >/dev/null 2>&1 &&
16265 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16266 as_expr=expr
16267 else
16268 as_expr=false
16269 fi
16270
16271 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16272 as_basename=basename
16273 else
16274 as_basename=false
16275 fi
16276
16277 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16278 as_dirname=dirname
16279 else
16280 as_dirname=false
16281 fi
16282
16283 as_me=`$as_basename -- "$0" ||
16284 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16285 X"$0" : 'X\(//\)$' \| \
16286 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16287 $as_echo X/"$0" |
16288 sed '/^.*\/\([^/][^/]*\)\/*$/{
16289 s//\1/
16290 q
16291 }
16292 /^X\/\(\/\/\)$/{
16293 s//\1/
16294 q
16295 }
16296 /^X\/\(\/\).*/{
16297 s//\1/
16298 q
16299 }
16300 s/.*/./; q'`
16301
16302 # Avoid depending upon Character Ranges.
16303 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16306 as_cr_digits='0123456789'
16307 as_cr_alnum=$as_cr_Letters$as_cr_digits
16308
16309 ECHO_C= ECHO_N= ECHO_T=
16310 case `echo -n x` in #(((((
16311 -n*)
16312 case `echo 'xy\c'` in
16313 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16314 xy) ECHO_C='\c';;
16315 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16316 ECHO_T=' ';;
16317 esac;;
16318 *)
16319 ECHO_N='-n';;
16320 esac
16321
16322 rm -f conf$$ conf$$.exe conf$$.file
16323 if test -d conf$$.dir; then
16324 rm -f conf$$.dir/conf$$.file
16325 else
16326 rm -f conf$$.dir
16327 mkdir conf$$.dir 2>/dev/null
16328 fi
16329 if (echo >conf$$.file) 2>/dev/null; then
16330 if ln -s conf$$.file conf$$ 2>/dev/null; then
16331 as_ln_s='ln -s'
16332 # ... but there are two gotchas:
16333 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16334 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16335 # In both cases, we have to default to `cp -pR'.
16336 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16337 as_ln_s='cp -pR'
16338 elif ln conf$$.file conf$$ 2>/dev/null; then
16339 as_ln_s=ln
16340 else
16341 as_ln_s='cp -pR'
16342 fi
16343 else
16344 as_ln_s='cp -pR'
16345 fi
16346 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16347 rmdir conf$$.dir 2>/dev/null
16348
16349
16350 # as_fn_mkdir_p
16351 # -------------
16352 # Create "$as_dir" as a directory, including parents if necessary.
16353 as_fn_mkdir_p ()
16354 {
16355
16356 case $as_dir in #(
16357 -*) as_dir=./$as_dir;;
16358 esac
16359 test -d "$as_dir" || eval $as_mkdir_p || {
16360 as_dirs=
16361 while :; do
16362 case $as_dir in #(
16363 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16364 *) as_qdir=$as_dir;;
16365 esac
16366 as_dirs="'$as_qdir' $as_dirs"
16367 as_dir=`$as_dirname -- "$as_dir" ||
16368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16369 X"$as_dir" : 'X\(//\)[^/]' \| \
16370 X"$as_dir" : 'X\(//\)$' \| \
16371 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16372 $as_echo X"$as_dir" |
16373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16374 s//\1/
16375 q
16376 }
16377 /^X\(\/\/\)[^/].*/{
16378 s//\1/
16379 q
16380 }
16381 /^X\(\/\/\)$/{
16382 s//\1/
16383 q
16384 }
16385 /^X\(\/\).*/{
16386 s//\1/
16387 q
16388 }
16389 s/.*/./; q'`
16390 test -d "$as_dir" && break
16391 done
16392 test -z "$as_dirs" || eval "mkdir $as_dirs"
16393 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16394
16395
16396 } # as_fn_mkdir_p
16397 if mkdir -p . 2>/dev/null; then
16398 as_mkdir_p='mkdir -p "$as_dir"'
16399 else
16400 test -d ./-p && rmdir ./-p
16401 as_mkdir_p=false
16402 fi
16403
16404
16405 # as_fn_executable_p FILE
16406 # -----------------------
16407 # Test if FILE is an executable regular file.
16408 as_fn_executable_p ()
16409 {
16410 test -f "$1" && test -x "$1"
16411 } # as_fn_executable_p
16412 as_test_x='test -x'
16413 as_executable_p=as_fn_executable_p
16414
16415 # Sed expression to map a string onto a valid CPP name.
16416 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16417
16418 # Sed expression to map a string onto a valid variable name.
16419 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16420
16421
16422 exec 6>&1
16423 ## ----------------------------------- ##
16424 ## Main body of $CONFIG_STATUS script. ##
16425 ## ----------------------------------- ##
16426 _ASEOF
16427 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16428
16429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16430 # Save the log message, to keep $0 and so on meaningful, and to
16431 # report actual input values of CONFIG_FILES etc. instead of their
16432 # values after options handling.
16433 ac_log="
16434 This file was extended by libgfshare $as_me 2.0.0, which was
16435 generated by GNU Autoconf 2.69. Invocation command line was
16436
16437 CONFIG_FILES = $CONFIG_FILES
16438 CONFIG_HEADERS = $CONFIG_HEADERS
16439 CONFIG_LINKS = $CONFIG_LINKS
16440 CONFIG_COMMANDS = $CONFIG_COMMANDS
16441 $ $0 $@
16442
16443 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16444 "
16445
16446 _ACEOF
16447
16448 case $ac_config_files in *"
16449 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16450 esac
16451
16452 case $ac_config_headers in *"
16453 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16454 esac
16455
16456
16457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16458 # Files that config.status was made for.
16459 config_files="$ac_config_files"
16460 config_headers="$ac_config_headers"
16461 config_commands="$ac_config_commands"
16462
16463 _ACEOF
16464
16465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16466 ac_cs_usage="\
16467 \`$as_me' instantiates files and other configuration actions
16468 from templates according to the current configuration. Unless the files
16469 and actions are specified as TAGs, all are instantiated by default.
16470
16471 Usage: $0 [OPTION]... [TAG]...
16472
16473 -h, --help print this help, then exit
16474 -V, --version print version number and configuration settings, then exit
16475 --config print configuration, then exit
16476 -q, --quiet, --silent
16477 do not print progress messages
16478 -d, --debug don't remove temporary files
16479 --recheck update $as_me by reconfiguring in the same conditions
16480 --file=FILE[:TEMPLATE]
16481 instantiate the configuration file FILE
16482 --header=FILE[:TEMPLATE]
16483 instantiate the configuration header FILE
16484
16485 Configuration files:
16486 $config_files
16487
16488 Configuration headers:
16489 $config_headers
16490
16491 Configuration commands:
16492 $config_commands
16493
16494 Report bugs to <[email protected]>."
16495
16496 _ACEOF
16497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16498 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16499 ac_cs_version="\\
16500 libgfshare config.status 2.0.0
16501 configured by $0, generated by GNU Autoconf 2.69,
16502 with options \\"\$ac_cs_config\\"
16503
16504 Copyright (C) 2012 Free Software Foundation, Inc.
16505 This config.status script is free software; the Free Software Foundation
16506 gives unlimited permission to copy, distribute and modify it."
16507
16508 ac_pwd='$ac_pwd'
16509 srcdir='$srcdir'
16510 INSTALL='$INSTALL'
16511 MKDIR_P='$MKDIR_P'
16512 AWK='$AWK'
16513 test -n "\$AWK" || AWK=awk
16514 _ACEOF
16515
16516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16517 # The default lists apply if the user does not specify any file.
16518 ac_need_defaults=:
16519 while test $# != 0
16520 do
16521 case $1 in
16522 --*=?*)
16523 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16524 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16525 ac_shift=:
16526 ;;
16527 --*=)
16528 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16529 ac_optarg=
16530 ac_shift=:
16531 ;;
16532 *)
16533 ac_option=$1
16534 ac_optarg=$2
16535 ac_shift=shift
16536 ;;
16537 esac
16538
16539 case $ac_option in
16540 # Handling of the options.
16541 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16542 ac_cs_recheck=: ;;
16543 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16544 $as_echo "$ac_cs_version"; exit ;;
16545 --config | --confi | --conf | --con | --co | --c )
16546 $as_echo "$ac_cs_config"; exit ;;
16547 --debug | --debu | --deb | --de | --d | -d )
16548 debug=: ;;
16549 --file | --fil | --fi | --f )
16550 $ac_shift
16551 case $ac_optarg in
16552 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16553 '') as_fn_error $? "missing file argument" ;;
16554 esac
16555 as_fn_append CONFIG_FILES " '$ac_optarg'"
16556 ac_need_defaults=false;;
16557 --header | --heade | --head | --hea )
16558 $ac_shift
16559 case $ac_optarg in
16560 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16561 esac
16562 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16563 ac_need_defaults=false;;
16564 --he | --h)
16565 # Conflict between --help and --header
16566 as_fn_error $? "ambiguous option: \`$1'
16567 Try \`$0 --help' for more information.";;
16568 --help | --hel | -h )
16569 $as_echo "$ac_cs_usage"; exit ;;
16570 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16571 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16572 ac_cs_silent=: ;;
16573
16574 # This is an error.
16575 -*) as_fn_error $? "unrecognized option: \`$1'
16576 Try \`$0 --help' for more information." ;;
16577
16578 *) as_fn_append ac_config_targets " $1"
16579 ac_need_defaults=false ;;
16580
16581 esac
16582 shift
16583 done
16584
16585 ac_configure_extra_args=
16586
16587 if $ac_cs_silent; then
16588 exec 6>/dev/null
16589 ac_configure_extra_args="$ac_configure_extra_args --silent"
16590 fi
16591
16592 _ACEOF
16593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16594 if \$ac_cs_recheck; then
16595 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16596 shift
16597 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16598 CONFIG_SHELL='$SHELL'
16599 export CONFIG_SHELL
16600 exec "\$@"
16601 fi
16602
16603 _ACEOF
16604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16605 exec 5>>config.log
16606 {
16607 echo
16608 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16609 ## Running $as_me. ##
16610 _ASBOX
16611 $as_echo "$ac_log"
16612 } >&5
16613
16614 _ACEOF
16615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16616 #
16617 # INIT-COMMANDS
16618 #
16619 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16620
16621
16622 # The HP-UX ksh and POSIX shell print the target directory to stdout
16623 # if CDPATH is set.
16624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16625
16626 sed_quote_subst='$sed_quote_subst'
16627 double_quote_subst='$double_quote_subst'
16628 delay_variable_subst='$delay_variable_subst'
16629 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16630 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16631 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16632 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16633 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16634 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16635 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16636 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16637 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16638 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16639 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16640 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16641 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16642 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16643 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16644 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16645 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16646 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16647 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16648 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16649 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16650 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16651 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16652 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16653 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16654 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16655 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16656 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16657 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16658 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16659 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16660 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16661 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16662 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16663 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16664 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16665 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16666 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16667 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16668 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16669 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16670 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16671 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16672 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16673 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16674 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16675 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16676 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16677 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16678 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16679 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16680 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16681 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16682 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16683 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16684 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16685 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"`'
16686 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16687 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16688 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16689 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16690 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16691 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16692 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16693 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16694 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16695 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16696 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16697 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16698 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16699 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16700 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16701 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16702 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16703 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16704 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16705 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16706 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16707 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16708 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16709 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16710 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16711 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16712 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16713 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16714 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16715 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16716 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16717 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16718 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16719 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16720 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16721 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16722 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16723 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16724 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16725 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16726 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16727 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16728 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16729 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16730 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16731 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16732 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16733 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16734 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16735 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16736 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16737 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16738 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16739 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16740 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16741 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16742 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16743 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16744 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16745 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16746 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16747 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16748 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16749 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16750 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16751 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16752 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16753 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16754 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16755 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16756 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16757 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16758 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16759 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16760 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16761 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16762 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16763 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16764 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16765 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16766 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16767 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16768 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16769 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16770 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16771 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16772 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16773 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16774 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16775 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16776 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16777 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16778 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16779 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16780 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16781 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16782 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16783 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16784 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16785 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16786 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16787 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16788 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16789 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16790 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16791 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16792 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16793 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16794 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16795 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16796 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16797 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16798 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16799 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16800 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16801 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16802 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16803 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16804 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16805 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16806 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16807 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16808 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16809 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16810 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16811 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16812 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16813
16814 LTCC='$LTCC'
16815 LTCFLAGS='$LTCFLAGS'
16816 compiler='$compiler_DEFAULT'
16817
16818 # A function that is used when there is no print builtin or printf.
16819 func_fallback_echo ()
16820 {
16821 eval 'cat <<_LTECHO_EOF
16822 \$1
16823 _LTECHO_EOF'
16824 }
16825
16826 # Quote evaled strings.
16827 for var in SHELL \
16828 ECHO \
16829 PATH_SEPARATOR \
16830 SED \
16831 GREP \
16832 EGREP \
16833 FGREP \
16834 LD \
16835 NM \
16836 LN_S \
16837 lt_SP2NL \
16838 lt_NL2SP \
16839 reload_flag \
16840 OBJDUMP \
16841 deplibs_check_method \
16842 file_magic_cmd \
16843 file_magic_glob \
16844 want_nocaseglob \
16845 DLLTOOL \
16846 sharedlib_from_linklib_cmd \
16847 AR \
16848 AR_FLAGS \
16849 archiver_list_spec \
16850 STRIP \
16851 RANLIB \
16852 CC \
16853 CFLAGS \
16854 compiler \
16855 lt_cv_sys_global_symbol_pipe \
16856 lt_cv_sys_global_symbol_to_cdecl \
16857 lt_cv_sys_global_symbol_to_c_name_address \
16858 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16859 nm_file_list_spec \
16860 lt_prog_compiler_no_builtin_flag \
16861 lt_prog_compiler_pic \
16862 lt_prog_compiler_wl \
16863 lt_prog_compiler_static \
16864 lt_cv_prog_compiler_c_o \
16865 need_locks \
16866 MANIFEST_TOOL \
16867 DSYMUTIL \
16868 NMEDIT \
16869 LIPO \
16870 OTOOL \
16871 OTOOL64 \
16872 shrext_cmds \
16873 export_dynamic_flag_spec \
16874 whole_archive_flag_spec \
16875 compiler_needs_object \
16876 with_gnu_ld \
16877 allow_undefined_flag \
16878 no_undefined_flag \
16879 hardcode_libdir_flag_spec \
16880 hardcode_libdir_separator \
16881 exclude_expsyms \
16882 include_expsyms \
16883 file_list_spec \
16884 variables_saved_for_relink \
16885 libname_spec \
16886 library_names_spec \
16887 soname_spec \
16888 install_override_mode \
16889 finish_eval \
16890 old_striplib \
16891 striplib \
16892 compiler_lib_search_dirs \
16893 predep_objects \
16894 postdep_objects \
16895 predeps \
16896 postdeps \
16897 compiler_lib_search_path \
16898 LD_CXX \
16899 reload_flag_CXX \
16900 compiler_CXX \
16901 lt_prog_compiler_no_builtin_flag_CXX \
16902 lt_prog_compiler_pic_CXX \
16903 lt_prog_compiler_wl_CXX \
16904 lt_prog_compiler_static_CXX \
16905 lt_cv_prog_compiler_c_o_CXX \
16906 export_dynamic_flag_spec_CXX \
16907 whole_archive_flag_spec_CXX \
16908 compiler_needs_object_CXX \
16909 with_gnu_ld_CXX \
16910 allow_undefined_flag_CXX \
16911 no_undefined_flag_CXX \
16912 hardcode_libdir_flag_spec_CXX \
16913 hardcode_libdir_separator_CXX \
16914 exclude_expsyms_CXX \
16915 include_expsyms_CXX \
16916 file_list_spec_CXX \
16917 compiler_lib_search_dirs_CXX \
16918 predep_objects_CXX \
16919 postdep_objects_CXX \
16920 predeps_CXX \
16921 postdeps_CXX \
16922 compiler_lib_search_path_CXX; do
16923 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16924 *[\\\\\\\`\\"\\\$]*)
16925 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16926 ;;
16927 *)
16928 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16929 ;;
16930 esac
16931 done
16932
16933 # Double-quote double-evaled strings.
16934 for var in reload_cmds \
16935 old_postinstall_cmds \
16936 old_postuninstall_cmds \
16937 old_archive_cmds \
16938 extract_expsyms_cmds \
16939 old_archive_from_new_cmds \
16940 old_archive_from_expsyms_cmds \
16941 archive_cmds \
16942 archive_expsym_cmds \
16943 module_cmds \
16944 module_expsym_cmds \
16945 export_symbols_cmds \
16946 prelink_cmds \
16947 postlink_cmds \
16948 postinstall_cmds \
16949 postuninstall_cmds \
16950 finish_cmds \
16951 sys_lib_search_path_spec \
16952 sys_lib_dlsearch_path_spec \
16953 reload_cmds_CXX \
16954 old_archive_cmds_CXX \
16955 old_archive_from_new_cmds_CXX \
16956 old_archive_from_expsyms_cmds_CXX \
16957 archive_cmds_CXX \
16958 archive_expsym_cmds_CXX \
16959 module_cmds_CXX \
16960 module_expsym_cmds_CXX \
16961 export_symbols_cmds_CXX \
16962 prelink_cmds_CXX \
16963 postlink_cmds_CXX; do
16964 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16965 *[\\\\\\\`\\"\\\$]*)
16966 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16967 ;;
16968 *)
16969 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16970 ;;
16971 esac
16972 done
16973
16974 ac_aux_dir='$ac_aux_dir'
16975 xsi_shell='$xsi_shell'
16976 lt_shell_append='$lt_shell_append'
16977
16978 # See if we are running on zsh, and set the options which allow our
16979 # commands through without removal of \ escapes INIT.
16980 if test -n "\${ZSH_VERSION+set}" ; then
16981 setopt NO_GLOB_SUBST
16982 fi
16983
16984
16985 PACKAGE='$PACKAGE'
16986 VERSION='$VERSION'
16987 TIMESTAMP='$TIMESTAMP'
16988 RM='$RM'
16989 ofile='$ofile'
16990
16991
16992
16993
16994
16995
16996 _ACEOF
16997
16998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16999
17000 # Handling of arguments.
17001 for ac_config_target in $ac_config_targets
17002 do
17003 case $ac_config_target in
17004 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17005 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17006 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17007 "libgfshare.pc") CONFIG_FILES="$CONFIG_FILES libgfshare.pc" ;;
17008 "man/gfsplit.1") CONFIG_FILES="$CONFIG_FILES man/gfsplit.1" ;;
17009 "man/gfcombine.1") CONFIG_FILES="$CONFIG_FILES man/gfcombine.1" ;;
17010 "man/gfshare.7") CONFIG_FILES="$CONFIG_FILES man/gfshare.7" ;;
17011 "man/libgfshare.5") CONFIG_FILES="$CONFIG_FILES man/libgfshare.5" ;;
17012 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17013
17014 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17015 esac
17016 done
17017
17018
17019 # If the user did not use the arguments to specify the items to instantiate,
17020 # then the envvar interface is used. Set only those that are not.
17021 # We use the long form for the default assignment because of an extremely
17022 # bizarre bug on SunOS 4.1.3.
17023 if $ac_need_defaults; then
17024 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17025 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17026 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17027 fi
17028
17029 # Have a temporary directory for convenience. Make it in the build tree
17030 # simply because there is no reason against having it here, and in addition,
17031 # creating and moving files from /tmp can sometimes cause problems.
17032 # Hook for its removal unless debugging.
17033 # Note that there is a small window in which the directory will not be cleaned:
17034 # after its creation but before its name has been assigned to `$tmp'.
17035 $debug ||
17036 {
17037 tmp= ac_tmp=
17038 trap 'exit_status=$?
17039 : "${ac_tmp:=$tmp}"
17040 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17041 ' 0
17042 trap 'as_fn_exit 1' 1 2 13 15
17043 }
17044 # Create a (secure) tmp directory for tmp files.
17045
17046 {
17047 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17048 test -d "$tmp"
17049 } ||
17050 {
17051 tmp=./conf$$-$RANDOM
17052 (umask 077 && mkdir "$tmp")
17053 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17054 ac_tmp=$tmp
17055
17056 # Set up the scripts for CONFIG_FILES section.
17057 # No need to generate them if there are no CONFIG_FILES.
17058 # This happens for instance with `./config.status config.h'.
17059 if test -n "$CONFIG_FILES"; then
17060
17061
17062 ac_cr=`echo X | tr X '\015'`
17063 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17064 # But we know of no other shell where ac_cr would be empty at this
17065 # point, so we can use a bashism as a fallback.
17066 if test "x$ac_cr" = x; then
17067 eval ac_cr=\$\'\\r\'
17068 fi
17069 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17070 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17071 ac_cs_awk_cr='\\r'
17072 else
17073 ac_cs_awk_cr=$ac_cr
17074 fi
17075
17076 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17077 _ACEOF
17078
17079
17080 {
17081 echo "cat >conf$$subs.awk <<_ACEOF" &&
17082 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17083 echo "_ACEOF"
17084 } >conf$$subs.sh ||
17085 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17086 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17087 ac_delim='%!_!# '
17088 for ac_last_try in false false false false false :; do
17089 . ./conf$$subs.sh ||
17090 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17091
17092 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17093 if test $ac_delim_n = $ac_delim_num; then
17094 break
17095 elif $ac_last_try; then
17096 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17097 else
17098 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17099 fi
17100 done
17101 rm -f conf$$subs.sh
17102
17103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17104 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17105 _ACEOF
17106 sed -n '
17107 h
17108 s/^/S["/; s/!.*/"]=/
17109 p
17110 g
17111 s/^[^!]*!//
17112 :repl
17113 t repl
17114 s/'"$ac_delim"'$//
17115 t delim
17116 :nl
17117 h
17118 s/\(.\{148\}\)..*/\1/
17119 t more1
17120 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17121 p
17122 n
17123 b repl
17124 :more1
17125 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17126 p
17127 g
17128 s/.\{148\}//
17129 t nl
17130 :delim
17131 h
17132 s/\(.\{148\}\)..*/\1/
17133 t more2
17134 s/["\\]/\\&/g; s/^/"/; s/$/"/
17135 p
17136 b
17137 :more2
17138 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17139 p
17140 g
17141 s/.\{148\}//
17142 t delim
17143 ' <conf$$subs.awk | sed '
17144 /^[^""]/{
17145 N
17146 s/\n//
17147 }
17148 ' >>$CONFIG_STATUS || ac_write_fail=1
17149 rm -f conf$$subs.awk
17150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17151 _ACAWK
17152 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17153 for (key in S) S_is_set[key] = 1
17154 FS = ""
17155
17156 }
17157 {
17158 line = $ 0
17159 nfields = split(line, field, "@")
17160 substed = 0
17161 len = length(field[1])
17162 for (i = 2; i < nfields; i++) {
17163 key = field[i]
17164 keylen = length(key)
17165 if (S_is_set[key]) {
17166 value = S[key]
17167 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17168 len += length(value) + length(field[++i])
17169 substed = 1
17170 } else
17171 len += 1 + keylen
17172 }
17173
17174 print line
17175 }
17176
17177 _ACAWK
17178 _ACEOF
17179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17180 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17181 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17182 else
17183 cat
17184 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17185 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17186 _ACEOF
17187
17188 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17189 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17190 # trailing colons and then remove the whole line if VPATH becomes empty
17191 # (actually we leave an empty line to preserve line numbers).
17192 if test "x$srcdir" = x.; then
17193 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17194 h
17195 s///
17196 s/^/:/
17197 s/[ ]*$/:/
17198 s/:\$(srcdir):/:/g
17199 s/:\${srcdir}:/:/g
17200 s/:@srcdir@:/:/g
17201 s/^:*//
17202 s/:*$//
17203 x
17204 s/\(=[ ]*\).*/\1/
17205 G
17206 s/\n//
17207 s/^[^=]*=[ ]*$//
17208 }'
17209 fi
17210
17211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17212 fi # test -n "$CONFIG_FILES"
17213
17214 # Set up the scripts for CONFIG_HEADERS section.
17215 # No need to generate them if there are no CONFIG_HEADERS.
17216 # This happens for instance with `./config.status Makefile'.
17217 if test -n "$CONFIG_HEADERS"; then
17218 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17219 BEGIN {
17220 _ACEOF
17221
17222 # Transform confdefs.h into an awk script `defines.awk', embedded as
17223 # here-document in config.status, that substitutes the proper values into
17224 # config.h.in to produce config.h.
17225
17226 # Create a delimiter string that does not exist in confdefs.h, to ease
17227 # handling of long lines.
17228 ac_delim='%!_!# '
17229 for ac_last_try in false false :; do
17230 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17231 if test -z "$ac_tt"; then
17232 break
17233 elif $ac_last_try; then
17234 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17235 else
17236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17237 fi
17238 done
17239
17240 # For the awk script, D is an array of macro values keyed by name,
17241 # likewise P contains macro parameters if any. Preserve backslash
17242 # newline sequences.
17243
17244 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17245 sed -n '
17246 s/.\{148\}/&'"$ac_delim"'/g
17247 t rset
17248 :rset
17249 s/^[ ]*#[ ]*define[ ][ ]*/ /
17250 t def
17251 d
17252 :def
17253 s/\\$//
17254 t bsnl
17255 s/["\\]/\\&/g
17256 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17257 D["\1"]=" \3"/p
17258 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17259 d
17260 :bsnl
17261 s/["\\]/\\&/g
17262 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17263 D["\1"]=" \3\\\\\\n"\\/p
17264 t cont
17265 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17266 t cont
17267 d
17268 :cont
17269 n
17270 s/.\{148\}/&'"$ac_delim"'/g
17271 t clear
17272 :clear
17273 s/\\$//
17274 t bsnlc
17275 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17276 d
17277 :bsnlc
17278 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17279 b cont
17280 ' <confdefs.h | sed '
17281 s/'"$ac_delim"'/"\\\
17282 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17283
17284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17285 for (key in D) D_is_set[key] = 1
17286 FS = ""
17287 }
17288 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17289 line = \$ 0
17290 split(line, arg, " ")
17291 if (arg[1] == "#") {
17292 defundef = arg[2]
17293 mac1 = arg[3]
17294 } else {
17295 defundef = substr(arg[1], 2)
17296 mac1 = arg[2]
17297 }
17298 split(mac1, mac2, "(") #)
17299 macro = mac2[1]
17300 prefix = substr(line, 1, index(line, defundef) - 1)
17301 if (D_is_set[macro]) {
17302 # Preserve the white space surrounding the "#".
17303 print prefix "define", macro P[macro] D[macro]
17304 next
17305 } else {
17306 # Replace #undef with comments. This is necessary, for example,
17307 # in the case of _POSIX_SOURCE, which is predefined and required
17308 # on some systems where configure will not decide to define it.
17309 if (defundef == "undef") {
17310 print "/*", prefix defundef, macro, "*/"
17311 next
17312 }
17313 }
17314 }
17315 { print }
17316 _ACAWK
17317 _ACEOF
17318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17319 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17320 fi # test -n "$CONFIG_HEADERS"
17321
17322
17323 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17324 shift
17325 for ac_tag
17326 do
17327 case $ac_tag in
17328 :[FHLC]) ac_mode=$ac_tag; continue;;
17329 esac
17330 case $ac_mode$ac_tag in
17331 :[FHL]*:*);;
17332 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17333 :[FH]-) ac_tag=-:-;;
17334 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17335 esac
17336 ac_save_IFS=$IFS
17337 IFS=:
17338 set x $ac_tag
17339 IFS=$ac_save_IFS
17340 shift
17341 ac_file=$1
17342 shift
17343
17344 case $ac_mode in
17345 :L) ac_source=$1;;
17346 :[FH])
17347 ac_file_inputs=
17348 for ac_f
17349 do
17350 case $ac_f in
17351 -) ac_f="$ac_tmp/stdin";;
17352 *) # Look for the file first in the build tree, then in the source tree
17353 # (if the path is not absolute). The absolute path cannot be DOS-style,
17354 # because $ac_f cannot contain `:'.
17355 test -f "$ac_f" ||
17356 case $ac_f in
17357 [\\/$]*) false;;
17358 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17359 esac ||
17360 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17361 esac
17362 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17363 as_fn_append ac_file_inputs " '$ac_f'"
17364 done
17365
17366 # Let's still pretend it is `configure' which instantiates (i.e., don't
17367 # use $as_me), people would be surprised to read:
17368 # /* config.h. Generated by config.status. */
17369 configure_input='Generated from '`
17370 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17371 `' by configure.'
17372 if test x"$ac_file" != x-; then
17373 configure_input="$ac_file. $configure_input"
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17375 $as_echo "$as_me: creating $ac_file" >&6;}
17376 fi
17377 # Neutralize special characters interpreted by sed in replacement strings.
17378 case $configure_input in #(
17379 *\&* | *\|* | *\\* )
17380 ac_sed_conf_input=`$as_echo "$configure_input" |
17381 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17382 *) ac_sed_conf_input=$configure_input;;
17383 esac
17384
17385 case $ac_tag in
17386 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17388 esac
17389 ;;
17390 esac
17391
17392 ac_dir=`$as_dirname -- "$ac_file" ||
17393 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17394 X"$ac_file" : 'X\(//\)[^/]' \| \
17395 X"$ac_file" : 'X\(//\)$' \| \
17396 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17397 $as_echo X"$ac_file" |
17398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17399 s//\1/
17400 q
17401 }
17402 /^X\(\/\/\)[^/].*/{
17403 s//\1/
17404 q
17405 }
17406 /^X\(\/\/\)$/{
17407 s//\1/
17408 q
17409 }
17410 /^X\(\/\).*/{
17411 s//\1/
17412 q
17413 }
17414 s/.*/./; q'`
17415 as_dir="$ac_dir"; as_fn_mkdir_p
17416 ac_builddir=.
17417
17418 case "$ac_dir" in
17419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17420 *)
17421 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17422 # A ".." for each directory in $ac_dir_suffix.
17423 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17424 case $ac_top_builddir_sub in
17425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17427 esac ;;
17428 esac
17429 ac_abs_top_builddir=$ac_pwd
17430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17431 # for backward compatibility:
17432 ac_top_builddir=$ac_top_build_prefix
17433
17434 case $srcdir in
17435 .) # We are building in place.
17436 ac_srcdir=.
17437 ac_top_srcdir=$ac_top_builddir_sub
17438 ac_abs_top_srcdir=$ac_pwd ;;
17439 [\\/]* | ?:[\\/]* ) # Absolute name.
17440 ac_srcdir=$srcdir$ac_dir_suffix;
17441 ac_top_srcdir=$srcdir
17442 ac_abs_top_srcdir=$srcdir ;;
17443 *) # Relative name.
17444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17445 ac_top_srcdir=$ac_top_build_prefix$srcdir
17446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17447 esac
17448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17449
17450
17451 case $ac_mode in
17452 :F)
17453 #
17454 # CONFIG_FILE
17455 #
17456
17457 case $INSTALL in
17458 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17459 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17460 esac
17461 ac_MKDIR_P=$MKDIR_P
17462 case $MKDIR_P in
17463 [\\/$]* | ?:[\\/]* ) ;;
17464 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17465 esac
17466 _ACEOF
17467
17468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17469 # If the template does not know about datarootdir, expand it.
17470 # FIXME: This hack should be removed a few years after 2.60.
17471 ac_datarootdir_hack=; ac_datarootdir_seen=
17472 ac_sed_dataroot='
17473 /datarootdir/ {
17474 p
17475 q
17476 }
17477 /@datadir@/p
17478 /@docdir@/p
17479 /@infodir@/p
17480 /@localedir@/p
17481 /@mandir@/p'
17482 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17483 *datarootdir*) ac_datarootdir_seen=yes;;
17484 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17486 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17487 _ACEOF
17488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17489 ac_datarootdir_hack='
17490 s&@datadir@&$datadir&g
17491 s&@docdir@&$docdir&g
17492 s&@infodir@&$infodir&g
17493 s&@localedir@&$localedir&g
17494 s&@mandir@&$mandir&g
17495 s&\\\${datarootdir}&$datarootdir&g' ;;
17496 esac
17497 _ACEOF
17498
17499 # Neutralize VPATH when `$srcdir' = `.'.
17500 # Shell code in configure.ac might set extrasub.
17501 # FIXME: do we really want to maintain this feature?
17502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17503 ac_sed_extra="$ac_vpsub
17504 $extrasub
17505 _ACEOF
17506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17507 :t
17508 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17509 s|@configure_input@|$ac_sed_conf_input|;t t
17510 s&@top_builddir@&$ac_top_builddir_sub&;t t
17511 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17512 s&@srcdir@&$ac_srcdir&;t t
17513 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17514 s&@top_srcdir@&$ac_top_srcdir&;t t
17515 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17516 s&@builddir@&$ac_builddir&;t t
17517 s&@abs_builddir@&$ac_abs_builddir&;t t
17518 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17519 s&@INSTALL@&$ac_INSTALL&;t t
17520 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17521 $ac_datarootdir_hack
17522 "
17523 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17524 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17525
17526 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17527 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17528 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17529 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17531 which seems to be undefined. Please make sure it is defined" >&5
17532 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17533 which seems to be undefined. Please make sure it is defined" >&2;}
17534
17535 rm -f "$ac_tmp/stdin"
17536 case $ac_file in
17537 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17538 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17539 esac \
17540 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17541 ;;
17542 :H)
17543 #
17544 # CONFIG_HEADER
17545 #
17546 if test x"$ac_file" != x-; then
17547 {
17548 $as_echo "/* $configure_input */" \
17549 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17550 } >"$ac_tmp/config.h" \
17551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17552 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17554 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17555 else
17556 rm -f "$ac_file"
17557 mv "$ac_tmp/config.h" "$ac_file" \
17558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17559 fi
17560 else
17561 $as_echo "/* $configure_input */" \
17562 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17563 || as_fn_error $? "could not create -" "$LINENO" 5
17564 fi
17565 # Compute "$ac_file"'s index in $config_headers.
17566 _am_arg="$ac_file"
17567 _am_stamp_count=1
17568 for _am_header in $config_headers :; do
17569 case $_am_header in
17570 $_am_arg | $_am_arg:* )
17571 break ;;
17572 * )
17573 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17574 esac
17575 done
17576 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17577 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17578 X"$_am_arg" : 'X\(//\)[^/]' \| \
17579 X"$_am_arg" : 'X\(//\)$' \| \
17580 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17581 $as_echo X"$_am_arg" |
17582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17583 s//\1/
17584 q
17585 }
17586 /^X\(\/\/\)[^/].*/{
17587 s//\1/
17588 q
17589 }
17590 /^X\(\/\/\)$/{
17591 s//\1/
17592 q
17593 }
17594 /^X\(\/\).*/{
17595 s//\1/
17596 q
17597 }
17598 s/.*/./; q'`/stamp-h$_am_stamp_count
17599 ;;
17600
17601 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17602 $as_echo "$as_me: executing $ac_file commands" >&6;}
17603 ;;
17604 esac
17605
17606
17607 case $ac_file$ac_mode in
17608 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17609 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17610 # are listed without --file. Let's play safe and only enable the eval
17611 # if we detect the quoting.
17612 case $CONFIG_FILES in
17613 *\'*) eval set x "$CONFIG_FILES" ;;
17614 *) set x $CONFIG_FILES ;;
17615 esac
17616 shift
17617 for mf
17618 do
17619 # Strip MF so we end up with the name of the file.
17620 mf=`echo "$mf" | sed -e 's/:.*$//'`
17621 # Check whether this is an Automake generated Makefile or not.
17622 # We used to match only the files named `Makefile.in', but
17623 # some people rename them; so instead we look at the file content.
17624 # Grep'ing the first line is not enough: some people post-process
17625 # each Makefile.in and add a new line on top of each file to say so.
17626 # Grep'ing the whole file is not good either: AIX grep has a line
17627 # limit of 2048, but all sed's we know have understand at least 4000.
17628 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17629 dirpart=`$as_dirname -- "$mf" ||
17630 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17631 X"$mf" : 'X\(//\)[^/]' \| \
17632 X"$mf" : 'X\(//\)$' \| \
17633 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17634 $as_echo X"$mf" |
17635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17636 s//\1/
17637 q
17638 }
17639 /^X\(\/\/\)[^/].*/{
17640 s//\1/
17641 q
17642 }
17643 /^X\(\/\/\)$/{
17644 s//\1/
17645 q
17646 }
17647 /^X\(\/\).*/{
17648 s//\1/
17649 q
17650 }
17651 s/.*/./; q'`
17652 else
17653 continue
17654 fi
17655 # Extract the definition of DEPDIR, am__include, and am__quote
17656 # from the Makefile without running `make'.
17657 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17658 test -z "$DEPDIR" && continue
17659 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17660 test -z "am__include" && continue
17661 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17662 # When using ansi2knr, U may be empty or an underscore; expand it
17663 U=`sed -n 's/^U = //p' < "$mf"`
17664 # Find all dependency output files, they are included files with
17665 # $(DEPDIR) in their names. We invoke sed twice because it is the
17666 # simplest approach to changing $(DEPDIR) to its actual value in the
17667 # expansion.
17668 for file in `sed -n "
17669 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17670 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17671 # Make sure the directory exists.
17672 test -f "$dirpart/$file" && continue
17673 fdir=`$as_dirname -- "$file" ||
17674 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17675 X"$file" : 'X\(//\)[^/]' \| \
17676 X"$file" : 'X\(//\)$' \| \
17677 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17678 $as_echo X"$file" |
17679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17680 s//\1/
17681 q
17682 }
17683 /^X\(\/\/\)[^/].*/{
17684 s//\1/
17685 q
17686 }
17687 /^X\(\/\/\)$/{
17688 s//\1/
17689 q
17690 }
17691 /^X\(\/\).*/{
17692 s//\1/
17693 q
17694 }
17695 s/.*/./; q'`
17696 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17697 # echo "creating $dirpart/$file"
17698 echo '# dummy' > "$dirpart/$file"
17699 done
17700 done
17701 }
17702 ;;
17703 "libtool":C)
17704
17705 # See if we are running on zsh, and set the options which allow our
17706 # commands through without removal of \ escapes.
17707 if test -n "${ZSH_VERSION+set}" ; then
17708 setopt NO_GLOB_SUBST
17709 fi
17710
17711 cfgfile="${ofile}T"
17712 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17713 $RM "$cfgfile"
17714
17715 cat <<_LT_EOF >> "$cfgfile"
17716 #! $SHELL
17717
17718 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17719 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17720 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17721 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17722 #
17723 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17724 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17725 # Foundation, Inc.
17726 # Written by Gordon Matzigkeit, 1996
17727 #
17728 # This file is part of GNU Libtool.
17729 #
17730 # GNU Libtool is free software; you can redistribute it and/or
17731 # modify it under the terms of the GNU General Public License as
17732 # published by the Free Software Foundation; either version 2 of
17733 # the License, or (at your option) any later version.
17734 #
17735 # As a special exception to the GNU General Public License,
17736 # if you distribute this file as part of a program or library that
17737 # is built using GNU Libtool, you may include this file under the
17738 # same distribution terms that you use for the rest of that program.
17739 #
17740 # GNU Libtool is distributed in the hope that it will be useful,
17741 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17742 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17743 # GNU General Public License for more details.
17744 #
17745 # You should have received a copy of the GNU General Public License
17746 # along with GNU Libtool; see the file COPYING. If not, a copy
17747 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17748 # obtained by writing to the Free Software Foundation, Inc.,
17749 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17750
17751
17752 # The names of the tagged configurations supported by this script.
17753 available_tags="CXX "
17754
17755 # ### BEGIN LIBTOOL CONFIG
17756
17757 # Which release of libtool.m4 was used?
17758 macro_version=$macro_version
17759 macro_revision=$macro_revision
17760
17761 # Whether or not to build shared libraries.
17762 build_libtool_libs=$enable_shared
17763
17764 # Whether or not to build static libraries.
17765 build_old_libs=$enable_static
17766
17767 # What type of objects to build.
17768 pic_mode=$pic_mode
17769
17770 # Whether or not to optimize for fast installation.
17771 fast_install=$enable_fast_install
17772
17773 # Shell to use when invoking shell scripts.
17774 SHELL=$lt_SHELL
17775
17776 # An echo program that protects backslashes.
17777 ECHO=$lt_ECHO
17778
17779 # The PATH separator for the build system.
17780 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17781
17782 # The host system.
17783 host_alias=$host_alias
17784 host=$host
17785 host_os=$host_os
17786
17787 # The build system.
17788 build_alias=$build_alias
17789 build=$build
17790 build_os=$build_os
17791
17792 # A sed program that does not truncate output.
17793 SED=$lt_SED
17794
17795 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17796 Xsed="\$SED -e 1s/^X//"
17797
17798 # A grep program that handles long lines.
17799 GREP=$lt_GREP
17800
17801 # An ERE matcher.
17802 EGREP=$lt_EGREP
17803
17804 # A literal string matcher.
17805 FGREP=$lt_FGREP
17806
17807 # A BSD- or MS-compatible name lister.
17808 NM=$lt_NM
17809
17810 # Whether we need soft or hard links.
17811 LN_S=$lt_LN_S
17812
17813 # What is the maximum length of a command?
17814 max_cmd_len=$max_cmd_len
17815
17816 # Object file suffix (normally "o").
17817 objext=$ac_objext
17818
17819 # Executable file suffix (normally "").
17820 exeext=$exeext
17821
17822 # whether the shell understands "unset".
17823 lt_unset=$lt_unset
17824
17825 # turn spaces into newlines.
17826 SP2NL=$lt_lt_SP2NL
17827
17828 # turn newlines into spaces.
17829 NL2SP=$lt_lt_NL2SP
17830
17831 # convert \$build file names to \$host format.
17832 to_host_file_cmd=$lt_cv_to_host_file_cmd
17833
17834 # convert \$build files to toolchain format.
17835 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17836
17837 # An object symbol dumper.
17838 OBJDUMP=$lt_OBJDUMP
17839
17840 # Method to check whether dependent libraries are shared objects.
17841 deplibs_check_method=$lt_deplibs_check_method
17842
17843 # Command to use when deplibs_check_method = "file_magic".
17844 file_magic_cmd=$lt_file_magic_cmd
17845
17846 # How to find potential files when deplibs_check_method = "file_magic".
17847 file_magic_glob=$lt_file_magic_glob
17848
17849 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17850 want_nocaseglob=$lt_want_nocaseglob
17851
17852 # DLL creation program.
17853 DLLTOOL=$lt_DLLTOOL
17854
17855 # Command to associate shared and link libraries.
17856 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17857
17858 # The archiver.
17859 AR=$lt_AR
17860
17861 # Flags to create an archive.
17862 AR_FLAGS=$lt_AR_FLAGS
17863
17864 # How to feed a file listing to the archiver.
17865 archiver_list_spec=$lt_archiver_list_spec
17866
17867 # A symbol stripping program.
17868 STRIP=$lt_STRIP
17869
17870 # Commands used to install an old-style archive.
17871 RANLIB=$lt_RANLIB
17872 old_postinstall_cmds=$lt_old_postinstall_cmds
17873 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17874
17875 # Whether to use a lock for old archive extraction.
17876 lock_old_archive_extraction=$lock_old_archive_extraction
17877
17878 # A C compiler.
17879 LTCC=$lt_CC
17880
17881 # LTCC compiler flags.
17882 LTCFLAGS=$lt_CFLAGS
17883
17884 # Take the output of nm and produce a listing of raw symbols and C names.
17885 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17886
17887 # Transform the output of nm in a proper C declaration.
17888 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17889
17890 # Transform the output of nm in a C name address pair.
17891 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17892
17893 # Transform the output of nm in a C name address pair when lib prefix is needed.
17894 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17895
17896 # Specify filename containing input files for \$NM.
17897 nm_file_list_spec=$lt_nm_file_list_spec
17898
17899 # The root where to search for dependent libraries,and in which our libraries should be installed.
17900 lt_sysroot=$lt_sysroot
17901
17902 # The name of the directory that contains temporary libtool files.
17903 objdir=$objdir
17904
17905 # Used to examine libraries when file_magic_cmd begins with "file".
17906 MAGIC_CMD=$MAGIC_CMD
17907
17908 # Must we lock files when doing compilation?
17909 need_locks=$lt_need_locks
17910
17911 # Manifest tool.
17912 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17913
17914 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17915 DSYMUTIL=$lt_DSYMUTIL
17916
17917 # Tool to change global to local symbols on Mac OS X.
17918 NMEDIT=$lt_NMEDIT
17919
17920 # Tool to manipulate fat objects and archives on Mac OS X.
17921 LIPO=$lt_LIPO
17922
17923 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17924 OTOOL=$lt_OTOOL
17925
17926 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17927 OTOOL64=$lt_OTOOL64
17928
17929 # Old archive suffix (normally "a").
17930 libext=$libext
17931
17932 # Shared library suffix (normally ".so").
17933 shrext_cmds=$lt_shrext_cmds
17934
17935 # The commands to extract the exported symbol list from a shared archive.
17936 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17937
17938 # Variables whose values should be saved in libtool wrapper scripts and
17939 # restored at link time.
17940 variables_saved_for_relink=$lt_variables_saved_for_relink
17941
17942 # Do we need the "lib" prefix for modules?
17943 need_lib_prefix=$need_lib_prefix
17944
17945 # Do we need a version for libraries?
17946 need_version=$need_version
17947
17948 # Library versioning type.
17949 version_type=$version_type
17950
17951 # Shared library runtime path variable.
17952 runpath_var=$runpath_var
17953
17954 # Shared library path variable.
17955 shlibpath_var=$shlibpath_var
17956
17957 # Is shlibpath searched before the hard-coded library search path?
17958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17959
17960 # Format of library name prefix.
17961 libname_spec=$lt_libname_spec
17962
17963 # List of archive names. First name is the real one, the rest are links.
17964 # The last name is the one that the linker finds with -lNAME
17965 library_names_spec=$lt_library_names_spec
17966
17967 # The coded name of the library, if different from the real name.
17968 soname_spec=$lt_soname_spec
17969
17970 # Permission mode override for installation of shared libraries.
17971 install_override_mode=$lt_install_override_mode
17972
17973 # Command to use after installation of a shared archive.
17974 postinstall_cmds=$lt_postinstall_cmds
17975
17976 # Command to use after uninstallation of a shared archive.
17977 postuninstall_cmds=$lt_postuninstall_cmds
17978
17979 # Commands used to finish a libtool library installation in a directory.
17980 finish_cmds=$lt_finish_cmds
17981
17982 # As "finish_cmds", except a single script fragment to be evaled but
17983 # not shown.
17984 finish_eval=$lt_finish_eval
17985
17986 # Whether we should hardcode library paths into libraries.
17987 hardcode_into_libs=$hardcode_into_libs
17988
17989 # Compile-time system search path for libraries.
17990 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17991
17992 # Run-time system search path for libraries.
17993 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17994
17995 # Whether dlopen is supported.
17996 dlopen_support=$enable_dlopen
17997
17998 # Whether dlopen of programs is supported.
17999 dlopen_self=$enable_dlopen_self
18000
18001 # Whether dlopen of statically linked programs is supported.
18002 dlopen_self_static=$enable_dlopen_self_static
18003
18004 # Commands to strip libraries.
18005 old_striplib=$lt_old_striplib
18006 striplib=$lt_striplib
18007
18008
18009 # The linker used to build libraries.
18010 LD=$lt_LD
18011
18012 # How to create reloadable object files.
18013 reload_flag=$lt_reload_flag
18014 reload_cmds=$lt_reload_cmds
18015
18016 # Commands used to build an old-style archive.
18017 old_archive_cmds=$lt_old_archive_cmds
18018
18019 # A language specific compiler.
18020 CC=$lt_compiler
18021
18022 # Is the compiler the GNU compiler?
18023 with_gcc=$GCC
18024
18025 # Compiler flag to turn off builtin functions.
18026 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18027
18028 # Additional compiler flags for building library objects.
18029 pic_flag=$lt_lt_prog_compiler_pic
18030
18031 # How to pass a linker flag through the compiler.
18032 wl=$lt_lt_prog_compiler_wl
18033
18034 # Compiler flag to prevent dynamic linking.
18035 link_static_flag=$lt_lt_prog_compiler_static
18036
18037 # Does compiler simultaneously support -c and -o options?
18038 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18039
18040 # Whether or not to add -lc for building shared libraries.
18041 build_libtool_need_lc=$archive_cmds_need_lc
18042
18043 # Whether or not to disallow shared libs when runtime libs are static.
18044 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18045
18046 # Compiler flag to allow reflexive dlopens.
18047 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18048
18049 # Compiler flag to generate shared objects directly from archives.
18050 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18051
18052 # Whether the compiler copes with passing no objects directly.
18053 compiler_needs_object=$lt_compiler_needs_object
18054
18055 # Create an old-style archive from a shared archive.
18056 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18057
18058 # Create a temporary old-style archive to link instead of a shared archive.
18059 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18060
18061 # Commands used to build a shared archive.
18062 archive_cmds=$lt_archive_cmds
18063 archive_expsym_cmds=$lt_archive_expsym_cmds
18064
18065 # Commands used to build a loadable module if different from building
18066 # a shared archive.
18067 module_cmds=$lt_module_cmds
18068 module_expsym_cmds=$lt_module_expsym_cmds
18069
18070 # Whether we are building with GNU ld or not.
18071 with_gnu_ld=$lt_with_gnu_ld
18072
18073 # Flag that allows shared libraries with undefined symbols to be built.
18074 allow_undefined_flag=$lt_allow_undefined_flag
18075
18076 # Flag that enforces no undefined symbols.
18077 no_undefined_flag=$lt_no_undefined_flag
18078
18079 # Flag to hardcode \$libdir into a binary during linking.
18080 # This must work even if \$libdir does not exist
18081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18082
18083 # Whether we need a single "-rpath" flag with a separated argument.
18084 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18085
18086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18087 # DIR into the resulting binary.
18088 hardcode_direct=$hardcode_direct
18089
18090 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18091 # DIR into the resulting binary and the resulting library dependency is
18092 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18093 # library is relocated.
18094 hardcode_direct_absolute=$hardcode_direct_absolute
18095
18096 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18097 # into the resulting binary.
18098 hardcode_minus_L=$hardcode_minus_L
18099
18100 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18101 # into the resulting binary.
18102 hardcode_shlibpath_var=$hardcode_shlibpath_var
18103
18104 # Set to "yes" if building a shared library automatically hardcodes DIR
18105 # into the library and all subsequent libraries and executables linked
18106 # against it.
18107 hardcode_automatic=$hardcode_automatic
18108
18109 # Set to yes if linker adds runtime paths of dependent libraries
18110 # to runtime path list.
18111 inherit_rpath=$inherit_rpath
18112
18113 # Whether libtool must link a program against all its dependency libraries.
18114 link_all_deplibs=$link_all_deplibs
18115
18116 # Set to "yes" if exported symbols are required.
18117 always_export_symbols=$always_export_symbols
18118
18119 # The commands to list exported symbols.
18120 export_symbols_cmds=$lt_export_symbols_cmds
18121
18122 # Symbols that should not be listed in the preloaded symbols.
18123 exclude_expsyms=$lt_exclude_expsyms
18124
18125 # Symbols that must always be exported.
18126 include_expsyms=$lt_include_expsyms
18127
18128 # Commands necessary for linking programs (against libraries) with templates.
18129 prelink_cmds=$lt_prelink_cmds
18130
18131 # Commands necessary for finishing linking programs.
18132 postlink_cmds=$lt_postlink_cmds
18133
18134 # Specify filename containing input files.
18135 file_list_spec=$lt_file_list_spec
18136
18137 # How to hardcode a shared library path into an executable.
18138 hardcode_action=$hardcode_action
18139
18140 # The directories searched by this compiler when creating a shared library.
18141 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18142
18143 # Dependencies to place before and after the objects being linked to
18144 # create a shared library.
18145 predep_objects=$lt_predep_objects
18146 postdep_objects=$lt_postdep_objects
18147 predeps=$lt_predeps
18148 postdeps=$lt_postdeps
18149
18150 # The library search path used internally by the compiler when linking
18151 # a shared library.
18152 compiler_lib_search_path=$lt_compiler_lib_search_path
18153
18154 # ### END LIBTOOL CONFIG
18155
18156 _LT_EOF
18157
18158 case $host_os in
18159 aix3*)
18160 cat <<\_LT_EOF >> "$cfgfile"
18161 # AIX sometimes has problems with the GCC collect2 program. For some
18162 # reason, if we set the COLLECT_NAMES environment variable, the problems
18163 # vanish in a puff of smoke.
18164 if test "X${COLLECT_NAMES+set}" != Xset; then
18165 COLLECT_NAMES=
18166 export COLLECT_NAMES
18167 fi
18168 _LT_EOF
18169 ;;
18170 esac
18171
18172
18173 ltmain="$ac_aux_dir/ltmain.sh"
18174
18175
18176 # We use sed instead of cat because bash on DJGPP gets confused if
18177 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18178 # text mode, it properly converts lines to CR/LF. This bash problem
18179 # is reportedly fixed, but why not run on old versions too?
18180 sed '$q' "$ltmain" >> "$cfgfile" \
18181 || (rm -f "$cfgfile"; exit 1)
18182
18183 if test x"$xsi_shell" = xyes; then
18184 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18185 func_dirname ()\
18186 {\
18187 \ case ${1} in\
18188 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18189 \ * ) func_dirname_result="${3}" ;;\
18190 \ esac\
18191 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18192 && mv -f "$cfgfile.tmp" "$cfgfile" \
18193 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18194 test 0 -eq $? || _lt_function_replace_fail=:
18195
18196
18197 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18198 func_basename ()\
18199 {\
18200 \ func_basename_result="${1##*/}"\
18201 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18202 && mv -f "$cfgfile.tmp" "$cfgfile" \
18203 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18204 test 0 -eq $? || _lt_function_replace_fail=:
18205
18206
18207 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18208 func_dirname_and_basename ()\
18209 {\
18210 \ case ${1} in\
18211 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18212 \ * ) func_dirname_result="${3}" ;;\
18213 \ esac\
18214 \ func_basename_result="${1##*/}"\
18215 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18216 && mv -f "$cfgfile.tmp" "$cfgfile" \
18217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18218 test 0 -eq $? || _lt_function_replace_fail=:
18219
18220
18221 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18222 func_stripname ()\
18223 {\
18224 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18225 \ # positional parameters, so assign one to ordinary parameter first.\
18226 \ func_stripname_result=${3}\
18227 \ func_stripname_result=${func_stripname_result#"${1}"}\
18228 \ func_stripname_result=${func_stripname_result%"${2}"}\
18229 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18230 && mv -f "$cfgfile.tmp" "$cfgfile" \
18231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18232 test 0 -eq $? || _lt_function_replace_fail=:
18233
18234
18235 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18236 func_split_long_opt ()\
18237 {\
18238 \ func_split_long_opt_name=${1%%=*}\
18239 \ func_split_long_opt_arg=${1#*=}\
18240 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18241 && mv -f "$cfgfile.tmp" "$cfgfile" \
18242 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18243 test 0 -eq $? || _lt_function_replace_fail=:
18244
18245
18246 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18247 func_split_short_opt ()\
18248 {\
18249 \ func_split_short_opt_arg=${1#??}\
18250 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18251 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18252 && mv -f "$cfgfile.tmp" "$cfgfile" \
18253 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18254 test 0 -eq $? || _lt_function_replace_fail=:
18255
18256
18257 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18258 func_lo2o ()\
18259 {\
18260 \ case ${1} in\
18261 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18262 \ *) func_lo2o_result=${1} ;;\
18263 \ esac\
18264 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18265 && mv -f "$cfgfile.tmp" "$cfgfile" \
18266 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18267 test 0 -eq $? || _lt_function_replace_fail=:
18268
18269
18270 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18271 func_xform ()\
18272 {\
18273 func_xform_result=${1%.*}.lo\
18274 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18275 && mv -f "$cfgfile.tmp" "$cfgfile" \
18276 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18277 test 0 -eq $? || _lt_function_replace_fail=:
18278
18279
18280 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18281 func_arith ()\
18282 {\
18283 func_arith_result=$(( $* ))\
18284 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18285 && mv -f "$cfgfile.tmp" "$cfgfile" \
18286 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18287 test 0 -eq $? || _lt_function_replace_fail=:
18288
18289
18290 sed -e '/^func_len ()$/,/^} # func_len /c\
18291 func_len ()\
18292 {\
18293 func_len_result=${#1}\
18294 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18295 && mv -f "$cfgfile.tmp" "$cfgfile" \
18296 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18297 test 0 -eq $? || _lt_function_replace_fail=:
18298
18299 fi
18300
18301 if test x"$lt_shell_append" = xyes; then
18302 sed -e '/^func_append ()$/,/^} # func_append /c\
18303 func_append ()\
18304 {\
18305 eval "${1}+=\\${2}"\
18306 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18307 && mv -f "$cfgfile.tmp" "$cfgfile" \
18308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18309 test 0 -eq $? || _lt_function_replace_fail=:
18310
18311
18312 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18313 func_append_quoted ()\
18314 {\
18315 \ func_quote_for_eval "${2}"\
18316 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18317 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18318 && mv -f "$cfgfile.tmp" "$cfgfile" \
18319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18320 test 0 -eq $? || _lt_function_replace_fail=:
18321
18322
18323 # Save a `func_append' function call where possible by direct use of '+='
18324 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18325 && mv -f "$cfgfile.tmp" "$cfgfile" \
18326 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18327 test 0 -eq $? || _lt_function_replace_fail=:
18328 else
18329 # Save a `func_append' function call even when '+=' is not available
18330 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18331 && mv -f "$cfgfile.tmp" "$cfgfile" \
18332 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18333 test 0 -eq $? || _lt_function_replace_fail=:
18334 fi
18335
18336 if test x"$_lt_function_replace_fail" = x":"; then
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18338 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18339 fi
18340
18341
18342 mv -f "$cfgfile" "$ofile" ||
18343 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18344 chmod +x "$ofile"
18345
18346
18347 cat <<_LT_EOF >> "$ofile"
18348
18349 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18350
18351 # The linker used to build libraries.
18352 LD=$lt_LD_CXX
18353
18354 # How to create reloadable object files.
18355 reload_flag=$lt_reload_flag_CXX
18356 reload_cmds=$lt_reload_cmds_CXX
18357
18358 # Commands used to build an old-style archive.
18359 old_archive_cmds=$lt_old_archive_cmds_CXX
18360
18361 # A language specific compiler.
18362 CC=$lt_compiler_CXX
18363
18364 # Is the compiler the GNU compiler?
18365 with_gcc=$GCC_CXX
18366
18367 # Compiler flag to turn off builtin functions.
18368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18369
18370 # Additional compiler flags for building library objects.
18371 pic_flag=$lt_lt_prog_compiler_pic_CXX
18372
18373 # How to pass a linker flag through the compiler.
18374 wl=$lt_lt_prog_compiler_wl_CXX
18375
18376 # Compiler flag to prevent dynamic linking.
18377 link_static_flag=$lt_lt_prog_compiler_static_CXX
18378
18379 # Does compiler simultaneously support -c and -o options?
18380 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18381
18382 # Whether or not to add -lc for building shared libraries.
18383 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18384
18385 # Whether or not to disallow shared libs when runtime libs are static.
18386 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18387
18388 # Compiler flag to allow reflexive dlopens.
18389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18390
18391 # Compiler flag to generate shared objects directly from archives.
18392 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18393
18394 # Whether the compiler copes with passing no objects directly.
18395 compiler_needs_object=$lt_compiler_needs_object_CXX
18396
18397 # Create an old-style archive from a shared archive.
18398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18399
18400 # Create a temporary old-style archive to link instead of a shared archive.
18401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18402
18403 # Commands used to build a shared archive.
18404 archive_cmds=$lt_archive_cmds_CXX
18405 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18406
18407 # Commands used to build a loadable module if different from building
18408 # a shared archive.
18409 module_cmds=$lt_module_cmds_CXX
18410 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18411
18412 # Whether we are building with GNU ld or not.
18413 with_gnu_ld=$lt_with_gnu_ld_CXX
18414
18415 # Flag that allows shared libraries with undefined symbols to be built.
18416 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18417
18418 # Flag that enforces no undefined symbols.
18419 no_undefined_flag=$lt_no_undefined_flag_CXX
18420
18421 # Flag to hardcode \$libdir into a binary during linking.
18422 # This must work even if \$libdir does not exist
18423 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18424
18425 # Whether we need a single "-rpath" flag with a separated argument.
18426 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18427
18428 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18429 # DIR into the resulting binary.
18430 hardcode_direct=$hardcode_direct_CXX
18431
18432 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18433 # DIR into the resulting binary and the resulting library dependency is
18434 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18435 # library is relocated.
18436 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18437
18438 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18439 # into the resulting binary.
18440 hardcode_minus_L=$hardcode_minus_L_CXX
18441
18442 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18443 # into the resulting binary.
18444 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18445
18446 # Set to "yes" if building a shared library automatically hardcodes DIR
18447 # into the library and all subsequent libraries and executables linked
18448 # against it.
18449 hardcode_automatic=$hardcode_automatic_CXX
18450
18451 # Set to yes if linker adds runtime paths of dependent libraries
18452 # to runtime path list.
18453 inherit_rpath=$inherit_rpath_CXX
18454
18455 # Whether libtool must link a program against all its dependency libraries.
18456 link_all_deplibs=$link_all_deplibs_CXX
18457
18458 # Set to "yes" if exported symbols are required.
18459 always_export_symbols=$always_export_symbols_CXX
18460
18461 # The commands to list exported symbols.
18462 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18463
18464 # Symbols that should not be listed in the preloaded symbols.
18465 exclude_expsyms=$lt_exclude_expsyms_CXX
18466
18467 # Symbols that must always be exported.
18468 include_expsyms=$lt_include_expsyms_CXX
18469
18470 # Commands necessary for linking programs (against libraries) with templates.
18471 prelink_cmds=$lt_prelink_cmds_CXX
18472
18473 # Commands necessary for finishing linking programs.
18474 postlink_cmds=$lt_postlink_cmds_CXX
18475
18476 # Specify filename containing input files.
18477 file_list_spec=$lt_file_list_spec_CXX
18478
18479 # How to hardcode a shared library path into an executable.
18480 hardcode_action=$hardcode_action_CXX
18481
18482 # The directories searched by this compiler when creating a shared library.
18483 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18484
18485 # Dependencies to place before and after the objects being linked to
18486 # create a shared library.
18487 predep_objects=$lt_predep_objects_CXX
18488 postdep_objects=$lt_postdep_objects_CXX
18489 predeps=$lt_predeps_CXX
18490 postdeps=$lt_postdeps_CXX
18491
18492 # The library search path used internally by the compiler when linking
18493 # a shared library.
18494 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18495
18496 # ### END LIBTOOL TAG CONFIG: CXX
18497 _LT_EOF
18498
18499 ;;
18500
18501 esac
18502 done # for ac_tag
18503
18504
18505 as_fn_exit 0
18506 _ACEOF
18507 ac_clean_files=$ac_clean_files_save
18508
18509 test $ac_write_fail = 0 ||
18510 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18511
18512
18513 # configure is writing to config.log, and then calls config.status.
18514 # config.status does its own redirection, appending to config.log.
18515 # Unfortunately, on DOS this fails, as config.log is still kept open
18516 # by configure, so config.status won't be able to write to it; its
18517 # output is simply discarded. So we exec the FD to /dev/null,
18518 # effectively closing config.log, so it can be properly (re)opened and
18519 # appended to by config.status. When coming back to configure, we
18520 # need to make the FD available again.
18521 if test "$no_create" != yes; then
18522 ac_cs_success=:
18523 ac_config_status_args=
18524 test "$silent" = yes &&
18525 ac_config_status_args="$ac_config_status_args --quiet"
18526 exec 5>/dev/null
18527 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18528 exec 5>>config.log
18529 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18530 # would make configure fail if this is the last instruction.
18531 $ac_cs_success || as_fn_exit 1
18532 fi
18533 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18535 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18536 fi
18537